| Index: generated/googleapis/test/vision/v1_test.dart
|
| diff --git a/generated/googleapis/test/vision/v1_test.dart b/generated/googleapis/test/vision/v1_test.dart
|
| index 74eb482e9e940354a4074d705f8a23e7cf34efd9..544621deb176b62f6987d1ebeda7896675f0f8e9 100644
|
| --- a/generated/googleapis/test/vision/v1_test.dart
|
| +++ b/generated/googleapis/test/vision/v1_test.dart
|
| @@ -51,14 +51,14 @@ http.StreamedResponse stringResponse(
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
|
|
| -buildUnnamed3291() {
|
| +buildUnnamed1373() {
|
| var o = new core.List<api.Feature>();
|
| o.add(buildFeature());
|
| o.add(buildFeature());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3291(core.List<api.Feature> o) {
|
| +checkUnnamed1373(core.List<api.Feature> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFeature(o[0]);
|
| checkFeature(o[1]);
|
| @@ -69,7 +69,7 @@ buildAnnotateImageRequest() {
|
| var o = new api.AnnotateImageRequest();
|
| buildCounterAnnotateImageRequest++;
|
| if (buildCounterAnnotateImageRequest < 3) {
|
| - o.features = buildUnnamed3291();
|
| + o.features = buildUnnamed1373();
|
| o.image = buildImage();
|
| o.imageContext = buildImageContext();
|
| }
|
| @@ -80,73 +80,73 @@ buildAnnotateImageRequest() {
|
| checkAnnotateImageRequest(api.AnnotateImageRequest o) {
|
| buildCounterAnnotateImageRequest++;
|
| if (buildCounterAnnotateImageRequest < 3) {
|
| - checkUnnamed3291(o.features);
|
| + checkUnnamed1373(o.features);
|
| checkImage(o.image);
|
| checkImageContext(o.imageContext);
|
| }
|
| buildCounterAnnotateImageRequest--;
|
| }
|
|
|
| -buildUnnamed3292() {
|
| +buildUnnamed1374() {
|
| var o = new core.List<api.FaceAnnotation>();
|
| o.add(buildFaceAnnotation());
|
| o.add(buildFaceAnnotation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3292(core.List<api.FaceAnnotation> o) {
|
| +checkUnnamed1374(core.List<api.FaceAnnotation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFaceAnnotation(o[0]);
|
| checkFaceAnnotation(o[1]);
|
| }
|
|
|
| -buildUnnamed3293() {
|
| +buildUnnamed1375() {
|
| var o = new core.List<api.EntityAnnotation>();
|
| o.add(buildEntityAnnotation());
|
| o.add(buildEntityAnnotation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3293(core.List<api.EntityAnnotation> o) {
|
| +checkUnnamed1375(core.List<api.EntityAnnotation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEntityAnnotation(o[0]);
|
| checkEntityAnnotation(o[1]);
|
| }
|
|
|
| -buildUnnamed3294() {
|
| +buildUnnamed1376() {
|
| var o = new core.List<api.EntityAnnotation>();
|
| o.add(buildEntityAnnotation());
|
| o.add(buildEntityAnnotation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3294(core.List<api.EntityAnnotation> o) {
|
| +checkUnnamed1376(core.List<api.EntityAnnotation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEntityAnnotation(o[0]);
|
| checkEntityAnnotation(o[1]);
|
| }
|
|
|
| -buildUnnamed3295() {
|
| +buildUnnamed1377() {
|
| var o = new core.List<api.EntityAnnotation>();
|
| o.add(buildEntityAnnotation());
|
| o.add(buildEntityAnnotation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3295(core.List<api.EntityAnnotation> o) {
|
| +checkUnnamed1377(core.List<api.EntityAnnotation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEntityAnnotation(o[0]);
|
| checkEntityAnnotation(o[1]);
|
| }
|
|
|
| -buildUnnamed3296() {
|
| +buildUnnamed1378() {
|
| var o = new core.List<api.EntityAnnotation>();
|
| o.add(buildEntityAnnotation());
|
| o.add(buildEntityAnnotation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3296(core.List<api.EntityAnnotation> o) {
|
| +checkUnnamed1378(core.List<api.EntityAnnotation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEntityAnnotation(o[0]);
|
| checkEntityAnnotation(o[1]);
|
| @@ -158,13 +158,13 @@ buildAnnotateImageResponse() {
|
| buildCounterAnnotateImageResponse++;
|
| if (buildCounterAnnotateImageResponse < 3) {
|
| o.error = buildStatus();
|
| - o.faceAnnotations = buildUnnamed3292();
|
| + o.faceAnnotations = buildUnnamed1374();
|
| o.imagePropertiesAnnotation = buildImageProperties();
|
| - o.labelAnnotations = buildUnnamed3293();
|
| - o.landmarkAnnotations = buildUnnamed3294();
|
| - o.logoAnnotations = buildUnnamed3295();
|
| + o.labelAnnotations = buildUnnamed1375();
|
| + o.landmarkAnnotations = buildUnnamed1376();
|
| + o.logoAnnotations = buildUnnamed1377();
|
| o.safeSearchAnnotation = buildSafeSearchAnnotation();
|
| - o.textAnnotations = buildUnnamed3296();
|
| + o.textAnnotations = buildUnnamed1378();
|
| }
|
| buildCounterAnnotateImageResponse--;
|
| return o;
|
| @@ -174,25 +174,25 @@ checkAnnotateImageResponse(api.AnnotateImageResponse o) {
|
| buildCounterAnnotateImageResponse++;
|
| if (buildCounterAnnotateImageResponse < 3) {
|
| checkStatus(o.error);
|
| - checkUnnamed3292(o.faceAnnotations);
|
| + checkUnnamed1374(o.faceAnnotations);
|
| checkImageProperties(o.imagePropertiesAnnotation);
|
| - checkUnnamed3293(o.labelAnnotations);
|
| - checkUnnamed3294(o.landmarkAnnotations);
|
| - checkUnnamed3295(o.logoAnnotations);
|
| + checkUnnamed1375(o.labelAnnotations);
|
| + checkUnnamed1376(o.landmarkAnnotations);
|
| + checkUnnamed1377(o.logoAnnotations);
|
| checkSafeSearchAnnotation(o.safeSearchAnnotation);
|
| - checkUnnamed3296(o.textAnnotations);
|
| + checkUnnamed1378(o.textAnnotations);
|
| }
|
| buildCounterAnnotateImageResponse--;
|
| }
|
|
|
| -buildUnnamed3297() {
|
| +buildUnnamed1379() {
|
| var o = new core.List<api.AnnotateImageRequest>();
|
| o.add(buildAnnotateImageRequest());
|
| o.add(buildAnnotateImageRequest());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3297(core.List<api.AnnotateImageRequest> o) {
|
| +checkUnnamed1379(core.List<api.AnnotateImageRequest> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAnnotateImageRequest(o[0]);
|
| checkAnnotateImageRequest(o[1]);
|
| @@ -203,7 +203,7 @@ buildBatchAnnotateImagesRequest() {
|
| var o = new api.BatchAnnotateImagesRequest();
|
| buildCounterBatchAnnotateImagesRequest++;
|
| if (buildCounterBatchAnnotateImagesRequest < 3) {
|
| - o.requests = buildUnnamed3297();
|
| + o.requests = buildUnnamed1379();
|
| }
|
| buildCounterBatchAnnotateImagesRequest--;
|
| return o;
|
| @@ -212,19 +212,19 @@ buildBatchAnnotateImagesRequest() {
|
| checkBatchAnnotateImagesRequest(api.BatchAnnotateImagesRequest o) {
|
| buildCounterBatchAnnotateImagesRequest++;
|
| if (buildCounterBatchAnnotateImagesRequest < 3) {
|
| - checkUnnamed3297(o.requests);
|
| + checkUnnamed1379(o.requests);
|
| }
|
| buildCounterBatchAnnotateImagesRequest--;
|
| }
|
|
|
| -buildUnnamed3298() {
|
| +buildUnnamed1380() {
|
| var o = new core.List<api.AnnotateImageResponse>();
|
| o.add(buildAnnotateImageResponse());
|
| o.add(buildAnnotateImageResponse());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3298(core.List<api.AnnotateImageResponse> o) {
|
| +checkUnnamed1380(core.List<api.AnnotateImageResponse> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAnnotateImageResponse(o[0]);
|
| checkAnnotateImageResponse(o[1]);
|
| @@ -235,7 +235,7 @@ buildBatchAnnotateImagesResponse() {
|
| var o = new api.BatchAnnotateImagesResponse();
|
| buildCounterBatchAnnotateImagesResponse++;
|
| if (buildCounterBatchAnnotateImagesResponse < 3) {
|
| - o.responses = buildUnnamed3298();
|
| + o.responses = buildUnnamed1380();
|
| }
|
| buildCounterBatchAnnotateImagesResponse--;
|
| return o;
|
| @@ -244,19 +244,19 @@ buildBatchAnnotateImagesResponse() {
|
| checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) {
|
| buildCounterBatchAnnotateImagesResponse++;
|
| if (buildCounterBatchAnnotateImagesResponse < 3) {
|
| - checkUnnamed3298(o.responses);
|
| + checkUnnamed1380(o.responses);
|
| }
|
| buildCounterBatchAnnotateImagesResponse--;
|
| }
|
|
|
| -buildUnnamed3299() {
|
| +buildUnnamed1381() {
|
| var o = new core.List<api.Vertex>();
|
| o.add(buildVertex());
|
| o.add(buildVertex());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3299(core.List<api.Vertex> o) {
|
| +checkUnnamed1381(core.List<api.Vertex> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVertex(o[0]);
|
| checkVertex(o[1]);
|
| @@ -267,7 +267,7 @@ buildBoundingPoly() {
|
| var o = new api.BoundingPoly();
|
| buildCounterBoundingPoly++;
|
| if (buildCounterBoundingPoly < 3) {
|
| - o.vertices = buildUnnamed3299();
|
| + o.vertices = buildUnnamed1381();
|
| }
|
| buildCounterBoundingPoly--;
|
| return o;
|
| @@ -276,7 +276,7 @@ buildBoundingPoly() {
|
| checkBoundingPoly(api.BoundingPoly o) {
|
| buildCounterBoundingPoly++;
|
| if (buildCounterBoundingPoly < 3) {
|
| - checkUnnamed3299(o.vertices);
|
| + checkUnnamed1381(o.vertices);
|
| }
|
| buildCounterBoundingPoly--;
|
| }
|
| @@ -329,14 +329,14 @@ checkColorInfo(api.ColorInfo o) {
|
| buildCounterColorInfo--;
|
| }
|
|
|
| -buildUnnamed3300() {
|
| +buildUnnamed1382() {
|
| var o = new core.List<api.ColorInfo>();
|
| o.add(buildColorInfo());
|
| o.add(buildColorInfo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3300(core.List<api.ColorInfo> o) {
|
| +checkUnnamed1382(core.List<api.ColorInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkColorInfo(o[0]);
|
| checkColorInfo(o[1]);
|
| @@ -347,7 +347,7 @@ buildDominantColorsAnnotation() {
|
| var o = new api.DominantColorsAnnotation();
|
| buildCounterDominantColorsAnnotation++;
|
| if (buildCounterDominantColorsAnnotation < 3) {
|
| - o.colors = buildUnnamed3300();
|
| + o.colors = buildUnnamed1382();
|
| }
|
| buildCounterDominantColorsAnnotation--;
|
| return o;
|
| @@ -356,32 +356,32 @@ buildDominantColorsAnnotation() {
|
| checkDominantColorsAnnotation(api.DominantColorsAnnotation o) {
|
| buildCounterDominantColorsAnnotation++;
|
| if (buildCounterDominantColorsAnnotation < 3) {
|
| - checkUnnamed3300(o.colors);
|
| + checkUnnamed1382(o.colors);
|
| }
|
| buildCounterDominantColorsAnnotation--;
|
| }
|
|
|
| -buildUnnamed3301() {
|
| +buildUnnamed1383() {
|
| var o = new core.List<api.LocationInfo>();
|
| o.add(buildLocationInfo());
|
| o.add(buildLocationInfo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3301(core.List<api.LocationInfo> o) {
|
| +checkUnnamed1383(core.List<api.LocationInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLocationInfo(o[0]);
|
| checkLocationInfo(o[1]);
|
| }
|
|
|
| -buildUnnamed3302() {
|
| +buildUnnamed1384() {
|
| var o = new core.List<api.Property>();
|
| o.add(buildProperty());
|
| o.add(buildProperty());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3302(core.List<api.Property> o) {
|
| +checkUnnamed1384(core.List<api.Property> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkProperty(o[0]);
|
| checkProperty(o[1]);
|
| @@ -396,9 +396,9 @@ buildEntityAnnotation() {
|
| o.confidence = 42.0;
|
| o.description = "foo";
|
| o.locale = "foo";
|
| - o.locations = buildUnnamed3301();
|
| + o.locations = buildUnnamed1383();
|
| o.mid = "foo";
|
| - o.properties = buildUnnamed3302();
|
| + o.properties = buildUnnamed1384();
|
| o.score = 42.0;
|
| o.topicality = 42.0;
|
| }
|
| @@ -413,23 +413,23 @@ checkEntityAnnotation(api.EntityAnnotation o) {
|
| unittest.expect(o.confidence, unittest.equals(42.0));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.locale, unittest.equals('foo'));
|
| - checkUnnamed3301(o.locations);
|
| + checkUnnamed1383(o.locations);
|
| unittest.expect(o.mid, unittest.equals('foo'));
|
| - checkUnnamed3302(o.properties);
|
| + checkUnnamed1384(o.properties);
|
| unittest.expect(o.score, unittest.equals(42.0));
|
| unittest.expect(o.topicality, unittest.equals(42.0));
|
| }
|
| buildCounterEntityAnnotation--;
|
| }
|
|
|
| -buildUnnamed3303() {
|
| +buildUnnamed1385() {
|
| var o = new core.List<api.Landmark>();
|
| o.add(buildLandmark());
|
| o.add(buildLandmark());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3303(core.List<api.Landmark> o) {
|
| +checkUnnamed1385(core.List<api.Landmark> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLandmark(o[0]);
|
| checkLandmark(o[1]);
|
| @@ -448,7 +448,7 @@ buildFaceAnnotation() {
|
| o.headwearLikelihood = "foo";
|
| o.joyLikelihood = "foo";
|
| o.landmarkingConfidence = 42.0;
|
| - o.landmarks = buildUnnamed3303();
|
| + o.landmarks = buildUnnamed1385();
|
| o.panAngle = 42.0;
|
| o.rollAngle = 42.0;
|
| o.sorrowLikelihood = "foo";
|
| @@ -471,7 +471,7 @@ checkFaceAnnotation(api.FaceAnnotation o) {
|
| unittest.expect(o.headwearLikelihood, unittest.equals('foo'));
|
| unittest.expect(o.joyLikelihood, unittest.equals('foo'));
|
| unittest.expect(o.landmarkingConfidence, unittest.equals(42.0));
|
| - checkUnnamed3303(o.landmarks);
|
| + checkUnnamed1385(o.landmarks);
|
| unittest.expect(o.panAngle, unittest.equals(42.0));
|
| unittest.expect(o.rollAngle, unittest.equals(42.0));
|
| unittest.expect(o.sorrowLikelihood, unittest.equals('foo'));
|
| @@ -524,14 +524,14 @@ checkImage(api.Image o) {
|
| buildCounterImage--;
|
| }
|
|
|
| -buildUnnamed3304() {
|
| +buildUnnamed1386() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3304(core.List<core.String> o) {
|
| +checkUnnamed1386(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -542,7 +542,7 @@ buildImageContext() {
|
| var o = new api.ImageContext();
|
| buildCounterImageContext++;
|
| if (buildCounterImageContext < 3) {
|
| - o.languageHints = buildUnnamed3304();
|
| + o.languageHints = buildUnnamed1386();
|
| o.latLongRect = buildLatLongRect();
|
| }
|
| buildCounterImageContext--;
|
| @@ -552,7 +552,7 @@ buildImageContext() {
|
| checkImageContext(api.ImageContext o) {
|
| buildCounterImageContext++;
|
| if (buildCounterImageContext < 3) {
|
| - checkUnnamed3304(o.languageHints);
|
| + checkUnnamed1386(o.languageHints);
|
| checkLatLongRect(o.latLongRect);
|
| }
|
| buildCounterImageContext--;
|
| @@ -747,30 +747,30 @@ checkSafeSearchAnnotation(api.SafeSearchAnnotation o) {
|
| buildCounterSafeSearchAnnotation--;
|
| }
|
|
|
| -buildUnnamed3305() {
|
| +buildUnnamed1387() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed3305(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1387(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
|
| var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed3306() {
|
| +buildUnnamed1388() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed3305());
|
| - o.add(buildUnnamed3305());
|
| + o.add(buildUnnamed1387());
|
| + o.add(buildUnnamed1387());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3306(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed1388(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed3305(o[0]);
|
| - checkUnnamed3305(o[1]);
|
| + checkUnnamed1387(o[0]);
|
| + checkUnnamed1387(o[1]);
|
| }
|
|
|
| core.int buildCounterStatus = 0;
|
| @@ -779,7 +779,7 @@ buildStatus() {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| o.code = 42;
|
| - o.details = buildUnnamed3306();
|
| + o.details = buildUnnamed1388();
|
| o.message = "foo";
|
| }
|
| buildCounterStatus--;
|
| @@ -790,7 +790,7 @@ checkStatus(api.Status o) {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed3306(o.details);
|
| + checkUnnamed1388(o.details);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterStatus--;
|
|
|