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

Side by Side Diff: discovery/googleapis_beta/language__v1beta2.json

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 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": {
6 "description": "Apply machine learning models to reveal the structure and meaning of text"
7 },
5 "https://www.googleapis.com/auth/cloud-platform": { 8 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services" 9 "description": "View and manage your data across Google Clou d Platform services"
7 },
8 "https://www.googleapis.com/auth/cloud-language": {
9 "description": "Apply machine learning models to reveal the structure and meaning of text"
10 } 10 }
11 } 11 }
12 } 12 }
13 }, 13 },
14 "basePath": "", 14 "basePath": "",
15 "baseUrl": "https://language.googleapis.com/", 15 "baseUrl": "https://language.googleapis.com/",
16 "batchPath": "batch", 16 "batchPath": "batch",
17 "canonicalName": "Cloud Natural Language", 17 "canonicalName": "Cloud Natural Language",
18 "description": "Provides natural language understanding technologies to deve lopers. Examples include sentiment analysis, entity recognition, entity sentimen t analysis, and text annotations.", 18 "description": "Provides natural language understanding technologies to deve lopers. Examples include sentiment analysis, entity recognition, entity sentimen t analysis, and text annotations.",
19 "discoveryVersion": "v1", 19 "discoveryVersion": "v1",
20 "documentationLink": "https://cloud.google.com/natural-language/", 20 "documentationLink": "https://cloud.google.com/natural-language/",
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:v1beta2", 25 "id": "language:v1beta2",
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 "quotaUser": {
32 "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.",
33 "location": "query",
34 "type": "string"
35 },
36 "pp": {
37 "default": "true",
38 "description": "Pretty-print response.",
39 "location": "query",
40 "type": "boolean"
41 },
42 "oauth_token": {
43 "description": "OAuth 2.0 token for the current user.",
44 "location": "query",
45 "type": "string"
46 },
47 "bearer_token": {
48 "description": "OAuth bearer token.",
49 "location": "query",
50 "type": "string"
51 },
52 "upload_protocol": {
53 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
54 "location": "query",
55 "type": "string"
56 },
57 "prettyPrint": {
58 "default": "true",
59 "description": "Returns response with indentations and line breaks." ,
60 "location": "query",
61 "type": "boolean"
62 },
63 "uploadType": { 31 "uploadType": {
64 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").", 32 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
65 "location": "query", 33 "location": "query",
66 "type": "string" 34 "type": "string"
67 }, 35 },
68 "fields": { 36 "fields": {
69 "description": "Selector specifying which fields to include in a par tial response.", 37 "description": "Selector specifying which fields to include in a par tial response.",
70 "location": "query", 38 "location": "query",
71 "type": "string" 39 "type": "string"
72 }, 40 },
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 }, 74 },
107 "access_token": { 75 "access_token": {
108 "description": "OAuth access token.", 76 "description": "OAuth access token.",
109 "location": "query", 77 "location": "query",
110 "type": "string" 78 "type": "string"
111 }, 79 },
112 "key": { 80 "key": {
113 "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.", 81 "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.",
114 "location": "query", 82 "location": "query",
115 "type": "string" 83 "type": "string"
84 },
85 "quotaUser": {
86 "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.",
87 "location": "query",
88 "type": "string"
89 },
90 "pp": {
91 "default": "true",
92 "description": "Pretty-print response.",
93 "location": "query",
94 "type": "boolean"
95 },
96 "bearer_token": {
97 "description": "OAuth bearer token.",
98 "location": "query",
99 "type": "string"
100 },
101 "oauth_token": {
102 "description": "OAuth 2.0 token for the current user.",
103 "location": "query",
104 "type": "string"
105 },
106 "upload_protocol": {
107 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
108 "location": "query",
109 "type": "string"
110 },
111 "prettyPrint": {
112 "default": "true",
113 "description": "Returns response with indentations and line breaks." ,
114 "location": "query",
115 "type": "boolean"
116 } 116 }
117 }, 117 },
118 "protocol": "rest", 118 "protocol": "rest",
119 "resources": { 119 "resources": {
120 "documents": { 120 "documents": {
121 "methods": { 121 "methods": {
122 "annotateText": { 122 "annotateText": {
123 "description": "A convenience method that provides all synta x, sentiment, entity, and\nclassification features in one call.", 123 "description": "A convenience method that provides all synta x, sentiment, entity, and\nclassification features in one call.",
124 "httpMethod": "POST", 124 "httpMethod": "POST",
125 "id": "language.documents.annotateText", 125 "id": "language.documents.annotateText",
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 "$ref": "AnalyzeSentimentResponse" 205 "$ref": "AnalyzeSentimentResponse"
206 }, 206 },
207 "scopes": [ 207 "scopes": [
208 "https://www.googleapis.com/auth/cloud-language", 208 "https://www.googleapis.com/auth/cloud-language",
209 "https://www.googleapis.com/auth/cloud-platform" 209 "https://www.googleapis.com/auth/cloud-platform"
210 ] 210 ]
211 } 211 }
212 } 212 }
213 } 213 }
214 }, 214 },
215 "revision": "20170726", 215 "revision": "20170809",
216 "rootUrl": "https://language.googleapis.com/", 216 "rootUrl": "https://language.googleapis.com/",
217 "schemas": { 217 "schemas": {
218 "AnalyzeSyntaxResponse": { 218 "AnalyzeSentimentResponse": {
219 "description": "The syntax analysis response message.", 219 "description": "The sentiment analysis response message.",
220 "id": "AnalyzeSyntaxResponse", 220 "id": "AnalyzeSentimentResponse",
221 "properties": { 221 "properties": {
222 "documentSentiment": {
223 "$ref": "Sentiment",
224 "description": "The overall sentiment of the input document. "
225 },
222 "language": { 226 "language": {
223 "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.", 227 "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.",
224 "type": "string" 228 "type": "string"
225 }, 229 },
226 "sentences": { 230 "sentences": {
227 "description": "Sentences in the input document.", 231 "description": "The sentiment for all the sentences in the d ocument.",
228 "items": { 232 "items": {
229 "$ref": "Sentence" 233 "$ref": "Sentence"
230 }, 234 },
231 "type": "array" 235 "type": "array"
232 },
233 "tokens": {
234 "description": "Tokens, along with their syntactic informati on, in the input document.",
235 "items": {
236 "$ref": "Token"
237 },
238 "type": "array"
239 } 236 }
240 }, 237 },
241 "type": "object" 238 "type": "object"
239 },
240 "AnalyzeEntitiesResponse": {
241 "description": "The entity analysis response message.",
242 "id": "AnalyzeEntitiesResponse",
243 "properties": {
244 "entities": {
245 "description": "The recognized entities in the input documen t.",
246 "items": {
247 "$ref": "Entity"
248 },
249 "type": "array"
250 },
251 "language": {
252 "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.",
253 "type": "string"
254 }
255 },
256 "type": "object"
242 }, 257 },
243 "Entity": { 258 "Entity": {
244 "description": "Represents a phrase in the text that is a known enti ty, such as\na person, an organization, or location. The API associates informat ion, such\nas salience and mentions, with entities.", 259 "description": "Represents a phrase in the text that is a known enti ty, such as\na person, an organization, or location. The API associates informat ion, such\nas salience and mentions, with entities.",
245 "id": "Entity", 260 "id": "Entity",
246 "properties": { 261 "properties": {
262 "mentions": {
263 "description": "The mentions of this entity in the input doc ument. The API currently\nsupports proper noun mentions.",
264 "items": {
265 "$ref": "EntityMention"
266 },
267 "type": "array"
268 },
247 "name": { 269 "name": {
248 "description": "The representative name for the entity.", 270 "description": "The representative name for the entity.",
249 "type": "string" 271 "type": "string"
250 }, 272 },
251 "type": { 273 "type": {
252 "description": "The entity type.", 274 "description": "The entity type.",
253 "enum": [ 275 "enum": [
254 "UNKNOWN", 276 "UNKNOWN",
255 "PERSON", 277 "PERSON",
256 "LOCATION", 278 "LOCATION",
(...skipping 23 matching lines...) Expand all
280 "type": "object" 302 "type": "object"
281 }, 303 },
282 "salience": { 304 "salience": {
283 "description": "The salience score associated with the entit y in the [0, 1.0] range.\n\nThe salience score for an entity provides informatio n about the\nimportance or centrality of that entity to the entire document text .\nScores closer to 0 are less salient, while scores closer to 1.0 are highly\ns alient.", 305 "description": "The salience score associated with the entit y in the [0, 1.0] range.\n\nThe salience score for an entity provides informatio n about the\nimportance or centrality of that entity to the entire document text .\nScores closer to 0 are less salient, while scores closer to 1.0 are highly\ns alient.",
284 "format": "float", 306 "format": "float",
285 "type": "number" 307 "type": "number"
286 }, 308 },
287 "sentiment": { 309 "sentiment": {
288 "$ref": "Sentiment", 310 "$ref": "Sentiment",
289 "description": "For calls to AnalyzeEntitySentiment or if\nA nnotateTextRequest.Features.extract_entity_sentiment is set to\ntrue, this field will contain the aggregate sentiment expressed for this\nentity in the provided document." 311 "description": "For calls to AnalyzeEntitySentiment or if\nA nnotateTextRequest.Features.extract_entity_sentiment is set to\ntrue, this field will contain the aggregate sentiment expressed for this\nentity in the provided document."
290 },
291 "mentions": {
292 "description": "The mentions of this entity in the input doc ument. The API currently\nsupports proper noun mentions.",
293 "items": {
294 "$ref": "EntityMention"
295 },
296 "type": "array"
297 } 312 }
298 }, 313 },
299 "type": "object" 314 "type": "object"
315 },
316 "AnalyzeSyntaxResponse": {
317 "description": "The syntax analysis response message.",
318 "id": "AnalyzeSyntaxResponse",
319 "properties": {
320 "sentences": {
321 "description": "Sentences in the input document.",
322 "items": {
323 "$ref": "Sentence"
324 },
325 "type": "array"
326 },
327 "tokens": {
328 "description": "Tokens, along with their syntactic informati on, in the input document.",
329 "items": {
330 "$ref": "Token"
331 },
332 "type": "array"
333 },
334 "language": {
335 "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.",
336 "type": "string"
337 }
338 },
339 "type": "object"
300 }, 340 },
301 "AnnotateTextRequest": { 341 "AnnotateTextRequest": {
302 "description": "The request message for the text annotation API, whi ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one call.", 342 "description": "The request message for the text annotation API, whi ch can perform multiple\nanalysis types (sentiment, entities, and syntax) in one call.",
303 "id": "AnnotateTextRequest", 343 "id": "AnnotateTextRequest",
304 "properties": { 344 "properties": {
305 "encodingType": { 345 "encodingType": {
306 "description": "The encoding type used by the API to calcula te offsets.", 346 "description": "The encoding type used by the API to calcula te offsets.",
307 "enum": [ 347 "enum": [
308 "NONE", 348 "NONE",
309 "UTF8", 349 "UTF8",
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 "type": "string" 599 "type": "string"
560 }, 600 },
561 "headTokenIndex": { 601 "headTokenIndex": {
562 "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.", 602 "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.",
563 "format": "int32", 603 "format": "int32",
564 "type": "integer" 604 "type": "integer"
565 } 605 }
566 }, 606 },
567 "type": "object" 607 "type": "object"
568 }, 608 },
609 "TextSpan": {
610 "description": "Represents an output piece of text.",
611 "id": "TextSpan",
612 "properties": {
613 "beginOffset": {
614 "description": "The API calculates the beginning offset of t he content in the original\ndocument according to the EncodingType specified in the API request.",
615 "format": "int32",
616 "type": "integer"
617 },
618 "content": {
619 "description": "The content of the output text.",
620 "type": "string"
621 }
622 },
623 "type": "object"
624 },
569 "Token": { 625 "Token": {
570 "description": "Represents the smallest syntactic building block of the text.", 626 "description": "Represents the smallest syntactic building block of the text.",
571 "id": "Token", 627 "id": "Token",
572 "properties": { 628 "properties": {
573 "partOfSpeech": { 629 "partOfSpeech": {
574 "$ref": "PartOfSpeech", 630 "$ref": "PartOfSpeech",
575 "description": "Parts of speech tag for this token." 631 "description": "Parts of speech tag for this token."
576 }, 632 },
577 "dependencyEdge": { 633 "dependencyEdge": {
578 "$ref": "DependencyEdge", 634 "$ref": "DependencyEdge",
579 "description": "Dependency tree parse for this token." 635 "description": "Dependency tree parse for this token."
580 }, 636 },
581 "text": { 637 "text": {
582 "$ref": "TextSpan", 638 "$ref": "TextSpan",
583 "description": "The token text." 639 "description": "The token text."
584 }, 640 },
585 "lemma": { 641 "lemma": {
586 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_ %28morphology%29) of the token.", 642 "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_ %28morphology%29) of the token.",
587 "type": "string" 643 "type": "string"
588 } 644 }
589 }, 645 },
590 "type": "object" 646 "type": "object"
591 }, 647 },
592 "TextSpan": {
593 "description": "Represents an output piece of text.",
594 "id": "TextSpan",
595 "properties": {
596 "beginOffset": {
597 "description": "The API calculates the beginning offset of t he content in the original\ndocument according to the EncodingType specified in the API request.",
598 "format": "int32",
599 "type": "integer"
600 },
601 "content": {
602 "description": "The content of the output text.",
603 "type": "string"
604 }
605 },
606 "type": "object"
607 },
608 "Status": { 648 "Status": {
609 "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.", 649 "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.",
610 "id": "Status", 650 "id": "Status",
611 "properties": { 651 "properties": {
652 "message": {
653 "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.",
654 "type": "string"
655 },
612 "details": { 656 "details": {
613 "description": "A list of messages that carry the error deta ils. There is a common set of\nmessage types for APIs to use.", 657 "description": "A list of messages that carry the error deta ils. There is a common set of\nmessage types for APIs to use.",
614 "items": { 658 "items": {
615 "additionalProperties": { 659 "additionalProperties": {
616 "description": "Properties of the object. Contains f ield @type with type URL.", 660 "description": "Properties of the object. Contains f ield @type with type URL.",
617 "type": "any" 661 "type": "any"
618 }, 662 },
619 "type": "object" 663 "type": "object"
620 }, 664 },
621 "type": "array" 665 "type": "array"
622 }, 666 },
623 "code": { 667 "code": {
624 "description": "The status code, which should be an enum val ue of google.rpc.Code.", 668 "description": "The status code, which should be an enum val ue of google.rpc.Code.",
625 "format": "int32", 669 "format": "int32",
626 "type": "integer" 670 "type": "integer"
627 },
628 "message": {
629 "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.",
630 "type": "string"
631 } 671 }
632 }, 672 },
633 "type": "object" 673 "type": "object"
634 }, 674 },
635 "Features": { 675 "Features": {
636 "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.", 676 "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.",
637 "id": "Features", 677 "id": "Features",
638 "properties": { 678 "properties": {
639 "extractEntities": {
640 "description": "Extract entities.",
641 "type": "boolean"
642 },
643 "extractEntitySentiment": { 679 "extractEntitySentiment": {
644 "description": "Extract entities and their associated sentim ent.", 680 "description": "Extract entities and their associated sentim ent.",
645 "type": "boolean" 681 "type": "boolean"
646 }, 682 },
647 "extractDocumentSentiment": { 683 "extractDocumentSentiment": {
648 "description": "Extract document-level sentiment.", 684 "description": "Extract document-level sentiment.",
649 "type": "boolean" 685 "type": "boolean"
650 }, 686 },
651 "extractSyntax": { 687 "extractSyntax": {
652 "description": "Extract syntax information.", 688 "description": "Extract syntax information.",
653 "type": "boolean" 689 "type": "boolean"
690 },
691 "extractEntities": {
692 "description": "Extract entities.",
693 "type": "boolean"
654 } 694 }
655 }, 695 },
656 "type": "object" 696 "type": "object"
657 }, 697 },
658 "EntityMention": { 698 "EntityMention": {
659 "description": "Represents a mention for an entity in the text. Curr ently, proper noun\nmentions are supported.", 699 "description": "Represents a mention for an entity in the text. Curr ently, proper noun\nmentions are supported.",
660 "id": "EntityMention", 700 "id": "EntityMention",
661 "properties": { 701 "properties": {
662 "type": { 702 "type": {
663 "description": "The type of the entity mention.", 703 "description": "The type of the entity mention.",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 "$ref": "Sentiment", 736 "$ref": "Sentiment",
697 "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." 737 "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."
698 } 738 }
699 }, 739 },
700 "type": "object" 740 "type": "object"
701 }, 741 },
702 "Document": { 742 "Document": {
703 "description": "#################################################### ############ #\n\nRepresents the input to API methods.", 743 "description": "#################################################### ############ #\n\nRepresents the input to API methods.",
704 "id": "Document", 744 "id": "Document",
705 "properties": { 745 "properties": {
746 "gcsContentUri": {
747 "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.",
748 "type": "string"
749 },
706 "language": { 750 "language": {
707 "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.", 751 "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.",
708 "type": "string" 752 "type": "string"
709 }, 753 },
710 "content": { 754 "content": {
711 "description": "The content of the input in string format.", 755 "description": "The content of the input in string format.",
712 "type": "string" 756 "type": "string"
713 }, 757 },
714 "type": { 758 "type": {
715 "description": "Required. If the type is not set or is `TYPE _UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.", 759 "description": "Required. If the type is not set or is `TYPE _UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.",
716 "enum": [ 760 "enum": [
717 "TYPE_UNSPECIFIED", 761 "TYPE_UNSPECIFIED",
718 "PLAIN_TEXT", 762 "PLAIN_TEXT",
719 "HTML" 763 "HTML"
720 ], 764 ],
721 "enumDescriptions": [ 765 "enumDescriptions": [
722 "The content type is not specified.", 766 "The content type is not specified.",
723 "Plain text", 767 "Plain text",
724 "HTML" 768 "HTML"
725 ], 769 ],
726 "type": "string" 770 "type": "string"
727 },
728 "gcsContentUri": {
729 "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.",
730 "type": "string"
731 } 771 }
732 }, 772 },
733 "type": "object" 773 "type": "object"
734 }, 774 },
735 "Sentiment": { 775 "Sentiment": {
736 "description": "Represents the feeling associated with the entire te xt or entities in\nthe text.", 776 "description": "Represents the feeling associated with the entire te xt or entities in\nthe text.",
737 "id": "Sentiment", 777 "id": "Sentiment",
738 "properties": { 778 "properties": {
739 "score": { 779 "score": {
740 "description": "Sentiment score between -1.0 (negative senti ment) and 1.0\n(positive sentiment).", 780 "description": "Sentiment score between -1.0 (negative senti ment) and 1.0\n(positive sentiment).",
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 "$ref": "Document", 858 "$ref": "Document",
819 "description": "Input document." 859 "description": "Input document."
820 } 860 }
821 }, 861 },
822 "type": "object" 862 "type": "object"
823 }, 863 },
824 "PartOfSpeech": { 864 "PartOfSpeech": {
825 "description": "Represents part of speech information for a token.", 865 "description": "Represents part of speech information for a token.",
826 "id": "PartOfSpeech", 866 "id": "PartOfSpeech",
827 "properties": { 867 "properties": {
828 "person": {
829 "description": "The grammatical person.",
830 "enum": [
831 "PERSON_UNKNOWN",
832 "FIRST",
833 "SECOND",
834 "THIRD",
835 "REFLEXIVE_PERSON"
836 ],
837 "enumDescriptions": [
838 "Person is not applicable in the analyzed language or is not predicted.",
839 "First",
840 "Second",
841 "Third",
842 "Reflexive"
843 ],
844 "type": "string"
845 },
846 "proper": {
847 "description": "The grammatical properness.",
848 "enum": [
849 "PROPER_UNKNOWN",
850 "PROPER",
851 "NOT_PROPER"
852 ],
853 "enumDescriptions": [
854 "Proper is not applicable in the analyzed language or is not predicted.",
855 "Proper",
856 "Not proper"
857 ],
858 "type": "string"
859 },
860 "case": { 868 "case": {
861 "description": "The grammatical case.", 869 "description": "The grammatical case.",
862 "enum": [ 870 "enum": [
863 "CASE_UNKNOWN", 871 "CASE_UNKNOWN",
864 "ACCUSATIVE", 872 "ACCUSATIVE",
865 "ADVERBIAL", 873 "ADVERBIAL",
866 "COMPLEMENTIVE", 874 "COMPLEMENTIVE",
867 "DATIVE", 875 "DATIVE",
868 "GENITIVE", 876 "GENITIVE",
869 "INSTRUMENTAL", 877 "INSTRUMENTAL",
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 "MASCULINE", 1085 "MASCULINE",
1078 "NEUTER" 1086 "NEUTER"
1079 ], 1087 ],
1080 "enumDescriptions": [ 1088 "enumDescriptions": [
1081 "Gender is not applicable in the analyzed language or is not predicted.", 1089 "Gender is not applicable in the analyzed language or is not predicted.",
1082 "Feminine", 1090 "Feminine",
1083 "Masculine", 1091 "Masculine",
1084 "Neuter" 1092 "Neuter"
1085 ], 1093 ],
1086 "type": "string" 1094 "type": "string"
1095 },
1096 "person": {
1097 "description": "The grammatical person.",
1098 "enum": [
1099 "PERSON_UNKNOWN",
1100 "FIRST",
1101 "SECOND",
1102 "THIRD",
1103 "REFLEXIVE_PERSON"
1104 ],
1105 "enumDescriptions": [
1106 "Person is not applicable in the analyzed language or is not predicted.",
1107 "First",
1108 "Second",
1109 "Third",
1110 "Reflexive"
1111 ],
1112 "type": "string"
1113 },
1114 "proper": {
1115 "description": "The grammatical properness.",
1116 "enum": [
1117 "PROPER_UNKNOWN",
1118 "PROPER",
1119 "NOT_PROPER"
1120 ],
1121 "enumDescriptions": [
1122 "Proper is not applicable in the analyzed language or is not predicted.",
1123 "Proper",
1124 "Not proper"
1125 ],
1126 "type": "string"
1087 } 1127 }
1088 }, 1128 },
1089 "type": "object" 1129 "type": "object"
1090 }, 1130 },
1091 "AnalyzeSyntaxRequest": { 1131 "AnalyzeSyntaxRequest": {
1092 "description": "The syntax analysis request message.", 1132 "description": "The syntax analysis request message.",
1093 "id": "AnalyzeSyntaxRequest", 1133 "id": "AnalyzeSyntaxRequest",
1094 "properties": { 1134 "properties": {
1095 "encodingType": { 1135 "encodingType": {
1096 "description": "The encoding type used by the API to calcula te offsets.", 1136 "description": "The encoding type used by the API to calcula te offsets.",
(...skipping 10 matching lines...) Expand all
1107 "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." 1147 "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."
1108 ], 1148 ],
1109 "type": "string" 1149 "type": "string"
1110 }, 1150 },
1111 "document": { 1151 "document": {
1112 "$ref": "Document", 1152 "$ref": "Document",
1113 "description": "Input document." 1153 "description": "Input document."
1114 } 1154 }
1115 }, 1155 },
1116 "type": "object" 1156 "type": "object"
1117 },
1118 "AnalyzeSentimentResponse": {
1119 "description": "The sentiment analysis response message.",
1120 "id": "AnalyzeSentimentResponse",
1121 "properties": {
1122 "sentences": {
1123 "description": "The sentiment for all the sentences in the d ocument.",
1124 "items": {
1125 "$ref": "Sentence"
1126 },
1127 "type": "array"
1128 },
1129 "documentSentiment": {
1130 "$ref": "Sentiment",
1131 "description": "The overall sentiment of the input document. "
1132 },
1133 "language": {
1134 "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.",
1135 "type": "string"
1136 }
1137 },
1138 "type": "object"
1139 },
1140 "AnalyzeEntitiesResponse": {
1141 "description": "The entity analysis response message.",
1142 "id": "AnalyzeEntitiesResponse",
1143 "properties": {
1144 "language": {
1145 "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.",
1146 "type": "string"
1147 },
1148 "entities": {
1149 "description": "The recognized entities in the input documen t.",
1150 "items": {
1151 "$ref": "Entity"
1152 },
1153 "type": "array"
1154 }
1155 },
1156 "type": "object"
1157 } 1157 }
1158 }, 1158 },
1159 "servicePath": "", 1159 "servicePath": "",
1160 "title": "Google Cloud Natural Language API", 1160 "title": "Google Cloud Natural Language API",
1161 "version": "v1beta2" 1161 "version": "v1beta2"
1162 } 1162 }
OLDNEW
« no previous file with comments | « discovery/googleapis_beta/language__v1beta1.json ('k') | discovery/googleapis_beta/logging__v2beta1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698