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.vision.v1; | 3 library googleapis.vision.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 vision/v1'; | 15 const core.String USER_AGENT = 'dart-api-client vision/v1'; |
16 | 16 |
17 /** | 17 /** |
18 * Integrates Google Vision features, including image labeling, face, logo, and | 18 * Integrates Google Vision features, including image labeling, face, logo, and |
19 * landmark detection, optical character recognition (OCR), and detection of | 19 * landmark detection, optical character recognition (OCR), and detection of |
20 * explicit content, into applications. | 20 * explicit content, into applications. |
21 */ | 21 */ |
22 class VisionApi { | 22 class VisionApi { |
23 /** View and manage your data across Google Cloud Platform services */ | 23 /** View and manage your data across Google Cloud Platform services */ |
24 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 24 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
25 | 25 |
| 26 /** Apply machine learning models to understand and label images */ |
| 27 static const CloudVisionScope = "https://www.googleapis.com/auth/cloud-vision"
; |
| 28 |
26 | 29 |
27 final commons.ApiRequester _requester; | 30 final commons.ApiRequester _requester; |
28 | 31 |
29 ImagesResourceApi get images => new ImagesResourceApi(_requester); | 32 ImagesResourceApi get images => new ImagesResourceApi(_requester); |
30 | 33 |
31 VisionApi(http.Client client, {core.String rootUrl: "https://vision.googleapis
.com/", core.String servicePath: ""}) : | 34 VisionApi(http.Client client, {core.String rootUrl: "https://vision.googleapis
.com/", core.String servicePath: ""}) : |
32 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 35 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
33 } | 36 } |
34 | 37 |
35 | 38 |
(...skipping 2288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2324 } | 2327 } |
2325 if (property != null) { | 2328 if (property != null) { |
2326 _json["property"] = (property).toJson(); | 2329 _json["property"] = (property).toJson(); |
2327 } | 2330 } |
2328 if (symbols != null) { | 2331 if (symbols != null) { |
2329 _json["symbols"] = symbols.map((value) => (value).toJson()).toList(); | 2332 _json["symbols"] = symbols.map((value) => (value).toJson()).toList(); |
2330 } | 2333 } |
2331 return _json; | 2334 return _json; |
2332 } | 2335 } |
2333 } | 2336 } |
OLD | NEW |