Index: discovery/googleapis_beta/language__v1beta2.json |
diff --git a/discovery/googleapis_beta/language__v1beta2.json b/discovery/googleapis_beta/language__v1beta2.json |
index 5392c609108eb7d90c164154247c102927477e80..b7c01e9c3b02d0ebeb9c5b2cfe5d5a10ec28458c 100644 |
--- a/discovery/googleapis_beta/language__v1beta2.json |
+++ b/discovery/googleapis_beta/language__v1beta2.json |
@@ -2,11 +2,11 @@ |
"auth": { |
"oauth2": { |
"scopes": { |
- "https://www.googleapis.com/auth/cloud-platform": { |
- "description": "View and manage your data across Google Cloud Platform services" |
- }, |
"https://www.googleapis.com/auth/cloud-language": { |
"description": "Apply machine learning models to reveal the structure and meaning of text" |
+ }, |
+ "https://www.googleapis.com/auth/cloud-platform": { |
+ "description": "View and manage your data across Google Cloud Platform services" |
} |
} |
} |
@@ -28,38 +28,6 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
- "quotaUser": { |
- "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
- "location": "query", |
- "type": "string" |
- }, |
- "pp": { |
- "default": "true", |
- "description": "Pretty-print response.", |
- "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\").", |
- "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", |
@@ -113,6 +81,38 @@ |
"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" |
+ }, |
+ "quotaUser": { |
+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pp": { |
+ "default": "true", |
+ "description": "Pretty-print response.", |
+ "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" |
} |
}, |
"protocol": "rest", |
@@ -212,30 +212,45 @@ |
} |
} |
}, |
- "revision": "20170726", |
+ "revision": "20170809", |
"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" |
- }, |
- "tokens": { |
- "description": "Tokens, along with their syntactic information, in the input document.", |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "AnalyzeEntitiesResponse": { |
+ "description": "The entity analysis response message.", |
+ "id": "AnalyzeEntitiesResponse", |
+ "properties": { |
+ "entities": { |
+ "description": "The recognized entities in the input document.", |
"items": { |
- "$ref": "Token" |
+ "$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" |
@@ -244,6 +259,13 @@ |
"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" |
@@ -287,13 +309,31 @@ |
"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": { |
+ "$ref": "Sentence" |
+ }, |
+ "type": "array" |
}, |
- "mentions": { |
- "description": "The mentions of this entity in the input document. The API currently\nsupports proper noun mentions.", |
+ "tokens": { |
+ "description": "Tokens, along with their syntactic information, in the input document.", |
"items": { |
- "$ref": "EntityMention" |
+ "$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" |
@@ -566,6 +606,22 @@ |
}, |
"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", |
@@ -589,26 +645,14 @@ |
}, |
"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` 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": { |
+ "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": { |
@@ -624,10 +668,6 @@ |
"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" |
@@ -636,10 +676,6 @@ |
"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" |
- }, |
"extractEntitySentiment": { |
"description": "Extract entities and their associated sentiment.", |
"type": "boolean" |
@@ -651,6 +687,10 @@ |
"extractSyntax": { |
"description": "Extract syntax information.", |
"type": "boolean" |
+ }, |
+ "extractEntities": { |
+ "description": "Extract entities.", |
+ "type": "boolean" |
} |
}, |
"type": "object" |
@@ -703,6 +743,10 @@ |
"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" |
@@ -724,10 +768,6 @@ |
"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" |
} |
}, |
"type": "object" |
@@ -825,38 +865,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": [ |
- "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": [ |
@@ -1084,6 +1092,38 @@ |
"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" |
} |
}, |
"type": "object" |
@@ -1114,46 +1154,6 @@ |
} |
}, |
"type": "object" |
- }, |
- "AnalyzeSentimentResponse": { |
- "description": "The sentiment analysis response message.", |
- "id": "AnalyzeSentimentResponse", |
- "properties": { |
- "sentences": { |
- "description": "The sentiment for all the sentences in the document.", |
- "items": { |
- "$ref": "Sentence" |
- }, |
- "type": "array" |
- }, |
- "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" |
- } |
- }, |
- "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": "", |