| 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 6786eed38020d674b9cb429ac68f12bc3b373846..180f7ead7b69fab239c41fb563019a16b8c36fc9 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);
|
| }
|
|
|
| -buildUnnamed2862() {
|
| +buildUnnamed1254() {
|
| var o = new core.List<api.Feature>();
|
| o.add(buildFeature());
|
| o.add(buildFeature());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2862(core.List<api.Feature> o) {
|
| +checkUnnamed1254(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 = buildUnnamed2862();
|
| + o.features = buildUnnamed1254();
|
| o.image = buildImage();
|
| o.imageContext = buildImageContext();
|
| }
|
| @@ -80,73 +80,73 @@ buildAnnotateImageRequest() {
|
| checkAnnotateImageRequest(api.AnnotateImageRequest o) {
|
| buildCounterAnnotateImageRequest++;
|
| if (buildCounterAnnotateImageRequest < 3) {
|
| - checkUnnamed2862(o.features);
|
| + checkUnnamed1254(o.features);
|
| checkImage(o.image);
|
| checkImageContext(o.imageContext);
|
| }
|
| buildCounterAnnotateImageRequest--;
|
| }
|
|
|
| -buildUnnamed2863() {
|
| +buildUnnamed1255() {
|
| var o = new core.List<api.FaceAnnotation>();
|
| o.add(buildFaceAnnotation());
|
| o.add(buildFaceAnnotation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2863(core.List<api.FaceAnnotation> o) {
|
| +checkUnnamed1255(core.List<api.FaceAnnotation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFaceAnnotation(o[0]);
|
| checkFaceAnnotation(o[1]);
|
| }
|
|
|
| -buildUnnamed2864() {
|
| +buildUnnamed1256() {
|
| var o = new core.List<api.EntityAnnotation>();
|
| o.add(buildEntityAnnotation());
|
| o.add(buildEntityAnnotation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2864(core.List<api.EntityAnnotation> o) {
|
| +checkUnnamed1256(core.List<api.EntityAnnotation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEntityAnnotation(o[0]);
|
| checkEntityAnnotation(o[1]);
|
| }
|
|
|
| -buildUnnamed2865() {
|
| +buildUnnamed1257() {
|
| var o = new core.List<api.EntityAnnotation>();
|
| o.add(buildEntityAnnotation());
|
| o.add(buildEntityAnnotation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2865(core.List<api.EntityAnnotation> o) {
|
| +checkUnnamed1257(core.List<api.EntityAnnotation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEntityAnnotation(o[0]);
|
| checkEntityAnnotation(o[1]);
|
| }
|
|
|
| -buildUnnamed2866() {
|
| +buildUnnamed1258() {
|
| var o = new core.List<api.EntityAnnotation>();
|
| o.add(buildEntityAnnotation());
|
| o.add(buildEntityAnnotation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2866(core.List<api.EntityAnnotation> o) {
|
| +checkUnnamed1258(core.List<api.EntityAnnotation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEntityAnnotation(o[0]);
|
| checkEntityAnnotation(o[1]);
|
| }
|
|
|
| -buildUnnamed2867() {
|
| +buildUnnamed1259() {
|
| var o = new core.List<api.EntityAnnotation>();
|
| o.add(buildEntityAnnotation());
|
| o.add(buildEntityAnnotation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2867(core.List<api.EntityAnnotation> o) {
|
| +checkUnnamed1259(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 = buildUnnamed2863();
|
| + o.faceAnnotations = buildUnnamed1255();
|
| o.imagePropertiesAnnotation = buildImageProperties();
|
| - o.labelAnnotations = buildUnnamed2864();
|
| - o.landmarkAnnotations = buildUnnamed2865();
|
| - o.logoAnnotations = buildUnnamed2866();
|
| + o.labelAnnotations = buildUnnamed1256();
|
| + o.landmarkAnnotations = buildUnnamed1257();
|
| + o.logoAnnotations = buildUnnamed1258();
|
| o.safeSearchAnnotation = buildSafeSearchAnnotation();
|
| - o.textAnnotations = buildUnnamed2867();
|
| + o.textAnnotations = buildUnnamed1259();
|
| }
|
| buildCounterAnnotateImageResponse--;
|
| return o;
|
| @@ -174,25 +174,25 @@ checkAnnotateImageResponse(api.AnnotateImageResponse o) {
|
| buildCounterAnnotateImageResponse++;
|
| if (buildCounterAnnotateImageResponse < 3) {
|
| checkStatus(o.error);
|
| - checkUnnamed2863(o.faceAnnotations);
|
| + checkUnnamed1255(o.faceAnnotations);
|
| checkImageProperties(o.imagePropertiesAnnotation);
|
| - checkUnnamed2864(o.labelAnnotations);
|
| - checkUnnamed2865(o.landmarkAnnotations);
|
| - checkUnnamed2866(o.logoAnnotations);
|
| + checkUnnamed1256(o.labelAnnotations);
|
| + checkUnnamed1257(o.landmarkAnnotations);
|
| + checkUnnamed1258(o.logoAnnotations);
|
| checkSafeSearchAnnotation(o.safeSearchAnnotation);
|
| - checkUnnamed2867(o.textAnnotations);
|
| + checkUnnamed1259(o.textAnnotations);
|
| }
|
| buildCounterAnnotateImageResponse--;
|
| }
|
|
|
| -buildUnnamed2868() {
|
| +buildUnnamed1260() {
|
| var o = new core.List<api.AnnotateImageRequest>();
|
| o.add(buildAnnotateImageRequest());
|
| o.add(buildAnnotateImageRequest());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2868(core.List<api.AnnotateImageRequest> o) {
|
| +checkUnnamed1260(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 = buildUnnamed2868();
|
| + o.requests = buildUnnamed1260();
|
| }
|
| buildCounterBatchAnnotateImagesRequest--;
|
| return o;
|
| @@ -212,19 +212,19 @@ buildBatchAnnotateImagesRequest() {
|
| checkBatchAnnotateImagesRequest(api.BatchAnnotateImagesRequest o) {
|
| buildCounterBatchAnnotateImagesRequest++;
|
| if (buildCounterBatchAnnotateImagesRequest < 3) {
|
| - checkUnnamed2868(o.requests);
|
| + checkUnnamed1260(o.requests);
|
| }
|
| buildCounterBatchAnnotateImagesRequest--;
|
| }
|
|
|
| -buildUnnamed2869() {
|
| +buildUnnamed1261() {
|
| var o = new core.List<api.AnnotateImageResponse>();
|
| o.add(buildAnnotateImageResponse());
|
| o.add(buildAnnotateImageResponse());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2869(core.List<api.AnnotateImageResponse> o) {
|
| +checkUnnamed1261(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 = buildUnnamed2869();
|
| + o.responses = buildUnnamed1261();
|
| }
|
| buildCounterBatchAnnotateImagesResponse--;
|
| return o;
|
| @@ -244,19 +244,19 @@ buildBatchAnnotateImagesResponse() {
|
| checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) {
|
| buildCounterBatchAnnotateImagesResponse++;
|
| if (buildCounterBatchAnnotateImagesResponse < 3) {
|
| - checkUnnamed2869(o.responses);
|
| + checkUnnamed1261(o.responses);
|
| }
|
| buildCounterBatchAnnotateImagesResponse--;
|
| }
|
|
|
| -buildUnnamed2870() {
|
| +buildUnnamed1262() {
|
| var o = new core.List<api.Vertex>();
|
| o.add(buildVertex());
|
| o.add(buildVertex());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2870(core.List<api.Vertex> o) {
|
| +checkUnnamed1262(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 = buildUnnamed2870();
|
| + o.vertices = buildUnnamed1262();
|
| }
|
| buildCounterBoundingPoly--;
|
| return o;
|
| @@ -276,7 +276,7 @@ buildBoundingPoly() {
|
| checkBoundingPoly(api.BoundingPoly o) {
|
| buildCounterBoundingPoly++;
|
| if (buildCounterBoundingPoly < 3) {
|
| - checkUnnamed2870(o.vertices);
|
| + checkUnnamed1262(o.vertices);
|
| }
|
| buildCounterBoundingPoly--;
|
| }
|
| @@ -329,14 +329,14 @@ checkColorInfo(api.ColorInfo o) {
|
| buildCounterColorInfo--;
|
| }
|
|
|
| -buildUnnamed2871() {
|
| +buildUnnamed1263() {
|
| var o = new core.List<api.ColorInfo>();
|
| o.add(buildColorInfo());
|
| o.add(buildColorInfo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2871(core.List<api.ColorInfo> o) {
|
| +checkUnnamed1263(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 = buildUnnamed2871();
|
| + o.colors = buildUnnamed1263();
|
| }
|
| buildCounterDominantColorsAnnotation--;
|
| return o;
|
| @@ -356,32 +356,32 @@ buildDominantColorsAnnotation() {
|
| checkDominantColorsAnnotation(api.DominantColorsAnnotation o) {
|
| buildCounterDominantColorsAnnotation++;
|
| if (buildCounterDominantColorsAnnotation < 3) {
|
| - checkUnnamed2871(o.colors);
|
| + checkUnnamed1263(o.colors);
|
| }
|
| buildCounterDominantColorsAnnotation--;
|
| }
|
|
|
| -buildUnnamed2872() {
|
| +buildUnnamed1264() {
|
| var o = new core.List<api.LocationInfo>();
|
| o.add(buildLocationInfo());
|
| o.add(buildLocationInfo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2872(core.List<api.LocationInfo> o) {
|
| +checkUnnamed1264(core.List<api.LocationInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLocationInfo(o[0]);
|
| checkLocationInfo(o[1]);
|
| }
|
|
|
| -buildUnnamed2873() {
|
| +buildUnnamed1265() {
|
| var o = new core.List<api.Property>();
|
| o.add(buildProperty());
|
| o.add(buildProperty());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2873(core.List<api.Property> o) {
|
| +checkUnnamed1265(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 = buildUnnamed2872();
|
| + o.locations = buildUnnamed1264();
|
| o.mid = "foo";
|
| - o.properties = buildUnnamed2873();
|
| + o.properties = buildUnnamed1265();
|
| 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'));
|
| - checkUnnamed2872(o.locations);
|
| + checkUnnamed1264(o.locations);
|
| unittest.expect(o.mid, unittest.equals('foo'));
|
| - checkUnnamed2873(o.properties);
|
| + checkUnnamed1265(o.properties);
|
| unittest.expect(o.score, unittest.equals(42.0));
|
| unittest.expect(o.topicality, unittest.equals(42.0));
|
| }
|
| buildCounterEntityAnnotation--;
|
| }
|
|
|
| -buildUnnamed2874() {
|
| +buildUnnamed1266() {
|
| var o = new core.List<api.Landmark>();
|
| o.add(buildLandmark());
|
| o.add(buildLandmark());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2874(core.List<api.Landmark> o) {
|
| +checkUnnamed1266(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 = buildUnnamed2874();
|
| + o.landmarks = buildUnnamed1266();
|
| 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));
|
| - checkUnnamed2874(o.landmarks);
|
| + checkUnnamed1266(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--;
|
| }
|
|
|
| -buildUnnamed2875() {
|
| +buildUnnamed1267() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2875(core.List<core.String> o) {
|
| +checkUnnamed1267(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 = buildUnnamed2875();
|
| + o.languageHints = buildUnnamed1267();
|
| o.latLongRect = buildLatLongRect();
|
| }
|
| buildCounterImageContext--;
|
| @@ -552,7 +552,7 @@ buildImageContext() {
|
| checkImageContext(api.ImageContext o) {
|
| buildCounterImageContext++;
|
| if (buildCounterImageContext < 3) {
|
| - checkUnnamed2875(o.languageHints);
|
| + checkUnnamed1267(o.languageHints);
|
| checkLatLongRect(o.latLongRect);
|
| }
|
| buildCounterImageContext--;
|
| @@ -747,30 +747,30 @@ checkSafeSearchAnnotation(api.SafeSearchAnnotation o) {
|
| buildCounterSafeSearchAnnotation--;
|
| }
|
|
|
| -buildUnnamed2876() {
|
| +buildUnnamed1268() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed2876(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1268(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'));
|
| }
|
|
|
| -buildUnnamed2877() {
|
| +buildUnnamed1269() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed2876());
|
| - o.add(buildUnnamed2876());
|
| + o.add(buildUnnamed1268());
|
| + o.add(buildUnnamed1268());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2877(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed1269(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed2876(o[0]);
|
| - checkUnnamed2876(o[1]);
|
| + checkUnnamed1268(o[0]);
|
| + checkUnnamed1268(o[1]);
|
| }
|
|
|
| core.int buildCounterStatus = 0;
|
| @@ -779,7 +779,7 @@ buildStatus() {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| o.code = 42;
|
| - o.details = buildUnnamed2877();
|
| + o.details = buildUnnamed1269();
|
| o.message = "foo";
|
| }
|
| buildCounterStatus--;
|
| @@ -790,7 +790,7 @@ checkStatus(api.Status o) {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed2877(o.details);
|
| + checkUnnamed1269(o.details);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterStatus--;
|
|
|