OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis_beta.language.v1beta1; | 3 library googleapis_beta.language.v1beta1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client language/v1beta1'; | 15 const core.String USER_AGENT = 'dart-api-client language/v1beta1'; |
16 | 16 |
17 /** | 17 /** |
18 * Provides natural language understanding technologies to developers. Examples | 18 * Provides natural language understanding technologies to developers. Examples |
19 * include sentiment analysis, entity recognition, entity sentiment analysis, | 19 * include sentiment analysis, entity recognition, entity sentiment analysis, |
20 * and text annotations. | 20 * and text annotations. |
21 */ | 21 */ |
22 class LanguageApi { | 22 class LanguageApi { |
| 23 /** |
| 24 * Apply machine learning models to reveal the structure and meaning of text |
| 25 */ |
| 26 static const CloudLanguageScope = "https://www.googleapis.com/auth/cloud-langu
age"; |
| 27 |
23 /** View and manage your data across Google Cloud Platform services */ | 28 /** View and manage your data across Google Cloud Platform services */ |
24 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 29 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
25 | 30 |
26 | 31 |
27 final commons.ApiRequester _requester; | 32 final commons.ApiRequester _requester; |
28 | 33 |
29 DocumentsResourceApi get documents => new DocumentsResourceApi(_requester); | 34 DocumentsResourceApi get documents => new DocumentsResourceApi(_requester); |
30 | 35 |
31 LanguageApi(http.Client client, {core.String rootUrl: "https://language.google
apis.com/", core.String servicePath: ""}) : | 36 LanguageApi(http.Client client, {core.String rootUrl: "https://language.google
apis.com/", core.String servicePath: ""}) : |
32 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 37 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1329 * results in its response, the status of those operations should be | 1334 * results in its response, the status of those operations should be |
1330 * represented directly using the `Status` message. | 1335 * represented directly using the `Status` message. |
1331 * | 1336 * |
1332 * - Logging. If some API errors are stored in logs, the message `Status` could | 1337 * - Logging. If some API errors are stored in logs, the message `Status` could |
1333 * be used directly after any stripping needed for security/privacy reasons. | 1338 * be used directly after any stripping needed for security/privacy reasons. |
1334 */ | 1339 */ |
1335 class Status { | 1340 class Status { |
1336 /** The status code, which should be an enum value of google.rpc.Code. */ | 1341 /** The status code, which should be an enum value of google.rpc.Code. */ |
1337 core.int code; | 1342 core.int code; |
1338 /** | 1343 /** |
1339 * A list of messages that carry the error details. There will be a | 1344 * A list of messages that carry the error details. There is a common set of |
1340 * common set of message types for APIs to use. | 1345 * message types for APIs to use. |
1341 * | 1346 * |
1342 * The values for Object must be JSON objects. It can consist of `num`, | 1347 * The values for Object must be JSON objects. It can consist of `num`, |
1343 * `String`, `bool` and `null` as well as `Map` and `List` values. | 1348 * `String`, `bool` and `null` as well as `Map` and `List` values. |
1344 */ | 1349 */ |
1345 core.List<core.Map<core.String, core.Object>> details; | 1350 core.List<core.Map<core.String, core.Object>> details; |
1346 /** | 1351 /** |
1347 * A developer-facing error message, which should be in English. Any | 1352 * A developer-facing error message, which should be in English. Any |
1348 * user-facing error message should be localized and sent in the | 1353 * user-facing error message should be localized and sent in the |
1349 * google.rpc.Status.details field, or localized by the client. | 1354 * google.rpc.Status.details field, or localized by the client. |
1350 */ | 1355 */ |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1452 } | 1457 } |
1453 if (partOfSpeech != null) { | 1458 if (partOfSpeech != null) { |
1454 _json["partOfSpeech"] = (partOfSpeech).toJson(); | 1459 _json["partOfSpeech"] = (partOfSpeech).toJson(); |
1455 } | 1460 } |
1456 if (text != null) { | 1461 if (text != null) { |
1457 _json["text"] = (text).toJson(); | 1462 _json["text"] = (text).toJson(); |
1458 } | 1463 } |
1459 return _json; | 1464 return _json; |
1460 } | 1465 } |
1461 } | 1466 } |
OLD | NEW |