| Index: discovery/googleapis_beta/language__v1beta2.json
|
| diff --git a/discovery/googleapis_beta/language__v1beta2.json b/discovery/googleapis_beta/language__v1beta2.json
|
| index 8c8a2390ed6f77cd75b2464bf442122c1494df66..022ed7c78fc0a1f3066c575ac26663e747f5b48a 100644
|
| --- a/discovery/googleapis_beta/language__v1beta2.json
|
| +++ b/discovery/googleapis_beta/language__v1beta2.json
|
| @@ -25,6 +25,17 @@
|
| "ownerDomain": "google.com",
|
| "ownerName": "Google",
|
| "parameters": {
|
| + "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"
|
| + },
|
| "uploadType": {
|
| "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
| "location": "query",
|
| @@ -35,6 +46,11 @@
|
| "location": "query",
|
| "type": "string"
|
| },
|
| + "callback": {
|
| + "description": "JSONP",
|
| + "location": "query",
|
| + "type": "string"
|
| + },
|
| "$.xgafv": {
|
| "description": "V1 error format.",
|
| "enum": [
|
| @@ -48,11 +64,6 @@
|
| "location": "query",
|
| "type": "string"
|
| },
|
| - "callback": {
|
| - "description": "JSONP",
|
| - "location": "query",
|
| - "type": "string"
|
| - },
|
| "alt": {
|
| "default": "json",
|
| "description": "Data format for response.",
|
| @@ -90,26 +101,15 @@
|
| "location": "query",
|
| "type": "boolean"
|
| },
|
| - "oauth_token": {
|
| - "description": "OAuth 2.0 token for the current user.",
|
| - "location": "query",
|
| - "type": "string"
|
| - },
|
| "bearer_token": {
|
| "description": "OAuth bearer token.",
|
| "location": "query",
|
| "type": "string"
|
| },
|
| - "upload_protocol": {
|
| - "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
| + "oauth_token": {
|
| + "description": "OAuth 2.0 token for the current user.",
|
| "location": "query",
|
| "type": "string"
|
| - },
|
| - "prettyPrint": {
|
| - "default": "true",
|
| - "description": "Returns response with indentations and line breaks.",
|
| - "location": "query",
|
| - "type": "boolean"
|
| }
|
| },
|
| "protocol": "rest",
|
| @@ -204,28 +204,43 @@
|
| }
|
| }
|
| },
|
| - "revision": "20170515",
|
| + "revision": "20170601",
|
| "rootUrl": "https://language.googleapis.com/",
|
| "schemas": {
|
| - "AnalyzeSyntaxResponse": {
|
| - "description": "The syntax analysis response message.",
|
| - "id": "AnalyzeSyntaxResponse",
|
| + "AnalyzeSentimentResponse": {
|
| + "description": "The sentiment analysis response message.",
|
| + "id": "AnalyzeSentimentResponse",
|
| "properties": {
|
| + "documentSentiment": {
|
| + "$ref": "Sentiment",
|
| + "description": "The overall sentiment of the input document."
|
| + },
|
| "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.",
|
| + "description": "The sentiment for all the sentences in the document.",
|
| "items": {
|
| "$ref": "Sentence"
|
| },
|
| "type": "array"
|
| + }
|
| + },
|
| + "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"
|
| },
|
| - "tokens": {
|
| - "description": "Tokens, along with their syntactic information, in the input document.",
|
| + "entities": {
|
| + "description": "The recognized entities in the input document.",
|
| "items": {
|
| - "$ref": "Token"
|
| + "$ref": "Entity"
|
| },
|
| "type": "array"
|
| }
|
| @@ -290,6 +305,31 @@
|
| },
|
| "type": "object"
|
| },
|
| + "AnalyzeSyntaxResponse": {
|
| + "description": "The syntax analysis response message.",
|
| + "id": "AnalyzeSyntaxResponse",
|
| + "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"
|
| + },
|
| + "sentences": {
|
| + "description": "Sentences in the input document.",
|
| + "items": {
|
| + "$ref": "Sentence"
|
| + },
|
| + "type": "array"
|
| + },
|
| + "tokens": {
|
| + "description": "Tokens, along with their syntactic information, in the input document.",
|
| + "items": {
|
| + "$ref": "Token"
|
| + },
|
| + "type": "array"
|
| + }
|
| + },
|
| + "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",
|
| @@ -562,10 +602,6 @@
|
| "description": "Represents the smallest syntactic building block of the text.",
|
| "id": "Token",
|
| "properties": {
|
| - "lemma": {
|
| - "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.",
|
| - "type": "string"
|
| - },
|
| "partOfSpeech": {
|
| "$ref": "PartOfSpeech",
|
| "description": "Parts of speech tag for this token."
|
| @@ -577,6 +613,10 @@
|
| "dependencyEdge": {
|
| "$ref": "DependencyEdge",
|
| "description": "Dependency tree parse for this token."
|
| + },
|
| + "lemma": {
|
| + "description": "[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.",
|
| + "type": "string"
|
| }
|
| },
|
| "type": "object"
|
| @@ -624,33 +664,14 @@
|
| },
|
| "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": {
|
| - "extractSyntax": {
|
| - "description": "Extract syntax information.",
|
| - "type": "boolean"
|
| - },
|
| - "extractDocumentSentiment": {
|
| - "description": "Extract document-level sentiment.",
|
| - "type": "boolean"
|
| - },
|
| - "extractEntitySentiment": {
|
| - "description": "Extract entities and their associated sentiment.",
|
| - "type": "boolean"
|
| - },
|
| - "extractEntities": {
|
| - "description": "Extract entities.",
|
| - "type": "boolean"
|
| - }
|
| - },
|
| - "type": "object"
|
| - },
|
| "EntityMention": {
|
| "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."
|
| + },
|
| "text": {
|
| "$ref": "TextSpan",
|
| "description": "The mention text."
|
| @@ -668,25 +689,29 @@
|
| "Common noun (or noun compound)"
|
| ],
|
| "type": "string"
|
| - },
|
| - "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"
|
| },
|
| - "Sentence": {
|
| - "description": "Represents a sentence in the input document.",
|
| - "id": "Sentence",
|
| + "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": {
|
| - "text": {
|
| - "$ref": "TextSpan",
|
| - "description": "The sentence text."
|
| + "extractSyntax": {
|
| + "description": "Extract syntax information.",
|
| + "type": "boolean"
|
| },
|
| - "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."
|
| + "extractDocumentSentiment": {
|
| + "description": "Extract document-level sentiment.",
|
| + "type": "boolean"
|
| + },
|
| + "extractEntitySentiment": {
|
| + "description": "Extract entities and their associated sentiment.",
|
| + "type": "boolean"
|
| + },
|
| + "extractEntities": {
|
| + "description": "Extract entities.",
|
| + "type": "boolean"
|
| }
|
| },
|
| "type": "object"
|
| @@ -695,10 +720,6 @@
|
| "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"
|
| @@ -720,23 +741,25 @@
|
| "content": {
|
| "description": "The content of the input in string format.",
|
| "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"
|
| }
|
| },
|
| "type": "object"
|
| },
|
| - "Sentiment": {
|
| - "description": "Represents the feeling associated with the entire text or entities in\nthe text.",
|
| - "id": "Sentiment",
|
| + "Sentence": {
|
| + "description": "Represents a sentence in the input document.",
|
| + "id": "Sentence",
|
| "properties": {
|
| - "score": {
|
| - "description": "Sentiment score between -1.0 (negative sentiment) and 1.0\n(positive sentiment).",
|
| - "format": "float",
|
| - "type": "number"
|
| + "text": {
|
| + "$ref": "TextSpan",
|
| + "description": "The sentence text."
|
| },
|
| - "magnitude": {
|
| - "description": "A non-negative number in the [0, +inf) range, which represents\nthe absolute magnitude of sentiment regardless of score (positive or\nnegative).",
|
| - "format": "float",
|
| - "type": "number"
|
| + "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"
|
| @@ -768,20 +791,37 @@
|
| },
|
| "type": "object"
|
| },
|
| + "Sentiment": {
|
| + "description": "Represents the feeling associated with the entire text or entities in\nthe text.",
|
| + "id": "Sentiment",
|
| + "properties": {
|
| + "magnitude": {
|
| + "description": "A non-negative number in the [0, +inf) range, which represents\nthe absolute magnitude of sentiment regardless of score (positive or\nnegative).",
|
| + "format": "float",
|
| + "type": "number"
|
| + },
|
| + "score": {
|
| + "description": "Sentiment score between -1.0 (negative sentiment) and 1.0\n(positive sentiment).",
|
| + "format": "float",
|
| + "type": "number"
|
| + }
|
| + },
|
| + "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"
|
| + },
|
| + "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"
|
| @@ -817,24 +857,6 @@
|
| "description": "Represents part of speech information for a token.",
|
| "id": "PartOfSpeech",
|
| "properties": {
|
| - "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": [
|
| @@ -1076,6 +1098,24 @@
|
| "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"
|
| }
|
| },
|
| "type": "object"
|
| @@ -1106,46 +1146,6 @@
|
| }
|
| },
|
| "type": "object"
|
| - },
|
| - "AnalyzeSentimentResponse": {
|
| - "description": "The sentiment analysis response message.",
|
| - "id": "AnalyzeSentimentResponse",
|
| - "properties": {
|
| - "documentSentiment": {
|
| - "$ref": "Sentiment",
|
| - "description": "The overall sentiment of the input document."
|
| - },
|
| - "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": "The sentiment for all the sentences in the document.",
|
| - "items": {
|
| - "$ref": "Sentence"
|
| - },
|
| - "type": "array"
|
| - }
|
| - },
|
| - "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"
|
| }
|
| },
|
| "servicePath": "",
|
|
|