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

Unified Diff: discovery/googleapis_beta/language__v1beta2.json

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « discovery/googleapis_beta/language__v1beta1.json ('k') | discovery/googleapis_beta/logging__v2beta1.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: discovery/googleapis_beta/language__v1beta2.json
diff --git a/discovery/googleapis_beta/language__v1beta2.json b/discovery/googleapis_beta/language__v1beta2.json
index b7c01e9c3b02d0ebeb9c5b2cfe5d5a10ec28458c..1e3eabfc8df2244809c8432230411931ca7f822c 100644
--- a/discovery/googleapis_beta/language__v1beta2.json
+++ b/discovery/googleapis_beta/language__v1beta2.json
@@ -28,16 +28,27 @@
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
- "uploadType": {
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
+ "upload_protocol": {
+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
},
+ "prettyPrint": {
+ "default": "true",
+ "description": "Returns response with indentations and line breaks.",
+ "location": "query",
+ "type": "boolean"
+ },
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
+ "uploadType": {
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
+ "location": "query",
+ "type": "string"
+ },
"callback": {
"description": "JSONP",
"location": "query",
@@ -93,32 +104,39 @@
"location": "query",
"type": "boolean"
},
- "bearer_token": {
- "description": "OAuth bearer token.",
- "location": "query",
- "type": "string"
- },
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
- "upload_protocol": {
- "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
+ "bearer_token": {
+ "description": "OAuth bearer token.",
"location": "query",
"type": "string"
- },
- "prettyPrint": {
- "default": "true",
- "description": "Returns response with indentations and line breaks.",
- "location": "query",
- "type": "boolean"
}
},
"protocol": "rest",
"resources": {
"documents": {
"methods": {
+ "analyzeSyntax": {
+ "description": "Analyzes the syntax of the text and provides sentence boundaries and\ntokenization along with part of speech tags, dependency trees, and other\nproperties.",
+ "httpMethod": "POST",
+ "id": "language.documents.analyzeSyntax",
+ "parameterOrder": [],
+ "parameters": {},
+ "path": "v1beta2/documents:analyzeSyntax",
+ "request": {
+ "$ref": "AnalyzeSyntaxRequest"
+ },
+ "response": {
+ "$ref": "AnalyzeSyntaxResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-language",
+ "https://www.googleapis.com/auth/cloud-platform"
+ ]
+ },
"annotateText": {
"description": "A convenience method that provides all syntax, sentiment, entity, and\nclassification features in one call.",
"httpMethod": "POST",
@@ -137,72 +155,72 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
- "analyzeEntitySentiment": {
- "description": "Finds entities, similar to AnalyzeEntities in the text and analyzes\nsentiment associated with each entity and its mentions.",
+ "classifyText": {
+ "description": "Classifies a document into categories.",
"httpMethod": "POST",
- "id": "language.documents.analyzeEntitySentiment",
+ "id": "language.documents.classifyText",
"parameterOrder": [],
"parameters": {},
- "path": "v1beta2/documents:analyzeEntitySentiment",
+ "path": "v1beta2/documents:classifyText",
"request": {
- "$ref": "AnalyzeEntitySentimentRequest"
+ "$ref": "ClassifyTextRequest"
},
"response": {
- "$ref": "AnalyzeEntitySentimentResponse"
+ "$ref": "ClassifyTextResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-language",
"https://www.googleapis.com/auth/cloud-platform"
]
},
- "analyzeEntities": {
- "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.",
+ "analyzeSentiment": {
+ "description": "Analyzes the sentiment of the provided text.",
"httpMethod": "POST",
- "id": "language.documents.analyzeEntities",
+ "id": "language.documents.analyzeSentiment",
"parameterOrder": [],
"parameters": {},
- "path": "v1beta2/documents:analyzeEntities",
+ "path": "v1beta2/documents:analyzeSentiment",
"request": {
- "$ref": "AnalyzeEntitiesRequest"
+ "$ref": "AnalyzeSentimentRequest"
},
"response": {
- "$ref": "AnalyzeEntitiesResponse"
+ "$ref": "AnalyzeSentimentResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-language",
"https://www.googleapis.com/auth/cloud-platform"
]
},
- "analyzeSyntax": {
- "description": "Analyzes the syntax of the text and provides sentence boundaries and\ntokenization along with part of speech tags, dependency trees, and other\nproperties.",
+ "analyzeEntitySentiment": {
+ "description": "Finds entities, similar to AnalyzeEntities in the text and analyzes\nsentiment associated with each entity and its mentions.",
"httpMethod": "POST",
- "id": "language.documents.analyzeSyntax",
+ "id": "language.documents.analyzeEntitySentiment",
"parameterOrder": [],
"parameters": {},
- "path": "v1beta2/documents:analyzeSyntax",
+ "path": "v1beta2/documents:analyzeEntitySentiment",
"request": {
- "$ref": "AnalyzeSyntaxRequest"
+ "$ref": "AnalyzeEntitySentimentRequest"
},
"response": {
- "$ref": "AnalyzeSyntaxResponse"
+ "$ref": "AnalyzeEntitySentimentResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-language",
"https://www.googleapis.com/auth/cloud-platform"
]
},
- "analyzeSentiment": {
- "description": "Analyzes the sentiment of the provided text.",
+ "analyzeEntities": {
+ "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.",
"httpMethod": "POST",
- "id": "language.documents.analyzeSentiment",
+ "id": "language.documents.analyzeEntities",
"parameterOrder": [],
"parameters": {},
- "path": "v1beta2/documents:analyzeSentiment",
+ "path": "v1beta2/documents:analyzeEntities",
"request": {
- "$ref": "AnalyzeSentimentRequest"
+ "$ref": "AnalyzeEntitiesRequest"
},
"response": {
- "$ref": "AnalyzeSentimentResponse"
+ "$ref": "AnalyzeEntitiesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-language",
@@ -212,7 +230,7 @@
}
}
},
- "revision": "20170809",
+ "revision": "20170905",
"rootUrl": "https://language.googleapis.com/",
"schemas": {
"AnalyzeSentimentResponse": {
@@ -237,86 +255,14 @@
},
"type": "object"
},
- "AnalyzeEntitiesResponse": {
- "description": "The entity analysis response message.",
- "id": "AnalyzeEntitiesResponse",
+ "AnalyzeSyntaxResponse": {
+ "description": "The syntax analysis response message.",
+ "id": "AnalyzeSyntaxResponse",
"properties": {
- "entities": {
- "description": "The recognized entities in the input document.",
- "items": {
- "$ref": "Entity"
- },
- "type": "array"
- },
"language": {
"description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automatically-detected language.\nSee Document.language field for more details.",
"type": "string"
- }
- },
- "type": "object"
- },
- "Entity": {
- "description": "Represents a phrase in the text that is a known entity, such as\na person, an organization, or location. The API associates information, such\nas salience and mentions, with entities.",
- "id": "Entity",
- "properties": {
- "mentions": {
- "description": "The mentions of this entity in the input document. The API currently\nsupports proper noun mentions.",
- "items": {
- "$ref": "EntityMention"
- },
- "type": "array"
- },
- "name": {
- "description": "The representative name for the entity.",
- "type": "string"
- },
- "type": {
- "description": "The entity type.",
- "enum": [
- "UNKNOWN",
- "PERSON",
- "LOCATION",
- "ORGANIZATION",
- "EVENT",
- "WORK_OF_ART",
- "CONSUMER_GOOD",
- "OTHER"
- ],
- "enumDescriptions": [
- "Unknown",
- "Person",
- "Location",
- "Organization",
- "Event",
- "Work of art",
- "Consumer goods",
- "Other types"
- ],
- "type": "string"
- },
- "metadata": {
- "additionalProperties": {
- "type": "string"
- },
- "description": "Metadata associated with the entity.\n\nCurrently, Wikipedia URLs and Knowledge Graph MIDs are provided, if\navailable. The associated keys are \"wikipedia_url\" and \"mid\", respectively.",
- "type": "object"
},
- "salience": {
- "description": "The salience score associated with the entity in the [0, 1.0] range.\n\nThe salience score for an entity provides information 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\nsalient.",
- "format": "float",
- "type": "number"
- },
- "sentiment": {
- "$ref": "Sentiment",
- "description": "For calls to AnalyzeEntitySentiment or if\nAnnotateTextRequest.Features.extract_entity_sentiment is set to\ntrue, this field will contain the aggregate sentiment expressed for this\nentity in the provided document."
- }
- },
- "type": "object"
- },
- "AnalyzeSyntaxResponse": {
- "description": "The syntax analysis response message.",
- "id": "AnalyzeSyntaxResponse",
- "properties": {
"sentences": {
"description": "Sentences in the input document.",
"items": {
@@ -330,41 +276,6 @@
"$ref": "Token"
},
"type": "array"
- },
- "language": {
- "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automatically-detected language.\nSee Document.language field for more details.",
- "type": "string"
- }
- },
- "type": "object"
- },
- "AnnotateTextRequest": {
- "description": "The request message for the text annotation API, which can perform multiple\nanalysis types (sentiment, entities, and syntax) in one call.",
- "id": "AnnotateTextRequest",
- "properties": {
- "encodingType": {
- "description": "The encoding type used by the API to calculate offsets.",
- "enum": [
- "NONE",
- "UTF8",
- "UTF16",
- "UTF32"
- ],
- "enumDescriptions": [
- "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
- "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-8 encoding of the input. C++ and Go are examples of languages\nthat use this encoding natively.",
- "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-16 encoding of the input. Java and Javascript are examples of\nlanguages that use this encoding natively.",
- "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."
- ],
- "type": "string"
- },
- "document": {
- "$ref": "Document",
- "description": "Input document."
- },
- "features": {
- "$ref": "Features",
- "description": "The enabled features."
}
},
"type": "object"
@@ -373,14 +284,6 @@
"description": "The text annotations response message.",
"id": "AnnotateTextResponse",
"properties": {
- "documentSentiment": {
- "$ref": "Sentiment",
- "description": "The overall sentiment for the document. Populated if the user enables\nAnnotateTextRequest.Features.extract_document_sentiment."
- },
- "language": {
- "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automatically-detected language.\nSee Document.language field for more details.",
- "type": "string"
- },
"sentences": {
"description": "Sentences in the input document. Populated if the user enables\nAnnotateTextRequest.Features.extract_syntax.",
"items": {
@@ -395,6 +298,21 @@
},
"type": "array"
},
+ "documentSentiment": {
+ "$ref": "Sentiment",
+ "description": "The overall sentiment for the document. Populated if the user enables\nAnnotateTextRequest.Features.extract_document_sentiment."
+ },
+ "categories": {
+ "description": "Categories identified in the input document.",
+ "items": {
+ "$ref": "ClassificationCategory"
+ },
+ "type": "array"
+ },
+ "language": {
+ "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automatically-detected language.\nSee Document.language field for more details.",
+ "type": "string"
+ },
"entities": {
"description": "Entities, along with their semantic information, in the input document.\nPopulated if the user enables\nAnnotateTextRequest.Features.extract_entities.",
"items": {
@@ -405,37 +323,15 @@
},
"type": "object"
},
- "AnalyzeSentimentRequest": {
- "description": "The sentiment analysis request message.",
- "id": "AnalyzeSentimentRequest",
- "properties": {
- "encodingType": {
- "description": "The encoding type used by the API to calculate sentence offsets for the\nsentence sentiment.",
- "enum": [
- "NONE",
- "UTF8",
- "UTF16",
- "UTF32"
- ],
- "enumDescriptions": [
- "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
- "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-8 encoding of the input. C++ and Go are examples of languages\nthat use this encoding natively.",
- "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-16 encoding of the input. Java and Javascript are examples of\nlanguages that use this encoding natively.",
- "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."
- ],
- "type": "string"
- },
- "document": {
- "$ref": "Document",
- "description": "Input document."
- }
- },
- "type": "object"
- },
"DependencyEdge": {
"description": "Represents dependency parse tree information for a token.",
"id": "DependencyEdge",
"properties": {
+ "headTokenIndex": {
+ "description": "Represents the head of this token in the dependency tree.\nThis is the index of the token which has an arc going to this token.\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 its own index.",
+ "format": "int32",
+ "type": "integer"
+ },
"label": {
"description": "The parse label for the token.",
"enum": [
@@ -597,27 +493,6 @@
"Dislocated relation (for fronted/topicalized elements)"
],
"type": "string"
- },
- "headTokenIndex": {
- "description": "Represents the head of this token in the dependency tree.\nThis is the index of the token which has an arc going to this token.\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 its own index.",
- "format": "int32",
- "type": "integer"
- }
- },
- "type": "object"
- },
- "TextSpan": {
- "description": "Represents an output piece of text.",
- "id": "TextSpan",
- "properties": {
- "beginOffset": {
- "description": "The API calculates the beginning offset of the content in the original\ndocument according to the EncodingType specified in the API request.",
- "format": "int32",
- "type": "integer"
- },
- "content": {
- "description": "The content of the output text.",
- "type": "string"
}
},
"type": "object"
@@ -645,52 +520,18 @@
},
"type": "object"
},
- "Status": {
- "description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should 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 that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\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\ninformation 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# Language 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` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\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\nenvironments, 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 may\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 results 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 stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
- "id": "Status",
+ "TextSpan": {
+ "description": "Represents an output piece of text.",
+ "id": "TextSpan",
"properties": {
- "message": {
- "description": "A developer-facing error message, which should 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.",
- "type": "string"
- },
- "details": {
- "description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
- "items": {
- "additionalProperties": {
- "description": "Properties of the object. Contains field @type with type URL.",
- "type": "any"
- },
- "type": "object"
- },
- "type": "array"
- },
- "code": {
- "description": "The status code, which should be an enum value of google.rpc.Code.",
+ "beginOffset": {
+ "description": "The API calculates the beginning offset of the content in the original\ndocument according to the EncodingType specified in the API request.",
"format": "int32",
"type": "integer"
- }
- },
- "type": "object"
- },
- "Features": {
- "description": "All available features for sentiment, syntax, and semantic analysis.\nSetting each one to true will enable that specific analysis for the input.",
- "id": "Features",
- "properties": {
- "extractEntitySentiment": {
- "description": "Extract entities and their associated sentiment.",
- "type": "boolean"
- },
- "extractDocumentSentiment": {
- "description": "Extract document-level sentiment.",
- "type": "boolean"
- },
- "extractSyntax": {
- "description": "Extract syntax information.",
- "type": "boolean"
},
- "extractEntities": {
- "description": "Extract entities.",
- "type": "boolean"
+ "content": {
+ "description": "The content of the output text.",
+ "type": "string"
}
},
"type": "object"
@@ -699,6 +540,10 @@
"description": "Represents a mention for an entity in the text. Currently, proper noun\nmentions are supported.",
"id": "EntityMention",
"properties": {
+ "sentiment": {
+ "$ref": "Sentiment",
+ "description": "For calls to AnalyzeEntitySentiment or if\nAnnotateTextRequest.Features.extract_entity_sentiment is set to\ntrue, this field will contain the sentiment expressed for this mention of\nthe entity in the provided document."
+ },
"type": {
"description": "The type of the entity mention.",
"enum": [
@@ -716,10 +561,20 @@
"text": {
"$ref": "TextSpan",
"description": "The mention text."
- },
- "sentiment": {
- "$ref": "Sentiment",
- "description": "For calls to AnalyzeEntitySentiment or if\nAnnotateTextRequest.Features.extract_entity_sentiment is set to\ntrue, this field will contain the sentiment expressed for this mention of\nthe entity in the provided document."
+ }
+ },
+ "type": "object"
+ },
+ "ClassifyTextResponse": {
+ "description": "The document classification response message.",
+ "id": "ClassifyTextResponse",
+ "properties": {
+ "categories": {
+ "description": "Categories representing the input document.",
+ "items": {
+ "$ref": "ClassificationCategory"
+ },
+ "type": "array"
}
},
"type": "object"
@@ -728,46 +583,13 @@
"description": "Represents a sentence in the input document.",
"id": "Sentence",
"properties": {
- "text": {
- "$ref": "TextSpan",
- "description": "The sentence text."
- },
"sentiment": {
"$ref": "Sentiment",
"description": "For calls to AnalyzeSentiment or if\nAnnotateTextRequest.Features.extract_document_sentiment is set to\ntrue, this field will contain the sentiment for the sentence."
- }
- },
- "type": "object"
- },
- "Document": {
- "description": "################################################################ #\n\nRepresents the input to API methods.",
- "id": "Document",
- "properties": {
- "gcsContentUri": {
- "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.\nNOTE: Cloud Storage object versioning is not supported.",
- "type": "string"
- },
- "language": {
- "description": "The language of the document (if not specified, 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 specified by the caller or automatically detected)\nis not supported by the called API method, an `INVALID_ARGUMENT` error\nis returned.",
- "type": "string"
- },
- "content": {
- "description": "The content of the input in string format.",
- "type": "string"
},
- "type": {
- "description": "Required. If the type is not set or is `TYPE_UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.",
- "enum": [
- "TYPE_UNSPECIFIED",
- "PLAIN_TEXT",
- "HTML"
- ],
- "enumDescriptions": [
- "The content type is not specified.",
- "Plain text",
- "HTML"
- ],
- "type": "string"
+ "text": {
+ "$ref": "TextSpan",
+ "description": "The sentence text."
}
},
"type": "object"
@@ -789,51 +611,6 @@
},
"type": "object"
},
- "AnalyzeEntitiesRequest": {
- "description": "The entity analysis request message.",
- "id": "AnalyzeEntitiesRequest",
- "properties": {
- "encodingType": {
- "description": "The encoding type used by the API to calculate offsets.",
- "enum": [
- "NONE",
- "UTF8",
- "UTF16",
- "UTF32"
- ],
- "enumDescriptions": [
- "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
- "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-8 encoding of the input. C++ and Go are examples of languages\nthat use this encoding natively.",
- "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-16 encoding of the input. Java and Javascript are examples of\nlanguages that use this encoding natively.",
- "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."
- ],
- "type": "string"
- },
- "document": {
- "$ref": "Document",
- "description": "Input document."
- }
- },
- "type": "object"
- },
- "AnalyzeEntitySentimentResponse": {
- "description": "The entity-level sentiment analysis response message.",
- "id": "AnalyzeEntitySentimentResponse",
- "properties": {
- "language": {
- "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automatically-detected language.\nSee Document.language field for more details.",
- "type": "string"
- },
- "entities": {
- "description": "The recognized entities in the input document with associated sentiments.",
- "items": {
- "$ref": "Entity"
- },
- "type": "array"
- }
- },
- "type": "object"
- },
"AnalyzeEntitySentimentRequest": {
"description": "The entity-level sentiment analysis request message.",
"id": "AnalyzeEntitySentimentRequest",
@@ -865,69 +642,175 @@
"description": "Represents part of speech information for a token.",
"id": "PartOfSpeech",
"properties": {
- "case": {
- "description": "The grammatical case.",
+ "mood": {
+ "description": "The grammatical mood.",
"enum": [
- "CASE_UNKNOWN",
- "ACCUSATIVE",
- "ADVERBIAL",
- "COMPLEMENTIVE",
- "DATIVE",
- "GENITIVE",
- "INSTRUMENTAL",
- "LOCATIVE",
- "NOMINATIVE",
- "OBLIQUE",
- "PARTITIVE",
- "PREPOSITIONAL",
- "REFLEXIVE_CASE",
- "RELATIVE_CASE",
- "VOCATIVE"
+ "MOOD_UNKNOWN",
+ "CONDITIONAL_MOOD",
+ "IMPERATIVE",
+ "INDICATIVE",
+ "INTERROGATIVE",
+ "JUSSIVE",
+ "SUBJUNCTIVE"
],
"enumDescriptions": [
- "Case is not applicable in the analyzed language or is not predicted.",
- "Accusative",
- "Adverbial",
- "Complementive",
- "Dative",
- "Genitive",
- "Instrumental",
- "Locative",
- "Nominative",
- "Oblique",
- "Partitive",
- "Prepositional",
- "Reflexive",
- "Relative",
- "Vocative"
+ "Mood is not applicable in the analyzed language or is not predicted.",
+ "Conditional",
+ "Imperative",
+ "Indicative",
+ "Interrogative",
+ "Jussive",
+ "Subjunctive"
],
"type": "string"
},
- "tense": {
- "description": "The grammatical tense.",
+ "tag": {
+ "description": "The part of speech tag.",
"enum": [
- "TENSE_UNKNOWN",
- "CONDITIONAL_TENSE",
- "FUTURE",
- "PAST",
- "PRESENT",
- "IMPERFECT",
- "PLUPERFECT"
+ "UNKNOWN",
+ "ADJ",
+ "ADP",
+ "ADV",
+ "CONJ",
+ "DET",
+ "NOUN",
+ "NUM",
+ "PRON",
+ "PRT",
+ "PUNCT",
+ "VERB",
+ "X",
+ "AFFIX"
],
"enumDescriptions": [
- "Tense is not applicable in the analyzed language or is not predicted.",
- "Conditional",
- "Future",
- "Past",
- "Present",
- "Imperfect",
- "Pluperfect"
- ],
- "type": "string"
- },
- "reciprocity": {
- "description": "The grammatical reciprocity.",
- "enum": [
+ "Unknown",
+ "Adjective",
+ "Adposition (preposition and postposition)",
+ "Adverb",
+ "Conjunction",
+ "Determiner",
+ "Noun (common and proper)",
+ "Cardinal number",
+ "Pronoun",
+ "Particle or other function word",
+ "Punctuation",
+ "Verb (all tenses and modes)",
+ "Other: foreign words, typos, abbreviations",
+ "Affix"
+ ],
+ "type": "string"
+ },
+ "gender": {
+ "description": "The grammatical gender.",
+ "enum": [
+ "GENDER_UNKNOWN",
+ "FEMININE",
+ "MASCULINE",
+ "NEUTER"
+ ],
+ "enumDescriptions": [
+ "Gender is not applicable in the analyzed language or is not predicted.",
+ "Feminine",
+ "Masculine",
+ "Neuter"
+ ],
+ "type": "string"
+ },
+ "person": {
+ "description": "The grammatical person.",
+ "enum": [
+ "PERSON_UNKNOWN",
+ "FIRST",
+ "SECOND",
+ "THIRD",
+ "REFLEXIVE_PERSON"
+ ],
+ "enumDescriptions": [
+ "Person is not applicable in the analyzed language or is not predicted.",
+ "First",
+ "Second",
+ "Third",
+ "Reflexive"
+ ],
+ "type": "string"
+ },
+ "proper": {
+ "description": "The grammatical properness.",
+ "enum": [
+ "PROPER_UNKNOWN",
+ "PROPER",
+ "NOT_PROPER"
+ ],
+ "enumDescriptions": [
+ "Proper is not applicable in the analyzed language or is not predicted.",
+ "Proper",
+ "Not proper"
+ ],
+ "type": "string"
+ },
+ "case": {
+ "description": "The grammatical case.",
+ "enum": [
+ "CASE_UNKNOWN",
+ "ACCUSATIVE",
+ "ADVERBIAL",
+ "COMPLEMENTIVE",
+ "DATIVE",
+ "GENITIVE",
+ "INSTRUMENTAL",
+ "LOCATIVE",
+ "NOMINATIVE",
+ "OBLIQUE",
+ "PARTITIVE",
+ "PREPOSITIONAL",
+ "REFLEXIVE_CASE",
+ "RELATIVE_CASE",
+ "VOCATIVE"
+ ],
+ "enumDescriptions": [
+ "Case is not applicable in the analyzed language or is not predicted.",
+ "Accusative",
+ "Adverbial",
+ "Complementive",
+ "Dative",
+ "Genitive",
+ "Instrumental",
+ "Locative",
+ "Nominative",
+ "Oblique",
+ "Partitive",
+ "Prepositional",
+ "Reflexive",
+ "Relative",
+ "Vocative"
+ ],
+ "type": "string"
+ },
+ "tense": {
+ "description": "The grammatical tense.",
+ "enum": [
+ "TENSE_UNKNOWN",
+ "CONDITIONAL_TENSE",
+ "FUTURE",
+ "PAST",
+ "PRESENT",
+ "IMPERFECT",
+ "PLUPERFECT"
+ ],
+ "enumDescriptions": [
+ "Tense is not applicable in the analyzed language or is not predicted.",
+ "Conditional",
+ "Future",
+ "Past",
+ "Present",
+ "Imperfect",
+ "Pluperfect"
+ ],
+ "type": "string"
+ },
+ "reciprocity": {
+ "description": "The grammatical reciprocity.",
+ "enum": [
"RECIPROCITY_UNKNOWN",
"RECIPROCAL",
"NON_RECIPROCAL"
@@ -1018,119 +901,277 @@
"Progressive"
],
"type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "ClassificationCategory": {
+ "description": "Represents a category returned from the text classifier.",
+ "id": "ClassificationCategory",
+ "properties": {
+ "confidence": {
+ "description": "The classifier's confidence of the category. Number represents how certain\nthe classifier is that this category represents the given text.",
+ "format": "float",
+ "type": "number"
},
- "mood": {
- "description": "The grammatical mood.",
+ "name": {
+ "description": "The name of the category representing the document.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "AnalyzeSyntaxRequest": {
+ "description": "The syntax analysis request message.",
+ "id": "AnalyzeSyntaxRequest",
+ "properties": {
+ "encodingType": {
+ "description": "The encoding type used by the API to calculate offsets.",
"enum": [
- "MOOD_UNKNOWN",
- "CONDITIONAL_MOOD",
- "IMPERATIVE",
- "INDICATIVE",
- "INTERROGATIVE",
- "JUSSIVE",
- "SUBJUNCTIVE"
+ "NONE",
+ "UTF8",
+ "UTF16",
+ "UTF32"
],
"enumDescriptions": [
- "Mood is not applicable in the analyzed language or is not predicted.",
- "Conditional",
- "Imperative",
- "Indicative",
- "Interrogative",
- "Jussive",
- "Subjunctive"
+ "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
+ "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-8 encoding of the input. C++ and Go are examples of languages\nthat use this encoding natively.",
+ "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-16 encoding of the input. Java and Javascript are examples of\nlanguages that use this encoding natively.",
+ "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."
],
"type": "string"
},
- "tag": {
- "description": "The part of speech tag.",
+ "document": {
+ "$ref": "Document",
+ "description": "Input document."
+ }
+ },
+ "type": "object"
+ },
+ "AnalyzeEntitiesResponse": {
+ "description": "The entity analysis response message.",
+ "id": "AnalyzeEntitiesResponse",
+ "properties": {
+ "language": {
+ "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automatically-detected language.\nSee Document.language field for more details.",
+ "type": "string"
+ },
+ "entities": {
+ "description": "The recognized entities in the input document.",
+ "items": {
+ "$ref": "Entity"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "Entity": {
+ "description": "Represents a phrase in the text that is a known entity, such as\na person, an organization, or location. The API associates information, such\nas salience and mentions, with entities.",
+ "id": "Entity",
+ "properties": {
+ "mentions": {
+ "description": "The mentions of this entity in the input document. The API currently\nsupports proper noun mentions.",
+ "items": {
+ "$ref": "EntityMention"
+ },
+ "type": "array"
+ },
+ "name": {
+ "description": "The representative name for the entity.",
+ "type": "string"
+ },
+ "type": {
+ "description": "The entity type.",
"enum": [
"UNKNOWN",
- "ADJ",
- "ADP",
- "ADV",
- "CONJ",
- "DET",
- "NOUN",
- "NUM",
- "PRON",
- "PRT",
- "PUNCT",
- "VERB",
- "X",
- "AFFIX"
+ "PERSON",
+ "LOCATION",
+ "ORGANIZATION",
+ "EVENT",
+ "WORK_OF_ART",
+ "CONSUMER_GOOD",
+ "OTHER"
],
"enumDescriptions": [
"Unknown",
- "Adjective",
- "Adposition (preposition and postposition)",
- "Adverb",
- "Conjunction",
- "Determiner",
- "Noun (common and proper)",
- "Cardinal number",
- "Pronoun",
- "Particle or other function word",
- "Punctuation",
- "Verb (all tenses and modes)",
- "Other: foreign words, typos, abbreviations",
- "Affix"
+ "Person",
+ "Location",
+ "Organization",
+ "Event",
+ "Work of art",
+ "Consumer goods",
+ "Other types"
],
"type": "string"
},
- "gender": {
- "description": "The grammatical gender.",
+ "metadata": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Metadata associated with the entity.\n\nCurrently, Wikipedia URLs and Knowledge Graph MIDs are provided, if\navailable. The associated keys are \"wikipedia_url\" and \"mid\", respectively.",
+ "type": "object"
+ },
+ "salience": {
+ "description": "The salience score associated with the entity in the [0, 1.0] range.\n\nThe salience score for an entity provides information 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\nsalient.",
+ "format": "float",
+ "type": "number"
+ },
+ "sentiment": {
+ "$ref": "Sentiment",
+ "description": "For calls to AnalyzeEntitySentiment or if\nAnnotateTextRequest.Features.extract_entity_sentiment is set to\ntrue, this field will contain the aggregate sentiment expressed for this\nentity in the provided document."
+ }
+ },
+ "type": "object"
+ },
+ "AnnotateTextRequest": {
+ "description": "The request message for the text annotation API, which can perform multiple\nanalysis types (sentiment, entities, and syntax) in one call.",
+ "id": "AnnotateTextRequest",
+ "properties": {
+ "encodingType": {
+ "description": "The encoding type used by the API to calculate offsets.",
"enum": [
- "GENDER_UNKNOWN",
- "FEMININE",
- "MASCULINE",
- "NEUTER"
+ "NONE",
+ "UTF8",
+ "UTF16",
+ "UTF32"
],
"enumDescriptions": [
- "Gender is not applicable in the analyzed language or is not predicted.",
- "Feminine",
- "Masculine",
- "Neuter"
+ "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
+ "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-8 encoding of the input. C++ and Go are examples of languages\nthat use this encoding natively.",
+ "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-16 encoding of the input. Java and Javascript are examples of\nlanguages that use this encoding natively.",
+ "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."
],
"type": "string"
},
- "person": {
- "description": "The grammatical person.",
+ "document": {
+ "$ref": "Document",
+ "description": "Input document."
+ },
+ "features": {
+ "$ref": "Features",
+ "description": "The enabled features."
+ }
+ },
+ "type": "object"
+ },
+ "AnalyzeSentimentRequest": {
+ "description": "The sentiment analysis request message.",
+ "id": "AnalyzeSentimentRequest",
+ "properties": {
+ "encodingType": {
+ "description": "The encoding type used by the API to calculate sentence offsets for the\nsentence sentiment.",
"enum": [
- "PERSON_UNKNOWN",
- "FIRST",
- "SECOND",
- "THIRD",
- "REFLEXIVE_PERSON"
+ "NONE",
+ "UTF8",
+ "UTF16",
+ "UTF32"
],
"enumDescriptions": [
- "Person is not applicable in the analyzed language or is not predicted.",
- "First",
- "Second",
- "Third",
- "Reflexive"
+ "If `EncodingType` is not specified, encoding-dependent information (such as\n`begin_offset`) will be set at `-1`.",
+ "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-8 encoding of the input. C++ and Go are examples of languages\nthat use this encoding natively.",
+ "Encoding-dependent information (such as `begin_offset`) is calculated based\non the UTF-16 encoding of the input. Java and Javascript are examples of\nlanguages that use this encoding natively.",
+ "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."
],
"type": "string"
},
- "proper": {
- "description": "The grammatical properness.",
+ "document": {
+ "$ref": "Document",
+ "description": "Input document."
+ }
+ },
+ "type": "object"
+ },
+ "Status": {
+ "description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should 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 that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\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\ninformation 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# Language 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` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\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\nenvironments, 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 may\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 results 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 stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
+ "id": "Status",
+ "properties": {
+ "code": {
+ "description": "The status code, which should be an enum value of google.rpc.Code.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "message": {
+ "description": "A developer-facing error message, which should 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.",
+ "type": "string"
+ },
+ "details": {
+ "description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
+ "items": {
+ "additionalProperties": {
+ "description": "Properties of the object. Contains field @type with type URL.",
+ "type": "any"
+ },
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "Features": {
+ "description": "All available features for sentiment, syntax, and semantic analysis.\nSetting each one to true will enable that specific analysis for the input.",
+ "id": "Features",
+ "properties": {
+ "extractEntities": {
+ "description": "Extract entities.",
+ "type": "boolean"
+ },
+ "classifyText": {
+ "description": "Classify the full document into categories.",
+ "type": "boolean"
+ },
+ "extractEntitySentiment": {
+ "description": "Extract entities and their associated sentiment.",
+ "type": "boolean"
+ },
+ "extractDocumentSentiment": {
+ "description": "Extract document-level sentiment.",
+ "type": "boolean"
+ },
+ "extractSyntax": {
+ "description": "Extract syntax information.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "Document": {
+ "description": "################################################################ #\n\nRepresents the input to API methods.",
+ "id": "Document",
+ "properties": {
+ "content": {
+ "description": "The content of the input in string format.",
+ "type": "string"
+ },
+ "type": {
+ "description": "Required. If the type is not set or is `TYPE_UNSPECIFIED`,\nreturns an `INVALID_ARGUMENT` error.",
"enum": [
- "PROPER_UNKNOWN",
- "PROPER",
- "NOT_PROPER"
+ "TYPE_UNSPECIFIED",
+ "PLAIN_TEXT",
+ "HTML"
],
"enumDescriptions": [
- "Proper is not applicable in the analyzed language or is not predicted.",
- "Proper",
- "Not proper"
+ "The content type is not specified.",
+ "Plain text",
+ "HTML"
],
"type": "string"
+ },
+ "gcsContentUri": {
+ "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.\nNOTE: Cloud Storage object versioning is not supported.",
+ "type": "string"
+ },
+ "language": {
+ "description": "The language of the document (if not specified, 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 specified by the caller or automatically detected)\nis not supported by the called API method, an `INVALID_ARGUMENT` error\nis returned.",
+ "type": "string"
}
},
"type": "object"
},
- "AnalyzeSyntaxRequest": {
- "description": "The syntax analysis request message.",
- "id": "AnalyzeSyntaxRequest",
+ "AnalyzeEntitiesRequest": {
+ "description": "The entity analysis request message.",
+ "id": "AnalyzeEntitiesRequest",
"properties": {
"encodingType": {
"description": "The encoding type used by the API to calculate offsets.",
@@ -1154,6 +1195,35 @@
}
},
"type": "object"
+ },
+ "ClassifyTextRequest": {
+ "description": "The document classification request message.",
+ "id": "ClassifyTextRequest",
+ "properties": {
+ "document": {
+ "$ref": "Document",
+ "description": "Input document."
+ }
+ },
+ "type": "object"
+ },
+ "AnalyzeEntitySentimentResponse": {
+ "description": "The entity-level sentiment analysis response message.",
+ "id": "AnalyzeEntitySentimentResponse",
+ "properties": {
+ "language": {
+ "description": "The language of the text, which will be the same as the language specified\nin the request or, if not specified, the automatically-detected language.\nSee Document.language field for more details.",
+ "type": "string"
+ },
+ "entities": {
+ "description": "The recognized entities in the input document with associated sentiments.",
+ "items": {
+ "$ref": "Entity"
+ },
+ "type": "array"
+ }
+ },
+ "type": "object"
}
},
"servicePath": "",
« 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