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

Unified Diff: generated/googleapis_beta/test/videointelligence/v1beta1_test.dart

Issue 2973303002: Api-Roll 51: 2017-07-10 (Closed)
Patch Set: Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis_beta/test/taskqueue/v1beta2_test.dart ('k') | pubspec.lock » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis_beta/test/videointelligence/v1beta1_test.dart
diff --git a/generated/googleapis_beta/test/videointelligence/v1beta1_test.dart b/generated/googleapis_beta/test/videointelligence/v1beta1_test.dart
index 323b389498300f06330940b2884e36c6fbf89cdf..a4aa5a59ceddbf4b08b18b1185e5c65f75a12bda 100644
--- a/generated/googleapis_beta/test/videointelligence/v1beta1_test.dart
+++ b/generated/googleapis_beta/test/videointelligence/v1beta1_test.dart
@@ -51,14 +51,270 @@ http.StreamedResponse stringResponse(
return new http.StreamedResponse(stream, status, headers: headers);
}
-buildUnnamed3206() {
+buildUnnamed3326() {
+ var o = new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgress>();
+ o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress());
+ o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress());
+ return o;
+}
+
+checkUnnamed3326(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgress> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[0]);
+ checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[1]);
+}
+
+core.int buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress = 0;
+buildGoogleCloudVideointelligenceV1AnnotateVideoProgress() {
+ var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoProgress();
+ buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++;
+ if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) {
+ o.annotationProgress = buildUnnamed3326();
+ }
+ buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--;
+ return o;
+}
+
+checkGoogleCloudVideointelligenceV1AnnotateVideoProgress(api.GoogleCloudVideointelligenceV1AnnotateVideoProgress o) {
+ buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++;
+ if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) {
+ checkUnnamed3326(o.annotationProgress);
+ }
+ buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--;
+}
+
+buildUnnamed3327() {
+ var o = new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults>();
+ o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults());
+ o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults());
+ return o;
+}
+
+checkUnnamed3327(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[0]);
+ checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[1]);
+}
+
+core.int buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse = 0;
+buildGoogleCloudVideointelligenceV1AnnotateVideoResponse() {
+ var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoResponse();
+ buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++;
+ if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) {
+ o.annotationResults = buildUnnamed3327();
+ }
+ buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--;
+ return o;
+}
+
+checkGoogleCloudVideointelligenceV1AnnotateVideoResponse(api.GoogleCloudVideointelligenceV1AnnotateVideoResponse o) {
+ buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++;
+ if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) {
+ checkUnnamed3327(o.annotationResults);
+ }
+ buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--;
+}
+
+buildUnnamed3328() {
+ var o = new core.List<api.GoogleCloudVideointelligenceV1LabelLocation>();
+ o.add(buildGoogleCloudVideointelligenceV1LabelLocation());
+ o.add(buildGoogleCloudVideointelligenceV1LabelLocation());
+ return o;
+}
+
+checkUnnamed3328(core.List<api.GoogleCloudVideointelligenceV1LabelLocation> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkGoogleCloudVideointelligenceV1LabelLocation(o[0]);
+ checkGoogleCloudVideointelligenceV1LabelLocation(o[1]);
+}
+
+core.int buildCounterGoogleCloudVideointelligenceV1LabelAnnotation = 0;
+buildGoogleCloudVideointelligenceV1LabelAnnotation() {
+ var o = new api.GoogleCloudVideointelligenceV1LabelAnnotation();
+ buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++;
+ if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) {
+ o.description = "foo";
+ o.languageCode = "foo";
+ o.locations = buildUnnamed3328();
+ }
+ buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--;
+ return o;
+}
+
+checkGoogleCloudVideointelligenceV1LabelAnnotation(api.GoogleCloudVideointelligenceV1LabelAnnotation o) {
+ buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++;
+ if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) {
+ unittest.expect(o.description, unittest.equals('foo'));
+ unittest.expect(o.languageCode, unittest.equals('foo'));
+ checkUnnamed3328(o.locations);
+ }
+ buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--;
+}
+
+core.int buildCounterGoogleCloudVideointelligenceV1LabelLocation = 0;
+buildGoogleCloudVideointelligenceV1LabelLocation() {
+ var o = new api.GoogleCloudVideointelligenceV1LabelLocation();
+ buildCounterGoogleCloudVideointelligenceV1LabelLocation++;
+ if (buildCounterGoogleCloudVideointelligenceV1LabelLocation < 3) {
+ o.confidence = 42.0;
+ o.level = "foo";
+ o.segment = buildGoogleCloudVideointelligenceV1VideoSegment();
+ }
+ buildCounterGoogleCloudVideointelligenceV1LabelLocation--;
+ return o;
+}
+
+checkGoogleCloudVideointelligenceV1LabelLocation(api.GoogleCloudVideointelligenceV1LabelLocation o) {
+ buildCounterGoogleCloudVideointelligenceV1LabelLocation++;
+ if (buildCounterGoogleCloudVideointelligenceV1LabelLocation < 3) {
+ unittest.expect(o.confidence, unittest.equals(42.0));
+ unittest.expect(o.level, unittest.equals('foo'));
+ checkGoogleCloudVideointelligenceV1VideoSegment(o.segment);
+ }
+ buildCounterGoogleCloudVideointelligenceV1LabelLocation--;
+}
+
+core.int buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation = 0;
+buildGoogleCloudVideointelligenceV1SafeSearchAnnotation() {
+ var o = new api.GoogleCloudVideointelligenceV1SafeSearchAnnotation();
+ buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation++;
+ if (buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation < 3) {
+ o.adult = "foo";
+ o.time = "foo";
+ }
+ buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation--;
+ return o;
+}
+
+checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(api.GoogleCloudVideointelligenceV1SafeSearchAnnotation o) {
+ buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation++;
+ if (buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation < 3) {
+ unittest.expect(o.adult, unittest.equals('foo'));
+ unittest.expect(o.time, unittest.equals('foo'));
+ }
+ buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation--;
+}
+
+core.int buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress = 0;
+buildGoogleCloudVideointelligenceV1VideoAnnotationProgress() {
+ var o = new api.GoogleCloudVideointelligenceV1VideoAnnotationProgress();
+ buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress++;
+ if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress < 3) {
+ o.inputUri = "foo";
+ o.progressPercent = 42;
+ o.startTime = "foo";
+ o.updateTime = "foo";
+ }
+ buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress--;
+ return o;
+}
+
+checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(api.GoogleCloudVideointelligenceV1VideoAnnotationProgress o) {
+ buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress++;
+ if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress < 3) {
+ unittest.expect(o.inputUri, unittest.equals('foo'));
+ unittest.expect(o.progressPercent, unittest.equals(42));
+ unittest.expect(o.startTime, unittest.equals('foo'));
+ unittest.expect(o.updateTime, unittest.equals('foo'));
+ }
+ buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress--;
+}
+
+buildUnnamed3329() {
+ var o = new core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation>();
+ o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
+ o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
+ return o;
+}
+
+checkUnnamed3329(core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]);
+ checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]);
+}
+
+buildUnnamed3330() {
+ var o = new core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotation>();
+ o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation());
+ o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation());
+ return o;
+}
+
+checkUnnamed3330(core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotation> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[0]);
+ checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[1]);
+}
+
+buildUnnamed3331() {
+ var o = new core.List<api.GoogleCloudVideointelligenceV1VideoSegment>();
+ o.add(buildGoogleCloudVideointelligenceV1VideoSegment());
+ o.add(buildGoogleCloudVideointelligenceV1VideoSegment());
+ return o;
+}
+
+checkUnnamed3331(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkGoogleCloudVideointelligenceV1VideoSegment(o[0]);
+ checkGoogleCloudVideointelligenceV1VideoSegment(o[1]);
+}
+
+core.int buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults = 0;
+buildGoogleCloudVideointelligenceV1VideoAnnotationResults() {
+ var o = new api.GoogleCloudVideointelligenceV1VideoAnnotationResults();
+ buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults++;
+ if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) {
+ o.error = buildGoogleRpcStatus();
+ o.inputUri = "foo";
+ o.labelAnnotations = buildUnnamed3329();
+ o.safeSearchAnnotations = buildUnnamed3330();
+ o.shotAnnotations = buildUnnamed3331();
+ }
+ buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--;
+ return o;
+}
+
+checkGoogleCloudVideointelligenceV1VideoAnnotationResults(api.GoogleCloudVideointelligenceV1VideoAnnotationResults o) {
+ buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults++;
+ if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) {
+ checkGoogleRpcStatus(o.error);
+ unittest.expect(o.inputUri, unittest.equals('foo'));
+ checkUnnamed3329(o.labelAnnotations);
+ checkUnnamed3330(o.safeSearchAnnotations);
+ checkUnnamed3331(o.shotAnnotations);
+ }
+ buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--;
+}
+
+core.int buildCounterGoogleCloudVideointelligenceV1VideoSegment = 0;
+buildGoogleCloudVideointelligenceV1VideoSegment() {
+ var o = new api.GoogleCloudVideointelligenceV1VideoSegment();
+ buildCounterGoogleCloudVideointelligenceV1VideoSegment++;
+ if (buildCounterGoogleCloudVideointelligenceV1VideoSegment < 3) {
+ o.endTime = "foo";
+ o.startTime = "foo";
+ }
+ buildCounterGoogleCloudVideointelligenceV1VideoSegment--;
+ return o;
+}
+
+checkGoogleCloudVideointelligenceV1VideoSegment(api.GoogleCloudVideointelligenceV1VideoSegment o) {
+ buildCounterGoogleCloudVideointelligenceV1VideoSegment++;
+ if (buildCounterGoogleCloudVideointelligenceV1VideoSegment < 3) {
+ unittest.expect(o.endTime, unittest.equals('foo'));
+ unittest.expect(o.startTime, unittest.equals('foo'));
+ }
+ buildCounterGoogleCloudVideointelligenceV1VideoSegment--;
+}
+
+buildUnnamed3332() {
var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress>();
o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress());
o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress());
return o;
}
-checkUnnamed3206(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress> o) {
+checkUnnamed3332(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[0]);
checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[1]);
@@ -69,7 +325,7 @@ buildGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress() {
var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress();
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++;
if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3) {
- o.annotationProgress = buildUnnamed3206();
+ o.annotationProgress = buildUnnamed3332();
}
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--;
return o;
@@ -78,19 +334,19 @@ buildGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress() {
checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress o) {
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++;
if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3) {
- checkUnnamed3206(o.annotationProgress);
+ checkUnnamed3332(o.annotationProgress);
}
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--;
}
-buildUnnamed3207() {
+buildUnnamed3333() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3207(core.List<core.String> o) {
+checkUnnamed3333(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'));
@@ -101,7 +357,7 @@ buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest() {
var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest();
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++;
if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) {
- o.features = buildUnnamed3207();
+ o.features = buildUnnamed3333();
o.inputContent = "foo";
o.inputUri = "foo";
o.locationId = "foo";
@@ -115,7 +371,7 @@ buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest() {
checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest o) {
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++;
if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) {
- checkUnnamed3207(o.features);
+ checkUnnamed3333(o.features);
unittest.expect(o.inputContent, unittest.equals('foo'));
unittest.expect(o.inputUri, unittest.equals('foo'));
unittest.expect(o.locationId, unittest.equals('foo'));
@@ -125,14 +381,14 @@ checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(api.GoogleCloudVide
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--;
}
-buildUnnamed3208() {
+buildUnnamed3334() {
var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults>();
o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults());
o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults());
return o;
}
-checkUnnamed3208(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults> o) {
+checkUnnamed3334(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[0]);
checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[1]);
@@ -143,7 +399,7 @@ buildGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse() {
var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse();
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++;
if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3) {
- o.annotationResults = buildUnnamed3208();
+ o.annotationResults = buildUnnamed3334();
}
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--;
return o;
@@ -152,19 +408,19 @@ buildGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse() {
checkGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse o) {
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++;
if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3) {
- checkUnnamed3208(o.annotationResults);
+ checkUnnamed3334(o.annotationResults);
}
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--;
}
-buildUnnamed3209() {
+buildUnnamed3335() {
var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation>();
o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation());
o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation());
return o;
}
-checkUnnamed3209(core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation> o) {
+checkUnnamed3335(core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[0]);
checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[1]);
@@ -177,7 +433,7 @@ buildGoogleCloudVideointelligenceV1beta1LabelAnnotation() {
if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) {
o.description = "foo";
o.languageCode = "foo";
- o.locations = buildUnnamed3209();
+ o.locations = buildUnnamed3335();
}
buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--;
return o;
@@ -188,7 +444,7 @@ checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(api.GoogleCloudVideointe
if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) {
unittest.expect(o.description, unittest.equals('foo'));
unittest.expect(o.languageCode, unittest.equals('foo'));
- checkUnnamed3209(o.locations);
+ checkUnnamed3335(o.locations);
}
buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--;
}
@@ -241,27 +497,27 @@ checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(api.GoogleCloudV
buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--;
}
-buildUnnamed3210() {
+buildUnnamed3336() {
var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation>();
o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation());
o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation());
return o;
}
-checkUnnamed3210(core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation> o) {
+checkUnnamed3336(core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[0]);
checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[1]);
}
-buildUnnamed3211() {
+buildUnnamed3337() {
var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>();
o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment());
o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment());
return o;
}
-checkUnnamed3211(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) {
+checkUnnamed3337(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]);
checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]);
@@ -274,8 +530,8 @@ buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults() {
if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3) {
o.error = buildGoogleRpcStatus();
o.inputUri = "foo";
- o.labelAnnotations = buildUnnamed3210();
- o.shotAnnotations = buildUnnamed3211();
+ o.labelAnnotations = buildUnnamed3336();
+ o.shotAnnotations = buildUnnamed3337();
}
buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--;
return o;
@@ -286,20 +542,20 @@ checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(api.GoogleCloudVi
if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3) {
checkGoogleRpcStatus(o.error);
unittest.expect(o.inputUri, unittest.equals('foo'));
- checkUnnamed3210(o.labelAnnotations);
- checkUnnamed3211(o.shotAnnotations);
+ checkUnnamed3336(o.labelAnnotations);
+ checkUnnamed3337(o.shotAnnotations);
}
buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--;
}
-buildUnnamed3212() {
+buildUnnamed3338() {
var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>();
o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment());
o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment());
return o;
}
-checkUnnamed3212(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) {
+checkUnnamed3338(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) {
unittest.expect(o, unittest.hasLength(2));
checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]);
checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]);
@@ -312,7 +568,7 @@ buildGoogleCloudVideointelligenceV1beta1VideoContext() {
if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) {
o.labelDetectionMode = "foo";
o.labelDetectionModel = "foo";
- o.segments = buildUnnamed3212();
+ o.segments = buildUnnamed3338();
o.shotChangeDetectionModel = "foo";
}
buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--;
@@ -324,7 +580,7 @@ checkGoogleCloudVideointelligenceV1beta1VideoContext(api.GoogleCloudVideointelli
if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) {
unittest.expect(o.labelDetectionMode, unittest.equals('foo'));
unittest.expect(o.labelDetectionModel, unittest.equals('foo'));
- checkUnnamed3212(o.segments);
+ checkUnnamed3338(o.segments);
unittest.expect(o.shotChangeDetectionModel, unittest.equals('foo'));
}
buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--;
@@ -351,27 +607,27 @@ checkGoogleCloudVideointelligenceV1beta1VideoSegment(api.GoogleCloudVideointelli
buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--;
}
-buildUnnamed3213() {
+buildUnnamed3339() {
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;
}
-checkUnnamed3213(core.Map<core.String, core.Object> o) {
+checkUnnamed3339(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'));
}
-buildUnnamed3214() {
+buildUnnamed3340() {
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;
}
-checkUnnamed3214(core.Map<core.String, core.Object> o) {
+checkUnnamed3340(core.Map<core.String, core.Object> o) {
unittest.expect(o, unittest.hasLength(2));
var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo'));
var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo'));
@@ -384,9 +640,9 @@ buildGoogleLongrunningOperation() {
if (buildCounterGoogleLongrunningOperation < 3) {
o.done = true;
o.error = buildGoogleRpcStatus();
- o.metadata = buildUnnamed3213();
+ o.metadata = buildUnnamed3339();
o.name = "foo";
- o.response = buildUnnamed3214();
+ o.response = buildUnnamed3340();
}
buildCounterGoogleLongrunningOperation--;
return o;
@@ -397,37 +653,37 @@ checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) {
if (buildCounterGoogleLongrunningOperation < 3) {
unittest.expect(o.done, unittest.isTrue);
checkGoogleRpcStatus(o.error);
- checkUnnamed3213(o.metadata);
+ checkUnnamed3339(o.metadata);
unittest.expect(o.name, unittest.equals('foo'));
- checkUnnamed3214(o.response);
+ checkUnnamed3340(o.response);
}
buildCounterGoogleLongrunningOperation--;
}
-buildUnnamed3215() {
+buildUnnamed3341() {
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;
}
-checkUnnamed3215(core.Map<core.String, core.Object> o) {
+checkUnnamed3341(core.Map<core.String, core.Object> o) {
unittest.expect(o, unittest.hasLength(2));
var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo'));
}
-buildUnnamed3216() {
+buildUnnamed3342() {
var o = new core.List<core.Map<core.String, core.Object>>();
- o.add(buildUnnamed3215());
- o.add(buildUnnamed3215());
+ o.add(buildUnnamed3341());
+ o.add(buildUnnamed3341());
return o;
}
-checkUnnamed3216(core.List<core.Map<core.String, core.Object>> o) {
+checkUnnamed3342(core.List<core.Map<core.String, core.Object>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed3215(o[0]);
- checkUnnamed3215(o[1]);
+ checkUnnamed3341(o[0]);
+ checkUnnamed3341(o[1]);
}
core.int buildCounterGoogleRpcStatus = 0;
@@ -436,7 +692,7 @@ buildGoogleRpcStatus() {
buildCounterGoogleRpcStatus++;
if (buildCounterGoogleRpcStatus < 3) {
o.code = 42;
- o.details = buildUnnamed3216();
+ o.details = buildUnnamed3342();
o.message = "foo";
}
buildCounterGoogleRpcStatus--;
@@ -447,7 +703,7 @@ checkGoogleRpcStatus(api.GoogleRpcStatus o) {
buildCounterGoogleRpcStatus++;
if (buildCounterGoogleRpcStatus < 3) {
unittest.expect(o.code, unittest.equals(42));
- checkUnnamed3216(o.details);
+ checkUnnamed3342(o.details);
unittest.expect(o.message, unittest.equals('foo'));
}
buildCounterGoogleRpcStatus--;
@@ -455,6 +711,78 @@ checkGoogleRpcStatus(api.GoogleRpcStatus o) {
main() {
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoProgress", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudVideointelligenceV1AnnotateVideoProgress();
+ var od = new api.GoogleCloudVideointelligenceV1AnnotateVideoProgress.fromJson(o.toJson());
+ checkGoogleCloudVideointelligenceV1AnnotateVideoProgress(od);
+ });
+ });
+
+
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoResponse", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudVideointelligenceV1AnnotateVideoResponse();
+ var od = new api.GoogleCloudVideointelligenceV1AnnotateVideoResponse.fromJson(o.toJson());
+ checkGoogleCloudVideointelligenceV1AnnotateVideoResponse(od);
+ });
+ });
+
+
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1LabelAnnotation", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudVideointelligenceV1LabelAnnotation();
+ var od = new api.GoogleCloudVideointelligenceV1LabelAnnotation.fromJson(o.toJson());
+ checkGoogleCloudVideointelligenceV1LabelAnnotation(od);
+ });
+ });
+
+
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1LabelLocation", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudVideointelligenceV1LabelLocation();
+ var od = new api.GoogleCloudVideointelligenceV1LabelLocation.fromJson(o.toJson());
+ checkGoogleCloudVideointelligenceV1LabelLocation(od);
+ });
+ });
+
+
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1SafeSearchAnnotation", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudVideointelligenceV1SafeSearchAnnotation();
+ var od = new api.GoogleCloudVideointelligenceV1SafeSearchAnnotation.fromJson(o.toJson());
+ checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(od);
+ });
+ });
+
+
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1VideoAnnotationProgress", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudVideointelligenceV1VideoAnnotationProgress();
+ var od = new api.GoogleCloudVideointelligenceV1VideoAnnotationProgress.fromJson(o.toJson());
+ checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(od);
+ });
+ });
+
+
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1VideoAnnotationResults", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudVideointelligenceV1VideoAnnotationResults();
+ var od = new api.GoogleCloudVideointelligenceV1VideoAnnotationResults.fromJson(o.toJson());
+ checkGoogleCloudVideointelligenceV1VideoAnnotationResults(od);
+ });
+ });
+
+
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1VideoSegment", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildGoogleCloudVideointelligenceV1VideoSegment();
+ var od = new api.GoogleCloudVideointelligenceV1VideoSegment.fromJson(o.toJson());
+ checkGoogleCloudVideointelligenceV1VideoSegment(od);
+ });
+ });
+
+
unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress", () {
unittest.test("to-json--from-json", () {
var o = buildGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress();
« no previous file with comments | « generated/googleapis_beta/test/taskqueue/v1beta2_test.dart ('k') | pubspec.lock » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698