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

Side by Side Diff: generated/googleapis/lib/vision/v1.dart

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 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/storage/v1.dart ('k') | generated/googleapis/lib/youtube/v3.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.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;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 /** If present, image properties were extracted successfully. */ 136 /** If present, image properties were extracted successfully. */
137 ImageProperties imagePropertiesAnnotation; 137 ImageProperties imagePropertiesAnnotation;
138 /** If present, label detection has completed successfully. */ 138 /** If present, label detection has completed successfully. */
139 core.List<EntityAnnotation> labelAnnotations; 139 core.List<EntityAnnotation> labelAnnotations;
140 /** If present, landmark detection has completed successfully. */ 140 /** If present, landmark detection has completed successfully. */
141 core.List<EntityAnnotation> landmarkAnnotations; 141 core.List<EntityAnnotation> landmarkAnnotations;
142 /** If present, logo detection has completed successfully. */ 142 /** If present, logo detection has completed successfully. */
143 core.List<EntityAnnotation> logoAnnotations; 143 core.List<EntityAnnotation> logoAnnotations;
144 /** If present, safe-search annotation has completed successfully. */ 144 /** If present, safe-search annotation has completed successfully. */
145 SafeSearchAnnotation safeSearchAnnotation; 145 SafeSearchAnnotation safeSearchAnnotation;
146 /** If present, text (OCR) detection has completed successfully. */ 146 /**
147 * If present, text (OCR) detection or document (OCR) text detection has
148 * completed successfully.
149 */
147 core.List<EntityAnnotation> textAnnotations; 150 core.List<EntityAnnotation> textAnnotations;
148 151
149 AnnotateImageResponse(); 152 AnnotateImageResponse();
150 153
151 AnnotateImageResponse.fromJson(core.Map _json) { 154 AnnotateImageResponse.fromJson(core.Map _json) {
152 if (_json.containsKey("error")) { 155 if (_json.containsKey("error")) {
153 error = new Status.fromJson(_json["error"]); 156 error = new Status.fromJson(_json["error"]);
154 } 157 }
155 if (_json.containsKey("faceAnnotations")) { 158 if (_json.containsKey("faceAnnotations")) {
156 faceAnnotations = _json["faceAnnotations"].map((value) => new FaceAnnotati on.fromJson(value)).toList(); 159 faceAnnotations = _json["faceAnnotations"].map((value) => new FaceAnnotati on.fromJson(value)).toList();
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 if (dominantColors != null) { 1034 if (dominantColors != null) {
1032 _json["dominantColors"] = (dominantColors).toJson(); 1035 _json["dominantColors"] = (dominantColors).toJson();
1033 } 1036 }
1034 return _json; 1037 return _json;
1035 } 1038 }
1036 } 1039 }
1037 1040
1038 /** External image source (Google Cloud Storage image location). */ 1041 /** External image source (Google Cloud Storage image location). */
1039 class ImageSource { 1042 class ImageSource {
1040 /** 1043 /**
1044 * NOTE: For new code `image_uri` below is preferred.
1041 * Google Cloud Storage image URI, which must be in the following form: 1045 * Google Cloud Storage image URI, which must be in the following form:
1042 * `gs://bucket_name/object_name` (for details, see 1046 * `gs://bucket_name/object_name` (for details, see
1043 * [Google Cloud Storage Request 1047 * [Google Cloud Storage Request
1044 * URIs](https://cloud.google.com/storage/docs/reference-uris)). 1048 * URIs](https://cloud.google.com/storage/docs/reference-uris)).
1045 * NOTE: Cloud Storage object versioning is not supported. 1049 * NOTE: Cloud Storage object versioning is not supported.
1046 */ 1050 */
1047 core.String gcsImageUri; 1051 core.String gcsImageUri;
1048 1052
1049 ImageSource(); 1053 ImageSource();
1050 1054
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 if (name != null) { 1332 if (name != null) {
1329 _json["name"] = name; 1333 _json["name"] = name;
1330 } 1334 }
1331 if (value != null) { 1335 if (value != null) {
1332 _json["value"] = value; 1336 _json["value"] = value;
1333 } 1337 }
1334 return _json; 1338 return _json;
1335 } 1339 }
1336 } 1340 }
1337 1341
1342 /**
1343 * Set of features pertaining to the image, computed by computer vision
1344 * methods over safe-search verticals (for example, adult, spoof, medical,
1345 * violence).
1346 */
1338 class SafeSearchAnnotation { 1347 class SafeSearchAnnotation {
1339 /** 1348 /**
1340 * Represents the adult content likelihood for the image. 1349 * Represents the adult content likelihood for the image.
1341 * Possible string values are: 1350 * Possible string values are:
1342 * - "UNKNOWN" : Unknown likelihood. 1351 * - "UNKNOWN" : Unknown likelihood.
1343 * - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the 1352 * - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the
1344 * specified vertical. 1353 * specified vertical.
1345 * - "UNLIKELY" : It is unlikely that the image belongs to the specified 1354 * - "UNLIKELY" : It is unlikely that the image belongs to the specified
1346 * vertical. 1355 * vertical.
1347 * - "POSSIBLE" : It is possible that the image belongs to the specified 1356 * - "POSSIBLE" : It is possible that the image belongs to the specified
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 var _json = new core.Map(); 1571 var _json = new core.Map();
1563 if (x != null) { 1572 if (x != null) {
1564 _json["x"] = x; 1573 _json["x"] = x;
1565 } 1574 }
1566 if (y != null) { 1575 if (y != null) {
1567 _json["y"] = y; 1576 _json["y"] = y;
1568 } 1577 }
1569 return _json; 1578 return _json;
1570 } 1579 }
1571 } 1580 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/storage/v1.dart ('k') | generated/googleapis/lib/youtube/v3.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698