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

Side by Side Diff: generated/googleapis_beta/test/videointelligence/v1beta1_test.dart

Issue 2973303002: Api-Roll 51: 2017-07-10 (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis_beta/test/taskqueue/v1beta2_test.dart ('k') | pubspec.lock » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 buildUnnamed3206() { 54 buildUnnamed3326() {
55 var o = new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgres s>();
56 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress());
57 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress());
58 return o;
59 }
60
61 checkUnnamed3326(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProg ress> o) {
62 unittest.expect(o, unittest.hasLength(2));
63 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[0]);
64 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[1]);
65 }
66
67 core.int buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress = 0;
68 buildGoogleCloudVideointelligenceV1AnnotateVideoProgress() {
69 var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoProgress();
70 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++;
71 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) {
72 o.annotationProgress = buildUnnamed3326();
73 }
74 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--;
75 return o;
76 }
77
78 checkGoogleCloudVideointelligenceV1AnnotateVideoProgress(api.GoogleCloudVideoint elligenceV1AnnotateVideoProgress o) {
79 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++;
80 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) {
81 checkUnnamed3326(o.annotationProgress);
82 }
83 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--;
84 }
85
86 buildUnnamed3327() {
87 var o = new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults >();
88 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults());
89 o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults());
90 return o;
91 }
92
93 checkUnnamed3327(core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResu lts> o) {
94 unittest.expect(o, unittest.hasLength(2));
95 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[0]);
96 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[1]);
97 }
98
99 core.int buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse = 0;
100 buildGoogleCloudVideointelligenceV1AnnotateVideoResponse() {
101 var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoResponse();
102 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++;
103 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) {
104 o.annotationResults = buildUnnamed3327();
105 }
106 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--;
107 return o;
108 }
109
110 checkGoogleCloudVideointelligenceV1AnnotateVideoResponse(api.GoogleCloudVideoint elligenceV1AnnotateVideoResponse o) {
111 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++;
112 if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) {
113 checkUnnamed3327(o.annotationResults);
114 }
115 buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--;
116 }
117
118 buildUnnamed3328() {
119 var o = new core.List<api.GoogleCloudVideointelligenceV1LabelLocation>();
120 o.add(buildGoogleCloudVideointelligenceV1LabelLocation());
121 o.add(buildGoogleCloudVideointelligenceV1LabelLocation());
122 return o;
123 }
124
125 checkUnnamed3328(core.List<api.GoogleCloudVideointelligenceV1LabelLocation> o) {
126 unittest.expect(o, unittest.hasLength(2));
127 checkGoogleCloudVideointelligenceV1LabelLocation(o[0]);
128 checkGoogleCloudVideointelligenceV1LabelLocation(o[1]);
129 }
130
131 core.int buildCounterGoogleCloudVideointelligenceV1LabelAnnotation = 0;
132 buildGoogleCloudVideointelligenceV1LabelAnnotation() {
133 var o = new api.GoogleCloudVideointelligenceV1LabelAnnotation();
134 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++;
135 if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) {
136 o.description = "foo";
137 o.languageCode = "foo";
138 o.locations = buildUnnamed3328();
139 }
140 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--;
141 return o;
142 }
143
144 checkGoogleCloudVideointelligenceV1LabelAnnotation(api.GoogleCloudVideointellige nceV1LabelAnnotation o) {
145 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++;
146 if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) {
147 unittest.expect(o.description, unittest.equals('foo'));
148 unittest.expect(o.languageCode, unittest.equals('foo'));
149 checkUnnamed3328(o.locations);
150 }
151 buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--;
152 }
153
154 core.int buildCounterGoogleCloudVideointelligenceV1LabelLocation = 0;
155 buildGoogleCloudVideointelligenceV1LabelLocation() {
156 var o = new api.GoogleCloudVideointelligenceV1LabelLocation();
157 buildCounterGoogleCloudVideointelligenceV1LabelLocation++;
158 if (buildCounterGoogleCloudVideointelligenceV1LabelLocation < 3) {
159 o.confidence = 42.0;
160 o.level = "foo";
161 o.segment = buildGoogleCloudVideointelligenceV1VideoSegment();
162 }
163 buildCounterGoogleCloudVideointelligenceV1LabelLocation--;
164 return o;
165 }
166
167 checkGoogleCloudVideointelligenceV1LabelLocation(api.GoogleCloudVideointelligenc eV1LabelLocation o) {
168 buildCounterGoogleCloudVideointelligenceV1LabelLocation++;
169 if (buildCounterGoogleCloudVideointelligenceV1LabelLocation < 3) {
170 unittest.expect(o.confidence, unittest.equals(42.0));
171 unittest.expect(o.level, unittest.equals('foo'));
172 checkGoogleCloudVideointelligenceV1VideoSegment(o.segment);
173 }
174 buildCounterGoogleCloudVideointelligenceV1LabelLocation--;
175 }
176
177 core.int buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation = 0;
178 buildGoogleCloudVideointelligenceV1SafeSearchAnnotation() {
179 var o = new api.GoogleCloudVideointelligenceV1SafeSearchAnnotation();
180 buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation++;
181 if (buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation < 3) {
182 o.adult = "foo";
183 o.time = "foo";
184 }
185 buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation--;
186 return o;
187 }
188
189 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(api.GoogleCloudVideointe lligenceV1SafeSearchAnnotation o) {
190 buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation++;
191 if (buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation < 3) {
192 unittest.expect(o.adult, unittest.equals('foo'));
193 unittest.expect(o.time, unittest.equals('foo'));
194 }
195 buildCounterGoogleCloudVideointelligenceV1SafeSearchAnnotation--;
196 }
197
198 core.int buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress = 0;
199 buildGoogleCloudVideointelligenceV1VideoAnnotationProgress() {
200 var o = new api.GoogleCloudVideointelligenceV1VideoAnnotationProgress();
201 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress++;
202 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress < 3) {
203 o.inputUri = "foo";
204 o.progressPercent = 42;
205 o.startTime = "foo";
206 o.updateTime = "foo";
207 }
208 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress--;
209 return o;
210 }
211
212 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(api.GoogleCloudVideoi ntelligenceV1VideoAnnotationProgress o) {
213 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress++;
214 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress < 3) {
215 unittest.expect(o.inputUri, unittest.equals('foo'));
216 unittest.expect(o.progressPercent, unittest.equals(42));
217 unittest.expect(o.startTime, unittest.equals('foo'));
218 unittest.expect(o.updateTime, unittest.equals('foo'));
219 }
220 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress--;
221 }
222
223 buildUnnamed3329() {
224 var o = new core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation>();
225 o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
226 o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation());
227 return o;
228 }
229
230 checkUnnamed3329(core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) {
231 unittest.expect(o, unittest.hasLength(2));
232 checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]);
233 checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]);
234 }
235
236 buildUnnamed3330() {
237 var o = new core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotation>( );
238 o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation());
239 o.add(buildGoogleCloudVideointelligenceV1SafeSearchAnnotation());
240 return o;
241 }
242
243 checkUnnamed3330(core.List<api.GoogleCloudVideointelligenceV1SafeSearchAnnotatio n> o) {
244 unittest.expect(o, unittest.hasLength(2));
245 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[0]);
246 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(o[1]);
247 }
248
249 buildUnnamed3331() {
250 var o = new core.List<api.GoogleCloudVideointelligenceV1VideoSegment>();
251 o.add(buildGoogleCloudVideointelligenceV1VideoSegment());
252 o.add(buildGoogleCloudVideointelligenceV1VideoSegment());
253 return o;
254 }
255
256 checkUnnamed3331(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) {
257 unittest.expect(o, unittest.hasLength(2));
258 checkGoogleCloudVideointelligenceV1VideoSegment(o[0]);
259 checkGoogleCloudVideointelligenceV1VideoSegment(o[1]);
260 }
261
262 core.int buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults = 0;
263 buildGoogleCloudVideointelligenceV1VideoAnnotationResults() {
264 var o = new api.GoogleCloudVideointelligenceV1VideoAnnotationResults();
265 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults++;
266 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) {
267 o.error = buildGoogleRpcStatus();
268 o.inputUri = "foo";
269 o.labelAnnotations = buildUnnamed3329();
270 o.safeSearchAnnotations = buildUnnamed3330();
271 o.shotAnnotations = buildUnnamed3331();
272 }
273 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--;
274 return o;
275 }
276
277 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(api.GoogleCloudVideoin telligenceV1VideoAnnotationResults o) {
278 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults++;
279 if (buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults < 3) {
280 checkGoogleRpcStatus(o.error);
281 unittest.expect(o.inputUri, unittest.equals('foo'));
282 checkUnnamed3329(o.labelAnnotations);
283 checkUnnamed3330(o.safeSearchAnnotations);
284 checkUnnamed3331(o.shotAnnotations);
285 }
286 buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--;
287 }
288
289 core.int buildCounterGoogleCloudVideointelligenceV1VideoSegment = 0;
290 buildGoogleCloudVideointelligenceV1VideoSegment() {
291 var o = new api.GoogleCloudVideointelligenceV1VideoSegment();
292 buildCounterGoogleCloudVideointelligenceV1VideoSegment++;
293 if (buildCounterGoogleCloudVideointelligenceV1VideoSegment < 3) {
294 o.endTime = "foo";
295 o.startTime = "foo";
296 }
297 buildCounterGoogleCloudVideointelligenceV1VideoSegment--;
298 return o;
299 }
300
301 checkGoogleCloudVideointelligenceV1VideoSegment(api.GoogleCloudVideointelligence V1VideoSegment o) {
302 buildCounterGoogleCloudVideointelligenceV1VideoSegment++;
303 if (buildCounterGoogleCloudVideointelligenceV1VideoSegment < 3) {
304 unittest.expect(o.endTime, unittest.equals('foo'));
305 unittest.expect(o.startTime, unittest.equals('foo'));
306 }
307 buildCounterGoogleCloudVideointelligenceV1VideoSegment--;
308 }
309
310 buildUnnamed3332() {
55 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationPr ogress>(); 311 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationPr ogress>();
56 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress()); 312 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress());
57 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress()); 313 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress());
58 return o; 314 return o;
59 } 315 }
60 316
61 checkUnnamed3206(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotatio nProgress> o) { 317 checkUnnamed3332(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotatio nProgress> o) {
62 unittest.expect(o, unittest.hasLength(2)); 318 unittest.expect(o, unittest.hasLength(2));
63 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[0]); 319 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[0]);
64 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[1]); 320 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress(o[1]);
65 } 321 }
66 322
67 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress = 0; 323 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress = 0;
68 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress() { 324 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress() {
69 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(); 325 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress();
70 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++; 326 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++;
71 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3) { 327 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3) {
72 o.annotationProgress = buildUnnamed3206(); 328 o.annotationProgress = buildUnnamed3332();
73 } 329 }
74 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; 330 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--;
75 return o; 331 return o;
76 } 332 }
77 333
78 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(api.GoogleCloudVid eointelligenceV1beta1AnnotateVideoProgress o) { 334 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(api.GoogleCloudVid eointelligenceV1beta1AnnotateVideoProgress o) {
79 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++; 335 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress++;
80 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3) { 336 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress < 3) {
81 checkUnnamed3206(o.annotationProgress); 337 checkUnnamed3332(o.annotationProgress);
82 } 338 }
83 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--; 339 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress--;
84 } 340 }
85 341
86 buildUnnamed3207() { 342 buildUnnamed3333() {
87 var o = new core.List<core.String>(); 343 var o = new core.List<core.String>();
88 o.add("foo"); 344 o.add("foo");
89 o.add("foo"); 345 o.add("foo");
90 return o; 346 return o;
91 } 347 }
92 348
93 checkUnnamed3207(core.List<core.String> o) { 349 checkUnnamed3333(core.List<core.String> o) {
94 unittest.expect(o, unittest.hasLength(2)); 350 unittest.expect(o, unittest.hasLength(2));
95 unittest.expect(o[0], unittest.equals('foo')); 351 unittest.expect(o[0], unittest.equals('foo'));
96 unittest.expect(o[1], unittest.equals('foo')); 352 unittest.expect(o[1], unittest.equals('foo'));
97 } 353 }
98 354
99 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest = 0 ; 355 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest = 0 ;
100 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest() { 356 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest() {
101 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(); 357 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest();
102 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++; 358 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++;
103 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) { 359 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) {
104 o.features = buildUnnamed3207(); 360 o.features = buildUnnamed3333();
105 o.inputContent = "foo"; 361 o.inputContent = "foo";
106 o.inputUri = "foo"; 362 o.inputUri = "foo";
107 o.locationId = "foo"; 363 o.locationId = "foo";
108 o.outputUri = "foo"; 364 o.outputUri = "foo";
109 o.videoContext = buildGoogleCloudVideointelligenceV1beta1VideoContext(); 365 o.videoContext = buildGoogleCloudVideointelligenceV1beta1VideoContext();
110 } 366 }
111 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--; 367 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--;
112 return o; 368 return o;
113 } 369 }
114 370
115 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(api.GoogleCloudVide ointelligenceV1beta1AnnotateVideoRequest o) { 371 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest(api.GoogleCloudVide ointelligenceV1beta1AnnotateVideoRequest o) {
116 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++; 372 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest++;
117 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) { 373 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest < 3) {
118 checkUnnamed3207(o.features); 374 checkUnnamed3333(o.features);
119 unittest.expect(o.inputContent, unittest.equals('foo')); 375 unittest.expect(o.inputContent, unittest.equals('foo'));
120 unittest.expect(o.inputUri, unittest.equals('foo')); 376 unittest.expect(o.inputUri, unittest.equals('foo'));
121 unittest.expect(o.locationId, unittest.equals('foo')); 377 unittest.expect(o.locationId, unittest.equals('foo'));
122 unittest.expect(o.outputUri, unittest.equals('foo')); 378 unittest.expect(o.outputUri, unittest.equals('foo'));
123 checkGoogleCloudVideointelligenceV1beta1VideoContext(o.videoContext); 379 checkGoogleCloudVideointelligenceV1beta1VideoContext(o.videoContext);
124 } 380 }
125 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--; 381 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoRequest--;
126 } 382 }
127 383
128 buildUnnamed3208() { 384 buildUnnamed3334() {
129 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationRe sults>(); 385 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotationRe sults>();
130 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults()); 386 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults());
131 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults()); 387 o.add(buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults());
132 return o; 388 return o;
133 } 389 }
134 390
135 checkUnnamed3208(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotatio nResults> o) { 391 checkUnnamed3334(core.List<api.GoogleCloudVideointelligenceV1beta1VideoAnnotatio nResults> o) {
136 unittest.expect(o, unittest.hasLength(2)); 392 unittest.expect(o, unittest.hasLength(2));
137 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[0]); 393 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[0]);
138 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[1]); 394 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(o[1]);
139 } 395 }
140 396
141 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse = 0; 397 core.int buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse = 0;
142 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse() { 398 buildGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse() {
143 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(); 399 var o = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse();
144 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++; 400 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++;
145 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3) { 401 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3) {
146 o.annotationResults = buildUnnamed3208(); 402 o.annotationResults = buildUnnamed3334();
147 } 403 }
148 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; 404 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--;
149 return o; 405 return o;
150 } 406 }
151 407
152 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(api.GoogleCloudVid eointelligenceV1beta1AnnotateVideoResponse o) { 408 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse(api.GoogleCloudVid eointelligenceV1beta1AnnotateVideoResponse o) {
153 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++; 409 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse++;
154 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3) { 410 if (buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse < 3) {
155 checkUnnamed3208(o.annotationResults); 411 checkUnnamed3334(o.annotationResults);
156 } 412 }
157 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--; 413 buildCounterGoogleCloudVideointelligenceV1beta1AnnotateVideoResponse--;
158 } 414 }
159 415
160 buildUnnamed3209() { 416 buildUnnamed3335() {
161 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation>(); 417 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation>();
162 o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation()); 418 o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation());
163 o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation()); 419 o.add(buildGoogleCloudVideointelligenceV1beta1LabelLocation());
164 return o; 420 return o;
165 } 421 }
166 422
167 checkUnnamed3209(core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation> o) { 423 checkUnnamed3335(core.List<api.GoogleCloudVideointelligenceV1beta1LabelLocation> o) {
168 unittest.expect(o, unittest.hasLength(2)); 424 unittest.expect(o, unittest.hasLength(2));
169 checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[0]); 425 checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[0]);
170 checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[1]); 426 checkGoogleCloudVideointelligenceV1beta1LabelLocation(o[1]);
171 } 427 }
172 428
173 core.int buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation = 0; 429 core.int buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation = 0;
174 buildGoogleCloudVideointelligenceV1beta1LabelAnnotation() { 430 buildGoogleCloudVideointelligenceV1beta1LabelAnnotation() {
175 var o = new api.GoogleCloudVideointelligenceV1beta1LabelAnnotation(); 431 var o = new api.GoogleCloudVideointelligenceV1beta1LabelAnnotation();
176 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation++; 432 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation++;
177 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) { 433 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) {
178 o.description = "foo"; 434 o.description = "foo";
179 o.languageCode = "foo"; 435 o.languageCode = "foo";
180 o.locations = buildUnnamed3209(); 436 o.locations = buildUnnamed3335();
181 } 437 }
182 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--; 438 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--;
183 return o; 439 return o;
184 } 440 }
185 441
186 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(api.GoogleCloudVideointe lligenceV1beta1LabelAnnotation o) { 442 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(api.GoogleCloudVideointe lligenceV1beta1LabelAnnotation o) {
187 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation++; 443 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation++;
188 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) { 444 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation < 3) {
189 unittest.expect(o.description, unittest.equals('foo')); 445 unittest.expect(o.description, unittest.equals('foo'));
190 unittest.expect(o.languageCode, unittest.equals('foo')); 446 unittest.expect(o.languageCode, unittest.equals('foo'));
191 checkUnnamed3209(o.locations); 447 checkUnnamed3335(o.locations);
192 } 448 }
193 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--; 449 buildCounterGoogleCloudVideointelligenceV1beta1LabelAnnotation--;
194 } 450 }
195 451
196 core.int buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation = 0; 452 core.int buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation = 0;
197 buildGoogleCloudVideointelligenceV1beta1LabelLocation() { 453 buildGoogleCloudVideointelligenceV1beta1LabelLocation() {
198 var o = new api.GoogleCloudVideointelligenceV1beta1LabelLocation(); 454 var o = new api.GoogleCloudVideointelligenceV1beta1LabelLocation();
199 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation++; 455 buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation++;
200 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation < 3) { 456 if (buildCounterGoogleCloudVideointelligenceV1beta1LabelLocation < 3) {
201 o.confidence = 42.0; 457 o.confidence = 42.0;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress++; 490 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress++;
235 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress < 3 ) { 491 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress < 3 ) {
236 unittest.expect(o.inputUri, unittest.equals('foo')); 492 unittest.expect(o.inputUri, unittest.equals('foo'));
237 unittest.expect(o.progressPercent, unittest.equals(42)); 493 unittest.expect(o.progressPercent, unittest.equals(42));
238 unittest.expect(o.startTime, unittest.equals('foo')); 494 unittest.expect(o.startTime, unittest.equals('foo'));
239 unittest.expect(o.updateTime, unittest.equals('foo')); 495 unittest.expect(o.updateTime, unittest.equals('foo'));
240 } 496 }
241 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--; 497 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationProgress--;
242 } 498 }
243 499
244 buildUnnamed3210() { 500 buildUnnamed3336() {
245 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation>( ); 501 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotation>( );
246 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); 502 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation());
247 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation()); 503 o.add(buildGoogleCloudVideointelligenceV1beta1LabelAnnotation());
248 return o; 504 return o;
249 } 505 }
250 506
251 checkUnnamed3210(core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotatio n> o) { 507 checkUnnamed3336(core.List<api.GoogleCloudVideointelligenceV1beta1LabelAnnotatio n> o) {
252 unittest.expect(o, unittest.hasLength(2)); 508 unittest.expect(o, unittest.hasLength(2));
253 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[0]); 509 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[0]);
254 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[1]); 510 checkGoogleCloudVideointelligenceV1beta1LabelAnnotation(o[1]);
255 } 511 }
256 512
257 buildUnnamed3211() { 513 buildUnnamed3337() {
258 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); 514 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>();
259 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); 515 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment());
260 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); 516 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment());
261 return o; 517 return o;
262 } 518 }
263 519
264 checkUnnamed3211(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { 520 checkUnnamed3337(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) {
265 unittest.expect(o, unittest.hasLength(2)); 521 unittest.expect(o, unittest.hasLength(2));
266 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); 522 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]);
267 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); 523 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]);
268 } 524 }
269 525
270 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults = 0; 526 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults = 0;
271 buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults() { 527 buildGoogleCloudVideointelligenceV1beta1VideoAnnotationResults() {
272 var o = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults(); 528 var o = new api.GoogleCloudVideointelligenceV1beta1VideoAnnotationResults();
273 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++; 529 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++;
274 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3) { 530 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3) {
275 o.error = buildGoogleRpcStatus(); 531 o.error = buildGoogleRpcStatus();
276 o.inputUri = "foo"; 532 o.inputUri = "foo";
277 o.labelAnnotations = buildUnnamed3210(); 533 o.labelAnnotations = buildUnnamed3336();
278 o.shotAnnotations = buildUnnamed3211(); 534 o.shotAnnotations = buildUnnamed3337();
279 } 535 }
280 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; 536 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--;
281 return o; 537 return o;
282 } 538 }
283 539
284 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(api.GoogleCloudVi deointelligenceV1beta1VideoAnnotationResults o) { 540 checkGoogleCloudVideointelligenceV1beta1VideoAnnotationResults(api.GoogleCloudVi deointelligenceV1beta1VideoAnnotationResults o) {
285 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++; 541 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults++;
286 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3) { 542 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults < 3) {
287 checkGoogleRpcStatus(o.error); 543 checkGoogleRpcStatus(o.error);
288 unittest.expect(o.inputUri, unittest.equals('foo')); 544 unittest.expect(o.inputUri, unittest.equals('foo'));
289 checkUnnamed3210(o.labelAnnotations); 545 checkUnnamed3336(o.labelAnnotations);
290 checkUnnamed3211(o.shotAnnotations); 546 checkUnnamed3337(o.shotAnnotations);
291 } 547 }
292 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--; 548 buildCounterGoogleCloudVideointelligenceV1beta1VideoAnnotationResults--;
293 } 549 }
294 550
295 buildUnnamed3212() { 551 buildUnnamed3338() {
296 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>(); 552 var o = new core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment>();
297 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); 553 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment());
298 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment()); 554 o.add(buildGoogleCloudVideointelligenceV1beta1VideoSegment());
299 return o; 555 return o;
300 } 556 }
301 557
302 checkUnnamed3212(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) { 558 checkUnnamed3338(core.List<api.GoogleCloudVideointelligenceV1beta1VideoSegment> o) {
303 unittest.expect(o, unittest.hasLength(2)); 559 unittest.expect(o, unittest.hasLength(2));
304 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]); 560 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[0]);
305 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]); 561 checkGoogleCloudVideointelligenceV1beta1VideoSegment(o[1]);
306 } 562 }
307 563
308 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoContext = 0; 564 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoContext = 0;
309 buildGoogleCloudVideointelligenceV1beta1VideoContext() { 565 buildGoogleCloudVideointelligenceV1beta1VideoContext() {
310 var o = new api.GoogleCloudVideointelligenceV1beta1VideoContext(); 566 var o = new api.GoogleCloudVideointelligenceV1beta1VideoContext();
311 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++; 567 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++;
312 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { 568 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) {
313 o.labelDetectionMode = "foo"; 569 o.labelDetectionMode = "foo";
314 o.labelDetectionModel = "foo"; 570 o.labelDetectionModel = "foo";
315 o.segments = buildUnnamed3212(); 571 o.segments = buildUnnamed3338();
316 o.shotChangeDetectionModel = "foo"; 572 o.shotChangeDetectionModel = "foo";
317 } 573 }
318 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; 574 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--;
319 return o; 575 return o;
320 } 576 }
321 577
322 checkGoogleCloudVideointelligenceV1beta1VideoContext(api.GoogleCloudVideointelli genceV1beta1VideoContext o) { 578 checkGoogleCloudVideointelligenceV1beta1VideoContext(api.GoogleCloudVideointelli genceV1beta1VideoContext o) {
323 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++; 579 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext++;
324 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) { 580 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoContext < 3) {
325 unittest.expect(o.labelDetectionMode, unittest.equals('foo')); 581 unittest.expect(o.labelDetectionMode, unittest.equals('foo'));
326 unittest.expect(o.labelDetectionModel, unittest.equals('foo')); 582 unittest.expect(o.labelDetectionModel, unittest.equals('foo'));
327 checkUnnamed3212(o.segments); 583 checkUnnamed3338(o.segments);
328 unittest.expect(o.shotChangeDetectionModel, unittest.equals('foo')); 584 unittest.expect(o.shotChangeDetectionModel, unittest.equals('foo'));
329 } 585 }
330 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--; 586 buildCounterGoogleCloudVideointelligenceV1beta1VideoContext--;
331 } 587 }
332 588
333 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment = 0; 589 core.int buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment = 0;
334 buildGoogleCloudVideointelligenceV1beta1VideoSegment() { 590 buildGoogleCloudVideointelligenceV1beta1VideoSegment() {
335 var o = new api.GoogleCloudVideointelligenceV1beta1VideoSegment(); 591 var o = new api.GoogleCloudVideointelligenceV1beta1VideoSegment();
336 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++; 592 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++;
337 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) { 593 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) {
338 o.endTimeOffset = "foo"; 594 o.endTimeOffset = "foo";
339 o.startTimeOffset = "foo"; 595 o.startTimeOffset = "foo";
340 } 596 }
341 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--; 597 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--;
342 return o; 598 return o;
343 } 599 }
344 600
345 checkGoogleCloudVideointelligenceV1beta1VideoSegment(api.GoogleCloudVideointelli genceV1beta1VideoSegment o) { 601 checkGoogleCloudVideointelligenceV1beta1VideoSegment(api.GoogleCloudVideointelli genceV1beta1VideoSegment o) {
346 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++; 602 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment++;
347 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) { 603 if (buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment < 3) {
348 unittest.expect(o.endTimeOffset, unittest.equals('foo')); 604 unittest.expect(o.endTimeOffset, unittest.equals('foo'));
349 unittest.expect(o.startTimeOffset, unittest.equals('foo')); 605 unittest.expect(o.startTimeOffset, unittest.equals('foo'));
350 } 606 }
351 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--; 607 buildCounterGoogleCloudVideointelligenceV1beta1VideoSegment--;
352 } 608 }
353 609
354 buildUnnamed3213() { 610 buildUnnamed3339() {
355 var o = new core.Map<core.String, core.Object>(); 611 var o = new core.Map<core.String, core.Object>();
356 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 612 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
357 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 613 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
358 return o; 614 return o;
359 } 615 }
360 616
361 checkUnnamed3213(core.Map<core.String, core.Object> o) { 617 checkUnnamed3339(core.Map<core.String, core.Object> o) {
362 unittest.expect(o, unittest.hasLength(2)); 618 unittest.expect(o, unittest.hasLength(2));
363 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')); 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'));
364 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')); 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'));
365 } 621 }
366 622
367 buildUnnamed3214() { 623 buildUnnamed3340() {
368 var o = new core.Map<core.String, core.Object>(); 624 var o = new core.Map<core.String, core.Object>();
369 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 625 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
370 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 626 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
371 return o; 627 return o;
372 } 628 }
373 629
374 checkUnnamed3214(core.Map<core.String, core.Object> o) { 630 checkUnnamed3340(core.Map<core.String, core.Object> o) {
375 unittest.expect(o, unittest.hasLength(2)); 631 unittest.expect(o, unittest.hasLength(2));
376 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')); 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'));
377 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')); 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'));
378 } 634 }
379 635
380 core.int buildCounterGoogleLongrunningOperation = 0; 636 core.int buildCounterGoogleLongrunningOperation = 0;
381 buildGoogleLongrunningOperation() { 637 buildGoogleLongrunningOperation() {
382 var o = new api.GoogleLongrunningOperation(); 638 var o = new api.GoogleLongrunningOperation();
383 buildCounterGoogleLongrunningOperation++; 639 buildCounterGoogleLongrunningOperation++;
384 if (buildCounterGoogleLongrunningOperation < 3) { 640 if (buildCounterGoogleLongrunningOperation < 3) {
385 o.done = true; 641 o.done = true;
386 o.error = buildGoogleRpcStatus(); 642 o.error = buildGoogleRpcStatus();
387 o.metadata = buildUnnamed3213(); 643 o.metadata = buildUnnamed3339();
388 o.name = "foo"; 644 o.name = "foo";
389 o.response = buildUnnamed3214(); 645 o.response = buildUnnamed3340();
390 } 646 }
391 buildCounterGoogleLongrunningOperation--; 647 buildCounterGoogleLongrunningOperation--;
392 return o; 648 return o;
393 } 649 }
394 650
395 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { 651 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) {
396 buildCounterGoogleLongrunningOperation++; 652 buildCounterGoogleLongrunningOperation++;
397 if (buildCounterGoogleLongrunningOperation < 3) { 653 if (buildCounterGoogleLongrunningOperation < 3) {
398 unittest.expect(o.done, unittest.isTrue); 654 unittest.expect(o.done, unittest.isTrue);
399 checkGoogleRpcStatus(o.error); 655 checkGoogleRpcStatus(o.error);
400 checkUnnamed3213(o.metadata); 656 checkUnnamed3339(o.metadata);
401 unittest.expect(o.name, unittest.equals('foo')); 657 unittest.expect(o.name, unittest.equals('foo'));
402 checkUnnamed3214(o.response); 658 checkUnnamed3340(o.response);
403 } 659 }
404 buildCounterGoogleLongrunningOperation--; 660 buildCounterGoogleLongrunningOperation--;
405 } 661 }
406 662
407 buildUnnamed3215() { 663 buildUnnamed3341() {
408 var o = new core.Map<core.String, core.Object>(); 664 var o = new core.Map<core.String, core.Object>();
409 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 665 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
410 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 666 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
411 return o; 667 return o;
412 } 668 }
413 669
414 checkUnnamed3215(core.Map<core.String, core.Object> o) { 670 checkUnnamed3341(core.Map<core.String, core.Object> o) {
415 unittest.expect(o, unittest.hasLength(2)); 671 unittest.expect(o, unittest.hasLength(2));
416 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')); 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'));
417 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')); 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'));
418 } 674 }
419 675
420 buildUnnamed3216() { 676 buildUnnamed3342() {
421 var o = new core.List<core.Map<core.String, core.Object>>(); 677 var o = new core.List<core.Map<core.String, core.Object>>();
422 o.add(buildUnnamed3215()); 678 o.add(buildUnnamed3341());
423 o.add(buildUnnamed3215()); 679 o.add(buildUnnamed3341());
424 return o; 680 return o;
425 } 681 }
426 682
427 checkUnnamed3216(core.List<core.Map<core.String, core.Object>> o) { 683 checkUnnamed3342(core.List<core.Map<core.String, core.Object>> o) {
428 unittest.expect(o, unittest.hasLength(2)); 684 unittest.expect(o, unittest.hasLength(2));
429 checkUnnamed3215(o[0]); 685 checkUnnamed3341(o[0]);
430 checkUnnamed3215(o[1]); 686 checkUnnamed3341(o[1]);
431 } 687 }
432 688
433 core.int buildCounterGoogleRpcStatus = 0; 689 core.int buildCounterGoogleRpcStatus = 0;
434 buildGoogleRpcStatus() { 690 buildGoogleRpcStatus() {
435 var o = new api.GoogleRpcStatus(); 691 var o = new api.GoogleRpcStatus();
436 buildCounterGoogleRpcStatus++; 692 buildCounterGoogleRpcStatus++;
437 if (buildCounterGoogleRpcStatus < 3) { 693 if (buildCounterGoogleRpcStatus < 3) {
438 o.code = 42; 694 o.code = 42;
439 o.details = buildUnnamed3216(); 695 o.details = buildUnnamed3342();
440 o.message = "foo"; 696 o.message = "foo";
441 } 697 }
442 buildCounterGoogleRpcStatus--; 698 buildCounterGoogleRpcStatus--;
443 return o; 699 return o;
444 } 700 }
445 701
446 checkGoogleRpcStatus(api.GoogleRpcStatus o) { 702 checkGoogleRpcStatus(api.GoogleRpcStatus o) {
447 buildCounterGoogleRpcStatus++; 703 buildCounterGoogleRpcStatus++;
448 if (buildCounterGoogleRpcStatus < 3) { 704 if (buildCounterGoogleRpcStatus < 3) {
449 unittest.expect(o.code, unittest.equals(42)); 705 unittest.expect(o.code, unittest.equals(42));
450 checkUnnamed3216(o.details); 706 checkUnnamed3342(o.details);
451 unittest.expect(o.message, unittest.equals('foo')); 707 unittest.expect(o.message, unittest.equals('foo'));
452 } 708 }
453 buildCounterGoogleRpcStatus--; 709 buildCounterGoogleRpcStatus--;
454 } 710 }
455 711
456 712
457 main() { 713 main() {
714 unittest.group("obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoProgress ", () {
715 unittest.test("to-json--from-json", () {
716 var o = buildGoogleCloudVideointelligenceV1AnnotateVideoProgress();
717 var od = new api.GoogleCloudVideointelligenceV1AnnotateVideoProgress.fromJ son(o.toJson());
718 checkGoogleCloudVideointelligenceV1AnnotateVideoProgress(od);
719 });
720 });
721
722
723 unittest.group("obj-schema-GoogleCloudVideointelligenceV1AnnotateVideoResponse ", () {
724 unittest.test("to-json--from-json", () {
725 var o = buildGoogleCloudVideointelligenceV1AnnotateVideoResponse();
726 var od = new api.GoogleCloudVideointelligenceV1AnnotateVideoResponse.fromJ son(o.toJson());
727 checkGoogleCloudVideointelligenceV1AnnotateVideoResponse(od);
728 });
729 });
730
731
732 unittest.group("obj-schema-GoogleCloudVideointelligenceV1LabelAnnotation", () {
733 unittest.test("to-json--from-json", () {
734 var o = buildGoogleCloudVideointelligenceV1LabelAnnotation();
735 var od = new api.GoogleCloudVideointelligenceV1LabelAnnotation.fromJson(o. toJson());
736 checkGoogleCloudVideointelligenceV1LabelAnnotation(od);
737 });
738 });
739
740
741 unittest.group("obj-schema-GoogleCloudVideointelligenceV1LabelLocation", () {
742 unittest.test("to-json--from-json", () {
743 var o = buildGoogleCloudVideointelligenceV1LabelLocation();
744 var od = new api.GoogleCloudVideointelligenceV1LabelLocation.fromJson(o.to Json());
745 checkGoogleCloudVideointelligenceV1LabelLocation(od);
746 });
747 });
748
749
750 unittest.group("obj-schema-GoogleCloudVideointelligenceV1SafeSearchAnnotation" , () {
751 unittest.test("to-json--from-json", () {
752 var o = buildGoogleCloudVideointelligenceV1SafeSearchAnnotation();
753 var od = new api.GoogleCloudVideointelligenceV1SafeSearchAnnotation.fromJs on(o.toJson());
754 checkGoogleCloudVideointelligenceV1SafeSearchAnnotation(od);
755 });
756 });
757
758
759 unittest.group("obj-schema-GoogleCloudVideointelligenceV1VideoAnnotationProgre ss", () {
760 unittest.test("to-json--from-json", () {
761 var o = buildGoogleCloudVideointelligenceV1VideoAnnotationProgress();
762 var od = new api.GoogleCloudVideointelligenceV1VideoAnnotationProgress.fro mJson(o.toJson());
763 checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(od);
764 });
765 });
766
767
768 unittest.group("obj-schema-GoogleCloudVideointelligenceV1VideoAnnotationResult s", () {
769 unittest.test("to-json--from-json", () {
770 var o = buildGoogleCloudVideointelligenceV1VideoAnnotationResults();
771 var od = new api.GoogleCloudVideointelligenceV1VideoAnnotationResults.from Json(o.toJson());
772 checkGoogleCloudVideointelligenceV1VideoAnnotationResults(od);
773 });
774 });
775
776
777 unittest.group("obj-schema-GoogleCloudVideointelligenceV1VideoSegment", () {
778 unittest.test("to-json--from-json", () {
779 var o = buildGoogleCloudVideointelligenceV1VideoSegment();
780 var od = new api.GoogleCloudVideointelligenceV1VideoSegment.fromJson(o.toJ son());
781 checkGoogleCloudVideointelligenceV1VideoSegment(od);
782 });
783 });
784
785
458 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoPro gress", () { 786 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoPro gress", () {
459 unittest.test("to-json--from-json", () { 787 unittest.test("to-json--from-json", () {
460 var o = buildGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(); 788 var o = buildGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress();
461 var od = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress. fromJson(o.toJson()); 789 var od = new api.GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress. fromJson(o.toJson());
462 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(od); 790 checkGoogleCloudVideointelligenceV1beta1AnnotateVideoProgress(od);
463 }); 791 });
464 }); 792 });
465 793
466 794
467 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoReq uest", () { 795 unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta1AnnotateVideoReq uest", () {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 res.annotate(arg_request).then(unittest.expectAsync1(((api.GoogleLongrunni ngOperation response) { 928 res.annotate(arg_request).then(unittest.expectAsync1(((api.GoogleLongrunni ngOperation response) {
601 checkGoogleLongrunningOperation(response); 929 checkGoogleLongrunningOperation(response);
602 }))); 930 })));
603 }); 931 });
604 932
605 }); 933 });
606 934
607 935
608 } 936 }
609 937
OLDNEW
« no previous file with comments | « generated/googleapis_beta/test/taskqueue/v1beta2_test.dart ('k') | pubspec.lock » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698