Index: discovery/googleapis/language__v1.json |
diff --git a/discovery/googleapis/language__v1.json b/discovery/googleapis/language__v1.json |
index 0ac71ceb656e947469c803bdb28eea7c47e05675..fbc35685b4ca2fb9b0a8e20b4d138c7f1263c25e 100644 |
--- a/discovery/googleapis/language__v1.json |
+++ b/discovery/googleapis/language__v1.json |
@@ -25,8 +25,24 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
- "callback": { |
- "description": "JSONP", |
+ "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", |
+ "type": "string" |
+ }, |
+ "fields": { |
+ "description": "Selector specifying which fields to include in a partial response.", |
"location": "query", |
"type": "string" |
}, |
@@ -43,6 +59,11 @@ |
"location": "query", |
"type": "string" |
}, |
+ "callback": { |
+ "description": "JSONP", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"alt": { |
"default": "json", |
"description": "Data format for response.", |
@@ -59,13 +80,13 @@ |
"location": "query", |
"type": "string" |
}, |
- "access_token": { |
- "description": "OAuth access token.", |
+ "key": { |
+ "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
"location": "query", |
"type": "string" |
}, |
- "key": { |
- "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
+ "access_token": { |
+ "description": "OAuth access token.", |
"location": "query", |
"type": "string" |
}, |
@@ -80,34 +101,13 @@ |
"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\").", |
- "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", |
- "type": "string" |
- }, |
- "fields": { |
- "description": "Selector specifying which fields to include in a partial response.", |
+ "bearer_token": { |
+ "description": "OAuth bearer token.", |
"location": "query", |
"type": "string" |
} |
@@ -116,23 +116,6 @@ |
"resources": { |
"documents": { |
"methods": { |
- "annotateText": { |
- "description": "A convenience method that provides all the features that analyzeSentiment,\nanalyzeEntities, and analyzeSyntax provide in one call.", |
- "httpMethod": "POST", |
- "id": "language.documents.annotateText", |
- "parameterOrder": [], |
- "parameters": {}, |
- "path": "v1/documents:annotateText", |
- "request": { |
- "$ref": "AnnotateTextRequest" |
- }, |
- "response": { |
- "$ref": "AnnotateTextResponse" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform" |
- ] |
- }, |
"analyzeEntities": { |
"description": "Finds named entities (currently finds proper names) in the text,\nentity types, salience, mentions for each entity, and other properties.", |
"httpMethod": "POST", |
@@ -183,79 +166,30 @@ |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform" |
] |
+ }, |
+ "annotateText": { |
+ "description": "A convenience method that provides all the features that analyzeSentiment,\nanalyzeEntities, and analyzeSyntax provide in one call.", |
+ "httpMethod": "POST", |
+ "id": "language.documents.annotateText", |
+ "parameterOrder": [], |
+ "parameters": {}, |
+ "path": "v1/documents:annotateText", |
+ "request": { |
+ "$ref": "AnnotateTextRequest" |
+ }, |
+ "response": { |
+ "$ref": "AnnotateTextResponse" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform" |
+ ] |
} |
} |
} |
}, |
- "revision": "20170206", |
+ "revision": "20170301", |
"rootUrl": "https://language.googleapis.com/", |
"schemas": { |
- "Token": { |
- "description": "Represents the smallest syntactic building block of the text.", |
- "id": "Token", |
- "properties": { |
- "partOfSpeech": { |
- "$ref": "PartOfSpeech", |
- "description": "Parts of speech tag for this token." |
- }, |
- "text": { |
- "$ref": "TextSpan", |
- "description": "The token text." |
- }, |
- "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" |
- }, |
- "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" |
- }, |
- "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` which 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 purpose.\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": { |
- "details": { |
- "description": "A list of messages that carry the error details. There will be a\ncommon set of message 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.", |
- "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" |
- } |
- }, |
- "type": "object" |
- }, |
"EntityMention": { |
"description": "Represents a mention for an entity in the text. Currently, proper noun\nmentions are supported.", |
"id": "EntityMention", |
@@ -285,6 +219,10 @@ |
"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" |
+ }, |
"extractSyntax": { |
"description": "Extract syntax information.", |
"type": "boolean" |
@@ -292,10 +230,6 @@ |
"extractDocumentSentiment": { |
"description": "Extract document-level sentiment.", |
"type": "boolean" |
- }, |
- "extractEntities": { |
- "description": "Extract entities.", |
- "type": "boolean" |
} |
}, |
"type": "object" |
@@ -712,16 +646,41 @@ |
"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" |
+ }, |
+ "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" |
@@ -730,6 +689,10 @@ |
"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": { |
+ "name": { |
+ "description": "The representative name for the entity.", |
+ "type": "string" |
+ }, |
"type": { |
"description": "The entity type.", |
"enum": [ |
@@ -772,35 +735,6 @@ |
"$ref": "EntityMention" |
}, |
"type": "array" |
- }, |
- "name": { |
- "description": "The representative name for the entity.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "AnalyzeSyntaxResponse": { |
- "description": "The syntax analysis response message.", |
- "id": "AnalyzeSyntaxResponse", |
- "properties": { |
- "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" |
- }, |
- "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" |
@@ -836,6 +770,33 @@ |
}, |
"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.", |
+ "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. Currently, `analyzeSentiment` only supports English text\n(Document.language=\"EN\")." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
"AnnotateTextResponse": { |
"description": "The text annotations response message.", |
"id": "AnnotateTextResponse", |
@@ -872,42 +833,10 @@ |
}, |
"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.", |
- "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. Currently, `analyzeSentiment` only supports English text\n(Document.language=\"EN\")." |
- } |
- }, |
- "type": "object" |
- }, |
"DependencyEdge": { |
"description": "Represents dependency parse tree information for a token. (For more\ninformation on dependency labels, see\nhttp://www.aclweb.org/anthology/P13-2017", |
"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": [ |
@@ -1069,6 +998,77 @@ |
"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" |
+ }, |
+ "Token": { |
+ "description": "Represents the smallest syntactic building block of the text.", |
+ "id": "Token", |
+ "properties": { |
+ "text": { |
+ "$ref": "TextSpan", |
+ "description": "The token text." |
+ }, |
+ "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" |
+ }, |
+ "partOfSpeech": { |
+ "$ref": "PartOfSpeech", |
+ "description": "Parts of speech tag for this token." |
+ } |
+ }, |
+ "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` which 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 purpose.\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 will be a\ncommon set of message 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" |