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

Side by Side Diff: generated/googleapis_beta/lib/language/v1beta2.dart

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 4 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 unified diff | Download patch
OLDNEW
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.v1beta2; 3 library googleapis_beta.language.v1beta2;
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/v1beta2'; 15 const core.String USER_AGENT = 'dart-api-client language/v1beta2';
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 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 * results in its response, the status of those operations should be 1480 * results in its response, the status of those operations should be
1476 * represented directly using the `Status` message. 1481 * represented directly using the `Status` message.
1477 * 1482 *
1478 * - Logging. If some API errors are stored in logs, the message `Status` could 1483 * - Logging. If some API errors are stored in logs, the message `Status` could
1479 * be used directly after any stripping needed for security/privacy reasons. 1484 * be used directly after any stripping needed for security/privacy reasons.
1480 */ 1485 */
1481 class Status { 1486 class Status {
1482 /** The status code, which should be an enum value of google.rpc.Code. */ 1487 /** The status code, which should be an enum value of google.rpc.Code. */
1483 core.int code; 1488 core.int code;
1484 /** 1489 /**
1485 * A list of messages that carry the error details. There will be a 1490 * A list of messages that carry the error details. There is a common set of
1486 * common set of message types for APIs to use. 1491 * message types for APIs to use.
1487 * 1492 *
1488 * The values for Object must be JSON objects. It can consist of `num`, 1493 * The values for Object must be JSON objects. It can consist of `num`,
1489 * `String`, `bool` and `null` as well as `Map` and `List` values. 1494 * `String`, `bool` and `null` as well as `Map` and `List` values.
1490 */ 1495 */
1491 core.List<core.Map<core.String, core.Object>> details; 1496 core.List<core.Map<core.String, core.Object>> details;
1492 /** 1497 /**
1493 * A developer-facing error message, which should be in English. Any 1498 * A developer-facing error message, which should be in English. Any
1494 * user-facing error message should be localized and sent in the 1499 * user-facing error message should be localized and sent in the
1495 * google.rpc.Status.details field, or localized by the client. 1500 * google.rpc.Status.details field, or localized by the client.
1496 */ 1501 */
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1598 } 1603 }
1599 if (partOfSpeech != null) { 1604 if (partOfSpeech != null) {
1600 _json["partOfSpeech"] = (partOfSpeech).toJson(); 1605 _json["partOfSpeech"] = (partOfSpeech).toJson();
1601 } 1606 }
1602 if (text != null) { 1607 if (text != null) {
1603 _json["text"] = (text).toJson(); 1608 _json["text"] = (text).toJson();
1604 } 1609 }
1605 return _json; 1610 return _json;
1606 } 1611 }
1607 } 1612 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/language/v1beta1.dart ('k') | generated/googleapis_beta/lib/logging/v2beta1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698