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 0dfc89c17c0c08e03e301ca1a0a62c7b12b11fa6..b25a8ad281c3e66ea29b9f6a8e9b3921655eecec 100644 |
--- a/generated/googleapis_beta/test/videointelligence/v1beta1_test.dart |
+++ b/generated/googleapis_beta/test/videointelligence/v1beta1_test.dart |
@@ -1,12 +1,10 @@ |
library googleapis_beta.videointelligence.v1beta1.test; |
import "dart:core" as core; |
-import "dart:collection" as collection; |
import "dart:async" as async; |
import "dart:convert" as convert; |
import 'package:http/http.dart' as http; |
-import 'package:http/testing.dart' as http_testing; |
import 'package:test/test.dart' as unittest; |
import 'package:googleapis_beta/videointelligence/v1beta1.dart' as api; |
@@ -22,7 +20,8 @@ class HttpServerMock extends http.BaseClient { |
async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
if (_expectJson) { |
- return request.finalize() |
+ return request |
+ .finalize() |
.transform(convert.UTF8.decoder) |
.join('') |
.then((core.String jsonString) { |
@@ -45,20 +44,22 @@ class HttpServerMock extends http.BaseClient { |
} |
} |
-http.StreamedResponse stringResponse( |
- core.int status, core.Map<core.String, core.String> headers, core.String body) { |
+http.StreamedResponse stringResponse(core.int status, |
+ core.Map<core.String, core.String> headers, core.String body) { |
var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
return new http.StreamedResponse(stream, status, headers: headers); |
} |
-buildUnnamed3354() { |
- var o = new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgress>(); |
+buildUnnamed3347() { |
+ var o = new core |
+ .List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgress>(); |
o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress()); |
o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress()); |
return o; |
} |
-checkUnnamed3354(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgress> o) { |
+checkUnnamed3347( |
+ core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgress> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[0]); |
checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[1]); |
@@ -69,28 +70,31 @@ buildGoogleCloudVideointelligenceV1AnnotateVideoProgress() { |
var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoProgress(); |
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++; |
if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) { |
- o.annotationProgress = buildUnnamed3354(); |
+ o.annotationProgress = buildUnnamed3347(); |
} |
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--; |
return o; |
} |
-checkGoogleCloudVideointelligenceV1AnnotateVideoProgress(api.GoogleCloudVideointelligenceV1AnnotateVideoProgress o) { |
+checkGoogleCloudVideointelligenceV1AnnotateVideoProgress( |
+ api.GoogleCloudVideointelligenceV1AnnotateVideoProgress o) { |
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++; |
if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) { |
- checkUnnamed3354(o.annotationProgress); |
+ checkUnnamed3347(o.annotationProgress); |
} |
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--; |
} |
-buildUnnamed3355() { |
- var o = new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults>(); |
+buildUnnamed3348() { |
+ var o = |
+ new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults>(); |
o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults()); |
o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults()); |
return o; |
} |
-checkUnnamed3355(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults> o) { |
+checkUnnamed3348( |
+ core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[0]); |
checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[1]); |
@@ -101,28 +105,29 @@ buildGoogleCloudVideointelligenceV1AnnotateVideoResponse() { |
var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoResponse(); |
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++; |
if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) { |
- o.annotationResults = buildUnnamed3355(); |
+ o.annotationResults = buildUnnamed3348(); |
} |
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--; |
return o; |
} |
-checkGoogleCloudVideointelligenceV1AnnotateVideoResponse(api.GoogleCloudVideointelligenceV1AnnotateVideoResponse o) { |
+checkGoogleCloudVideointelligenceV1AnnotateVideoResponse( |
+ api.GoogleCloudVideointelligenceV1AnnotateVideoResponse o) { |
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++; |
if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) { |
- checkUnnamed3355(o.annotationResults); |
+ checkUnnamed3348(o.annotationResults); |
} |
buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--; |
} |
-buildUnnamed3356() { |
+buildUnnamed3349() { |
var o = new core.List<api.GoogleCloudVideointelligenceV1LabelLocation>(); |
o.add(buildGoogleCloudVideointelligenceV1LabelLocation()); |
o.add(buildGoogleCloudVideointelligenceV1LabelLocation()); |
return o; |
} |
-checkUnnamed3356(core.List<api.GoogleCloudVideointelligenceV1LabelLocation> o) { |
+checkUnnamed3349(core.List<api.GoogleCloudVideointelligenceV1LabelLocation> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkGoogleCloudVideointelligenceV1LabelLocation(o[0]); |
checkGoogleCloudVideointelligenceV1LabelLocation(o[1]); |
@@ -135,18 +140,19 @@ buildGoogleCloudVideointelligenceV1LabelAnnotation() { |
if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) { |
o.description = "foo"; |
o.languageCode = "foo"; |
- o.locations = buildUnnamed3356(); |
+ o.locations = buildUnnamed3349(); |
} |
buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--; |
return o; |
} |
-checkGoogleCloudVideointelligenceV1LabelAnnotation(api.GoogleCloudVideointelligenceV1LabelAnnotation o) { |
+checkGoogleCloudVideointelligenceV1LabelAnnotation( |
+ api.GoogleCloudVideointelligenceV1LabelAnnotation o) { |
buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++; |
if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) { |
unittest.expect(o.description, unittest.equals('foo')); |
unittest.expect(o.languageCode, unittest.equals('foo')); |
- checkUnnamed3356(o.locations); |
+ checkUnnamed3349(o.locations); |
} |
buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--; |
} |
@@ -164,7 +170,8 @@ buildGoogleCloudVideointelligenceV1LabelLocation() { |
return o; |
} |
-checkGoogleCloudVideointelligenceV1LabelLocation(api.GoogleCloudVideointelligenceV1LabelLocation o) { |
+checkGoogleCloudVideointelligenceV1LabelLocation( |
+ api.GoogleCloudVideointelligenceV1LabelLocation o) { |
buildCounterGoogleCloudVideointelligenceV1LabelLocation++; |
if (buildCounterGoogleCloudVideointelligenceV1LabelLocation < 3) { |
unittest.expect(o.confidence, unittest.equals(42.0)); |
@@ -186,7 +193,8 @@ buildGoogleCloudVideointelligenceV1SafeSearchAnnotation() { |
return o; |
} |
-checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(api.GoogleCloudVideointelligenceV1SafeSearchAnnotation o) { |
+checkGoogleCloudVideointelligenceV1SafeSearchAnnotation( |
+ api.GoogleCloudVideointelligenceV1SafeSearchAnnotation o) { |
buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation++; |
if (buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation < 3) { |
unittest.expect(o.adult, unittest.equals('foo')); |
@@ -209,7 +217,8 @@ buildGoogleCloudVideointelligenceV1VideoAnnotationProgress() { |
return o; |
} |
-checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(api.GoogleCloudVideointelligenceV1VideoAnnotationProgress o) { |
+checkGoogleCloudVideointelligenceV1VideoAnnotationProgress( |
+ api.GoogleCloudVideointelligenceV1VideoAnnotationProgress o) { |
buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress++; |
if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress < 3) { |
unittest.expect(o.inputUri, unittest.equals('foo')); |
@@ -220,40 +229,43 @@ checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(api.GoogleCloudVideoi |
buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress--; |
} |
-buildUnnamed3357() { |
+buildUnnamed3350() { |
var o = new core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation>(); |
o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); |
o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); |
return o; |
} |
-checkUnnamed3357(core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) { |
+checkUnnamed3350( |
+ core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]); |
checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]); |
} |
-buildUnnamed3358() { |
- var o = new core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotation>(); |
+buildUnnamed3351() { |
+ var o = |
+ new core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotation>(); |
o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation()); |
o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation()); |
return o; |
} |
-checkUnnamed3358(core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotation> o) { |
+checkUnnamed3351( |
+ core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotation> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[0]); |
checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[1]); |
} |
-buildUnnamed3359() { |
+buildUnnamed3352() { |
var o = new core.List<api.GoogleCloudVideointelligenceV1VideoSegment>(); |
o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); |
o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); |
return o; |
} |
-checkUnnamed3359(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) { |
+checkUnnamed3352(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkGoogleCloudVideointelligenceV1VideoSegment(o[0]); |
checkGoogleCloudVideointelligenceV1VideoSegment(o[1]); |
@@ -266,22 +278,23 @@ buildGoogleCloudVideointelligenceV1VideoAnnotationResults() { |
if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) { |
o.error = buildGoogleRpcStatus(); |
o.inputUri = "foo"; |
- o.labelAnnotations = buildUnnamed3357(); |
- o.safeSearchAnnotations = buildUnnamed3358(); |
- o.shotAnnotations = buildUnnamed3359(); |
+ o.labelAnnotations = buildUnnamed3350(); |
+ o.safeSearchAnnotations = buildUnnamed3351(); |
+ o.shotAnnotations = buildUnnamed3352(); |
} |
buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--; |
return o; |
} |
-checkGoogleCloudVideointelligenceV1VideoAnnotationResults(api.GoogleCloudVideointelligenceV1VideoAnnotationResults o) { |
+checkGoogleCloudVideointelligenceV1VideoAnnotationResults( |
+ api.GoogleCloudVideointelligenceV1VideoAnnotationResults o) { |
buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults++; |
if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) { |
checkGoogleRpcStatus(o.error); |
unittest.expect(o.inputUri, unittest.equals('foo')); |
- checkUnnamed3357(o.labelAnnotations); |
- checkUnnamed3358(o.safeSearchAnnotations); |
- checkUnnamed3359(o.shotAnnotations); |
+ checkUnnamed3350(o.labelAnnotations); |
+ checkUnnamed3351(o.safeSearchAnnotations); |
+ checkUnnamed3352(o.shotAnnotations); |
} |
buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--; |
} |
@@ -298,7 +311,8 @@ buildGoogleCloudVideointelligenceV1VideoSegment() { |
return o; |
} |
-checkGoogleCloudVideointelligenceV1VideoSegment(api.GoogleCloudVideointelligenceV1VideoSegment o) { |
+checkGoogleCloudVideointelligenceV1VideoSegment( |
+ api.GoogleCloudVideointelligenceV1VideoSegment o) { |
buildCounterGoogleCloudVideointelligenceV1VideoSegment++; |
if (buildCounterGoogleCloudVideointelligenceV1VideoSegment < 3) { |
unittest.expect(o.endTime, unittest.equals('foo')); |
@@ -307,57 +321,65 @@ checkGoogleCloudVideointelligenceV1VideoSegment(api.GoogleCloudVideointelligence |
buildCounterGoogleCloudVideointelligenceV1VideoSegment--; |
} |
-buildUnnamed3360() { |
- var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress>(); |
+buildUnnamed3353() { |
+ var o = new core |
+ .List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress>(); |
o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress()); |
o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress()); |
return o; |
} |
-checkUnnamed3360(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress> o) { |
+checkUnnamed3353( |
+ core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress> |
+ o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[0]); |
checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[1]); |
} |
-core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress = 0; |
+core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress = |
+ 0; |
buildGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress() { |
var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(); |
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++; |
- if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3) { |
- o.annotationProgress = buildUnnamed3360(); |
+ if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < |
+ 3) { |
+ o.annotationProgress = buildUnnamed3353(); |
} |
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; |
return o; |
} |
-checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress o) { |
+checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress( |
+ api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress o) { |
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++; |
- if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3) { |
- checkUnnamed3360(o.annotationProgress); |
+ if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < |
+ 3) { |
+ checkUnnamed3353(o.annotationProgress); |
} |
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; |
} |
-buildUnnamed3361() { |
+buildUnnamed3354() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed3361(core.List<core.String> o) { |
+checkUnnamed3354(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')); |
} |
-core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest = 0; |
+core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest = |
+ 0; |
buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest() { |
var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(); |
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++; |
if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) { |
- o.features = buildUnnamed3361(); |
+ o.features = buildUnnamed3354(); |
o.inputContent = "foo"; |
o.inputUri = "foo"; |
o.locationId = "foo"; |
@@ -368,10 +390,11 @@ buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest() { |
return o; |
} |
-checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest o) { |
+checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest( |
+ api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest o) { |
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++; |
if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) { |
- checkUnnamed3361(o.features); |
+ checkUnnamed3354(o.features); |
unittest.expect(o.inputContent, unittest.equals('foo')); |
unittest.expect(o.inputUri, unittest.equals('foo')); |
unittest.expect(o.locationId, unittest.equals('foo')); |
@@ -381,46 +404,54 @@ checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(api.GoogleCloudVide |
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--; |
} |
-buildUnnamed3362() { |
- var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults>(); |
+buildUnnamed3355() { |
+ var o = new core |
+ .List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults>(); |
o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults()); |
o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults()); |
return o; |
} |
-checkUnnamed3362(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults> o) { |
+checkUnnamed3355( |
+ core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults> |
+ o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[0]); |
checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[1]); |
} |
-core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse = 0; |
+core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse = |
+ 0; |
buildGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse() { |
var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(); |
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++; |
- if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3) { |
- o.annotationResults = buildUnnamed3362(); |
+ if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < |
+ 3) { |
+ o.annotationResults = buildUnnamed3355(); |
} |
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; |
return o; |
} |
-checkGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse o) { |
+checkGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse( |
+ api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse o) { |
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++; |
- if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3) { |
- checkUnnamed3362(o.annotationResults); |
+ if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < |
+ 3) { |
+ checkUnnamed3355(o.annotationResults); |
} |
buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; |
} |
-buildUnnamed3363() { |
+buildUnnamed3356() { |
var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation>(); |
o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation()); |
o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation()); |
return o; |
} |
-checkUnnamed3363(core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation> o) { |
+checkUnnamed3356( |
+ core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[0]); |
checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[1]); |
@@ -433,18 +464,19 @@ buildGoogleCloudVideointelligenceV1beta1LabelAnnotation() { |
if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) { |
o.description = "foo"; |
o.languageCode = "foo"; |
- o.locations = buildUnnamed3363(); |
+ o.locations = buildUnnamed3356(); |
} |
buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--; |
return o; |
} |
-checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(api.GoogleCloudVideointelligenceV1beta1LabelAnnotation o) { |
+checkGoogleCloudVideointelligenceV1beta1LabelAnnotation( |
+ api.GoogleCloudVideointelligenceV1beta1LabelAnnotation o) { |
buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation++; |
if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) { |
unittest.expect(o.description, unittest.equals('foo')); |
unittest.expect(o.languageCode, unittest.equals('foo')); |
- checkUnnamed3363(o.locations); |
+ checkUnnamed3356(o.locations); |
} |
buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--; |
} |
@@ -462,7 +494,8 @@ buildGoogleCloudVideointelligenceV1beta1LabelLocation() { |
return o; |
} |
-checkGoogleCloudVideointelligenceV1beta1LabelLocation(api.GoogleCloudVideointelligenceV1beta1LabelLocation o) { |
+checkGoogleCloudVideointelligenceV1beta1LabelLocation( |
+ api.GoogleCloudVideointelligenceV1beta1LabelLocation o) { |
buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation++; |
if (buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation < 3) { |
unittest.expect(o.confidence, unittest.equals(42.0)); |
@@ -472,7 +505,8 @@ checkGoogleCloudVideointelligenceV1beta1LabelLocation(api.GoogleCloudVideointell |
buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation--; |
} |
-core.int buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation = 0; |
+core.int buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation = |
+ 0; |
buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation() { |
var o = new api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(); |
buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation++; |
@@ -488,7 +522,8 @@ buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation() { |
return o; |
} |
-checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation o) { |
+checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation( |
+ api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation o) { |
buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation++; |
if (buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation < 3) { |
unittest.expect(o.adult, unittest.equals('foo')); |
@@ -501,11 +536,13 @@ checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(api.GoogleCloudVide |
buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation--; |
} |
-core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress = 0; |
+core.int |
+ buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress = 0; |
buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress() { |
var o = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(); |
buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress++; |
- if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress < 3) { |
+ if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress < |
+ 3) { |
o.inputUri = "foo"; |
o.progressPercent = 42; |
o.startTime = "foo"; |
@@ -515,9 +552,11 @@ buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress() { |
return o; |
} |
-checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress o) { |
+checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress( |
+ api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress o) { |
buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress++; |
- if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress < 3) { |
+ if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress < |
+ 3) { |
unittest.expect(o.inputUri, unittest.equals('foo')); |
unittest.expect(o.progressPercent, unittest.equals(42)); |
unittest.expect(o.startTime, unittest.equals('foo')); |
@@ -526,80 +565,90 @@ checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(api.GoogleCloudV |
buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--; |
} |
-buildUnnamed3364() { |
- var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation>(); |
+buildUnnamed3357() { |
+ var o = |
+ new core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation>(); |
o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); |
o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); |
return o; |
} |
-checkUnnamed3364(core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation> o) { |
+checkUnnamed3357( |
+ core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[0]); |
checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[1]); |
} |
-buildUnnamed3365() { |
- var o = new core.List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation>(); |
+buildUnnamed3358() { |
+ var o = new core |
+ .List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation>(); |
o.add(buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation()); |
o.add(buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation()); |
return o; |
} |
-checkUnnamed3365(core.List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation> o) { |
+checkUnnamed3358( |
+ core.List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(o[0]); |
checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(o[1]); |
} |
-buildUnnamed3366() { |
+buildUnnamed3359() { |
var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); |
o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); |
o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); |
return o; |
} |
-checkUnnamed3366(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { |
+checkUnnamed3359( |
+ core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); |
checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); |
} |
-core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults = 0; |
+core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults = |
+ 0; |
buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults() { |
var o = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults(); |
buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++; |
- if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3) { |
+ if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < |
+ 3) { |
o.error = buildGoogleRpcStatus(); |
o.inputUri = "foo"; |
- o.labelAnnotations = buildUnnamed3364(); |
- o.safeSearchAnnotations = buildUnnamed3365(); |
- o.shotAnnotations = buildUnnamed3366(); |
+ o.labelAnnotations = buildUnnamed3357(); |
+ o.safeSearchAnnotations = buildUnnamed3358(); |
+ o.shotAnnotations = buildUnnamed3359(); |
} |
buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; |
return o; |
} |
-checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults o) { |
+checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults( |
+ api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults o) { |
buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++; |
- if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3) { |
+ if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < |
+ 3) { |
checkGoogleRpcStatus(o.error); |
unittest.expect(o.inputUri, unittest.equals('foo')); |
- checkUnnamed3364(o.labelAnnotations); |
- checkUnnamed3365(o.safeSearchAnnotations); |
- checkUnnamed3366(o.shotAnnotations); |
+ checkUnnamed3357(o.labelAnnotations); |
+ checkUnnamed3358(o.safeSearchAnnotations); |
+ checkUnnamed3359(o.shotAnnotations); |
} |
buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; |
} |
-buildUnnamed3367() { |
+buildUnnamed3360() { |
var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); |
o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); |
o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); |
return o; |
} |
-checkUnnamed3367(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { |
+checkUnnamed3360( |
+ core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); |
checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); |
@@ -613,7 +662,7 @@ buildGoogleCloudVideointelligenceV1beta1VideoContext() { |
o.labelDetectionMode = "foo"; |
o.labelDetectionModel = "foo"; |
o.safeSearchDetectionModel = "foo"; |
- o.segments = buildUnnamed3367(); |
+ o.segments = buildUnnamed3360(); |
o.shotChangeDetectionModel = "foo"; |
o.stationaryCamera = true; |
} |
@@ -621,13 +670,14 @@ buildGoogleCloudVideointelligenceV1beta1VideoContext() { |
return o; |
} |
-checkGoogleCloudVideointelligenceV1beta1VideoContext(api.GoogleCloudVideointelligenceV1beta1VideoContext o) { |
+checkGoogleCloudVideointelligenceV1beta1VideoContext( |
+ api.GoogleCloudVideointelligenceV1beta1VideoContext o) { |
buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++; |
if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { |
unittest.expect(o.labelDetectionMode, unittest.equals('foo')); |
unittest.expect(o.labelDetectionModel, unittest.equals('foo')); |
unittest.expect(o.safeSearchDetectionModel, unittest.equals('foo')); |
- checkUnnamed3367(o.segments); |
+ checkUnnamed3360(o.segments); |
unittest.expect(o.shotChangeDetectionModel, unittest.equals('foo')); |
unittest.expect(o.stationaryCamera, unittest.isTrue); |
} |
@@ -646,7 +696,8 @@ buildGoogleCloudVideointelligenceV1beta1VideoSegment() { |
return o; |
} |
-checkGoogleCloudVideointelligenceV1beta1VideoSegment(api.GoogleCloudVideointelligenceV1beta1VideoSegment o) { |
+checkGoogleCloudVideointelligenceV1beta1VideoSegment( |
+ api.GoogleCloudVideointelligenceV1beta1VideoSegment o) { |
buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++; |
if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) { |
unittest.expect(o.endTimeOffset, unittest.equals('foo')); |
@@ -655,30 +706,485 @@ checkGoogleCloudVideointelligenceV1beta1VideoSegment(api.GoogleCloudVideointelli |
buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--; |
} |
+buildUnnamed3361() { |
+ var o = new core |
+ .List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress>(); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress()); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress()); |
+ return o; |
+} |
+ |
+checkUnnamed3361( |
+ core.List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress> |
+ o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress(o[0]); |
+ checkGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress(o[1]); |
+} |
+ |
+core.int buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress = |
+ 0; |
+buildGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress() { |
+ var o = new api.GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress(); |
+ buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress < |
+ 3) { |
+ o.annotationProgress = buildUnnamed3361(); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress--; |
+ return o; |
+} |
+ |
+checkGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress( |
+ api.GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress o) { |
+ buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress < |
+ 3) { |
+ checkUnnamed3361(o.annotationProgress); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress--; |
+} |
+ |
+buildUnnamed3362() { |
+ var o = new core |
+ .List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults>(); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2VideoAnnotationResults()); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2VideoAnnotationResults()); |
+ return o; |
+} |
+ |
+checkUnnamed3362( |
+ core.List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults> |
+ o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkGoogleCloudVideointelligenceV1beta2VideoAnnotationResults(o[0]); |
+ checkGoogleCloudVideointelligenceV1beta2VideoAnnotationResults(o[1]); |
+} |
+ |
+core.int buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse = |
+ 0; |
+buildGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse() { |
+ var o = new api.GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse(); |
+ buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse < |
+ 3) { |
+ o.annotationResults = buildUnnamed3362(); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse--; |
+ return o; |
+} |
+ |
+checkGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse( |
+ api.GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse o) { |
+ buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse < |
+ 3) { |
+ checkUnnamed3362(o.annotationResults); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse--; |
+} |
+ |
+core.int buildCounterGoogleCloudVideointelligenceV1beta2Entity = 0; |
+buildGoogleCloudVideointelligenceV1beta2Entity() { |
+ var o = new api.GoogleCloudVideointelligenceV1beta2Entity(); |
+ buildCounterGoogleCloudVideointelligenceV1beta2Entity++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2Entity < 3) { |
+ o.description = "foo"; |
+ o.entityId = "foo"; |
+ o.languageCode = "foo"; |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2Entity--; |
+ return o; |
+} |
+ |
+checkGoogleCloudVideointelligenceV1beta2Entity( |
+ api.GoogleCloudVideointelligenceV1beta2Entity o) { |
+ buildCounterGoogleCloudVideointelligenceV1beta2Entity++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2Entity < 3) { |
+ unittest.expect(o.description, unittest.equals('foo')); |
+ unittest.expect(o.entityId, unittest.equals('foo')); |
+ unittest.expect(o.languageCode, unittest.equals('foo')); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2Entity--; |
+} |
+ |
+buildUnnamed3363() { |
+ var o = new core |
+ .List<api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame>(); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2ExplicitContentFrame()); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2ExplicitContentFrame()); |
+ return o; |
+} |
+ |
+checkUnnamed3363( |
+ core.List<api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkGoogleCloudVideointelligenceV1beta2ExplicitContentFrame(o[0]); |
+ checkGoogleCloudVideointelligenceV1beta2ExplicitContentFrame(o[1]); |
+} |
+ |
+core.int |
+ buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation = |
+ 0; |
+buildGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation() { |
+ var o = |
+ new api.GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation(); |
+ buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation < |
+ 3) { |
+ o.frames = buildUnnamed3363(); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation--; |
+ return o; |
+} |
+ |
+checkGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation( |
+ api.GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation o) { |
+ buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation < |
+ 3) { |
+ checkUnnamed3363(o.frames); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation--; |
+} |
+ |
+core.int buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame = |
+ 0; |
+buildGoogleCloudVideointelligenceV1beta2ExplicitContentFrame() { |
+ var o = new api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame(); |
+ buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame < 3) { |
+ o.pornographyLikelihood = "foo"; |
+ o.timeOffset = "foo"; |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame--; |
+ return o; |
+} |
+ |
+checkGoogleCloudVideointelligenceV1beta2ExplicitContentFrame( |
+ api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame o) { |
+ buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame < 3) { |
+ unittest.expect(o.pornographyLikelihood, unittest.equals('foo')); |
+ unittest.expect(o.timeOffset, unittest.equals('foo')); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame--; |
+} |
+ |
+buildUnnamed3364() { |
+ var o = new core.List<api.GoogleCloudVideointelligenceV1beta2Entity>(); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2Entity()); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2Entity()); |
+ return o; |
+} |
+ |
+checkUnnamed3364(core.List<api.GoogleCloudVideointelligenceV1beta2Entity> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkGoogleCloudVideointelligenceV1beta2Entity(o[0]); |
+ checkGoogleCloudVideointelligenceV1beta2Entity(o[1]); |
+} |
+ |
+buildUnnamed3365() { |
+ var o = new core.List<api.GoogleCloudVideointelligenceV1beta2LabelFrame>(); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2LabelFrame()); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2LabelFrame()); |
+ return o; |
+} |
+ |
+checkUnnamed3365( |
+ core.List<api.GoogleCloudVideointelligenceV1beta2LabelFrame> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkGoogleCloudVideointelligenceV1beta2LabelFrame(o[0]); |
+ checkGoogleCloudVideointelligenceV1beta2LabelFrame(o[1]); |
+} |
+ |
+buildUnnamed3366() { |
+ var o = new core.List<api.GoogleCloudVideointelligenceV1beta2LabelSegment>(); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2LabelSegment()); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2LabelSegment()); |
+ return o; |
+} |
+ |
+checkUnnamed3366( |
+ core.List<api.GoogleCloudVideointelligenceV1beta2LabelSegment> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkGoogleCloudVideointelligenceV1beta2LabelSegment(o[0]); |
+ checkGoogleCloudVideointelligenceV1beta2LabelSegment(o[1]); |
+} |
+ |
+core.int buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation = 0; |
+buildGoogleCloudVideointelligenceV1beta2LabelAnnotation() { |
+ var o = new api.GoogleCloudVideointelligenceV1beta2LabelAnnotation(); |
+ buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation < 3) { |
+ o.categoryEntities = buildUnnamed3364(); |
+ o.entity = buildGoogleCloudVideointelligenceV1beta2Entity(); |
+ o.frames = buildUnnamed3365(); |
+ o.segments = buildUnnamed3366(); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation--; |
+ return o; |
+} |
+ |
+checkGoogleCloudVideointelligenceV1beta2LabelAnnotation( |
+ api.GoogleCloudVideointelligenceV1beta2LabelAnnotation o) { |
+ buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation < 3) { |
+ checkUnnamed3364(o.categoryEntities); |
+ checkGoogleCloudVideointelligenceV1beta2Entity(o.entity); |
+ checkUnnamed3365(o.frames); |
+ checkUnnamed3366(o.segments); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation--; |
+} |
+ |
+core.int buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame = 0; |
+buildGoogleCloudVideointelligenceV1beta2LabelFrame() { |
+ var o = new api.GoogleCloudVideointelligenceV1beta2LabelFrame(); |
+ buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame < 3) { |
+ o.confidence = 42.0; |
+ o.timeOffset = "foo"; |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame--; |
+ return o; |
+} |
+ |
+checkGoogleCloudVideointelligenceV1beta2LabelFrame( |
+ api.GoogleCloudVideointelligenceV1beta2LabelFrame o) { |
+ buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame < 3) { |
+ unittest.expect(o.confidence, unittest.equals(42.0)); |
+ unittest.expect(o.timeOffset, unittest.equals('foo')); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2LabelFrame--; |
+} |
+ |
+core.int buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment = 0; |
+buildGoogleCloudVideointelligenceV1beta2LabelSegment() { |
+ var o = new api.GoogleCloudVideointelligenceV1beta2LabelSegment(); |
+ buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment < 3) { |
+ o.confidence = 42.0; |
+ o.segment = buildGoogleCloudVideointelligenceV1beta2VideoSegment(); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment--; |
+ return o; |
+} |
+ |
+checkGoogleCloudVideointelligenceV1beta2LabelSegment( |
+ api.GoogleCloudVideointelligenceV1beta2LabelSegment o) { |
+ buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment < 3) { |
+ unittest.expect(o.confidence, unittest.equals(42.0)); |
+ checkGoogleCloudVideointelligenceV1beta2VideoSegment(o.segment); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment--; |
+} |
+ |
+core.int |
+ buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress = 0; |
+buildGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress() { |
+ var o = new api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress(); |
+ buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress < |
+ 3) { |
+ o.inputUri = "foo"; |
+ o.progressPercent = 42; |
+ o.startTime = "foo"; |
+ o.updateTime = "foo"; |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress--; |
+ return o; |
+} |
+ |
+checkGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress( |
+ api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress o) { |
+ buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress < |
+ 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')); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress--; |
+} |
+ |
+buildUnnamed3367() { |
+ var o = |
+ new core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>(); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation()); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation()); |
+ return o; |
+} |
+ |
+checkUnnamed3367( |
+ core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]); |
+ checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]); |
+} |
+ |
buildUnnamed3368() { |
- 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'}; |
+ var o = |
+ new core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>(); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation()); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation()); |
return o; |
} |
-checkUnnamed3368(core.Map<core.String, core.Object> o) { |
+checkUnnamed3368( |
+ core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> 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')); |
+ checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]); |
+ checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]); |
} |
buildUnnamed3369() { |
+ var o = new core.List<api.GoogleCloudVideointelligenceV1beta2VideoSegment>(); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2VideoSegment()); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2VideoSegment()); |
+ return o; |
+} |
+ |
+checkUnnamed3369( |
+ core.List<api.GoogleCloudVideointelligenceV1beta2VideoSegment> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkGoogleCloudVideointelligenceV1beta2VideoSegment(o[0]); |
+ checkGoogleCloudVideointelligenceV1beta2VideoSegment(o[1]); |
+} |
+ |
+buildUnnamed3370() { |
+ var o = |
+ new core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>(); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation()); |
+ o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation()); |
+ return o; |
+} |
+ |
+checkUnnamed3370( |
+ core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]); |
+ checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]); |
+} |
+ |
+core.int buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults = |
+ 0; |
+buildGoogleCloudVideointelligenceV1beta2VideoAnnotationResults() { |
+ var o = new api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults(); |
+ buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults < |
+ 3) { |
+ o.error = buildGoogleRpcStatus(); |
+ o.explicitAnnotation = |
+ buildGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation(); |
+ o.frameLabelAnnotations = buildUnnamed3367(); |
+ o.inputUri = "foo"; |
+ o.segmentLabelAnnotations = buildUnnamed3368(); |
+ o.shotAnnotations = buildUnnamed3369(); |
+ o.shotLabelAnnotations = buildUnnamed3370(); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults--; |
+ return o; |
+} |
+ |
+checkGoogleCloudVideointelligenceV1beta2VideoAnnotationResults( |
+ api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults o) { |
+ buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults < |
+ 3) { |
+ checkGoogleRpcStatus(o.error); |
+ checkGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation( |
+ o.explicitAnnotation); |
+ checkUnnamed3367(o.frameLabelAnnotations); |
+ unittest.expect(o.inputUri, unittest.equals('foo')); |
+ checkUnnamed3368(o.segmentLabelAnnotations); |
+ checkUnnamed3369(o.shotAnnotations); |
+ checkUnnamed3370(o.shotLabelAnnotations); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults--; |
+} |
+ |
+core.int buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment = 0; |
+buildGoogleCloudVideointelligenceV1beta2VideoSegment() { |
+ var o = new api.GoogleCloudVideointelligenceV1beta2VideoSegment(); |
+ buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment < 3) { |
+ o.endTimeOffset = "foo"; |
+ o.startTimeOffset = "foo"; |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment--; |
+ return o; |
+} |
+ |
+checkGoogleCloudVideointelligenceV1beta2VideoSegment( |
+ api.GoogleCloudVideointelligenceV1beta2VideoSegment o) { |
+ buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment++; |
+ if (buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment < 3) { |
+ unittest.expect(o.endTimeOffset, unittest.equals('foo')); |
+ unittest.expect(o.startTimeOffset, unittest.equals('foo')); |
+ } |
+ buildCounterGoogleCloudVideointelligenceV1beta2VideoSegment--; |
+} |
+ |
+buildUnnamed3371() { |
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'}; |
+ o["x"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
+ o["y"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
return o; |
} |
-checkUnnamed3369(core.Map<core.String, core.Object> o) { |
+checkUnnamed3371(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')); |
+ 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')); |
+} |
+ |
+buildUnnamed3372() { |
+ 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; |
+} |
+ |
+checkUnnamed3372(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')); |
} |
core.int buildCounterGoogleLongrunningOperation = 0; |
@@ -688,9 +1194,9 @@ buildGoogleLongrunningOperation() { |
if (buildCounterGoogleLongrunningOperation < 3) { |
o.done = true; |
o.error = buildGoogleRpcStatus(); |
- o.metadata = buildUnnamed3368(); |
+ o.metadata = buildUnnamed3371(); |
o.name = "foo"; |
- o.response = buildUnnamed3369(); |
+ o.response = buildUnnamed3372(); |
} |
buildCounterGoogleLongrunningOperation--; |
return o; |
@@ -701,37 +1207,53 @@ checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { |
if (buildCounterGoogleLongrunningOperation < 3) { |
unittest.expect(o.done, unittest.isTrue); |
checkGoogleRpcStatus(o.error); |
- checkUnnamed3368(o.metadata); |
+ checkUnnamed3371(o.metadata); |
unittest.expect(o.name, unittest.equals('foo')); |
- checkUnnamed3369(o.response); |
+ checkUnnamed3372(o.response); |
} |
buildCounterGoogleLongrunningOperation--; |
} |
-buildUnnamed3370() { |
+buildUnnamed3373() { |
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'}; |
+ o["x"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
+ o["y"] = { |
+ 'list': [1, 2, 3], |
+ 'bool': true, |
+ 'string': 'foo' |
+ }; |
return o; |
} |
-checkUnnamed3370(core.Map<core.String, core.Object> o) { |
+checkUnnamed3373(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')); |
-} |
- |
-buildUnnamed3371() { |
+ 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')); |
+} |
+ |
+buildUnnamed3374() { |
var o = new core.List<core.Map<core.String, core.Object>>(); |
- o.add(buildUnnamed3370()); |
- o.add(buildUnnamed3370()); |
+ o.add(buildUnnamed3373()); |
+ o.add(buildUnnamed3373()); |
return o; |
} |
-checkUnnamed3371(core.List<core.Map<core.String, core.Object>> o) { |
+checkUnnamed3374(core.List<core.Map<core.String, core.Object>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed3370(o[0]); |
- checkUnnamed3370(o[1]); |
+ checkUnnamed3373(o[0]); |
+ checkUnnamed3373(o[1]); |
} |
core.int buildCounterGoogleRpcStatus = 0; |
@@ -740,7 +1262,7 @@ buildGoogleRpcStatus() { |
buildCounterGoogleRpcStatus++; |
if (buildCounterGoogleRpcStatus < 3) { |
o.code = 42; |
- o.details = buildUnnamed3371(); |
+ o.details = buildUnnamed3374(); |
o.message = "foo"; |
} |
buildCounterGoogleRpcStatus--; |
@@ -751,175 +1273,329 @@ checkGoogleRpcStatus(api.GoogleRpcStatus o) { |
buildCounterGoogleRpcStatus++; |
if (buildCounterGoogleRpcStatus < 3) { |
unittest.expect(o.code, unittest.equals(42)); |
- checkUnnamed3371(o.details); |
+ checkUnnamed3374(o.details); |
unittest.expect(o.message, unittest.equals('foo')); |
} |
buildCounterGoogleRpcStatus--; |
} |
- |
main() { |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoProgress", () { |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoProgress", () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1AnnotateVideoProgress(); |
- var od = new api.GoogleCloudVideointelligenceV1AnnotateVideoProgress.fromJson(o.toJson()); |
+ var od = |
+ new api.GoogleCloudVideointelligenceV1AnnotateVideoProgress.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1AnnotateVideoProgress(od); |
}); |
}); |
- |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoResponse", () { |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoResponse", () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1AnnotateVideoResponse(); |
- var od = new api.GoogleCloudVideointelligenceV1AnnotateVideoResponse.fromJson(o.toJson()); |
+ var od = |
+ new api.GoogleCloudVideointelligenceV1AnnotateVideoResponse.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1AnnotateVideoResponse(od); |
}); |
}); |
- |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1LabelAnnotation", () { |
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1LabelAnnotation", |
+ () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1LabelAnnotation(); |
- var od = new api.GoogleCloudVideointelligenceV1LabelAnnotation.fromJson(o.toJson()); |
+ 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()); |
+ var od = new api.GoogleCloudVideointelligenceV1LabelLocation.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1LabelLocation(od); |
}); |
}); |
- |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1SafeSearchAnnotation", () { |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1SafeSearchAnnotation", () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1SafeSearchAnnotation(); |
- var od = new api.GoogleCloudVideointelligenceV1SafeSearchAnnotation.fromJson(o.toJson()); |
+ var od = |
+ new api.GoogleCloudVideointelligenceV1SafeSearchAnnotation.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(od); |
}); |
}); |
- |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1VideoAnnotationProgress", () { |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1VideoAnnotationProgress", () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1VideoAnnotationProgress(); |
- var od = new api.GoogleCloudVideointelligenceV1VideoAnnotationProgress.fromJson(o.toJson()); |
+ var od = new api |
+ .GoogleCloudVideointelligenceV1VideoAnnotationProgress.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(od); |
}); |
}); |
- |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1VideoAnnotationResults", () { |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1VideoAnnotationResults", () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1VideoAnnotationResults(); |
- var od = new api.GoogleCloudVideointelligenceV1VideoAnnotationResults.fromJson(o.toJson()); |
+ 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()); |
+ var od = new api.GoogleCloudVideointelligenceV1VideoSegment.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1VideoSegment(od); |
}); |
}); |
- |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress", () { |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress", |
+ () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(); |
- var od = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress.fromJson(o.toJson()); |
+ var od = new api |
+ .GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(od); |
}); |
}); |
- |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest", () { |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest", () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(); |
- var od = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest.fromJson(o.toJson()); |
+ var od = new api |
+ .GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(od); |
}); |
}); |
- |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse", () { |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse", |
+ () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(); |
- var od = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse.fromJson(o.toJson()); |
+ var od = new api |
+ .GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(od); |
}); |
}); |
- |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1LabelAnnotation", () { |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1beta1LabelAnnotation", () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1beta1LabelAnnotation(); |
- var od = new api.GoogleCloudVideointelligenceV1beta1LabelAnnotation.fromJson(o.toJson()); |
+ var od = |
+ new api.GoogleCloudVideointelligenceV1beta1LabelAnnotation.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(od); |
}); |
}); |
- |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1LabelLocation", () { |
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1LabelLocation", |
+ () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1beta1LabelLocation(); |
- var od = new api.GoogleCloudVideointelligenceV1beta1LabelLocation.fromJson(o.toJson()); |
+ var od = |
+ new api.GoogleCloudVideointelligenceV1beta1LabelLocation.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1beta1LabelLocation(od); |
}); |
}); |
- |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation", () { |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation", () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(); |
- var od = new api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation.fromJson(o.toJson()); |
+ var od = new api |
+ .GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(od); |
}); |
}); |
- |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress", () { |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress", |
+ () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(); |
- var od = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress.fromJson(o.toJson()); |
+ var od = new api |
+ .GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(od); |
}); |
}); |
- |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoAnnotationResults", () { |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1beta1VideoAnnotationResults", |
+ () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(); |
- var od = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults.fromJson(o.toJson()); |
+ var od = new api |
+ .GoogleCloudVideointelligenceV1beta1VideoAnnotationResults.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(od); |
}); |
}); |
- |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoContext", () { |
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoContext", |
+ () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1beta1VideoContext(); |
- var od = new api.GoogleCloudVideointelligenceV1beta1VideoContext.fromJson(o.toJson()); |
+ var od = new api.GoogleCloudVideointelligenceV1beta1VideoContext.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1beta1VideoContext(od); |
}); |
}); |
- |
- unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoSegment", () { |
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoSegment", |
+ () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleCloudVideointelligenceV1beta1VideoSegment(); |
- var od = new api.GoogleCloudVideointelligenceV1beta1VideoSegment.fromJson(o.toJson()); |
+ var od = new api.GoogleCloudVideointelligenceV1beta1VideoSegment.fromJson( |
+ o.toJson()); |
checkGoogleCloudVideointelligenceV1beta1VideoSegment(od); |
}); |
}); |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress", |
+ () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress(); |
+ var od = new api |
+ .GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress.fromJson( |
+ o.toJson()); |
+ checkGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress(od); |
+ }); |
+ }); |
+ |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse", |
+ () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse(); |
+ var od = new api |
+ .GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse.fromJson( |
+ o.toJson()); |
+ checkGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse(od); |
+ }); |
+ }); |
+ |
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta2Entity", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildGoogleCloudVideointelligenceV1beta2Entity(); |
+ var od = new api.GoogleCloudVideointelligenceV1beta2Entity.fromJson( |
+ o.toJson()); |
+ checkGoogleCloudVideointelligenceV1beta2Entity(od); |
+ }); |
+ }); |
+ |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation", |
+ () { |
+ unittest.test("to-json--from-json", () { |
+ var o = |
+ buildGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation(); |
+ var od = new api |
+ .GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation.fromJson( |
+ o.toJson()); |
+ checkGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation(od); |
+ }); |
+ }); |
+ |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1beta2ExplicitContentFrame", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildGoogleCloudVideointelligenceV1beta2ExplicitContentFrame(); |
+ var od = new api |
+ .GoogleCloudVideointelligenceV1beta2ExplicitContentFrame.fromJson( |
+ o.toJson()); |
+ checkGoogleCloudVideointelligenceV1beta2ExplicitContentFrame(od); |
+ }); |
+ }); |
+ |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1beta2LabelAnnotation", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildGoogleCloudVideointelligenceV1beta2LabelAnnotation(); |
+ var od = |
+ new api.GoogleCloudVideointelligenceV1beta2LabelAnnotation.fromJson( |
+ o.toJson()); |
+ checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(od); |
+ }); |
+ }); |
+ |
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta2LabelFrame", |
+ () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildGoogleCloudVideointelligenceV1beta2LabelFrame(); |
+ var od = new api.GoogleCloudVideointelligenceV1beta2LabelFrame.fromJson( |
+ o.toJson()); |
+ checkGoogleCloudVideointelligenceV1beta2LabelFrame(od); |
+ }); |
+ }); |
+ |
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta2LabelSegment", |
+ () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildGoogleCloudVideointelligenceV1beta2LabelSegment(); |
+ var od = new api.GoogleCloudVideointelligenceV1beta2LabelSegment.fromJson( |
+ o.toJson()); |
+ checkGoogleCloudVideointelligenceV1beta2LabelSegment(od); |
+ }); |
+ }); |
+ |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress", |
+ () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress(); |
+ var od = new api |
+ .GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress.fromJson( |
+ o.toJson()); |
+ checkGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress(od); |
+ }); |
+ }); |
+ |
+ unittest.group( |
+ "obj-schema-GoogleCloudVideointelligenceV1beta2VideoAnnotationResults", |
+ () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildGoogleCloudVideointelligenceV1beta2VideoAnnotationResults(); |
+ var od = new api |
+ .GoogleCloudVideointelligenceV1beta2VideoAnnotationResults.fromJson( |
+ o.toJson()); |
+ checkGoogleCloudVideointelligenceV1beta2VideoAnnotationResults(od); |
+ }); |
+ }); |
+ |
+ unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta2VideoSegment", |
+ () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildGoogleCloudVideointelligenceV1beta2VideoSegment(); |
+ var od = new api.GoogleCloudVideointelligenceV1beta2VideoSegment.fromJson( |
+ o.toJson()); |
+ checkGoogleCloudVideointelligenceV1beta2VideoSegment(od); |
+ }); |
+ }); |
unittest.group("obj-schema-GoogleLongrunningOperation", () { |
unittest.test("to-json--from-json", () { |
@@ -929,7 +1605,6 @@ main() { |
}); |
}); |
- |
unittest.group("obj-schema-GoogleRpcStatus", () { |
unittest.test("to-json--from-json", () { |
var o = buildGoogleRpcStatus(); |
@@ -938,24 +1613,27 @@ main() { |
}); |
}); |
- |
unittest.group("resource-VideosResourceApi", () { |
unittest.test("method--annotate", () { |
- |
var mock = new HttpServerMock(); |
api.VideosResourceApi res = new api.VideointelligenceApi(mock).videos; |
- var arg_request = buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(); |
+ var arg_request = |
+ buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(); |
mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
- var obj = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest.fromJson(json); |
+ var obj = new api |
+ .GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest.fromJson( |
+ json); |
checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(obj); |
var path = (req.url).path; |
var pathOffset = 0; |
var index; |
var subPart; |
- unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
+ unittest.expect( |
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("v1beta1/videos:annotate")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 23), |
+ unittest.equals("v1beta1/videos:annotate")); |
pathOffset += 23; |
var query = (req.url).query; |
@@ -968,27 +1646,25 @@ main() { |
if (n == null) return null; |
throw new core.ArgumentError("Invalid boolean: $n"); |
} |
+ |
if (query.length > 0) { |
for (var part in query.split("&")) { |
var keyvalue = part.split("="); |
- addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
+ core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
- |
var h = { |
- "content-type" : "application/json; charset=utf-8", |
+ "content-type": "application/json; charset=utf-8", |
}; |
var resp = convert.JSON.encode(buildGoogleLongrunningOperation()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.annotate(arg_request).then(unittest.expectAsync1(((api.GoogleLongrunningOperation response) { |
+ res.annotate(arg_request).then( |
+ unittest.expectAsync1(((api.GoogleLongrunningOperation response) { |
checkGoogleLongrunningOperation(response); |
}))); |
}); |
- |
}); |
- |
- |
} |
- |