| OLD | NEW |
| 1 library googleapis_beta.videointelligence.v1beta1.test; | 1 library googleapis_beta.videointelligence.v1beta1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:test/test.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { | 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 buildUnnamed3326() { | 54 buildUnnamed3322() { |
| 55 var o = new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgres
s>(); | 55 var o = new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgres
s>(); |
| 56 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress()); | 56 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress()); |
| 57 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress()); | 57 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress()); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed3326(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProg
ress> o) { | 61 checkUnnamed3322(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProg
ress> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[0]); | 63 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[0]); |
| 64 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[1]); | 64 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[1]); |
| 65 } | 65 } |
| 66 | 66 |
| 67 core.int buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress = 0; | 67 core.int buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress = 0; |
| 68 buildGoogleCloudVideointelligenceV1AnnotateVideoProgress() { | 68 buildGoogleCloudVideointelligenceV1AnnotateVideoProgress() { |
| 69 var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoProgress(); | 69 var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoProgress(); |
| 70 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++; | 70 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++; |
| 71 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) { | 71 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) { |
| 72 o.annotationProgress = buildUnnamed3326(); | 72 o.annotationProgress = buildUnnamed3322(); |
| 73 } | 73 } |
| 74 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--; | 74 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--; |
| 75 return o; | 75 return o; |
| 76 } | 76 } |
| 77 | 77 |
| 78 checkGoogleCloudVideointelligenceV1AnnotateVideoProgress(api.GoogleCloudVideoint
elligenceV1AnnotateVideoProgress o) { | 78 checkGoogleCloudVideointelligenceV1AnnotateVideoProgress(api.GoogleCloudVideoint
elligenceV1AnnotateVideoProgress o) { |
| 79 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++; | 79 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++; |
| 80 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) { | 80 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) { |
| 81 checkUnnamed3326(o.annotationProgress); | 81 checkUnnamed3322(o.annotationProgress); |
| 82 } | 82 } |
| 83 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--; | 83 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--; |
| 84 } | 84 } |
| 85 | 85 |
| 86 buildUnnamed3327() { | 86 buildUnnamed3323() { |
| 87 var o = new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults
>(); | 87 var o = new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults
>(); |
| 88 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults()); | 88 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults()); |
| 89 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults()); | 89 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults()); |
| 90 return o; | 90 return o; |
| 91 } | 91 } |
| 92 | 92 |
| 93 checkUnnamed3327(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResu
lts> o) { | 93 checkUnnamed3323(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResu
lts> o) { |
| 94 unittest.expect(o, unittest.hasLength(2)); | 94 unittest.expect(o, unittest.hasLength(2)); |
| 95 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[0]); | 95 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[0]); |
| 96 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[1]); | 96 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[1]); |
| 97 } | 97 } |
| 98 | 98 |
| 99 core.int buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse = 0; | 99 core.int buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse = 0; |
| 100 buildGoogleCloudVideointelligenceV1AnnotateVideoResponse() { | 100 buildGoogleCloudVideointelligenceV1AnnotateVideoResponse() { |
| 101 var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoResponse(); | 101 var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoResponse(); |
| 102 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++; | 102 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++; |
| 103 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) { | 103 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) { |
| 104 o.annotationResults = buildUnnamed3327(); | 104 o.annotationResults = buildUnnamed3323(); |
| 105 } | 105 } |
| 106 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--; | 106 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--; |
| 107 return o; | 107 return o; |
| 108 } | 108 } |
| 109 | 109 |
| 110 checkGoogleCloudVideointelligenceV1AnnotateVideoResponse(api.GoogleCloudVideoint
elligenceV1AnnotateVideoResponse o) { | 110 checkGoogleCloudVideointelligenceV1AnnotateVideoResponse(api.GoogleCloudVideoint
elligenceV1AnnotateVideoResponse o) { |
| 111 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++; | 111 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++; |
| 112 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) { | 112 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) { |
| 113 checkUnnamed3327(o.annotationResults); | 113 checkUnnamed3323(o.annotationResults); |
| 114 } | 114 } |
| 115 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--; | 115 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--; |
| 116 } | 116 } |
| 117 | 117 |
| 118 buildUnnamed3328() { | 118 buildUnnamed3324() { |
| 119 var o = new core.List<api.GoogleCloudVideointelligenceV1LabelLocation>(); | 119 var o = new core.List<api.GoogleCloudVideointelligenceV1LabelLocation>(); |
| 120 o.add(buildGoogleCloudVideointelligenceV1LabelLocation()); | 120 o.add(buildGoogleCloudVideointelligenceV1LabelLocation()); |
| 121 o.add(buildGoogleCloudVideointelligenceV1LabelLocation()); | 121 o.add(buildGoogleCloudVideointelligenceV1LabelLocation()); |
| 122 return o; | 122 return o; |
| 123 } | 123 } |
| 124 | 124 |
| 125 checkUnnamed3328(core.List<api.GoogleCloudVideointelligenceV1LabelLocation> o) { | 125 checkUnnamed3324(core.List<api.GoogleCloudVideointelligenceV1LabelLocation> o) { |
| 126 unittest.expect(o, unittest.hasLength(2)); | 126 unittest.expect(o, unittest.hasLength(2)); |
| 127 checkGoogleCloudVideointelligenceV1LabelLocation(o[0]); | 127 checkGoogleCloudVideointelligenceV1LabelLocation(o[0]); |
| 128 checkGoogleCloudVideointelligenceV1LabelLocation(o[1]); | 128 checkGoogleCloudVideointelligenceV1LabelLocation(o[1]); |
| 129 } | 129 } |
| 130 | 130 |
| 131 core.int buildCounterGoogleCloudVideointelligenceV1LabelAnnotation = 0; | 131 core.int buildCounterGoogleCloudVideointelligenceV1LabelAnnotation = 0; |
| 132 buildGoogleCloudVideointelligenceV1LabelAnnotation() { | 132 buildGoogleCloudVideointelligenceV1LabelAnnotation() { |
| 133 var o = new api.GoogleCloudVideointelligenceV1LabelAnnotation(); | 133 var o = new api.GoogleCloudVideointelligenceV1LabelAnnotation(); |
| 134 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++; | 134 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++; |
| 135 if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) { | 135 if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) { |
| 136 o.description = "foo"; | 136 o.description = "foo"; |
| 137 o.languageCode = "foo"; | 137 o.languageCode = "foo"; |
| 138 o.locations = buildUnnamed3328(); | 138 o.locations = buildUnnamed3324(); |
| 139 } | 139 } |
| 140 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--; | 140 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--; |
| 141 return o; | 141 return o; |
| 142 } | 142 } |
| 143 | 143 |
| 144 checkGoogleCloudVideointelligenceV1LabelAnnotation(api.GoogleCloudVideointellige
nceV1LabelAnnotation o) { | 144 checkGoogleCloudVideointelligenceV1LabelAnnotation(api.GoogleCloudVideointellige
nceV1LabelAnnotation o) { |
| 145 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++; | 145 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++; |
| 146 if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) { | 146 if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) { |
| 147 unittest.expect(o.description, unittest.equals('foo')); | 147 unittest.expect(o.description, unittest.equals('foo')); |
| 148 unittest.expect(o.languageCode, unittest.equals('foo')); | 148 unittest.expect(o.languageCode, unittest.equals('foo')); |
| 149 checkUnnamed3328(o.locations); | 149 checkUnnamed3324(o.locations); |
| 150 } | 150 } |
| 151 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--; | 151 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--; |
| 152 } | 152 } |
| 153 | 153 |
| 154 core.int buildCounterGoogleCloudVideointelligenceV1LabelLocation = 0; | 154 core.int buildCounterGoogleCloudVideointelligenceV1LabelLocation = 0; |
| 155 buildGoogleCloudVideointelligenceV1LabelLocation() { | 155 buildGoogleCloudVideointelligenceV1LabelLocation() { |
| 156 var o = new api.GoogleCloudVideointelligenceV1LabelLocation(); | 156 var o = new api.GoogleCloudVideointelligenceV1LabelLocation(); |
| 157 buildCounterGoogleCloudVideointelligenceV1LabelLocation++; | 157 buildCounterGoogleCloudVideointelligenceV1LabelLocation++; |
| 158 if (buildCounterGoogleCloudVideointelligenceV1LabelLocation < 3) { | 158 if (buildCounterGoogleCloudVideointelligenceV1LabelLocation < 3) { |
| 159 o.confidence = 42.0; | 159 o.confidence = 42.0; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress++; | 213 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress++; |
| 214 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress < 3) { | 214 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress < 3) { |
| 215 unittest.expect(o.inputUri, unittest.equals('foo')); | 215 unittest.expect(o.inputUri, unittest.equals('foo')); |
| 216 unittest.expect(o.progressPercent, unittest.equals(42)); | 216 unittest.expect(o.progressPercent, unittest.equals(42)); |
| 217 unittest.expect(o.startTime, unittest.equals('foo')); | 217 unittest.expect(o.startTime, unittest.equals('foo')); |
| 218 unittest.expect(o.updateTime, unittest.equals('foo')); | 218 unittest.expect(o.updateTime, unittest.equals('foo')); |
| 219 } | 219 } |
| 220 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress--; | 220 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress--; |
| 221 } | 221 } |
| 222 | 222 |
| 223 buildUnnamed3329() { | 223 buildUnnamed3325() { |
| 224 var o = new core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation>(); | 224 var o = new core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation>(); |
| 225 o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); | 225 o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); |
| 226 o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); | 226 o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); |
| 227 return o; | 227 return o; |
| 228 } | 228 } |
| 229 | 229 |
| 230 checkUnnamed3329(core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o)
{ | 230 checkUnnamed3325(core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o)
{ |
| 231 unittest.expect(o, unittest.hasLength(2)); | 231 unittest.expect(o, unittest.hasLength(2)); |
| 232 checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]); | 232 checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]); |
| 233 checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]); | 233 checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]); |
| 234 } | 234 } |
| 235 | 235 |
| 236 buildUnnamed3330() { | 236 buildUnnamed3326() { |
| 237 var o = new core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotation>(
); | 237 var o = new core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotation>(
); |
| 238 o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation()); | 238 o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation()); |
| 239 o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation()); | 239 o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation()); |
| 240 return o; | 240 return o; |
| 241 } | 241 } |
| 242 | 242 |
| 243 checkUnnamed3330(core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotatio
n> o) { | 243 checkUnnamed3326(core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotatio
n> o) { |
| 244 unittest.expect(o, unittest.hasLength(2)); | 244 unittest.expect(o, unittest.hasLength(2)); |
| 245 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[0]); | 245 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[0]); |
| 246 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[1]); | 246 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[1]); |
| 247 } | 247 } |
| 248 | 248 |
| 249 buildUnnamed3331() { | 249 buildUnnamed3327() { |
| 250 var o = new core.List<api.GoogleCloudVideointelligenceV1VideoSegment>(); | 250 var o = new core.List<api.GoogleCloudVideointelligenceV1VideoSegment>(); |
| 251 o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); | 251 o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); |
| 252 o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); | 252 o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); |
| 253 return o; | 253 return o; |
| 254 } | 254 } |
| 255 | 255 |
| 256 checkUnnamed3331(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) { | 256 checkUnnamed3327(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) { |
| 257 unittest.expect(o, unittest.hasLength(2)); | 257 unittest.expect(o, unittest.hasLength(2)); |
| 258 checkGoogleCloudVideointelligenceV1VideoSegment(o[0]); | 258 checkGoogleCloudVideointelligenceV1VideoSegment(o[0]); |
| 259 checkGoogleCloudVideointelligenceV1VideoSegment(o[1]); | 259 checkGoogleCloudVideointelligenceV1VideoSegment(o[1]); |
| 260 } | 260 } |
| 261 | 261 |
| 262 core.int buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults = 0; | 262 core.int buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults = 0; |
| 263 buildGoogleCloudVideointelligenceV1VideoAnnotationResults() { | 263 buildGoogleCloudVideointelligenceV1VideoAnnotationResults() { |
| 264 var o = new api.GoogleCloudVideointelligenceV1VideoAnnotationResults(); | 264 var o = new api.GoogleCloudVideointelligenceV1VideoAnnotationResults(); |
| 265 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults++; | 265 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults++; |
| 266 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) { | 266 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) { |
| 267 o.error = buildGoogleRpcStatus(); | 267 o.error = buildGoogleRpcStatus(); |
| 268 o.inputUri = "foo"; | 268 o.inputUri = "foo"; |
| 269 o.labelAnnotations = buildUnnamed3329(); | 269 o.labelAnnotations = buildUnnamed3325(); |
| 270 o.safeSearchAnnotations = buildUnnamed3330(); | 270 o.safeSearchAnnotations = buildUnnamed3326(); |
| 271 o.shotAnnotations = buildUnnamed3331(); | 271 o.shotAnnotations = buildUnnamed3327(); |
| 272 } | 272 } |
| 273 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--; | 273 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--; |
| 274 return o; | 274 return o; |
| 275 } | 275 } |
| 276 | 276 |
| 277 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(api.GoogleCloudVideoin
telligenceV1VideoAnnotationResults o) { | 277 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(api.GoogleCloudVideoin
telligenceV1VideoAnnotationResults o) { |
| 278 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults++; | 278 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults++; |
| 279 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) { | 279 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) { |
| 280 checkGoogleRpcStatus(o.error); | 280 checkGoogleRpcStatus(o.error); |
| 281 unittest.expect(o.inputUri, unittest.equals('foo')); | 281 unittest.expect(o.inputUri, unittest.equals('foo')); |
| 282 checkUnnamed3329(o.labelAnnotations); | 282 checkUnnamed3325(o.labelAnnotations); |
| 283 checkUnnamed3330(o.safeSearchAnnotations); | 283 checkUnnamed3326(o.safeSearchAnnotations); |
| 284 checkUnnamed3331(o.shotAnnotations); | 284 checkUnnamed3327(o.shotAnnotations); |
| 285 } | 285 } |
| 286 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--; | 286 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--; |
| 287 } | 287 } |
| 288 | 288 |
| 289 core.int buildCounterGoogleCloudVideointelligenceV1VideoSegment = 0; | 289 core.int buildCounterGoogleCloudVideointelligenceV1VideoSegment = 0; |
| 290 buildGoogleCloudVideointelligenceV1VideoSegment() { | 290 buildGoogleCloudVideointelligenceV1VideoSegment() { |
| 291 var o = new api.GoogleCloudVideointelligenceV1VideoSegment(); | 291 var o = new api.GoogleCloudVideointelligenceV1VideoSegment(); |
| 292 buildCounterGoogleCloudVideointelligenceV1VideoSegment++; | 292 buildCounterGoogleCloudVideointelligenceV1VideoSegment++; |
| 293 if (buildCounterGoogleCloudVideointelligenceV1VideoSegment < 3) { | 293 if (buildCounterGoogleCloudVideointelligenceV1VideoSegment < 3) { |
| 294 o.endTime = "foo"; | 294 o.endTime = "foo"; |
| 295 o.startTime = "foo"; | 295 o.startTime = "foo"; |
| 296 } | 296 } |
| 297 buildCounterGoogleCloudVideointelligenceV1VideoSegment--; | 297 buildCounterGoogleCloudVideointelligenceV1VideoSegment--; |
| 298 return o; | 298 return o; |
| 299 } | 299 } |
| 300 | 300 |
| 301 checkGoogleCloudVideointelligenceV1VideoSegment(api.GoogleCloudVideointelligence
V1VideoSegment o) { | 301 checkGoogleCloudVideointelligenceV1VideoSegment(api.GoogleCloudVideointelligence
V1VideoSegment o) { |
| 302 buildCounterGoogleCloudVideointelligenceV1VideoSegment++; | 302 buildCounterGoogleCloudVideointelligenceV1VideoSegment++; |
| 303 if (buildCounterGoogleCloudVideointelligenceV1VideoSegment < 3) { | 303 if (buildCounterGoogleCloudVideointelligenceV1VideoSegment < 3) { |
| 304 unittest.expect(o.endTime, unittest.equals('foo')); | 304 unittest.expect(o.endTime, unittest.equals('foo')); |
| 305 unittest.expect(o.startTime, unittest.equals('foo')); | 305 unittest.expect(o.startTime, unittest.equals('foo')); |
| 306 } | 306 } |
| 307 buildCounterGoogleCloudVideointelligenceV1VideoSegment--; | 307 buildCounterGoogleCloudVideointelligenceV1VideoSegment--; |
| 308 } | 308 } |
| 309 | 309 |
| 310 buildUnnamed3332() { | 310 buildUnnamed3328() { |
| 311 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationPr
ogress>(); | 311 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationPr
ogress>(); |
| 312 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress()); | 312 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress()); |
| 313 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress()); | 313 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress()); |
| 314 return o; | 314 return o; |
| 315 } | 315 } |
| 316 | 316 |
| 317 checkUnnamed3332(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotatio
nProgress> o) { | 317 checkUnnamed3328(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotatio
nProgress> o) { |
| 318 unittest.expect(o, unittest.hasLength(2)); | 318 unittest.expect(o, unittest.hasLength(2)); |
| 319 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[0]); | 319 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[0]); |
| 320 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[1]); | 320 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[1]); |
| 321 } | 321 } |
| 322 | 322 |
| 323 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress =
0; | 323 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress =
0; |
| 324 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress() { | 324 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress() { |
| 325 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(); | 325 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(); |
| 326 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++; | 326 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++; |
| 327 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3)
{ | 327 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3)
{ |
| 328 o.annotationProgress = buildUnnamed3332(); | 328 o.annotationProgress = buildUnnamed3328(); |
| 329 } | 329 } |
| 330 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; | 330 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; |
| 331 return o; | 331 return o; |
| 332 } | 332 } |
| 333 | 333 |
| 334 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(api.GoogleCloudVid
eointelligenceV1beta1AnnotateVideoProgress o) { | 334 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(api.GoogleCloudVid
eointelligenceV1beta1AnnotateVideoProgress o) { |
| 335 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++; | 335 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++; |
| 336 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3)
{ | 336 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3)
{ |
| 337 checkUnnamed3332(o.annotationProgress); | 337 checkUnnamed3328(o.annotationProgress); |
| 338 } | 338 } |
| 339 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; | 339 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; |
| 340 } | 340 } |
| 341 | 341 |
| 342 buildUnnamed3333() { | 342 buildUnnamed3329() { |
| 343 var o = new core.List<core.String>(); | 343 var o = new core.List<core.String>(); |
| 344 o.add("foo"); | 344 o.add("foo"); |
| 345 o.add("foo"); | 345 o.add("foo"); |
| 346 return o; | 346 return o; |
| 347 } | 347 } |
| 348 | 348 |
| 349 checkUnnamed3333(core.List<core.String> o) { | 349 checkUnnamed3329(core.List<core.String> o) { |
| 350 unittest.expect(o, unittest.hasLength(2)); | 350 unittest.expect(o, unittest.hasLength(2)); |
| 351 unittest.expect(o[0], unittest.equals('foo')); | 351 unittest.expect(o[0], unittest.equals('foo')); |
| 352 unittest.expect(o[1], unittest.equals('foo')); | 352 unittest.expect(o[1], unittest.equals('foo')); |
| 353 } | 353 } |
| 354 | 354 |
| 355 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest = 0
; | 355 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest = 0
; |
| 356 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest() { | 356 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest() { |
| 357 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(); | 357 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(); |
| 358 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++; | 358 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++; |
| 359 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) { | 359 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) { |
| 360 o.features = buildUnnamed3333(); | 360 o.features = buildUnnamed3329(); |
| 361 o.inputContent = "foo"; | 361 o.inputContent = "foo"; |
| 362 o.inputUri = "foo"; | 362 o.inputUri = "foo"; |
| 363 o.locationId = "foo"; | 363 o.locationId = "foo"; |
| 364 o.outputUri = "foo"; | 364 o.outputUri = "foo"; |
| 365 o.videoContext = buildGoogleCloudVideointelligenceV1beta1VideoContext(); | 365 o.videoContext = buildGoogleCloudVideointelligenceV1beta1VideoContext(); |
| 366 } | 366 } |
| 367 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--; | 367 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--; |
| 368 return o; | 368 return o; |
| 369 } | 369 } |
| 370 | 370 |
| 371 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(api.GoogleCloudVide
ointelligenceV1beta1AnnotateVideoRequest o) { | 371 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(api.GoogleCloudVide
ointelligenceV1beta1AnnotateVideoRequest o) { |
| 372 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++; | 372 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++; |
| 373 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) { | 373 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) { |
| 374 checkUnnamed3333(o.features); | 374 checkUnnamed3329(o.features); |
| 375 unittest.expect(o.inputContent, unittest.equals('foo')); | 375 unittest.expect(o.inputContent, unittest.equals('foo')); |
| 376 unittest.expect(o.inputUri, unittest.equals('foo')); | 376 unittest.expect(o.inputUri, unittest.equals('foo')); |
| 377 unittest.expect(o.locationId, unittest.equals('foo')); | 377 unittest.expect(o.locationId, unittest.equals('foo')); |
| 378 unittest.expect(o.outputUri, unittest.equals('foo')); | 378 unittest.expect(o.outputUri, unittest.equals('foo')); |
| 379 checkGoogleCloudVideointelligenceV1beta1VideoContext(o.videoContext); | 379 checkGoogleCloudVideointelligenceV1beta1VideoContext(o.videoContext); |
| 380 } | 380 } |
| 381 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--; | 381 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--; |
| 382 } | 382 } |
| 383 | 383 |
| 384 buildUnnamed3334() { | 384 buildUnnamed3330() { |
| 385 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationRe
sults>(); | 385 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationRe
sults>(); |
| 386 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults()); | 386 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults()); |
| 387 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults()); | 387 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults()); |
| 388 return o; | 388 return o; |
| 389 } | 389 } |
| 390 | 390 |
| 391 checkUnnamed3334(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotatio
nResults> o) { | 391 checkUnnamed3330(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotatio
nResults> o) { |
| 392 unittest.expect(o, unittest.hasLength(2)); | 392 unittest.expect(o, unittest.hasLength(2)); |
| 393 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[0]); | 393 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[0]); |
| 394 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[1]); | 394 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[1]); |
| 395 } | 395 } |
| 396 | 396 |
| 397 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse =
0; | 397 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse =
0; |
| 398 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse() { | 398 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse() { |
| 399 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(); | 399 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(); |
| 400 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++; | 400 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++; |
| 401 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3)
{ | 401 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3)
{ |
| 402 o.annotationResults = buildUnnamed3334(); | 402 o.annotationResults = buildUnnamed3330(); |
| 403 } | 403 } |
| 404 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; | 404 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; |
| 405 return o; | 405 return o; |
| 406 } | 406 } |
| 407 | 407 |
| 408 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(api.GoogleCloudVid
eointelligenceV1beta1AnnotateVideoResponse o) { | 408 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(api.GoogleCloudVid
eointelligenceV1beta1AnnotateVideoResponse o) { |
| 409 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++; | 409 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++; |
| 410 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3)
{ | 410 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3)
{ |
| 411 checkUnnamed3334(o.annotationResults); | 411 checkUnnamed3330(o.annotationResults); |
| 412 } | 412 } |
| 413 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; | 413 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; |
| 414 } | 414 } |
| 415 | 415 |
| 416 buildUnnamed3335() { | 416 buildUnnamed3331() { |
| 417 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation>(); | 417 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation>(); |
| 418 o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation()); | 418 o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation()); |
| 419 o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation()); | 419 o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation()); |
| 420 return o; | 420 return o; |
| 421 } | 421 } |
| 422 | 422 |
| 423 checkUnnamed3335(core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation>
o) { | 423 checkUnnamed3331(core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation>
o) { |
| 424 unittest.expect(o, unittest.hasLength(2)); | 424 unittest.expect(o, unittest.hasLength(2)); |
| 425 checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[0]); | 425 checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[0]); |
| 426 checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[1]); | 426 checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[1]); |
| 427 } | 427 } |
| 428 | 428 |
| 429 core.int buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation = 0; | 429 core.int buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation = 0; |
| 430 buildGoogleCloudVideointelligenceV1beta1LabelAnnotation() { | 430 buildGoogleCloudVideointelligenceV1beta1LabelAnnotation() { |
| 431 var o = new api.GoogleCloudVideointelligenceV1beta1LabelAnnotation(); | 431 var o = new api.GoogleCloudVideointelligenceV1beta1LabelAnnotation(); |
| 432 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation++; | 432 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation++; |
| 433 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) { | 433 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) { |
| 434 o.description = "foo"; | 434 o.description = "foo"; |
| 435 o.languageCode = "foo"; | 435 o.languageCode = "foo"; |
| 436 o.locations = buildUnnamed3335(); | 436 o.locations = buildUnnamed3331(); |
| 437 } | 437 } |
| 438 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--; | 438 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--; |
| 439 return o; | 439 return o; |
| 440 } | 440 } |
| 441 | 441 |
| 442 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(api.GoogleCloudVideointe
lligenceV1beta1LabelAnnotation o) { | 442 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(api.GoogleCloudVideointe
lligenceV1beta1LabelAnnotation o) { |
| 443 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation++; | 443 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation++; |
| 444 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) { | 444 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) { |
| 445 unittest.expect(o.description, unittest.equals('foo')); | 445 unittest.expect(o.description, unittest.equals('foo')); |
| 446 unittest.expect(o.languageCode, unittest.equals('foo')); | 446 unittest.expect(o.languageCode, unittest.equals('foo')); |
| 447 checkUnnamed3335(o.locations); | 447 checkUnnamed3331(o.locations); |
| 448 } | 448 } |
| 449 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--; | 449 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--; |
| 450 } | 450 } |
| 451 | 451 |
| 452 core.int buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation = 0; | 452 core.int buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation = 0; |
| 453 buildGoogleCloudVideointelligenceV1beta1LabelLocation() { | 453 buildGoogleCloudVideointelligenceV1beta1LabelLocation() { |
| 454 var o = new api.GoogleCloudVideointelligenceV1beta1LabelLocation(); | 454 var o = new api.GoogleCloudVideointelligenceV1beta1LabelLocation(); |
| 455 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation++; | 455 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation++; |
| 456 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation < 3) { | 456 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation < 3) { |
| 457 o.confidence = 42.0; | 457 o.confidence = 42.0; |
| 458 o.level = "foo"; | 458 o.level = "foo"; |
| 459 o.segment = buildGoogleCloudVideointelligenceV1beta1VideoSegment(); | 459 o.segment = buildGoogleCloudVideointelligenceV1beta1VideoSegment(); |
| 460 } | 460 } |
| 461 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation--; | 461 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation--; |
| 462 return o; | 462 return o; |
| 463 } | 463 } |
| 464 | 464 |
| 465 checkGoogleCloudVideointelligenceV1beta1LabelLocation(api.GoogleCloudVideointell
igenceV1beta1LabelLocation o) { | 465 checkGoogleCloudVideointelligenceV1beta1LabelLocation(api.GoogleCloudVideointell
igenceV1beta1LabelLocation o) { |
| 466 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation++; | 466 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation++; |
| 467 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation < 3) { | 467 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation < 3) { |
| 468 unittest.expect(o.confidence, unittest.equals(42.0)); | 468 unittest.expect(o.confidence, unittest.equals(42.0)); |
| 469 unittest.expect(o.level, unittest.equals('foo')); | 469 unittest.expect(o.level, unittest.equals('foo')); |
| 470 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o.segment); | 470 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o.segment); |
| 471 } | 471 } |
| 472 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation--; | 472 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation--; |
| 473 } | 473 } |
| 474 | 474 |
| 475 core.int buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation = 0
; |
| 476 buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation() { |
| 477 var o = new api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(); |
| 478 buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation++; |
| 479 if (buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation < 3) { |
| 480 o.adult = "foo"; |
| 481 o.medical = "foo"; |
| 482 o.racy = "foo"; |
| 483 o.spoof = "foo"; |
| 484 o.timeOffset = "foo"; |
| 485 o.violent = "foo"; |
| 486 } |
| 487 buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation--; |
| 488 return o; |
| 489 } |
| 490 |
| 491 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(api.GoogleCloudVide
ointelligenceV1beta1SafeSearchAnnotation o) { |
| 492 buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation++; |
| 493 if (buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation < 3) { |
| 494 unittest.expect(o.adult, unittest.equals('foo')); |
| 495 unittest.expect(o.medical, unittest.equals('foo')); |
| 496 unittest.expect(o.racy, unittest.equals('foo')); |
| 497 unittest.expect(o.spoof, unittest.equals('foo')); |
| 498 unittest.expect(o.timeOffset, unittest.equals('foo')); |
| 499 unittest.expect(o.violent, unittest.equals('foo')); |
| 500 } |
| 501 buildCounterGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation--; |
| 502 } |
| 503 |
| 475 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress
= 0; | 504 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress
= 0; |
| 476 buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress() { | 505 buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress() { |
| 477 var o = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(); | 506 var o = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(); |
| 478 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress++; | 507 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress++; |
| 479 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress < 3
) { | 508 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress < 3
) { |
| 480 o.inputUri = "foo"; | 509 o.inputUri = "foo"; |
| 481 o.progressPercent = 42; | 510 o.progressPercent = 42; |
| 482 o.startTime = "foo"; | 511 o.startTime = "foo"; |
| 483 o.updateTime = "foo"; | 512 o.updateTime = "foo"; |
| 484 } | 513 } |
| 485 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--; | 514 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--; |
| 486 return o; | 515 return o; |
| 487 } | 516 } |
| 488 | 517 |
| 489 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(api.GoogleCloudV
ideointelligenceV1beta1VideoAnnotationProgress o) { | 518 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(api.GoogleCloudV
ideointelligenceV1beta1VideoAnnotationProgress o) { |
| 490 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress++; | 519 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress++; |
| 491 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress < 3
) { | 520 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress < 3
) { |
| 492 unittest.expect(o.inputUri, unittest.equals('foo')); | 521 unittest.expect(o.inputUri, unittest.equals('foo')); |
| 493 unittest.expect(o.progressPercent, unittest.equals(42)); | 522 unittest.expect(o.progressPercent, unittest.equals(42)); |
| 494 unittest.expect(o.startTime, unittest.equals('foo')); | 523 unittest.expect(o.startTime, unittest.equals('foo')); |
| 495 unittest.expect(o.updateTime, unittest.equals('foo')); | 524 unittest.expect(o.updateTime, unittest.equals('foo')); |
| 496 } | 525 } |
| 497 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--; | 526 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--; |
| 498 } | 527 } |
| 499 | 528 |
| 500 buildUnnamed3336() { | 529 buildUnnamed3332() { |
| 501 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation>(
); | 530 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation>(
); |
| 502 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); | 531 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); |
| 503 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); | 532 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); |
| 504 return o; | 533 return o; |
| 505 } | 534 } |
| 506 | 535 |
| 507 checkUnnamed3336(core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotatio
n> o) { | 536 checkUnnamed3332(core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotatio
n> o) { |
| 508 unittest.expect(o, unittest.hasLength(2)); | 537 unittest.expect(o, unittest.hasLength(2)); |
| 509 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[0]); | 538 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[0]); |
| 510 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[1]); | 539 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[1]); |
| 511 } | 540 } |
| 512 | 541 |
| 513 buildUnnamed3337() { | 542 buildUnnamed3333() { |
| 543 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotat
ion>(); |
| 544 o.add(buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation()); |
| 545 o.add(buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation()); |
| 546 return o; |
| 547 } |
| 548 |
| 549 checkUnnamed3333(core.List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnno
tation> o) { |
| 550 unittest.expect(o, unittest.hasLength(2)); |
| 551 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(o[0]); |
| 552 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(o[1]); |
| 553 } |
| 554 |
| 555 buildUnnamed3334() { |
| 514 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); | 556 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); |
| 515 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); | 557 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); |
| 516 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); | 558 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); |
| 517 return o; | 559 return o; |
| 518 } | 560 } |
| 519 | 561 |
| 520 checkUnnamed3337(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>
o) { | 562 checkUnnamed3334(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>
o) { |
| 521 unittest.expect(o, unittest.hasLength(2)); | 563 unittest.expect(o, unittest.hasLength(2)); |
| 522 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); | 564 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); |
| 523 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); | 565 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); |
| 524 } | 566 } |
| 525 | 567 |
| 526 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults =
0; | 568 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults =
0; |
| 527 buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults() { | 569 buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults() { |
| 528 var o = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults(); | 570 var o = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults(); |
| 529 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++; | 571 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++; |
| 530 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3)
{ | 572 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3)
{ |
| 531 o.error = buildGoogleRpcStatus(); | 573 o.error = buildGoogleRpcStatus(); |
| 532 o.inputUri = "foo"; | 574 o.inputUri = "foo"; |
| 533 o.labelAnnotations = buildUnnamed3336(); | 575 o.labelAnnotations = buildUnnamed3332(); |
| 534 o.shotAnnotations = buildUnnamed3337(); | 576 o.safeSearchAnnotations = buildUnnamed3333(); |
| 577 o.shotAnnotations = buildUnnamed3334(); |
| 535 } | 578 } |
| 536 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; | 579 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; |
| 537 return o; | 580 return o; |
| 538 } | 581 } |
| 539 | 582 |
| 540 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(api.GoogleCloudVi
deointelligenceV1beta1VideoAnnotationResults o) { | 583 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(api.GoogleCloudVi
deointelligenceV1beta1VideoAnnotationResults o) { |
| 541 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++; | 584 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++; |
| 542 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3)
{ | 585 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3)
{ |
| 543 checkGoogleRpcStatus(o.error); | 586 checkGoogleRpcStatus(o.error); |
| 544 unittest.expect(o.inputUri, unittest.equals('foo')); | 587 unittest.expect(o.inputUri, unittest.equals('foo')); |
| 545 checkUnnamed3336(o.labelAnnotations); | 588 checkUnnamed3332(o.labelAnnotations); |
| 546 checkUnnamed3337(o.shotAnnotations); | 589 checkUnnamed3333(o.safeSearchAnnotations); |
| 590 checkUnnamed3334(o.shotAnnotations); |
| 547 } | 591 } |
| 548 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; | 592 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; |
| 549 } | 593 } |
| 550 | 594 |
| 551 buildUnnamed3338() { | 595 buildUnnamed3335() { |
| 552 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); | 596 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); |
| 553 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); | 597 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); |
| 554 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); | 598 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); |
| 555 return o; | 599 return o; |
| 556 } | 600 } |
| 557 | 601 |
| 558 checkUnnamed3338(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>
o) { | 602 checkUnnamed3335(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>
o) { |
| 559 unittest.expect(o, unittest.hasLength(2)); | 603 unittest.expect(o, unittest.hasLength(2)); |
| 560 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); | 604 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); |
| 561 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); | 605 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); |
| 562 } | 606 } |
| 563 | 607 |
| 564 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoContext = 0; | 608 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoContext = 0; |
| 565 buildGoogleCloudVideointelligenceV1beta1VideoContext() { | 609 buildGoogleCloudVideointelligenceV1beta1VideoContext() { |
| 566 var o = new api.GoogleCloudVideointelligenceV1beta1VideoContext(); | 610 var o = new api.GoogleCloudVideointelligenceV1beta1VideoContext(); |
| 567 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++; | 611 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++; |
| 568 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { | 612 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { |
| 569 o.labelDetectionMode = "foo"; | 613 o.labelDetectionMode = "foo"; |
| 570 o.labelDetectionModel = "foo"; | 614 o.labelDetectionModel = "foo"; |
| 571 o.segments = buildUnnamed3338(); | 615 o.safeSearchDetectionModel = "foo"; |
| 616 o.segments = buildUnnamed3335(); |
| 572 o.shotChangeDetectionModel = "foo"; | 617 o.shotChangeDetectionModel = "foo"; |
| 618 o.stationaryCamera = true; |
| 573 } | 619 } |
| 574 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; | 620 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; |
| 575 return o; | 621 return o; |
| 576 } | 622 } |
| 577 | 623 |
| 578 checkGoogleCloudVideointelligenceV1beta1VideoContext(api.GoogleCloudVideointelli
genceV1beta1VideoContext o) { | 624 checkGoogleCloudVideointelligenceV1beta1VideoContext(api.GoogleCloudVideointelli
genceV1beta1VideoContext o) { |
| 579 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++; | 625 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++; |
| 580 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { | 626 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { |
| 581 unittest.expect(o.labelDetectionMode, unittest.equals('foo')); | 627 unittest.expect(o.labelDetectionMode, unittest.equals('foo')); |
| 582 unittest.expect(o.labelDetectionModel, unittest.equals('foo')); | 628 unittest.expect(o.labelDetectionModel, unittest.equals('foo')); |
| 583 checkUnnamed3338(o.segments); | 629 unittest.expect(o.safeSearchDetectionModel, unittest.equals('foo')); |
| 630 checkUnnamed3335(o.segments); |
| 584 unittest.expect(o.shotChangeDetectionModel, unittest.equals('foo')); | 631 unittest.expect(o.shotChangeDetectionModel, unittest.equals('foo')); |
| 632 unittest.expect(o.stationaryCamera, unittest.isTrue); |
| 585 } | 633 } |
| 586 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; | 634 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; |
| 587 } | 635 } |
| 588 | 636 |
| 589 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment = 0; | 637 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment = 0; |
| 590 buildGoogleCloudVideointelligenceV1beta1VideoSegment() { | 638 buildGoogleCloudVideointelligenceV1beta1VideoSegment() { |
| 591 var o = new api.GoogleCloudVideointelligenceV1beta1VideoSegment(); | 639 var o = new api.GoogleCloudVideointelligenceV1beta1VideoSegment(); |
| 592 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++; | 640 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++; |
| 593 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) { | 641 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) { |
| 594 o.endTimeOffset = "foo"; | 642 o.endTimeOffset = "foo"; |
| 595 o.startTimeOffset = "foo"; | 643 o.startTimeOffset = "foo"; |
| 596 } | 644 } |
| 597 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--; | 645 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--; |
| 598 return o; | 646 return o; |
| 599 } | 647 } |
| 600 | 648 |
| 601 checkGoogleCloudVideointelligenceV1beta1VideoSegment(api.GoogleCloudVideointelli
genceV1beta1VideoSegment o) { | 649 checkGoogleCloudVideointelligenceV1beta1VideoSegment(api.GoogleCloudVideointelli
genceV1beta1VideoSegment o) { |
| 602 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++; | 650 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++; |
| 603 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) { | 651 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) { |
| 604 unittest.expect(o.endTimeOffset, unittest.equals('foo')); | 652 unittest.expect(o.endTimeOffset, unittest.equals('foo')); |
| 605 unittest.expect(o.startTimeOffset, unittest.equals('foo')); | 653 unittest.expect(o.startTimeOffset, unittest.equals('foo')); |
| 606 } | 654 } |
| 607 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--; | 655 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--; |
| 608 } | 656 } |
| 609 | 657 |
| 610 buildUnnamed3339() { | 658 buildUnnamed3336() { |
| 611 var o = new core.Map<core.String, core.Object>(); | 659 var o = new core.Map<core.String, core.Object>(); |
| 612 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 660 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 613 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 661 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 614 return o; | 662 return o; |
| 615 } | 663 } |
| 616 | 664 |
| 617 checkUnnamed3339(core.Map<core.String, core.Object> o) { | 665 checkUnnamed3336(core.Map<core.String, core.Object> o) { |
| 618 unittest.expect(o, unittest.hasLength(2)); | 666 unittest.expect(o, unittest.hasLength(2)); |
| 619 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 667 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
| 620 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 668 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
| 621 } | 669 } |
| 622 | 670 |
| 623 buildUnnamed3340() { | 671 buildUnnamed3337() { |
| 624 var o = new core.Map<core.String, core.Object>(); | 672 var o = new core.Map<core.String, core.Object>(); |
| 625 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 673 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 626 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 674 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 627 return o; | 675 return o; |
| 628 } | 676 } |
| 629 | 677 |
| 630 checkUnnamed3340(core.Map<core.String, core.Object> o) { | 678 checkUnnamed3337(core.Map<core.String, core.Object> o) { |
| 631 unittest.expect(o, unittest.hasLength(2)); | 679 unittest.expect(o, unittest.hasLength(2)); |
| 632 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 680 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
| 633 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 681 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
| 634 } | 682 } |
| 635 | 683 |
| 636 core.int buildCounterGoogleLongrunningOperation = 0; | 684 core.int buildCounterGoogleLongrunningOperation = 0; |
| 637 buildGoogleLongrunningOperation() { | 685 buildGoogleLongrunningOperation() { |
| 638 var o = new api.GoogleLongrunningOperation(); | 686 var o = new api.GoogleLongrunningOperation(); |
| 639 buildCounterGoogleLongrunningOperation++; | 687 buildCounterGoogleLongrunningOperation++; |
| 640 if (buildCounterGoogleLongrunningOperation < 3) { | 688 if (buildCounterGoogleLongrunningOperation < 3) { |
| 641 o.done = true; | 689 o.done = true; |
| 642 o.error = buildGoogleRpcStatus(); | 690 o.error = buildGoogleRpcStatus(); |
| 643 o.metadata = buildUnnamed3339(); | 691 o.metadata = buildUnnamed3336(); |
| 644 o.name = "foo"; | 692 o.name = "foo"; |
| 645 o.response = buildUnnamed3340(); | 693 o.response = buildUnnamed3337(); |
| 646 } | 694 } |
| 647 buildCounterGoogleLongrunningOperation--; | 695 buildCounterGoogleLongrunningOperation--; |
| 648 return o; | 696 return o; |
| 649 } | 697 } |
| 650 | 698 |
| 651 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { | 699 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { |
| 652 buildCounterGoogleLongrunningOperation++; | 700 buildCounterGoogleLongrunningOperation++; |
| 653 if (buildCounterGoogleLongrunningOperation < 3) { | 701 if (buildCounterGoogleLongrunningOperation < 3) { |
| 654 unittest.expect(o.done, unittest.isTrue); | 702 unittest.expect(o.done, unittest.isTrue); |
| 655 checkGoogleRpcStatus(o.error); | 703 checkGoogleRpcStatus(o.error); |
| 656 checkUnnamed3339(o.metadata); | 704 checkUnnamed3336(o.metadata); |
| 657 unittest.expect(o.name, unittest.equals('foo')); | 705 unittest.expect(o.name, unittest.equals('foo')); |
| 658 checkUnnamed3340(o.response); | 706 checkUnnamed3337(o.response); |
| 659 } | 707 } |
| 660 buildCounterGoogleLongrunningOperation--; | 708 buildCounterGoogleLongrunningOperation--; |
| 661 } | 709 } |
| 662 | 710 |
| 663 buildUnnamed3341() { | 711 buildUnnamed3338() { |
| 664 var o = new core.Map<core.String, core.Object>(); | 712 var o = new core.Map<core.String, core.Object>(); |
| 665 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 713 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 666 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 714 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 667 return o; | 715 return o; |
| 668 } | 716 } |
| 669 | 717 |
| 670 checkUnnamed3341(core.Map<core.String, core.Object> o) { | 718 checkUnnamed3338(core.Map<core.String, core.Object> o) { |
| 671 unittest.expect(o, unittest.hasLength(2)); | 719 unittest.expect(o, unittest.hasLength(2)); |
| 672 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 720 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
| 673 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 721 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
| 674 } | 722 } |
| 675 | 723 |
| 676 buildUnnamed3342() { | 724 buildUnnamed3339() { |
| 677 var o = new core.List<core.Map<core.String, core.Object>>(); | 725 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 678 o.add(buildUnnamed3341()); | 726 o.add(buildUnnamed3338()); |
| 679 o.add(buildUnnamed3341()); | 727 o.add(buildUnnamed3338()); |
| 680 return o; | 728 return o; |
| 681 } | 729 } |
| 682 | 730 |
| 683 checkUnnamed3342(core.List<core.Map<core.String, core.Object>> o) { | 731 checkUnnamed3339(core.List<core.Map<core.String, core.Object>> o) { |
| 684 unittest.expect(o, unittest.hasLength(2)); | 732 unittest.expect(o, unittest.hasLength(2)); |
| 685 checkUnnamed3341(o[0]); | 733 checkUnnamed3338(o[0]); |
| 686 checkUnnamed3341(o[1]); | 734 checkUnnamed3338(o[1]); |
| 687 } | 735 } |
| 688 | 736 |
| 689 core.int buildCounterGoogleRpcStatus = 0; | 737 core.int buildCounterGoogleRpcStatus = 0; |
| 690 buildGoogleRpcStatus() { | 738 buildGoogleRpcStatus() { |
| 691 var o = new api.GoogleRpcStatus(); | 739 var o = new api.GoogleRpcStatus(); |
| 692 buildCounterGoogleRpcStatus++; | 740 buildCounterGoogleRpcStatus++; |
| 693 if (buildCounterGoogleRpcStatus < 3) { | 741 if (buildCounterGoogleRpcStatus < 3) { |
| 694 o.code = 42; | 742 o.code = 42; |
| 695 o.details = buildUnnamed3342(); | 743 o.details = buildUnnamed3339(); |
| 696 o.message = "foo"; | 744 o.message = "foo"; |
| 697 } | 745 } |
| 698 buildCounterGoogleRpcStatus--; | 746 buildCounterGoogleRpcStatus--; |
| 699 return o; | 747 return o; |
| 700 } | 748 } |
| 701 | 749 |
| 702 checkGoogleRpcStatus(api.GoogleRpcStatus o) { | 750 checkGoogleRpcStatus(api.GoogleRpcStatus o) { |
| 703 buildCounterGoogleRpcStatus++; | 751 buildCounterGoogleRpcStatus++; |
| 704 if (buildCounterGoogleRpcStatus < 3) { | 752 if (buildCounterGoogleRpcStatus < 3) { |
| 705 unittest.expect(o.code, unittest.equals(42)); | 753 unittest.expect(o.code, unittest.equals(42)); |
| 706 checkUnnamed3342(o.details); | 754 checkUnnamed3339(o.details); |
| 707 unittest.expect(o.message, unittest.equals('foo')); | 755 unittest.expect(o.message, unittest.equals('foo')); |
| 708 } | 756 } |
| 709 buildCounterGoogleRpcStatus--; | 757 buildCounterGoogleRpcStatus--; |
| 710 } | 758 } |
| 711 | 759 |
| 712 | 760 |
| 713 main() { | 761 main() { |
| 714 unittest.group("obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoProgress
", () { | 762 unittest.group("obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoProgress
", () { |
| 715 unittest.test("to-json--from-json", () { | 763 unittest.test("to-json--from-json", () { |
| 716 var o = buildGoogleCloudVideointelligenceV1AnnotateVideoProgress(); | 764 var o = buildGoogleCloudVideointelligenceV1AnnotateVideoProgress(); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 | 869 |
| 822 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1LabelLocation",
() { | 870 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1LabelLocation",
() { |
| 823 unittest.test("to-json--from-json", () { | 871 unittest.test("to-json--from-json", () { |
| 824 var o = buildGoogleCloudVideointelligenceV1beta1LabelLocation(); | 872 var o = buildGoogleCloudVideointelligenceV1beta1LabelLocation(); |
| 825 var od = new api.GoogleCloudVideointelligenceV1beta1LabelLocation.fromJson
(o.toJson()); | 873 var od = new api.GoogleCloudVideointelligenceV1beta1LabelLocation.fromJson
(o.toJson()); |
| 826 checkGoogleCloudVideointelligenceV1beta1LabelLocation(od); | 874 checkGoogleCloudVideointelligenceV1beta1LabelLocation(od); |
| 827 }); | 875 }); |
| 828 }); | 876 }); |
| 829 | 877 |
| 830 | 878 |
| 879 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1SafeSearchAnnota
tion", () { |
| 880 unittest.test("to-json--from-json", () { |
| 881 var o = buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(); |
| 882 var od = new api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation.f
romJson(o.toJson()); |
| 883 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(od); |
| 884 }); |
| 885 }); |
| 886 |
| 887 |
| 831 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoAnnotationP
rogress", () { | 888 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoAnnotationP
rogress", () { |
| 832 unittest.test("to-json--from-json", () { | 889 unittest.test("to-json--from-json", () { |
| 833 var o = buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(); | 890 var o = buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(); |
| 834 var od = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgres
s.fromJson(o.toJson()); | 891 var od = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationProgres
s.fromJson(o.toJson()); |
| 835 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(od); | 892 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(od); |
| 836 }); | 893 }); |
| 837 }); | 894 }); |
| 838 | 895 |
| 839 | 896 |
| 840 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoAnnotationR
esults", () { | 897 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1VideoAnnotationR
esults", () { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 res.annotate(arg_request).then(unittest.expectAsync1(((api.GoogleLongrunni
ngOperation response) { | 985 res.annotate(arg_request).then(unittest.expectAsync1(((api.GoogleLongrunni
ngOperation response) { |
| 929 checkGoogleLongrunningOperation(response); | 986 checkGoogleLongrunningOperation(response); |
| 930 }))); | 987 }))); |
| 931 }); | 988 }); |
| 932 | 989 |
| 933 }); | 990 }); |
| 934 | 991 |
| 935 | 992 |
| 936 } | 993 } |
| 937 | 994 |
| OLD | NEW |