| 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 buildUnnamed3322() { | 54 buildUnnamed3354() { |
| 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 checkUnnamed3322(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProg
ress> o) { | 61 checkUnnamed3354(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 = buildUnnamed3322(); | 72 o.annotationProgress = buildUnnamed3354(); |
| 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 checkUnnamed3322(o.annotationProgress); | 81 checkUnnamed3354(o.annotationProgress); |
| 82 } | 82 } |
| 83 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--; | 83 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--; |
| 84 } | 84 } |
| 85 | 85 |
| 86 buildUnnamed3323() { | 86 buildUnnamed3355() { |
| 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 checkUnnamed3323(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResu
lts> o) { | 93 checkUnnamed3355(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 = buildUnnamed3323(); | 104 o.annotationResults = buildUnnamed3355(); |
| 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 checkUnnamed3323(o.annotationResults); | 113 checkUnnamed3355(o.annotationResults); |
| 114 } | 114 } |
| 115 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--; | 115 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--; |
| 116 } | 116 } |
| 117 | 117 |
| 118 buildUnnamed3324() { | 118 buildUnnamed3356() { |
| 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 checkUnnamed3324(core.List<api.GoogleCloudVideointelligenceV1LabelLocation> o) { | 125 checkUnnamed3356(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 = buildUnnamed3324(); | 138 o.locations = buildUnnamed3356(); |
| 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 checkUnnamed3324(o.locations); | 149 checkUnnamed3356(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 buildUnnamed3325() { | 223 buildUnnamed3357() { |
| 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 checkUnnamed3325(core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o)
{ | 230 checkUnnamed3357(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 buildUnnamed3326() { | 236 buildUnnamed3358() { |
| 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 checkUnnamed3326(core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotatio
n> o) { | 243 checkUnnamed3358(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 buildUnnamed3327() { | 249 buildUnnamed3359() { |
| 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 checkUnnamed3327(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) { | 256 checkUnnamed3359(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 = buildUnnamed3325(); | 269 o.labelAnnotations = buildUnnamed3357(); |
| 270 o.safeSearchAnnotations = buildUnnamed3326(); | 270 o.safeSearchAnnotations = buildUnnamed3358(); |
| 271 o.shotAnnotations = buildUnnamed3327(); | 271 o.shotAnnotations = buildUnnamed3359(); |
| 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 checkUnnamed3325(o.labelAnnotations); | 282 checkUnnamed3357(o.labelAnnotations); |
| 283 checkUnnamed3326(o.safeSearchAnnotations); | 283 checkUnnamed3358(o.safeSearchAnnotations); |
| 284 checkUnnamed3327(o.shotAnnotations); | 284 checkUnnamed3359(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 buildUnnamed3328() { | 310 buildUnnamed3360() { |
| 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 checkUnnamed3328(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotatio
nProgress> o) { | 317 checkUnnamed3360(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 = buildUnnamed3328(); | 328 o.annotationProgress = buildUnnamed3360(); |
| 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 checkUnnamed3328(o.annotationProgress); | 337 checkUnnamed3360(o.annotationProgress); |
| 338 } | 338 } |
| 339 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; | 339 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; |
| 340 } | 340 } |
| 341 | 341 |
| 342 buildUnnamed3329() { | 342 buildUnnamed3361() { |
| 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 checkUnnamed3329(core.List<core.String> o) { | 349 checkUnnamed3361(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 = buildUnnamed3329(); | 360 o.features = buildUnnamed3361(); |
| 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 checkUnnamed3329(o.features); | 374 checkUnnamed3361(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 buildUnnamed3330() { | 384 buildUnnamed3362() { |
| 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 checkUnnamed3330(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotatio
nResults> o) { | 391 checkUnnamed3362(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 = buildUnnamed3330(); | 402 o.annotationResults = buildUnnamed3362(); |
| 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 checkUnnamed3330(o.annotationResults); | 411 checkUnnamed3362(o.annotationResults); |
| 412 } | 412 } |
| 413 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; | 413 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; |
| 414 } | 414 } |
| 415 | 415 |
| 416 buildUnnamed3331() { | 416 buildUnnamed3363() { |
| 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 checkUnnamed3331(core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation>
o) { | 423 checkUnnamed3363(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 = buildUnnamed3331(); | 436 o.locations = buildUnnamed3363(); |
| 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 checkUnnamed3331(o.locations); | 447 checkUnnamed3363(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; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress++; | 519 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress++; |
| 520 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress < 3
) { | 520 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress < 3
) { |
| 521 unittest.expect(o.inputUri, unittest.equals('foo')); | 521 unittest.expect(o.inputUri, unittest.equals('foo')); |
| 522 unittest.expect(o.progressPercent, unittest.equals(42)); | 522 unittest.expect(o.progressPercent, unittest.equals(42)); |
| 523 unittest.expect(o.startTime, unittest.equals('foo')); | 523 unittest.expect(o.startTime, unittest.equals('foo')); |
| 524 unittest.expect(o.updateTime, unittest.equals('foo')); | 524 unittest.expect(o.updateTime, unittest.equals('foo')); |
| 525 } | 525 } |
| 526 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--; | 526 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--; |
| 527 } | 527 } |
| 528 | 528 |
| 529 buildUnnamed3332() { | 529 buildUnnamed3364() { |
| 530 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation>(
); | 530 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation>(
); |
| 531 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); | 531 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); |
| 532 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); | 532 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); |
| 533 return o; | 533 return o; |
| 534 } | 534 } |
| 535 | 535 |
| 536 checkUnnamed3332(core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotatio
n> o) { | 536 checkUnnamed3364(core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotatio
n> o) { |
| 537 unittest.expect(o, unittest.hasLength(2)); | 537 unittest.expect(o, unittest.hasLength(2)); |
| 538 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[0]); | 538 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[0]); |
| 539 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[1]); | 539 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[1]); |
| 540 } | 540 } |
| 541 | 541 |
| 542 buildUnnamed3333() { | 542 buildUnnamed3365() { |
| 543 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotat
ion>(); | 543 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnnotat
ion>(); |
| 544 o.add(buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation()); | 544 o.add(buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation()); |
| 545 o.add(buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation()); | 545 o.add(buildGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation()); |
| 546 return o; | 546 return o; |
| 547 } | 547 } |
| 548 | 548 |
| 549 checkUnnamed3333(core.List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnno
tation> o) { | 549 checkUnnamed3365(core.List<api.GoogleCloudVideointelligenceV1beta1SafeSearchAnno
tation> o) { |
| 550 unittest.expect(o, unittest.hasLength(2)); | 550 unittest.expect(o, unittest.hasLength(2)); |
| 551 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(o[0]); | 551 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(o[0]); |
| 552 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(o[1]); | 552 checkGoogleCloudVideointelligenceV1beta1SafeSearchAnnotation(o[1]); |
| 553 } | 553 } |
| 554 | 554 |
| 555 buildUnnamed3334() { | 555 buildUnnamed3366() { |
| 556 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); | 556 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); |
| 557 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); | 557 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); |
| 558 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); | 558 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); |
| 559 return o; | 559 return o; |
| 560 } | 560 } |
| 561 | 561 |
| 562 checkUnnamed3334(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>
o) { | 562 checkUnnamed3366(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>
o) { |
| 563 unittest.expect(o, unittest.hasLength(2)); | 563 unittest.expect(o, unittest.hasLength(2)); |
| 564 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); | 564 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); |
| 565 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); | 565 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); |
| 566 } | 566 } |
| 567 | 567 |
| 568 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults =
0; | 568 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults =
0; |
| 569 buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults() { | 569 buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults() { |
| 570 var o = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults(); | 570 var o = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults(); |
| 571 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++; | 571 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++; |
| 572 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3)
{ | 572 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3)
{ |
| 573 o.error = buildGoogleRpcStatus(); | 573 o.error = buildGoogleRpcStatus(); |
| 574 o.inputUri = "foo"; | 574 o.inputUri = "foo"; |
| 575 o.labelAnnotations = buildUnnamed3332(); | 575 o.labelAnnotations = buildUnnamed3364(); |
| 576 o.safeSearchAnnotations = buildUnnamed3333(); | 576 o.safeSearchAnnotations = buildUnnamed3365(); |
| 577 o.shotAnnotations = buildUnnamed3334(); | 577 o.shotAnnotations = buildUnnamed3366(); |
| 578 } | 578 } |
| 579 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; | 579 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; |
| 580 return o; | 580 return o; |
| 581 } | 581 } |
| 582 | 582 |
| 583 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(api.GoogleCloudVi
deointelligenceV1beta1VideoAnnotationResults o) { | 583 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(api.GoogleCloudVi
deointelligenceV1beta1VideoAnnotationResults o) { |
| 584 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++; | 584 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++; |
| 585 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3)
{ | 585 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3)
{ |
| 586 checkGoogleRpcStatus(o.error); | 586 checkGoogleRpcStatus(o.error); |
| 587 unittest.expect(o.inputUri, unittest.equals('foo')); | 587 unittest.expect(o.inputUri, unittest.equals('foo')); |
| 588 checkUnnamed3332(o.labelAnnotations); | 588 checkUnnamed3364(o.labelAnnotations); |
| 589 checkUnnamed3333(o.safeSearchAnnotations); | 589 checkUnnamed3365(o.safeSearchAnnotations); |
| 590 checkUnnamed3334(o.shotAnnotations); | 590 checkUnnamed3366(o.shotAnnotations); |
| 591 } | 591 } |
| 592 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; | 592 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; |
| 593 } | 593 } |
| 594 | 594 |
| 595 buildUnnamed3335() { | 595 buildUnnamed3367() { |
| 596 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); | 596 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); |
| 597 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); | 597 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); |
| 598 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); | 598 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); |
| 599 return o; | 599 return o; |
| 600 } | 600 } |
| 601 | 601 |
| 602 checkUnnamed3335(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>
o) { | 602 checkUnnamed3367(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>
o) { |
| 603 unittest.expect(o, unittest.hasLength(2)); | 603 unittest.expect(o, unittest.hasLength(2)); |
| 604 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); | 604 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); |
| 605 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); | 605 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); |
| 606 } | 606 } |
| 607 | 607 |
| 608 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoContext = 0; | 608 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoContext = 0; |
| 609 buildGoogleCloudVideointelligenceV1beta1VideoContext() { | 609 buildGoogleCloudVideointelligenceV1beta1VideoContext() { |
| 610 var o = new api.GoogleCloudVideointelligenceV1beta1VideoContext(); | 610 var o = new api.GoogleCloudVideointelligenceV1beta1VideoContext(); |
| 611 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++; | 611 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++; |
| 612 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { | 612 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { |
| 613 o.labelDetectionMode = "foo"; | 613 o.labelDetectionMode = "foo"; |
| 614 o.labelDetectionModel = "foo"; | 614 o.labelDetectionModel = "foo"; |
| 615 o.safeSearchDetectionModel = "foo"; | 615 o.safeSearchDetectionModel = "foo"; |
| 616 o.segments = buildUnnamed3335(); | 616 o.segments = buildUnnamed3367(); |
| 617 o.shotChangeDetectionModel = "foo"; | 617 o.shotChangeDetectionModel = "foo"; |
| 618 o.stationaryCamera = true; | 618 o.stationaryCamera = true; |
| 619 } | 619 } |
| 620 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; | 620 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; |
| 621 return o; | 621 return o; |
| 622 } | 622 } |
| 623 | 623 |
| 624 checkGoogleCloudVideointelligenceV1beta1VideoContext(api.GoogleCloudVideointelli
genceV1beta1VideoContext o) { | 624 checkGoogleCloudVideointelligenceV1beta1VideoContext(api.GoogleCloudVideointelli
genceV1beta1VideoContext o) { |
| 625 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++; | 625 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++; |
| 626 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { | 626 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { |
| 627 unittest.expect(o.labelDetectionMode, unittest.equals('foo')); | 627 unittest.expect(o.labelDetectionMode, unittest.equals('foo')); |
| 628 unittest.expect(o.labelDetectionModel, unittest.equals('foo')); | 628 unittest.expect(o.labelDetectionModel, unittest.equals('foo')); |
| 629 unittest.expect(o.safeSearchDetectionModel, unittest.equals('foo')); | 629 unittest.expect(o.safeSearchDetectionModel, unittest.equals('foo')); |
| 630 checkUnnamed3335(o.segments); | 630 checkUnnamed3367(o.segments); |
| 631 unittest.expect(o.shotChangeDetectionModel, unittest.equals('foo')); | 631 unittest.expect(o.shotChangeDetectionModel, unittest.equals('foo')); |
| 632 unittest.expect(o.stationaryCamera, unittest.isTrue); | 632 unittest.expect(o.stationaryCamera, unittest.isTrue); |
| 633 } | 633 } |
| 634 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; | 634 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; |
| 635 } | 635 } |
| 636 | 636 |
| 637 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment = 0; | 637 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment = 0; |
| 638 buildGoogleCloudVideointelligenceV1beta1VideoSegment() { | 638 buildGoogleCloudVideointelligenceV1beta1VideoSegment() { |
| 639 var o = new api.GoogleCloudVideointelligenceV1beta1VideoSegment(); | 639 var o = new api.GoogleCloudVideointelligenceV1beta1VideoSegment(); |
| 640 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++; | 640 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++; |
| 641 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) { | 641 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) { |
| 642 o.endTimeOffset = "foo"; | 642 o.endTimeOffset = "foo"; |
| 643 o.startTimeOffset = "foo"; | 643 o.startTimeOffset = "foo"; |
| 644 } | 644 } |
| 645 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--; | 645 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--; |
| 646 return o; | 646 return o; |
| 647 } | 647 } |
| 648 | 648 |
| 649 checkGoogleCloudVideointelligenceV1beta1VideoSegment(api.GoogleCloudVideointelli
genceV1beta1VideoSegment o) { | 649 checkGoogleCloudVideointelligenceV1beta1VideoSegment(api.GoogleCloudVideointelli
genceV1beta1VideoSegment o) { |
| 650 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++; | 650 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++; |
| 651 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) { | 651 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) { |
| 652 unittest.expect(o.endTimeOffset, unittest.equals('foo')); | 652 unittest.expect(o.endTimeOffset, unittest.equals('foo')); |
| 653 unittest.expect(o.startTimeOffset, unittest.equals('foo')); | 653 unittest.expect(o.startTimeOffset, unittest.equals('foo')); |
| 654 } | 654 } |
| 655 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--; | 655 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--; |
| 656 } | 656 } |
| 657 | 657 |
| 658 buildUnnamed3336() { | 658 buildUnnamed3368() { |
| 659 var o = new core.Map<core.String, core.Object>(); | 659 var o = new core.Map<core.String, core.Object>(); |
| 660 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 660 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 661 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 661 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 662 return o; | 662 return o; |
| 663 } | 663 } |
| 664 | 664 |
| 665 checkUnnamed3336(core.Map<core.String, core.Object> o) { | 665 checkUnnamed3368(core.Map<core.String, core.Object> o) { |
| 666 unittest.expect(o, unittest.hasLength(2)); | 666 unittest.expect(o, unittest.hasLength(2)); |
| 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')); | 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')); |
| 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')); | 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')); |
| 669 } | 669 } |
| 670 | 670 |
| 671 buildUnnamed3337() { | 671 buildUnnamed3369() { |
| 672 var o = new core.Map<core.String, core.Object>(); | 672 var o = new core.Map<core.String, core.Object>(); |
| 673 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 673 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 674 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 674 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 675 return o; | 675 return o; |
| 676 } | 676 } |
| 677 | 677 |
| 678 checkUnnamed3337(core.Map<core.String, core.Object> o) { | 678 checkUnnamed3369(core.Map<core.String, core.Object> o) { |
| 679 unittest.expect(o, unittest.hasLength(2)); | 679 unittest.expect(o, unittest.hasLength(2)); |
| 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')); | 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')); |
| 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')); | 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')); |
| 682 } | 682 } |
| 683 | 683 |
| 684 core.int buildCounterGoogleLongrunningOperation = 0; | 684 core.int buildCounterGoogleLongrunningOperation = 0; |
| 685 buildGoogleLongrunningOperation() { | 685 buildGoogleLongrunningOperation() { |
| 686 var o = new api.GoogleLongrunningOperation(); | 686 var o = new api.GoogleLongrunningOperation(); |
| 687 buildCounterGoogleLongrunningOperation++; | 687 buildCounterGoogleLongrunningOperation++; |
| 688 if (buildCounterGoogleLongrunningOperation < 3) { | 688 if (buildCounterGoogleLongrunningOperation < 3) { |
| 689 o.done = true; | 689 o.done = true; |
| 690 o.error = buildGoogleRpcStatus(); | 690 o.error = buildGoogleRpcStatus(); |
| 691 o.metadata = buildUnnamed3336(); | 691 o.metadata = buildUnnamed3368(); |
| 692 o.name = "foo"; | 692 o.name = "foo"; |
| 693 o.response = buildUnnamed3337(); | 693 o.response = buildUnnamed3369(); |
| 694 } | 694 } |
| 695 buildCounterGoogleLongrunningOperation--; | 695 buildCounterGoogleLongrunningOperation--; |
| 696 return o; | 696 return o; |
| 697 } | 697 } |
| 698 | 698 |
| 699 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { | 699 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { |
| 700 buildCounterGoogleLongrunningOperation++; | 700 buildCounterGoogleLongrunningOperation++; |
| 701 if (buildCounterGoogleLongrunningOperation < 3) { | 701 if (buildCounterGoogleLongrunningOperation < 3) { |
| 702 unittest.expect(o.done, unittest.isTrue); | 702 unittest.expect(o.done, unittest.isTrue); |
| 703 checkGoogleRpcStatus(o.error); | 703 checkGoogleRpcStatus(o.error); |
| 704 checkUnnamed3336(o.metadata); | 704 checkUnnamed3368(o.metadata); |
| 705 unittest.expect(o.name, unittest.equals('foo')); | 705 unittest.expect(o.name, unittest.equals('foo')); |
| 706 checkUnnamed3337(o.response); | 706 checkUnnamed3369(o.response); |
| 707 } | 707 } |
| 708 buildCounterGoogleLongrunningOperation--; | 708 buildCounterGoogleLongrunningOperation--; |
| 709 } | 709 } |
| 710 | 710 |
| 711 buildUnnamed3338() { | 711 buildUnnamed3370() { |
| 712 var o = new core.Map<core.String, core.Object>(); | 712 var o = new core.Map<core.String, core.Object>(); |
| 713 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 713 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 714 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 714 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 715 return o; | 715 return o; |
| 716 } | 716 } |
| 717 | 717 |
| 718 checkUnnamed3338(core.Map<core.String, core.Object> o) { | 718 checkUnnamed3370(core.Map<core.String, core.Object> o) { |
| 719 unittest.expect(o, unittest.hasLength(2)); | 719 unittest.expect(o, unittest.hasLength(2)); |
| 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')); | 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')); |
| 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')); | 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')); |
| 722 } | 722 } |
| 723 | 723 |
| 724 buildUnnamed3339() { | 724 buildUnnamed3371() { |
| 725 var o = new core.List<core.Map<core.String, core.Object>>(); | 725 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 726 o.add(buildUnnamed3338()); | 726 o.add(buildUnnamed3370()); |
| 727 o.add(buildUnnamed3338()); | 727 o.add(buildUnnamed3370()); |
| 728 return o; | 728 return o; |
| 729 } | 729 } |
| 730 | 730 |
| 731 checkUnnamed3339(core.List<core.Map<core.String, core.Object>> o) { | 731 checkUnnamed3371(core.List<core.Map<core.String, core.Object>> o) { |
| 732 unittest.expect(o, unittest.hasLength(2)); | 732 unittest.expect(o, unittest.hasLength(2)); |
| 733 checkUnnamed3338(o[0]); | 733 checkUnnamed3370(o[0]); |
| 734 checkUnnamed3338(o[1]); | 734 checkUnnamed3370(o[1]); |
| 735 } | 735 } |
| 736 | 736 |
| 737 core.int buildCounterGoogleRpcStatus = 0; | 737 core.int buildCounterGoogleRpcStatus = 0; |
| 738 buildGoogleRpcStatus() { | 738 buildGoogleRpcStatus() { |
| 739 var o = new api.GoogleRpcStatus(); | 739 var o = new api.GoogleRpcStatus(); |
| 740 buildCounterGoogleRpcStatus++; | 740 buildCounterGoogleRpcStatus++; |
| 741 if (buildCounterGoogleRpcStatus < 3) { | 741 if (buildCounterGoogleRpcStatus < 3) { |
| 742 o.code = 42; | 742 o.code = 42; |
| 743 o.details = buildUnnamed3339(); | 743 o.details = buildUnnamed3371(); |
| 744 o.message = "foo"; | 744 o.message = "foo"; |
| 745 } | 745 } |
| 746 buildCounterGoogleRpcStatus--; | 746 buildCounterGoogleRpcStatus--; |
| 747 return o; | 747 return o; |
| 748 } | 748 } |
| 749 | 749 |
| 750 checkGoogleRpcStatus(api.GoogleRpcStatus o) { | 750 checkGoogleRpcStatus(api.GoogleRpcStatus o) { |
| 751 buildCounterGoogleRpcStatus++; | 751 buildCounterGoogleRpcStatus++; |
| 752 if (buildCounterGoogleRpcStatus < 3) { | 752 if (buildCounterGoogleRpcStatus < 3) { |
| 753 unittest.expect(o.code, unittest.equals(42)); | 753 unittest.expect(o.code, unittest.equals(42)); |
| 754 checkUnnamed3339(o.details); | 754 checkUnnamed3371(o.details); |
| 755 unittest.expect(o.message, unittest.equals('foo')); | 755 unittest.expect(o.message, unittest.equals('foo')); |
| 756 } | 756 } |
| 757 buildCounterGoogleRpcStatus--; | 757 buildCounterGoogleRpcStatus--; |
| 758 } | 758 } |
| 759 | 759 |
| 760 | 760 |
| 761 main() { | 761 main() { |
| 762 unittest.group("obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoProgress
", () { | 762 unittest.group("obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoProgress
", () { |
| 763 unittest.test("to-json--from-json", () { | 763 unittest.test("to-json--from-json", () { |
| 764 var o = buildGoogleCloudVideointelligenceV1AnnotateVideoProgress(); | 764 var o = buildGoogleCloudVideointelligenceV1AnnotateVideoProgress(); |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 res.annotate(arg_request).then(unittest.expectAsync1(((api.GoogleLongrunni
ngOperation response) { | 985 res.annotate(arg_request).then(unittest.expectAsync1(((api.GoogleLongrunni
ngOperation response) { |
| 986 checkGoogleLongrunningOperation(response); | 986 checkGoogleLongrunningOperation(response); |
| 987 }))); | 987 }))); |
| 988 }); | 988 }); |
| 989 | 989 |
| 990 }); | 990 }); |
| 991 | 991 |
| 992 | 992 |
| 993 } | 993 } |
| 994 | 994 |
| OLD | NEW |