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

Side by Side Diff: generated/googleapis/lib/language/v1.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
« no previous file with comments | « generated/googleapis/lib/kgsearch/v1.dart ('k') | generated/googleapis/lib/logging/v2.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.language.v1; 3 library googleapis.language.v1;
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/v1'; 15 const core.String USER_AGENT = 'dart-api-client language/v1';
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 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 * results in its response, the status of those operations should be 1329 * results in its response, the status of those operations should be
1325 * represented directly using the `Status` message. 1330 * represented directly using the `Status` message.
1326 * 1331 *
1327 * - Logging. If some API errors are stored in logs, the message `Status` could 1332 * - Logging. If some API errors are stored in logs, the message `Status` could
1328 * be used directly after any stripping needed for security/privacy reasons. 1333 * be used directly after any stripping needed for security/privacy reasons.
1329 */ 1334 */
1330 class Status { 1335 class Status {
1331 /** The status code, which should be an enum value of google.rpc.Code. */ 1336 /** The status code, which should be an enum value of google.rpc.Code. */
1332 core.int code; 1337 core.int code;
1333 /** 1338 /**
1334 * A list of messages that carry the error details. There will be a 1339 * A list of messages that carry the error details. There is a common set of
1335 * common set of message types for APIs to use. 1340 * message types for APIs to use.
1336 * 1341 *
1337 * The values for Object must be JSON objects. It can consist of `num`, 1342 * The values for Object must be JSON objects. It can consist of `num`,
1338 * `String`, `bool` and `null` as well as `Map` and `List` values. 1343 * `String`, `bool` and `null` as well as `Map` and `List` values.
1339 */ 1344 */
1340 core.List<core.Map<core.String, core.Object>> details; 1345 core.List<core.Map<core.String, core.Object>> details;
1341 /** 1346 /**
1342 * A developer-facing error message, which should be in English. Any 1347 * A developer-facing error message, which should be in English. Any
1343 * user-facing error message should be localized and sent in the 1348 * user-facing error message should be localized and sent in the
1344 * google.rpc.Status.details field, or localized by the client. 1349 * google.rpc.Status.details field, or localized by the client.
1345 */ 1350 */
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 } 1452 }
1448 if (partOfSpeech != null) { 1453 if (partOfSpeech != null) {
1449 _json["partOfSpeech"] = (partOfSpeech).toJson(); 1454 _json["partOfSpeech"] = (partOfSpeech).toJson();
1450 } 1455 }
1451 if (text != null) { 1456 if (text != null) {
1452 _json["text"] = (text).toJson(); 1457 _json["text"] = (text).toJson();
1453 } 1458 }
1454 return _json; 1459 return _json;
1455 } 1460 }
1456 } 1461 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/kgsearch/v1.dart ('k') | generated/googleapis/lib/logging/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698