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

Side by Side Diff: generated/googleapis_beta/test/dataflow/v1b3_test.dart

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 library googleapis_beta.dataflow.v1b3.test; 1 library googleapis_beta.dataflow.v1b3.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:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 checkAutoscalingSettings(api.AutoscalingSettings o) { 135 checkAutoscalingSettings(api.AutoscalingSettings o) {
136 buildCounterAutoscalingSettings++; 136 buildCounterAutoscalingSettings++;
137 if (buildCounterAutoscalingSettings < 3) { 137 if (buildCounterAutoscalingSettings < 3) {
138 unittest.expect(o.algorithm, unittest.equals('foo')); 138 unittest.expect(o.algorithm, unittest.equals('foo'));
139 unittest.expect(o.maxNumWorkers, unittest.equals(42)); 139 unittest.expect(o.maxNumWorkers, unittest.equals(42));
140 } 140 }
141 buildCounterAutoscalingSettings--; 141 buildCounterAutoscalingSettings--;
142 } 142 }
143 143
144 buildUnnamed3540() { 144 buildUnnamed3354() {
145 var o = new core.List<api.StreamLocation>(); 145 var o = new core.List<api.StreamLocation>();
146 o.add(buildStreamLocation()); 146 o.add(buildStreamLocation());
147 o.add(buildStreamLocation()); 147 o.add(buildStreamLocation());
148 return o; 148 return o;
149 } 149 }
150 150
151 checkUnnamed3540(core.List<api.StreamLocation> o) { 151 checkUnnamed3354(core.List<api.StreamLocation> o) {
152 unittest.expect(o, unittest.hasLength(2)); 152 unittest.expect(o, unittest.hasLength(2));
153 checkStreamLocation(o[0]); 153 checkStreamLocation(o[0]);
154 checkStreamLocation(o[1]); 154 checkStreamLocation(o[1]);
155 } 155 }
156 156
157 buildUnnamed3541() { 157 buildUnnamed3355() {
158 var o = new core.List<api.KeyRangeLocation>(); 158 var o = new core.List<api.KeyRangeLocation>();
159 o.add(buildKeyRangeLocation()); 159 o.add(buildKeyRangeLocation());
160 o.add(buildKeyRangeLocation()); 160 o.add(buildKeyRangeLocation());
161 return o; 161 return o;
162 } 162 }
163 163
164 checkUnnamed3541(core.List<api.KeyRangeLocation> o) { 164 checkUnnamed3355(core.List<api.KeyRangeLocation> o) {
165 unittest.expect(o, unittest.hasLength(2)); 165 unittest.expect(o, unittest.hasLength(2));
166 checkKeyRangeLocation(o[0]); 166 checkKeyRangeLocation(o[0]);
167 checkKeyRangeLocation(o[1]); 167 checkKeyRangeLocation(o[1]);
168 } 168 }
169 169
170 buildUnnamed3542() { 170 buildUnnamed3356() {
171 var o = new core.List<api.StreamLocation>(); 171 var o = new core.List<api.StreamLocation>();
172 o.add(buildStreamLocation()); 172 o.add(buildStreamLocation());
173 o.add(buildStreamLocation()); 173 o.add(buildStreamLocation());
174 return o; 174 return o;
175 } 175 }
176 176
177 checkUnnamed3542(core.List<api.StreamLocation> o) { 177 checkUnnamed3356(core.List<api.StreamLocation> o) {
178 unittest.expect(o, unittest.hasLength(2)); 178 unittest.expect(o, unittest.hasLength(2));
179 checkStreamLocation(o[0]); 179 checkStreamLocation(o[0]);
180 checkStreamLocation(o[1]); 180 checkStreamLocation(o[1]);
181 } 181 }
182 182
183 buildUnnamed3543() { 183 buildUnnamed3357() {
184 var o = new core.List<api.StateFamilyConfig>(); 184 var o = new core.List<api.StateFamilyConfig>();
185 o.add(buildStateFamilyConfig()); 185 o.add(buildStateFamilyConfig());
186 o.add(buildStateFamilyConfig()); 186 o.add(buildStateFamilyConfig());
187 return o; 187 return o;
188 } 188 }
189 189
190 checkUnnamed3543(core.List<api.StateFamilyConfig> o) { 190 checkUnnamed3357(core.List<api.StateFamilyConfig> o) {
191 unittest.expect(o, unittest.hasLength(2)); 191 unittest.expect(o, unittest.hasLength(2));
192 checkStateFamilyConfig(o[0]); 192 checkStateFamilyConfig(o[0]);
193 checkStateFamilyConfig(o[1]); 193 checkStateFamilyConfig(o[1]);
194 } 194 }
195 195
196 core.int buildCounterComputationTopology = 0; 196 core.int buildCounterComputationTopology = 0;
197 buildComputationTopology() { 197 buildComputationTopology() {
198 var o = new api.ComputationTopology(); 198 var o = new api.ComputationTopology();
199 buildCounterComputationTopology++; 199 buildCounterComputationTopology++;
200 if (buildCounterComputationTopology < 3) { 200 if (buildCounterComputationTopology < 3) {
201 o.computationId = "foo"; 201 o.computationId = "foo";
202 o.inputs = buildUnnamed3540(); 202 o.inputs = buildUnnamed3354();
203 o.keyRanges = buildUnnamed3541(); 203 o.keyRanges = buildUnnamed3355();
204 o.outputs = buildUnnamed3542(); 204 o.outputs = buildUnnamed3356();
205 o.stateFamilies = buildUnnamed3543(); 205 o.stateFamilies = buildUnnamed3357();
206 o.systemStageName = "foo"; 206 o.systemStageName = "foo";
207 o.userStageName = "foo"; 207 o.userStageName = "foo";
208 } 208 }
209 buildCounterComputationTopology--; 209 buildCounterComputationTopology--;
210 return o; 210 return o;
211 } 211 }
212 212
213 checkComputationTopology(api.ComputationTopology o) { 213 checkComputationTopology(api.ComputationTopology o) {
214 buildCounterComputationTopology++; 214 buildCounterComputationTopology++;
215 if (buildCounterComputationTopology < 3) { 215 if (buildCounterComputationTopology < 3) {
216 unittest.expect(o.computationId, unittest.equals('foo')); 216 unittest.expect(o.computationId, unittest.equals('foo'));
217 checkUnnamed3540(o.inputs); 217 checkUnnamed3354(o.inputs);
218 checkUnnamed3541(o.keyRanges); 218 checkUnnamed3355(o.keyRanges);
219 checkUnnamed3542(o.outputs); 219 checkUnnamed3356(o.outputs);
220 checkUnnamed3543(o.stateFamilies); 220 checkUnnamed3357(o.stateFamilies);
221 unittest.expect(o.systemStageName, unittest.equals('foo')); 221 unittest.expect(o.systemStageName, unittest.equals('foo'));
222 unittest.expect(o.userStageName, unittest.equals('foo')); 222 unittest.expect(o.userStageName, unittest.equals('foo'));
223 } 223 }
224 buildCounterComputationTopology--; 224 buildCounterComputationTopology--;
225 } 225 }
226 226
227 core.int buildCounterConcatPosition = 0; 227 core.int buildCounterConcatPosition = 0;
228 buildConcatPosition() { 228 buildConcatPosition() {
229 var o = new api.ConcatPosition(); 229 var o = new api.ConcatPosition();
230 buildCounterConcatPosition++; 230 buildCounterConcatPosition++;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 checkIntegerMean(o.integerMean); 360 checkIntegerMean(o.integerMean);
361 var casted1 = (o.internal) as core.Map; unittest.expect(casted1, unittest.ha sLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unitt est.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["str ing"], unittest.equals('foo')); 361 var casted1 = (o.internal) as core.Map; unittest.expect(casted1, unittest.ha sLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unitt est.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["str ing"], unittest.equals('foo'));
362 checkNameAndKind(o.nameAndKind); 362 checkNameAndKind(o.nameAndKind);
363 unittest.expect(o.shortId, unittest.equals('foo')); 363 unittest.expect(o.shortId, unittest.equals('foo'));
364 checkStringList(o.stringList); 364 checkStringList(o.stringList);
365 checkCounterStructuredNameAndMetadata(o.structuredNameAndMetadata); 365 checkCounterStructuredNameAndMetadata(o.structuredNameAndMetadata);
366 } 366 }
367 buildCounterCounterUpdate--; 367 buildCounterCounterUpdate--;
368 } 368 }
369 369
370 buildUnnamed3544() { 370 buildUnnamed3358() {
371 var o = new core.Map<core.String, core.String>(); 371 var o = new core.Map<core.String, core.String>();
372 o["x"] = "foo"; 372 o["x"] = "foo";
373 o["y"] = "foo"; 373 o["y"] = "foo";
374 return o; 374 return o;
375 } 375 }
376 376
377 checkUnnamed3544(core.Map<core.String, core.String> o) { 377 checkUnnamed3358(core.Map<core.String, core.String> o) {
378 unittest.expect(o, unittest.hasLength(2)); 378 unittest.expect(o, unittest.hasLength(2));
379 unittest.expect(o["x"], unittest.equals('foo')); 379 unittest.expect(o["x"], unittest.equals('foo'));
380 unittest.expect(o["y"], unittest.equals('foo')); 380 unittest.expect(o["y"], unittest.equals('foo'));
381 } 381 }
382 382
383 core.int buildCounterCreateJobFromTemplateRequest = 0; 383 core.int buildCounterCreateJobFromTemplateRequest = 0;
384 buildCreateJobFromTemplateRequest() { 384 buildCreateJobFromTemplateRequest() {
385 var o = new api.CreateJobFromTemplateRequest(); 385 var o = new api.CreateJobFromTemplateRequest();
386 buildCounterCreateJobFromTemplateRequest++; 386 buildCounterCreateJobFromTemplateRequest++;
387 if (buildCounterCreateJobFromTemplateRequest < 3) { 387 if (buildCounterCreateJobFromTemplateRequest < 3) {
388 o.gcsPath = "foo"; 388 o.gcsPath = "foo";
389 o.parameters = buildUnnamed3544(); 389 o.parameters = buildUnnamed3358();
390 } 390 }
391 buildCounterCreateJobFromTemplateRequest--; 391 buildCounterCreateJobFromTemplateRequest--;
392 return o; 392 return o;
393 } 393 }
394 394
395 checkCreateJobFromTemplateRequest(api.CreateJobFromTemplateRequest o) { 395 checkCreateJobFromTemplateRequest(api.CreateJobFromTemplateRequest o) {
396 buildCounterCreateJobFromTemplateRequest++; 396 buildCounterCreateJobFromTemplateRequest++;
397 if (buildCounterCreateJobFromTemplateRequest < 3) { 397 if (buildCounterCreateJobFromTemplateRequest < 3) {
398 unittest.expect(o.gcsPath, unittest.equals('foo')); 398 unittest.expect(o.gcsPath, unittest.equals('foo'));
399 checkUnnamed3544(o.parameters); 399 checkUnnamed3358(o.parameters);
400 } 400 }
401 buildCounterCreateJobFromTemplateRequest--; 401 buildCounterCreateJobFromTemplateRequest--;
402 } 402 }
403 403
404 core.int buildCounterCustomSourceLocation = 0; 404 core.int buildCounterCustomSourceLocation = 0;
405 buildCustomSourceLocation() { 405 buildCustomSourceLocation() {
406 var o = new api.CustomSourceLocation(); 406 var o = new api.CustomSourceLocation();
407 buildCounterCustomSourceLocation++; 407 buildCounterCustomSourceLocation++;
408 if (buildCounterCustomSourceLocation < 3) { 408 if (buildCounterCustomSourceLocation < 3) {
409 o.stateful = true; 409 o.stateful = true;
410 } 410 }
411 buildCounterCustomSourceLocation--; 411 buildCounterCustomSourceLocation--;
412 return o; 412 return o;
413 } 413 }
414 414
415 checkCustomSourceLocation(api.CustomSourceLocation o) { 415 checkCustomSourceLocation(api.CustomSourceLocation o) {
416 buildCounterCustomSourceLocation++; 416 buildCounterCustomSourceLocation++;
417 if (buildCounterCustomSourceLocation < 3) { 417 if (buildCounterCustomSourceLocation < 3) {
418 unittest.expect(o.stateful, unittest.isTrue); 418 unittest.expect(o.stateful, unittest.isTrue);
419 } 419 }
420 buildCounterCustomSourceLocation--; 420 buildCounterCustomSourceLocation--;
421 } 421 }
422 422
423 buildUnnamed3545() { 423 buildUnnamed3359() {
424 var o = new core.List<core.String>(); 424 var o = new core.List<core.String>();
425 o.add("foo"); 425 o.add("foo");
426 o.add("foo"); 426 o.add("foo");
427 return o; 427 return o;
428 } 428 }
429 429
430 checkUnnamed3545(core.List<core.String> o) { 430 checkUnnamed3359(core.List<core.String> o) {
431 unittest.expect(o, unittest.hasLength(2)); 431 unittest.expect(o, unittest.hasLength(2));
432 unittest.expect(o[0], unittest.equals('foo')); 432 unittest.expect(o[0], unittest.equals('foo'));
433 unittest.expect(o[1], unittest.equals('foo')); 433 unittest.expect(o[1], unittest.equals('foo'));
434 } 434 }
435 435
436 core.int buildCounterDataDiskAssignment = 0; 436 core.int buildCounterDataDiskAssignment = 0;
437 buildDataDiskAssignment() { 437 buildDataDiskAssignment() {
438 var o = new api.DataDiskAssignment(); 438 var o = new api.DataDiskAssignment();
439 buildCounterDataDiskAssignment++; 439 buildCounterDataDiskAssignment++;
440 if (buildCounterDataDiskAssignment < 3) { 440 if (buildCounterDataDiskAssignment < 3) {
441 o.dataDisks = buildUnnamed3545(); 441 o.dataDisks = buildUnnamed3359();
442 o.vmInstance = "foo"; 442 o.vmInstance = "foo";
443 } 443 }
444 buildCounterDataDiskAssignment--; 444 buildCounterDataDiskAssignment--;
445 return o; 445 return o;
446 } 446 }
447 447
448 checkDataDiskAssignment(api.DataDiskAssignment o) { 448 checkDataDiskAssignment(api.DataDiskAssignment o) {
449 buildCounterDataDiskAssignment++; 449 buildCounterDataDiskAssignment++;
450 if (buildCounterDataDiskAssignment < 3) { 450 if (buildCounterDataDiskAssignment < 3) {
451 checkUnnamed3545(o.dataDisks); 451 checkUnnamed3359(o.dataDisks);
452 unittest.expect(o.vmInstance, unittest.equals('foo')); 452 unittest.expect(o.vmInstance, unittest.equals('foo'));
453 } 453 }
454 buildCounterDataDiskAssignment--; 454 buildCounterDataDiskAssignment--;
455 } 455 }
456 456
457 core.int buildCounterDerivedSource = 0; 457 core.int buildCounterDerivedSource = 0;
458 buildDerivedSource() { 458 buildDerivedSource() {
459 var o = new api.DerivedSource(); 459 var o = new api.DerivedSource();
460 buildCounterDerivedSource++; 460 buildCounterDerivedSource++;
461 if (buildCounterDerivedSource < 3) { 461 if (buildCounterDerivedSource < 3) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 512
513 checkDynamicSourceSplit(api.DynamicSourceSplit o) { 513 checkDynamicSourceSplit(api.DynamicSourceSplit o) {
514 buildCounterDynamicSourceSplit++; 514 buildCounterDynamicSourceSplit++;
515 if (buildCounterDynamicSourceSplit < 3) { 515 if (buildCounterDynamicSourceSplit < 3) {
516 checkDerivedSource(o.primary); 516 checkDerivedSource(o.primary);
517 checkDerivedSource(o.residual); 517 checkDerivedSource(o.residual);
518 } 518 }
519 buildCounterDynamicSourceSplit--; 519 buildCounterDynamicSourceSplit--;
520 } 520 }
521 521
522 buildUnnamed3546() { 522 buildUnnamed3360() {
523 var o = new core.List<core.String>(); 523 var o = new core.List<core.String>();
524 o.add("foo"); 524 o.add("foo");
525 o.add("foo"); 525 o.add("foo");
526 return o; 526 return o;
527 } 527 }
528 528
529 checkUnnamed3546(core.List<core.String> o) { 529 checkUnnamed3360(core.List<core.String> o) {
530 unittest.expect(o, unittest.hasLength(2)); 530 unittest.expect(o, unittest.hasLength(2));
531 unittest.expect(o[0], unittest.equals('foo')); 531 unittest.expect(o[0], unittest.equals('foo'));
532 unittest.expect(o[1], unittest.equals('foo')); 532 unittest.expect(o[1], unittest.equals('foo'));
533 } 533 }
534 534
535 buildUnnamed3547() { 535 buildUnnamed3361() {
536 var o = new core.Map<core.String, core.Object>(); 536 var o = new core.Map<core.String, core.Object>();
537 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 537 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
538 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 538 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
539 return o; 539 return o;
540 } 540 }
541 541
542 checkUnnamed3547(core.Map<core.String, core.Object> o) { 542 checkUnnamed3361(core.Map<core.String, core.Object> o) {
543 unittest.expect(o, unittest.hasLength(2)); 543 unittest.expect(o, unittest.hasLength(2));
544 var casted2 = (o["x"]) 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')); 544 var casted2 = (o["x"]) 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'));
545 var casted3 = (o["y"]) 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')); 545 var casted3 = (o["y"]) 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'));
546 } 546 }
547 547
548 buildUnnamed3548() { 548 buildUnnamed3362() {
549 var o = new core.Map<core.String, core.Object>(); 549 var o = new core.Map<core.String, core.Object>();
550 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 550 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
551 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 551 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
552 return o; 552 return o;
553 } 553 }
554 554
555 checkUnnamed3548(core.Map<core.String, core.Object> o) { 555 checkUnnamed3362(core.Map<core.String, core.Object> o) {
556 unittest.expect(o, unittest.hasLength(2)); 556 unittest.expect(o, unittest.hasLength(2));
557 var casted4 = (o["x"]) 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')); 557 var casted4 = (o["x"]) 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'));
558 var casted5 = (o["y"]) 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')); 558 var casted5 = (o["y"]) 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'));
559 } 559 }
560 560
561 buildUnnamed3549() { 561 buildUnnamed3363() {
562 var o = new core.Map<core.String, core.Object>(); 562 var o = new core.Map<core.String, core.Object>();
563 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 563 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
564 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 564 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
565 return o; 565 return o;
566 } 566 }
567 567
568 checkUnnamed3549(core.Map<core.String, core.Object> o) { 568 checkUnnamed3363(core.Map<core.String, core.Object> o) {
569 unittest.expect(o, unittest.hasLength(2)); 569 unittest.expect(o, unittest.hasLength(2));
570 var casted6 = (o["x"]) 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')); 570 var casted6 = (o["x"]) 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'));
571 var casted7 = (o["y"]) as core.Map; unittest.expect(casted7, unittest.hasLengt h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); 571 var casted7 = (o["y"]) as core.Map; unittest.expect(casted7, unittest.hasLengt h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo'));
572 } 572 }
573 573
574 buildUnnamed3550() { 574 buildUnnamed3364() {
575 var o = new core.Map<core.String, core.Object>(); 575 var o = new core.Map<core.String, core.Object>();
576 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 576 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
577 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 577 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
578 return o; 578 return o;
579 } 579 }
580 580
581 checkUnnamed3550(core.Map<core.String, core.Object> o) { 581 checkUnnamed3364(core.Map<core.String, core.Object> o) {
582 unittest.expect(o, unittest.hasLength(2)); 582 unittest.expect(o, unittest.hasLength(2));
583 var casted8 = (o["x"]) as core.Map; unittest.expect(casted8, unittest.hasLengt h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); 583 var casted8 = (o["x"]) as core.Map; unittest.expect(casted8, unittest.hasLengt h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo'));
584 var casted9 = (o["y"]) as core.Map; unittest.expect(casted9, unittest.hasLengt h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); 584 var casted9 = (o["y"]) as core.Map; unittest.expect(casted9, unittest.hasLengt h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo'));
585 } 585 }
586 586
587 buildUnnamed3551() { 587 buildUnnamed3365() {
588 var o = new core.List<api.WorkerPool>(); 588 var o = new core.List<api.WorkerPool>();
589 o.add(buildWorkerPool()); 589 o.add(buildWorkerPool());
590 o.add(buildWorkerPool()); 590 o.add(buildWorkerPool());
591 return o; 591 return o;
592 } 592 }
593 593
594 checkUnnamed3551(core.List<api.WorkerPool> o) { 594 checkUnnamed3365(core.List<api.WorkerPool> o) {
595 unittest.expect(o, unittest.hasLength(2)); 595 unittest.expect(o, unittest.hasLength(2));
596 checkWorkerPool(o[0]); 596 checkWorkerPool(o[0]);
597 checkWorkerPool(o[1]); 597 checkWorkerPool(o[1]);
598 } 598 }
599 599
600 core.int buildCounterEnvironment = 0; 600 core.int buildCounterEnvironment = 0;
601 buildEnvironment() { 601 buildEnvironment() {
602 var o = new api.Environment(); 602 var o = new api.Environment();
603 buildCounterEnvironment++; 603 buildCounterEnvironment++;
604 if (buildCounterEnvironment < 3) { 604 if (buildCounterEnvironment < 3) {
605 o.clusterManagerApiService = "foo"; 605 o.clusterManagerApiService = "foo";
606 o.dataset = "foo"; 606 o.dataset = "foo";
607 o.experiments = buildUnnamed3546(); 607 o.experiments = buildUnnamed3360();
608 o.internalExperiments = buildUnnamed3547(); 608 o.internalExperiments = buildUnnamed3361();
609 o.sdkPipelineOptions = buildUnnamed3548(); 609 o.sdkPipelineOptions = buildUnnamed3362();
610 o.serviceAccountEmail = "foo";
610 o.tempStoragePrefix = "foo"; 611 o.tempStoragePrefix = "foo";
611 o.userAgent = buildUnnamed3549(); 612 o.userAgent = buildUnnamed3363();
612 o.version = buildUnnamed3550(); 613 o.version = buildUnnamed3364();
613 o.workerPools = buildUnnamed3551(); 614 o.workerPools = buildUnnamed3365();
614 } 615 }
615 buildCounterEnvironment--; 616 buildCounterEnvironment--;
616 return o; 617 return o;
617 } 618 }
618 619
619 checkEnvironment(api.Environment o) { 620 checkEnvironment(api.Environment o) {
620 buildCounterEnvironment++; 621 buildCounterEnvironment++;
621 if (buildCounterEnvironment < 3) { 622 if (buildCounterEnvironment < 3) {
622 unittest.expect(o.clusterManagerApiService, unittest.equals('foo')); 623 unittest.expect(o.clusterManagerApiService, unittest.equals('foo'));
623 unittest.expect(o.dataset, unittest.equals('foo')); 624 unittest.expect(o.dataset, unittest.equals('foo'));
624 checkUnnamed3546(o.experiments); 625 checkUnnamed3360(o.experiments);
625 checkUnnamed3547(o.internalExperiments); 626 checkUnnamed3361(o.internalExperiments);
626 checkUnnamed3548(o.sdkPipelineOptions); 627 checkUnnamed3362(o.sdkPipelineOptions);
628 unittest.expect(o.serviceAccountEmail, unittest.equals('foo'));
627 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); 629 unittest.expect(o.tempStoragePrefix, unittest.equals('foo'));
628 checkUnnamed3549(o.userAgent); 630 checkUnnamed3363(o.userAgent);
629 checkUnnamed3550(o.version); 631 checkUnnamed3364(o.version);
630 checkUnnamed3551(o.workerPools); 632 checkUnnamed3365(o.workerPools);
631 } 633 }
632 buildCounterEnvironment--; 634 buildCounterEnvironment--;
633 } 635 }
634 636
635 buildUnnamed3552() { 637 core.int buildCounterFailedLocation = 0;
638 buildFailedLocation() {
639 var o = new api.FailedLocation();
640 buildCounterFailedLocation++;
641 if (buildCounterFailedLocation < 3) {
642 o.name = "foo";
643 }
644 buildCounterFailedLocation--;
645 return o;
646 }
647
648 checkFailedLocation(api.FailedLocation o) {
649 buildCounterFailedLocation++;
650 if (buildCounterFailedLocation < 3) {
651 unittest.expect(o.name, unittest.equals('foo'));
652 }
653 buildCounterFailedLocation--;
654 }
655
656 buildUnnamed3366() {
636 var o = new core.List<api.InstructionInput>(); 657 var o = new core.List<api.InstructionInput>();
637 o.add(buildInstructionInput()); 658 o.add(buildInstructionInput());
638 o.add(buildInstructionInput()); 659 o.add(buildInstructionInput());
639 return o; 660 return o;
640 } 661 }
641 662
642 checkUnnamed3552(core.List<api.InstructionInput> o) { 663 checkUnnamed3366(core.List<api.InstructionInput> o) {
643 unittest.expect(o, unittest.hasLength(2)); 664 unittest.expect(o, unittest.hasLength(2));
644 checkInstructionInput(o[0]); 665 checkInstructionInput(o[0]);
645 checkInstructionInput(o[1]); 666 checkInstructionInput(o[1]);
646 } 667 }
647 668
648 core.int buildCounterFlattenInstruction = 0; 669 core.int buildCounterFlattenInstruction = 0;
649 buildFlattenInstruction() { 670 buildFlattenInstruction() {
650 var o = new api.FlattenInstruction(); 671 var o = new api.FlattenInstruction();
651 buildCounterFlattenInstruction++; 672 buildCounterFlattenInstruction++;
652 if (buildCounterFlattenInstruction < 3) { 673 if (buildCounterFlattenInstruction < 3) {
653 o.inputs = buildUnnamed3552(); 674 o.inputs = buildUnnamed3366();
654 } 675 }
655 buildCounterFlattenInstruction--; 676 buildCounterFlattenInstruction--;
656 return o; 677 return o;
657 } 678 }
658 679
659 checkFlattenInstruction(api.FlattenInstruction o) { 680 checkFlattenInstruction(api.FlattenInstruction o) {
660 buildCounterFlattenInstruction++; 681 buildCounterFlattenInstruction++;
661 if (buildCounterFlattenInstruction < 3) { 682 if (buildCounterFlattenInstruction < 3) {
662 checkUnnamed3552(o.inputs); 683 checkUnnamed3366(o.inputs);
663 } 684 }
664 buildCounterFlattenInstruction--; 685 buildCounterFlattenInstruction--;
665 } 686 }
666 687
667 buildUnnamed3553() { 688 buildUnnamed3367() {
668 var o = new core.List<core.double>(); 689 var o = new core.List<core.double>();
669 o.add(42.0); 690 o.add(42.0);
670 o.add(42.0); 691 o.add(42.0);
671 return o; 692 return o;
672 } 693 }
673 694
674 checkUnnamed3553(core.List<core.double> o) { 695 checkUnnamed3367(core.List<core.double> o) {
675 unittest.expect(o, unittest.hasLength(2)); 696 unittest.expect(o, unittest.hasLength(2));
676 unittest.expect(o[0], unittest.equals(42.0)); 697 unittest.expect(o[0], unittest.equals(42.0));
677 unittest.expect(o[1], unittest.equals(42.0)); 698 unittest.expect(o[1], unittest.equals(42.0));
678 } 699 }
679 700
680 core.int buildCounterFloatingPointList = 0; 701 core.int buildCounterFloatingPointList = 0;
681 buildFloatingPointList() { 702 buildFloatingPointList() {
682 var o = new api.FloatingPointList(); 703 var o = new api.FloatingPointList();
683 buildCounterFloatingPointList++; 704 buildCounterFloatingPointList++;
684 if (buildCounterFloatingPointList < 3) { 705 if (buildCounterFloatingPointList < 3) {
685 o.elements = buildUnnamed3553(); 706 o.elements = buildUnnamed3367();
686 } 707 }
687 buildCounterFloatingPointList--; 708 buildCounterFloatingPointList--;
688 return o; 709 return o;
689 } 710 }
690 711
691 checkFloatingPointList(api.FloatingPointList o) { 712 checkFloatingPointList(api.FloatingPointList o) {
692 buildCounterFloatingPointList++; 713 buildCounterFloatingPointList++;
693 if (buildCounterFloatingPointList < 3) { 714 if (buildCounterFloatingPointList < 3) {
694 checkUnnamed3553(o.elements); 715 checkUnnamed3367(o.elements);
695 } 716 }
696 buildCounterFloatingPointList--; 717 buildCounterFloatingPointList--;
697 } 718 }
698 719
699 core.int buildCounterFloatingPointMean = 0; 720 core.int buildCounterFloatingPointMean = 0;
700 buildFloatingPointMean() { 721 buildFloatingPointMean() {
701 var o = new api.FloatingPointMean(); 722 var o = new api.FloatingPointMean();
702 buildCounterFloatingPointMean++; 723 buildCounterFloatingPointMean++;
703 if (buildCounterFloatingPointMean < 3) { 724 if (buildCounterFloatingPointMean < 3) {
704 o.count = buildSplitInt64(); 725 o.count = buildSplitInt64();
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 792
772 checkInstructionInput(api.InstructionInput o) { 793 checkInstructionInput(api.InstructionInput o) {
773 buildCounterInstructionInput++; 794 buildCounterInstructionInput++;
774 if (buildCounterInstructionInput < 3) { 795 if (buildCounterInstructionInput < 3) {
775 unittest.expect(o.outputNum, unittest.equals(42)); 796 unittest.expect(o.outputNum, unittest.equals(42));
776 unittest.expect(o.producerInstructionIndex, unittest.equals(42)); 797 unittest.expect(o.producerInstructionIndex, unittest.equals(42));
777 } 798 }
778 buildCounterInstructionInput--; 799 buildCounterInstructionInput--;
779 } 800 }
780 801
781 buildUnnamed3554() { 802 buildUnnamed3368() {
782 var o = new core.Map<core.String, core.Object>(); 803 var o = new core.Map<core.String, core.Object>();
783 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 804 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
784 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 805 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
785 return o; 806 return o;
786 } 807 }
787 808
788 checkUnnamed3554(core.Map<core.String, core.Object> o) { 809 checkUnnamed3368(core.Map<core.String, core.Object> o) {
789 unittest.expect(o, unittest.hasLength(2)); 810 unittest.expect(o, unittest.hasLength(2));
790 var casted10 = (o["x"]) as core.Map; unittest.expect(casted10, unittest.hasLen gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest .expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri ng"], unittest.equals('foo')); 811 var casted10 = (o["x"]) as core.Map; unittest.expect(casted10, unittest.hasLen gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest .expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri ng"], unittest.equals('foo'));
791 var casted11 = (o["y"]) as core.Map; unittest.expect(casted11, unittest.hasLen gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest .expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri ng"], unittest.equals('foo')); 812 var casted11 = (o["y"]) as core.Map; unittest.expect(casted11, unittest.hasLen gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest .expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri ng"], unittest.equals('foo'));
792 } 813 }
793 814
794 core.int buildCounterInstructionOutput = 0; 815 core.int buildCounterInstructionOutput = 0;
795 buildInstructionOutput() { 816 buildInstructionOutput() {
796 var o = new api.InstructionOutput(); 817 var o = new api.InstructionOutput();
797 buildCounterInstructionOutput++; 818 buildCounterInstructionOutput++;
798 if (buildCounterInstructionOutput < 3) { 819 if (buildCounterInstructionOutput < 3) {
799 o.codec = buildUnnamed3554(); 820 o.codec = buildUnnamed3368();
800 o.name = "foo"; 821 o.name = "foo";
801 o.onlyCountKeyBytes = true; 822 o.onlyCountKeyBytes = true;
802 o.onlyCountValueBytes = true; 823 o.onlyCountValueBytes = true;
803 o.originalName = "foo"; 824 o.originalName = "foo";
804 o.systemName = "foo"; 825 o.systemName = "foo";
805 } 826 }
806 buildCounterInstructionOutput--; 827 buildCounterInstructionOutput--;
807 return o; 828 return o;
808 } 829 }
809 830
810 checkInstructionOutput(api.InstructionOutput o) { 831 checkInstructionOutput(api.InstructionOutput o) {
811 buildCounterInstructionOutput++; 832 buildCounterInstructionOutput++;
812 if (buildCounterInstructionOutput < 3) { 833 if (buildCounterInstructionOutput < 3) {
813 checkUnnamed3554(o.codec); 834 checkUnnamed3368(o.codec);
814 unittest.expect(o.name, unittest.equals('foo')); 835 unittest.expect(o.name, unittest.equals('foo'));
815 unittest.expect(o.onlyCountKeyBytes, unittest.isTrue); 836 unittest.expect(o.onlyCountKeyBytes, unittest.isTrue);
816 unittest.expect(o.onlyCountValueBytes, unittest.isTrue); 837 unittest.expect(o.onlyCountValueBytes, unittest.isTrue);
817 unittest.expect(o.originalName, unittest.equals('foo')); 838 unittest.expect(o.originalName, unittest.equals('foo'));
818 unittest.expect(o.systemName, unittest.equals('foo')); 839 unittest.expect(o.systemName, unittest.equals('foo'));
819 } 840 }
820 buildCounterInstructionOutput--; 841 buildCounterInstructionOutput--;
821 } 842 }
822 843
823 buildUnnamed3555() { 844 buildUnnamed3369() {
824 var o = new core.List<api.SplitInt64>(); 845 var o = new core.List<api.SplitInt64>();
825 o.add(buildSplitInt64()); 846 o.add(buildSplitInt64());
826 o.add(buildSplitInt64()); 847 o.add(buildSplitInt64());
827 return o; 848 return o;
828 } 849 }
829 850
830 checkUnnamed3555(core.List<api.SplitInt64> o) { 851 checkUnnamed3369(core.List<api.SplitInt64> o) {
831 unittest.expect(o, unittest.hasLength(2)); 852 unittest.expect(o, unittest.hasLength(2));
832 checkSplitInt64(o[0]); 853 checkSplitInt64(o[0]);
833 checkSplitInt64(o[1]); 854 checkSplitInt64(o[1]);
834 } 855 }
835 856
836 core.int buildCounterIntegerList = 0; 857 core.int buildCounterIntegerList = 0;
837 buildIntegerList() { 858 buildIntegerList() {
838 var o = new api.IntegerList(); 859 var o = new api.IntegerList();
839 buildCounterIntegerList++; 860 buildCounterIntegerList++;
840 if (buildCounterIntegerList < 3) { 861 if (buildCounterIntegerList < 3) {
841 o.elements = buildUnnamed3555(); 862 o.elements = buildUnnamed3369();
842 } 863 }
843 buildCounterIntegerList--; 864 buildCounterIntegerList--;
844 return o; 865 return o;
845 } 866 }
846 867
847 checkIntegerList(api.IntegerList o) { 868 checkIntegerList(api.IntegerList o) {
848 buildCounterIntegerList++; 869 buildCounterIntegerList++;
849 if (buildCounterIntegerList < 3) { 870 if (buildCounterIntegerList < 3) {
850 checkUnnamed3555(o.elements); 871 checkUnnamed3369(o.elements);
851 } 872 }
852 buildCounterIntegerList--; 873 buildCounterIntegerList--;
853 } 874 }
854 875
855 core.int buildCounterIntegerMean = 0; 876 core.int buildCounterIntegerMean = 0;
856 buildIntegerMean() { 877 buildIntegerMean() {
857 var o = new api.IntegerMean(); 878 var o = new api.IntegerMean();
858 buildCounterIntegerMean++; 879 buildCounterIntegerMean++;
859 if (buildCounterIntegerMean < 3) { 880 if (buildCounterIntegerMean < 3) {
860 o.count = buildSplitInt64(); 881 o.count = buildSplitInt64();
861 o.sum = buildSplitInt64(); 882 o.sum = buildSplitInt64();
862 } 883 }
863 buildCounterIntegerMean--; 884 buildCounterIntegerMean--;
864 return o; 885 return o;
865 } 886 }
866 887
867 checkIntegerMean(api.IntegerMean o) { 888 checkIntegerMean(api.IntegerMean o) {
868 buildCounterIntegerMean++; 889 buildCounterIntegerMean++;
869 if (buildCounterIntegerMean < 3) { 890 if (buildCounterIntegerMean < 3) {
870 checkSplitInt64(o.count); 891 checkSplitInt64(o.count);
871 checkSplitInt64(o.sum); 892 checkSplitInt64(o.sum);
872 } 893 }
873 buildCounterIntegerMean--; 894 buildCounterIntegerMean--;
874 } 895 }
875 896
876 buildUnnamed3556() { 897 buildUnnamed3370() {
877 var o = new core.Map<core.String, core.String>(); 898 var o = new core.Map<core.String, core.String>();
878 o["x"] = "foo"; 899 o["x"] = "foo";
879 o["y"] = "foo"; 900 o["y"] = "foo";
880 return o; 901 return o;
881 } 902 }
882 903
883 checkUnnamed3556(core.Map<core.String, core.String> o) { 904 checkUnnamed3370(core.Map<core.String, core.String> o) {
884 unittest.expect(o, unittest.hasLength(2)); 905 unittest.expect(o, unittest.hasLength(2));
885 unittest.expect(o["x"], unittest.equals('foo')); 906 unittest.expect(o["x"], unittest.equals('foo'));
886 unittest.expect(o["y"], unittest.equals('foo')); 907 unittest.expect(o["y"], unittest.equals('foo'));
887 } 908 }
888 909
889 buildUnnamed3557() { 910 buildUnnamed3371() {
890 var o = new core.List<api.Step>(); 911 var o = new core.List<api.Step>();
891 o.add(buildStep()); 912 o.add(buildStep());
892 o.add(buildStep()); 913 o.add(buildStep());
893 return o; 914 return o;
894 } 915 }
895 916
896 checkUnnamed3557(core.List<api.Step> o) { 917 checkUnnamed3371(core.List<api.Step> o) {
897 unittest.expect(o, unittest.hasLength(2)); 918 unittest.expect(o, unittest.hasLength(2));
898 checkStep(o[0]); 919 checkStep(o[0]);
899 checkStep(o[1]); 920 checkStep(o[1]);
900 } 921 }
901 922
902 buildUnnamed3558() { 923 buildUnnamed3372() {
903 var o = new core.List<core.String>(); 924 var o = new core.List<core.String>();
904 o.add("foo"); 925 o.add("foo");
905 o.add("foo"); 926 o.add("foo");
906 return o; 927 return o;
907 } 928 }
908 929
909 checkUnnamed3558(core.List<core.String> o) { 930 checkUnnamed3372(core.List<core.String> o) {
910 unittest.expect(o, unittest.hasLength(2)); 931 unittest.expect(o, unittest.hasLength(2));
911 unittest.expect(o[0], unittest.equals('foo')); 932 unittest.expect(o[0], unittest.equals('foo'));
912 unittest.expect(o[1], unittest.equals('foo')); 933 unittest.expect(o[1], unittest.equals('foo'));
913 } 934 }
914 935
915 buildUnnamed3559() { 936 buildUnnamed3373() {
916 var o = new core.Map<core.String, core.String>(); 937 var o = new core.Map<core.String, core.String>();
917 o["x"] = "foo"; 938 o["x"] = "foo";
918 o["y"] = "foo"; 939 o["y"] = "foo";
919 return o; 940 return o;
920 } 941 }
921 942
922 checkUnnamed3559(core.Map<core.String, core.String> o) { 943 checkUnnamed3373(core.Map<core.String, core.String> o) {
923 unittest.expect(o, unittest.hasLength(2)); 944 unittest.expect(o, unittest.hasLength(2));
924 unittest.expect(o["x"], unittest.equals('foo')); 945 unittest.expect(o["x"], unittest.equals('foo'));
925 unittest.expect(o["y"], unittest.equals('foo')); 946 unittest.expect(o["y"], unittest.equals('foo'));
926 } 947 }
927 948
928 core.int buildCounterJob = 0; 949 core.int buildCounterJob = 0;
929 buildJob() { 950 buildJob() {
930 var o = new api.Job(); 951 var o = new api.Job();
931 buildCounterJob++; 952 buildCounterJob++;
932 if (buildCounterJob < 3) { 953 if (buildCounterJob < 3) {
933 o.clientRequestId = "foo"; 954 o.clientRequestId = "foo";
934 o.createTime = "foo"; 955 o.createTime = "foo";
935 o.currentState = "foo"; 956 o.currentState = "foo";
936 o.currentStateTime = "foo"; 957 o.currentStateTime = "foo";
937 o.environment = buildEnvironment(); 958 o.environment = buildEnvironment();
938 o.executionInfo = buildJobExecutionInfo(); 959 o.executionInfo = buildJobExecutionInfo();
939 o.id = "foo"; 960 o.id = "foo";
940 o.labels = buildUnnamed3556(); 961 o.labels = buildUnnamed3370();
962 o.location = "foo";
941 o.name = "foo"; 963 o.name = "foo";
942 o.projectId = "foo"; 964 o.projectId = "foo";
943 o.replaceJobId = "foo"; 965 o.replaceJobId = "foo";
944 o.replacedByJobId = "foo"; 966 o.replacedByJobId = "foo";
945 o.requestedState = "foo"; 967 o.requestedState = "foo";
946 o.steps = buildUnnamed3557(); 968 o.steps = buildUnnamed3371();
947 o.tempFiles = buildUnnamed3558(); 969 o.tempFiles = buildUnnamed3372();
948 o.transformNameMapping = buildUnnamed3559(); 970 o.transformNameMapping = buildUnnamed3373();
949 o.type = "foo"; 971 o.type = "foo";
950 } 972 }
951 buildCounterJob--; 973 buildCounterJob--;
952 return o; 974 return o;
953 } 975 }
954 976
955 checkJob(api.Job o) { 977 checkJob(api.Job o) {
956 buildCounterJob++; 978 buildCounterJob++;
957 if (buildCounterJob < 3) { 979 if (buildCounterJob < 3) {
958 unittest.expect(o.clientRequestId, unittest.equals('foo')); 980 unittest.expect(o.clientRequestId, unittest.equals('foo'));
959 unittest.expect(o.createTime, unittest.equals('foo')); 981 unittest.expect(o.createTime, unittest.equals('foo'));
960 unittest.expect(o.currentState, unittest.equals('foo')); 982 unittest.expect(o.currentState, unittest.equals('foo'));
961 unittest.expect(o.currentStateTime, unittest.equals('foo')); 983 unittest.expect(o.currentStateTime, unittest.equals('foo'));
962 checkEnvironment(o.environment); 984 checkEnvironment(o.environment);
963 checkJobExecutionInfo(o.executionInfo); 985 checkJobExecutionInfo(o.executionInfo);
964 unittest.expect(o.id, unittest.equals('foo')); 986 unittest.expect(o.id, unittest.equals('foo'));
965 checkUnnamed3556(o.labels); 987 checkUnnamed3370(o.labels);
988 unittest.expect(o.location, unittest.equals('foo'));
966 unittest.expect(o.name, unittest.equals('foo')); 989 unittest.expect(o.name, unittest.equals('foo'));
967 unittest.expect(o.projectId, unittest.equals('foo')); 990 unittest.expect(o.projectId, unittest.equals('foo'));
968 unittest.expect(o.replaceJobId, unittest.equals('foo')); 991 unittest.expect(o.replaceJobId, unittest.equals('foo'));
969 unittest.expect(o.replacedByJobId, unittest.equals('foo')); 992 unittest.expect(o.replacedByJobId, unittest.equals('foo'));
970 unittest.expect(o.requestedState, unittest.equals('foo')); 993 unittest.expect(o.requestedState, unittest.equals('foo'));
971 checkUnnamed3557(o.steps); 994 checkUnnamed3371(o.steps);
972 checkUnnamed3558(o.tempFiles); 995 checkUnnamed3372(o.tempFiles);
973 checkUnnamed3559(o.transformNameMapping); 996 checkUnnamed3373(o.transformNameMapping);
974 unittest.expect(o.type, unittest.equals('foo')); 997 unittest.expect(o.type, unittest.equals('foo'));
975 } 998 }
976 buildCounterJob--; 999 buildCounterJob--;
977 } 1000 }
978 1001
979 buildUnnamed3560() { 1002 buildUnnamed3374() {
980 var o = new core.Map<core.String, api.JobExecutionStageInfo>(); 1003 var o = new core.Map<core.String, api.JobExecutionStageInfo>();
981 o["x"] = buildJobExecutionStageInfo(); 1004 o["x"] = buildJobExecutionStageInfo();
982 o["y"] = buildJobExecutionStageInfo(); 1005 o["y"] = buildJobExecutionStageInfo();
983 return o; 1006 return o;
984 } 1007 }
985 1008
986 checkUnnamed3560(core.Map<core.String, api.JobExecutionStageInfo> o) { 1009 checkUnnamed3374(core.Map<core.String, api.JobExecutionStageInfo> o) {
987 unittest.expect(o, unittest.hasLength(2)); 1010 unittest.expect(o, unittest.hasLength(2));
988 checkJobExecutionStageInfo(o["x"]); 1011 checkJobExecutionStageInfo(o["x"]);
989 checkJobExecutionStageInfo(o["y"]); 1012 checkJobExecutionStageInfo(o["y"]);
990 } 1013 }
991 1014
992 core.int buildCounterJobExecutionInfo = 0; 1015 core.int buildCounterJobExecutionInfo = 0;
993 buildJobExecutionInfo() { 1016 buildJobExecutionInfo() {
994 var o = new api.JobExecutionInfo(); 1017 var o = new api.JobExecutionInfo();
995 buildCounterJobExecutionInfo++; 1018 buildCounterJobExecutionInfo++;
996 if (buildCounterJobExecutionInfo < 3) { 1019 if (buildCounterJobExecutionInfo < 3) {
997 o.stages = buildUnnamed3560(); 1020 o.stages = buildUnnamed3374();
998 } 1021 }
999 buildCounterJobExecutionInfo--; 1022 buildCounterJobExecutionInfo--;
1000 return o; 1023 return o;
1001 } 1024 }
1002 1025
1003 checkJobExecutionInfo(api.JobExecutionInfo o) { 1026 checkJobExecutionInfo(api.JobExecutionInfo o) {
1004 buildCounterJobExecutionInfo++; 1027 buildCounterJobExecutionInfo++;
1005 if (buildCounterJobExecutionInfo < 3) { 1028 if (buildCounterJobExecutionInfo < 3) {
1006 checkUnnamed3560(o.stages); 1029 checkUnnamed3374(o.stages);
1007 } 1030 }
1008 buildCounterJobExecutionInfo--; 1031 buildCounterJobExecutionInfo--;
1009 } 1032 }
1010 1033
1011 buildUnnamed3561() { 1034 buildUnnamed3375() {
1012 var o = new core.List<core.String>(); 1035 var o = new core.List<core.String>();
1013 o.add("foo"); 1036 o.add("foo");
1014 o.add("foo"); 1037 o.add("foo");
1015 return o; 1038 return o;
1016 } 1039 }
1017 1040
1018 checkUnnamed3561(core.List<core.String> o) { 1041 checkUnnamed3375(core.List<core.String> o) {
1019 unittest.expect(o, unittest.hasLength(2)); 1042 unittest.expect(o, unittest.hasLength(2));
1020 unittest.expect(o[0], unittest.equals('foo')); 1043 unittest.expect(o[0], unittest.equals('foo'));
1021 unittest.expect(o[1], unittest.equals('foo')); 1044 unittest.expect(o[1], unittest.equals('foo'));
1022 } 1045 }
1023 1046
1024 core.int buildCounterJobExecutionStageInfo = 0; 1047 core.int buildCounterJobExecutionStageInfo = 0;
1025 buildJobExecutionStageInfo() { 1048 buildJobExecutionStageInfo() {
1026 var o = new api.JobExecutionStageInfo(); 1049 var o = new api.JobExecutionStageInfo();
1027 buildCounterJobExecutionStageInfo++; 1050 buildCounterJobExecutionStageInfo++;
1028 if (buildCounterJobExecutionStageInfo < 3) { 1051 if (buildCounterJobExecutionStageInfo < 3) {
1029 o.stepName = buildUnnamed3561(); 1052 o.stepName = buildUnnamed3375();
1030 } 1053 }
1031 buildCounterJobExecutionStageInfo--; 1054 buildCounterJobExecutionStageInfo--;
1032 return o; 1055 return o;
1033 } 1056 }
1034 1057
1035 checkJobExecutionStageInfo(api.JobExecutionStageInfo o) { 1058 checkJobExecutionStageInfo(api.JobExecutionStageInfo o) {
1036 buildCounterJobExecutionStageInfo++; 1059 buildCounterJobExecutionStageInfo++;
1037 if (buildCounterJobExecutionStageInfo < 3) { 1060 if (buildCounterJobExecutionStageInfo < 3) {
1038 checkUnnamed3561(o.stepName); 1061 checkUnnamed3375(o.stepName);
1039 } 1062 }
1040 buildCounterJobExecutionStageInfo--; 1063 buildCounterJobExecutionStageInfo--;
1041 } 1064 }
1042 1065
1043 core.int buildCounterJobMessage = 0; 1066 core.int buildCounterJobMessage = 0;
1044 buildJobMessage() { 1067 buildJobMessage() {
1045 var o = new api.JobMessage(); 1068 var o = new api.JobMessage();
1046 buildCounterJobMessage++; 1069 buildCounterJobMessage++;
1047 if (buildCounterJobMessage < 3) { 1070 if (buildCounterJobMessage < 3) {
1048 o.id = "foo"; 1071 o.id = "foo";
1049 o.messageImportance = "foo"; 1072 o.messageImportance = "foo";
1050 o.messageText = "foo"; 1073 o.messageText = "foo";
1051 o.time = "foo"; 1074 o.time = "foo";
1052 } 1075 }
1053 buildCounterJobMessage--; 1076 buildCounterJobMessage--;
1054 return o; 1077 return o;
1055 } 1078 }
1056 1079
1057 checkJobMessage(api.JobMessage o) { 1080 checkJobMessage(api.JobMessage o) {
1058 buildCounterJobMessage++; 1081 buildCounterJobMessage++;
1059 if (buildCounterJobMessage < 3) { 1082 if (buildCounterJobMessage < 3) {
1060 unittest.expect(o.id, unittest.equals('foo')); 1083 unittest.expect(o.id, unittest.equals('foo'));
1061 unittest.expect(o.messageImportance, unittest.equals('foo')); 1084 unittest.expect(o.messageImportance, unittest.equals('foo'));
1062 unittest.expect(o.messageText, unittest.equals('foo')); 1085 unittest.expect(o.messageText, unittest.equals('foo'));
1063 unittest.expect(o.time, unittest.equals('foo')); 1086 unittest.expect(o.time, unittest.equals('foo'));
1064 } 1087 }
1065 buildCounterJobMessage--; 1088 buildCounterJobMessage--;
1066 } 1089 }
1067 1090
1068 buildUnnamed3562() { 1091 buildUnnamed3376() {
1069 var o = new core.List<api.MetricUpdate>(); 1092 var o = new core.List<api.MetricUpdate>();
1070 o.add(buildMetricUpdate()); 1093 o.add(buildMetricUpdate());
1071 o.add(buildMetricUpdate()); 1094 o.add(buildMetricUpdate());
1072 return o; 1095 return o;
1073 } 1096 }
1074 1097
1075 checkUnnamed3562(core.List<api.MetricUpdate> o) { 1098 checkUnnamed3376(core.List<api.MetricUpdate> o) {
1076 unittest.expect(o, unittest.hasLength(2)); 1099 unittest.expect(o, unittest.hasLength(2));
1077 checkMetricUpdate(o[0]); 1100 checkMetricUpdate(o[0]);
1078 checkMetricUpdate(o[1]); 1101 checkMetricUpdate(o[1]);
1079 } 1102 }
1080 1103
1081 core.int buildCounterJobMetrics = 0; 1104 core.int buildCounterJobMetrics = 0;
1082 buildJobMetrics() { 1105 buildJobMetrics() {
1083 var o = new api.JobMetrics(); 1106 var o = new api.JobMetrics();
1084 buildCounterJobMetrics++; 1107 buildCounterJobMetrics++;
1085 if (buildCounterJobMetrics < 3) { 1108 if (buildCounterJobMetrics < 3) {
1086 o.metricTime = "foo"; 1109 o.metricTime = "foo";
1087 o.metrics = buildUnnamed3562(); 1110 o.metrics = buildUnnamed3376();
1088 } 1111 }
1089 buildCounterJobMetrics--; 1112 buildCounterJobMetrics--;
1090 return o; 1113 return o;
1091 } 1114 }
1092 1115
1093 checkJobMetrics(api.JobMetrics o) { 1116 checkJobMetrics(api.JobMetrics o) {
1094 buildCounterJobMetrics++; 1117 buildCounterJobMetrics++;
1095 if (buildCounterJobMetrics < 3) { 1118 if (buildCounterJobMetrics < 3) {
1096 unittest.expect(o.metricTime, unittest.equals('foo')); 1119 unittest.expect(o.metricTime, unittest.equals('foo'));
1097 checkUnnamed3562(o.metrics); 1120 checkUnnamed3376(o.metrics);
1098 } 1121 }
1099 buildCounterJobMetrics--; 1122 buildCounterJobMetrics--;
1100 } 1123 }
1101 1124
1102 core.int buildCounterKeyRangeDataDiskAssignment = 0; 1125 core.int buildCounterKeyRangeDataDiskAssignment = 0;
1103 buildKeyRangeDataDiskAssignment() { 1126 buildKeyRangeDataDiskAssignment() {
1104 var o = new api.KeyRangeDataDiskAssignment(); 1127 var o = new api.KeyRangeDataDiskAssignment();
1105 buildCounterKeyRangeDataDiskAssignment++; 1128 buildCounterKeyRangeDataDiskAssignment++;
1106 if (buildCounterKeyRangeDataDiskAssignment < 3) { 1129 if (buildCounterKeyRangeDataDiskAssignment < 3) {
1107 o.dataDisk = "foo"; 1130 o.dataDisk = "foo";
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 if (buildCounterKeyRangeLocation < 3) { 1165 if (buildCounterKeyRangeLocation < 3) {
1143 unittest.expect(o.dataDisk, unittest.equals('foo')); 1166 unittest.expect(o.dataDisk, unittest.equals('foo'));
1144 unittest.expect(o.deliveryEndpoint, unittest.equals('foo')); 1167 unittest.expect(o.deliveryEndpoint, unittest.equals('foo'));
1145 unittest.expect(o.end, unittest.equals('foo')); 1168 unittest.expect(o.end, unittest.equals('foo'));
1146 unittest.expect(o.persistentDirectory, unittest.equals('foo')); 1169 unittest.expect(o.persistentDirectory, unittest.equals('foo'));
1147 unittest.expect(o.start, unittest.equals('foo')); 1170 unittest.expect(o.start, unittest.equals('foo'));
1148 } 1171 }
1149 buildCounterKeyRangeLocation--; 1172 buildCounterKeyRangeLocation--;
1150 } 1173 }
1151 1174
1152 buildUnnamed3563() { 1175 buildUnnamed3377() {
1153 var o = new core.List<core.String>(); 1176 var o = new core.List<core.String>();
1154 o.add("foo"); 1177 o.add("foo");
1155 o.add("foo"); 1178 o.add("foo");
1156 return o; 1179 return o;
1157 } 1180 }
1158 1181
1159 checkUnnamed3563(core.List<core.String> o) { 1182 checkUnnamed3377(core.List<core.String> o) {
1160 unittest.expect(o, unittest.hasLength(2)); 1183 unittest.expect(o, unittest.hasLength(2));
1161 unittest.expect(o[0], unittest.equals('foo')); 1184 unittest.expect(o[0], unittest.equals('foo'));
1162 unittest.expect(o[1], unittest.equals('foo')); 1185 unittest.expect(o[1], unittest.equals('foo'));
1163 } 1186 }
1164 1187
1165 buildUnnamed3564() { 1188 buildUnnamed3378() {
1166 var o = new core.List<core.String>(); 1189 var o = new core.List<core.String>();
1167 o.add("foo"); 1190 o.add("foo");
1168 o.add("foo"); 1191 o.add("foo");
1169 return o; 1192 return o;
1170 } 1193 }
1171 1194
1172 checkUnnamed3564(core.List<core.String> o) { 1195 checkUnnamed3378(core.List<core.String> o) {
1173 unittest.expect(o, unittest.hasLength(2)); 1196 unittest.expect(o, unittest.hasLength(2));
1174 unittest.expect(o[0], unittest.equals('foo')); 1197 unittest.expect(o[0], unittest.equals('foo'));
1175 unittest.expect(o[1], unittest.equals('foo')); 1198 unittest.expect(o[1], unittest.equals('foo'));
1176 } 1199 }
1177 1200
1178 core.int buildCounterLeaseWorkItemRequest = 0; 1201 core.int buildCounterLeaseWorkItemRequest = 0;
1179 buildLeaseWorkItemRequest() { 1202 buildLeaseWorkItemRequest() {
1180 var o = new api.LeaseWorkItemRequest(); 1203 var o = new api.LeaseWorkItemRequest();
1181 buildCounterLeaseWorkItemRequest++; 1204 buildCounterLeaseWorkItemRequest++;
1182 if (buildCounterLeaseWorkItemRequest < 3) { 1205 if (buildCounterLeaseWorkItemRequest < 3) {
1183 o.currentWorkerTime = "foo"; 1206 o.currentWorkerTime = "foo";
1207 o.location = "foo";
1184 o.requestedLeaseDuration = "foo"; 1208 o.requestedLeaseDuration = "foo";
1185 o.workItemTypes = buildUnnamed3563(); 1209 o.workItemTypes = buildUnnamed3377();
1186 o.workerCapabilities = buildUnnamed3564(); 1210 o.workerCapabilities = buildUnnamed3378();
1187 o.workerId = "foo"; 1211 o.workerId = "foo";
1188 } 1212 }
1189 buildCounterLeaseWorkItemRequest--; 1213 buildCounterLeaseWorkItemRequest--;
1190 return o; 1214 return o;
1191 } 1215 }
1192 1216
1193 checkLeaseWorkItemRequest(api.LeaseWorkItemRequest o) { 1217 checkLeaseWorkItemRequest(api.LeaseWorkItemRequest o) {
1194 buildCounterLeaseWorkItemRequest++; 1218 buildCounterLeaseWorkItemRequest++;
1195 if (buildCounterLeaseWorkItemRequest < 3) { 1219 if (buildCounterLeaseWorkItemRequest < 3) {
1196 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); 1220 unittest.expect(o.currentWorkerTime, unittest.equals('foo'));
1221 unittest.expect(o.location, unittest.equals('foo'));
1197 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); 1222 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo'));
1198 checkUnnamed3563(o.workItemTypes); 1223 checkUnnamed3377(o.workItemTypes);
1199 checkUnnamed3564(o.workerCapabilities); 1224 checkUnnamed3378(o.workerCapabilities);
1200 unittest.expect(o.workerId, unittest.equals('foo')); 1225 unittest.expect(o.workerId, unittest.equals('foo'));
1201 } 1226 }
1202 buildCounterLeaseWorkItemRequest--; 1227 buildCounterLeaseWorkItemRequest--;
1203 } 1228 }
1204 1229
1205 buildUnnamed3565() { 1230 buildUnnamed3379() {
1206 var o = new core.List<api.WorkItem>(); 1231 var o = new core.List<api.WorkItem>();
1207 o.add(buildWorkItem()); 1232 o.add(buildWorkItem());
1208 o.add(buildWorkItem()); 1233 o.add(buildWorkItem());
1209 return o; 1234 return o;
1210 } 1235 }
1211 1236
1212 checkUnnamed3565(core.List<api.WorkItem> o) { 1237 checkUnnamed3379(core.List<api.WorkItem> o) {
1213 unittest.expect(o, unittest.hasLength(2)); 1238 unittest.expect(o, unittest.hasLength(2));
1214 checkWorkItem(o[0]); 1239 checkWorkItem(o[0]);
1215 checkWorkItem(o[1]); 1240 checkWorkItem(o[1]);
1216 } 1241 }
1217 1242
1218 core.int buildCounterLeaseWorkItemResponse = 0; 1243 core.int buildCounterLeaseWorkItemResponse = 0;
1219 buildLeaseWorkItemResponse() { 1244 buildLeaseWorkItemResponse() {
1220 var o = new api.LeaseWorkItemResponse(); 1245 var o = new api.LeaseWorkItemResponse();
1221 buildCounterLeaseWorkItemResponse++; 1246 buildCounterLeaseWorkItemResponse++;
1222 if (buildCounterLeaseWorkItemResponse < 3) { 1247 if (buildCounterLeaseWorkItemResponse < 3) {
1223 o.workItems = buildUnnamed3565(); 1248 o.workItems = buildUnnamed3379();
1224 } 1249 }
1225 buildCounterLeaseWorkItemResponse--; 1250 buildCounterLeaseWorkItemResponse--;
1226 return o; 1251 return o;
1227 } 1252 }
1228 1253
1229 checkLeaseWorkItemResponse(api.LeaseWorkItemResponse o) { 1254 checkLeaseWorkItemResponse(api.LeaseWorkItemResponse o) {
1230 buildCounterLeaseWorkItemResponse++; 1255 buildCounterLeaseWorkItemResponse++;
1231 if (buildCounterLeaseWorkItemResponse < 3) { 1256 if (buildCounterLeaseWorkItemResponse < 3) {
1232 checkUnnamed3565(o.workItems); 1257 checkUnnamed3379(o.workItems);
1233 } 1258 }
1234 buildCounterLeaseWorkItemResponse--; 1259 buildCounterLeaseWorkItemResponse--;
1235 } 1260 }
1236 1261
1237 buildUnnamed3566() { 1262 buildUnnamed3380() {
1238 var o = new core.List<api.JobMessage>(); 1263 var o = new core.List<api.JobMessage>();
1239 o.add(buildJobMessage()); 1264 o.add(buildJobMessage());
1240 o.add(buildJobMessage()); 1265 o.add(buildJobMessage());
1241 return o; 1266 return o;
1242 } 1267 }
1243 1268
1244 checkUnnamed3566(core.List<api.JobMessage> o) { 1269 checkUnnamed3380(core.List<api.JobMessage> o) {
1245 unittest.expect(o, unittest.hasLength(2)); 1270 unittest.expect(o, unittest.hasLength(2));
1246 checkJobMessage(o[0]); 1271 checkJobMessage(o[0]);
1247 checkJobMessage(o[1]); 1272 checkJobMessage(o[1]);
1248 } 1273 }
1249 1274
1250 core.int buildCounterListJobMessagesResponse = 0; 1275 core.int buildCounterListJobMessagesResponse = 0;
1251 buildListJobMessagesResponse() { 1276 buildListJobMessagesResponse() {
1252 var o = new api.ListJobMessagesResponse(); 1277 var o = new api.ListJobMessagesResponse();
1253 buildCounterListJobMessagesResponse++; 1278 buildCounterListJobMessagesResponse++;
1254 if (buildCounterListJobMessagesResponse < 3) { 1279 if (buildCounterListJobMessagesResponse < 3) {
1255 o.jobMessages = buildUnnamed3566(); 1280 o.jobMessages = buildUnnamed3380();
1256 o.nextPageToken = "foo"; 1281 o.nextPageToken = "foo";
1257 } 1282 }
1258 buildCounterListJobMessagesResponse--; 1283 buildCounterListJobMessagesResponse--;
1259 return o; 1284 return o;
1260 } 1285 }
1261 1286
1262 checkListJobMessagesResponse(api.ListJobMessagesResponse o) { 1287 checkListJobMessagesResponse(api.ListJobMessagesResponse o) {
1263 buildCounterListJobMessagesResponse++; 1288 buildCounterListJobMessagesResponse++;
1264 if (buildCounterListJobMessagesResponse < 3) { 1289 if (buildCounterListJobMessagesResponse < 3) {
1265 checkUnnamed3566(o.jobMessages); 1290 checkUnnamed3380(o.jobMessages);
1266 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1291 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1267 } 1292 }
1268 buildCounterListJobMessagesResponse--; 1293 buildCounterListJobMessagesResponse--;
1269 } 1294 }
1270 1295
1271 buildUnnamed3567() { 1296 buildUnnamed3381() {
1297 var o = new core.List<api.FailedLocation>();
1298 o.add(buildFailedLocation());
1299 o.add(buildFailedLocation());
1300 return o;
1301 }
1302
1303 checkUnnamed3381(core.List<api.FailedLocation> o) {
1304 unittest.expect(o, unittest.hasLength(2));
1305 checkFailedLocation(o[0]);
1306 checkFailedLocation(o[1]);
1307 }
1308
1309 buildUnnamed3382() {
1272 var o = new core.List<api.Job>(); 1310 var o = new core.List<api.Job>();
1273 o.add(buildJob()); 1311 o.add(buildJob());
1274 o.add(buildJob()); 1312 o.add(buildJob());
1275 return o; 1313 return o;
1276 } 1314 }
1277 1315
1278 checkUnnamed3567(core.List<api.Job> o) { 1316 checkUnnamed3382(core.List<api.Job> o) {
1279 unittest.expect(o, unittest.hasLength(2)); 1317 unittest.expect(o, unittest.hasLength(2));
1280 checkJob(o[0]); 1318 checkJob(o[0]);
1281 checkJob(o[1]); 1319 checkJob(o[1]);
1282 } 1320 }
1283 1321
1284 core.int buildCounterListJobsResponse = 0; 1322 core.int buildCounterListJobsResponse = 0;
1285 buildListJobsResponse() { 1323 buildListJobsResponse() {
1286 var o = new api.ListJobsResponse(); 1324 var o = new api.ListJobsResponse();
1287 buildCounterListJobsResponse++; 1325 buildCounterListJobsResponse++;
1288 if (buildCounterListJobsResponse < 3) { 1326 if (buildCounterListJobsResponse < 3) {
1289 o.jobs = buildUnnamed3567(); 1327 o.failedLocation = buildUnnamed3381();
1328 o.jobs = buildUnnamed3382();
1290 o.nextPageToken = "foo"; 1329 o.nextPageToken = "foo";
1291 } 1330 }
1292 buildCounterListJobsResponse--; 1331 buildCounterListJobsResponse--;
1293 return o; 1332 return o;
1294 } 1333 }
1295 1334
1296 checkListJobsResponse(api.ListJobsResponse o) { 1335 checkListJobsResponse(api.ListJobsResponse o) {
1297 buildCounterListJobsResponse++; 1336 buildCounterListJobsResponse++;
1298 if (buildCounterListJobsResponse < 3) { 1337 if (buildCounterListJobsResponse < 3) {
1299 checkUnnamed3567(o.jobs); 1338 checkUnnamed3381(o.failedLocation);
1339 checkUnnamed3382(o.jobs);
1300 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1340 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1301 } 1341 }
1302 buildCounterListJobsResponse--; 1342 buildCounterListJobsResponse--;
1303 } 1343 }
1304 1344
1305 buildUnnamed3568() { 1345 buildUnnamed3383() {
1306 var o = new core.List<api.ParallelInstruction>(); 1346 var o = new core.List<api.ParallelInstruction>();
1307 o.add(buildParallelInstruction()); 1347 o.add(buildParallelInstruction());
1308 o.add(buildParallelInstruction()); 1348 o.add(buildParallelInstruction());
1309 return o; 1349 return o;
1310 } 1350 }
1311 1351
1312 checkUnnamed3568(core.List<api.ParallelInstruction> o) { 1352 checkUnnamed3383(core.List<api.ParallelInstruction> o) {
1313 unittest.expect(o, unittest.hasLength(2)); 1353 unittest.expect(o, unittest.hasLength(2));
1314 checkParallelInstruction(o[0]); 1354 checkParallelInstruction(o[0]);
1315 checkParallelInstruction(o[1]); 1355 checkParallelInstruction(o[1]);
1316 } 1356 }
1317 1357
1318 core.int buildCounterMapTask = 0; 1358 core.int buildCounterMapTask = 0;
1319 buildMapTask() { 1359 buildMapTask() {
1320 var o = new api.MapTask(); 1360 var o = new api.MapTask();
1321 buildCounterMapTask++; 1361 buildCounterMapTask++;
1322 if (buildCounterMapTask < 3) { 1362 if (buildCounterMapTask < 3) {
1323 o.instructions = buildUnnamed3568(); 1363 o.instructions = buildUnnamed3383();
1324 o.stageName = "foo"; 1364 o.stageName = "foo";
1325 o.systemName = "foo"; 1365 o.systemName = "foo";
1326 } 1366 }
1327 buildCounterMapTask--; 1367 buildCounterMapTask--;
1328 return o; 1368 return o;
1329 } 1369 }
1330 1370
1331 checkMapTask(api.MapTask o) { 1371 checkMapTask(api.MapTask o) {
1332 buildCounterMapTask++; 1372 buildCounterMapTask++;
1333 if (buildCounterMapTask < 3) { 1373 if (buildCounterMapTask < 3) {
1334 checkUnnamed3568(o.instructions); 1374 checkUnnamed3383(o.instructions);
1335 unittest.expect(o.stageName, unittest.equals('foo')); 1375 unittest.expect(o.stageName, unittest.equals('foo'));
1336 unittest.expect(o.systemName, unittest.equals('foo')); 1376 unittest.expect(o.systemName, unittest.equals('foo'));
1337 } 1377 }
1338 buildCounterMapTask--; 1378 buildCounterMapTask--;
1339 } 1379 }
1340 1380
1341 core.int buildCounterMetricShortId = 0; 1381 core.int buildCounterMetricShortId = 0;
1342 buildMetricShortId() { 1382 buildMetricShortId() {
1343 var o = new api.MetricShortId(); 1383 var o = new api.MetricShortId();
1344 buildCounterMetricShortId++; 1384 buildCounterMetricShortId++;
1345 if (buildCounterMetricShortId < 3) { 1385 if (buildCounterMetricShortId < 3) {
1346 o.metricIndex = 42; 1386 o.metricIndex = 42;
1347 o.shortId = "foo"; 1387 o.shortId = "foo";
1348 } 1388 }
1349 buildCounterMetricShortId--; 1389 buildCounterMetricShortId--;
1350 return o; 1390 return o;
1351 } 1391 }
1352 1392
1353 checkMetricShortId(api.MetricShortId o) { 1393 checkMetricShortId(api.MetricShortId o) {
1354 buildCounterMetricShortId++; 1394 buildCounterMetricShortId++;
1355 if (buildCounterMetricShortId < 3) { 1395 if (buildCounterMetricShortId < 3) {
1356 unittest.expect(o.metricIndex, unittest.equals(42)); 1396 unittest.expect(o.metricIndex, unittest.equals(42));
1357 unittest.expect(o.shortId, unittest.equals('foo')); 1397 unittest.expect(o.shortId, unittest.equals('foo'));
1358 } 1398 }
1359 buildCounterMetricShortId--; 1399 buildCounterMetricShortId--;
1360 } 1400 }
1361 1401
1362 buildUnnamed3569() { 1402 buildUnnamed3384() {
1363 var o = new core.Map<core.String, core.String>(); 1403 var o = new core.Map<core.String, core.String>();
1364 o["x"] = "foo"; 1404 o["x"] = "foo";
1365 o["y"] = "foo"; 1405 o["y"] = "foo";
1366 return o; 1406 return o;
1367 } 1407 }
1368 1408
1369 checkUnnamed3569(core.Map<core.String, core.String> o) { 1409 checkUnnamed3384(core.Map<core.String, core.String> o) {
1370 unittest.expect(o, unittest.hasLength(2)); 1410 unittest.expect(o, unittest.hasLength(2));
1371 unittest.expect(o["x"], unittest.equals('foo')); 1411 unittest.expect(o["x"], unittest.equals('foo'));
1372 unittest.expect(o["y"], unittest.equals('foo')); 1412 unittest.expect(o["y"], unittest.equals('foo'));
1373 } 1413 }
1374 1414
1375 core.int buildCounterMetricStructuredName = 0; 1415 core.int buildCounterMetricStructuredName = 0;
1376 buildMetricStructuredName() { 1416 buildMetricStructuredName() {
1377 var o = new api.MetricStructuredName(); 1417 var o = new api.MetricStructuredName();
1378 buildCounterMetricStructuredName++; 1418 buildCounterMetricStructuredName++;
1379 if (buildCounterMetricStructuredName < 3) { 1419 if (buildCounterMetricStructuredName < 3) {
1380 o.context = buildUnnamed3569(); 1420 o.context = buildUnnamed3384();
1381 o.name = "foo"; 1421 o.name = "foo";
1382 o.origin = "foo"; 1422 o.origin = "foo";
1383 } 1423 }
1384 buildCounterMetricStructuredName--; 1424 buildCounterMetricStructuredName--;
1385 return o; 1425 return o;
1386 } 1426 }
1387 1427
1388 checkMetricStructuredName(api.MetricStructuredName o) { 1428 checkMetricStructuredName(api.MetricStructuredName o) {
1389 buildCounterMetricStructuredName++; 1429 buildCounterMetricStructuredName++;
1390 if (buildCounterMetricStructuredName < 3) { 1430 if (buildCounterMetricStructuredName < 3) {
1391 checkUnnamed3569(o.context); 1431 checkUnnamed3384(o.context);
1392 unittest.expect(o.name, unittest.equals('foo')); 1432 unittest.expect(o.name, unittest.equals('foo'));
1393 unittest.expect(o.origin, unittest.equals('foo')); 1433 unittest.expect(o.origin, unittest.equals('foo'));
1394 } 1434 }
1395 buildCounterMetricStructuredName--; 1435 buildCounterMetricStructuredName--;
1396 } 1436 }
1397 1437
1398 core.int buildCounterMetricUpdate = 0; 1438 core.int buildCounterMetricUpdate = 0;
1399 buildMetricUpdate() { 1439 buildMetricUpdate() {
1400 var o = new api.MetricUpdate(); 1440 var o = new api.MetricUpdate();
1401 buildCounterMetricUpdate++; 1441 buildCounterMetricUpdate++;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 1543
1504 checkPackage(api.Package o) { 1544 checkPackage(api.Package o) {
1505 buildCounterPackage++; 1545 buildCounterPackage++;
1506 if (buildCounterPackage < 3) { 1546 if (buildCounterPackage < 3) {
1507 unittest.expect(o.location, unittest.equals('foo')); 1547 unittest.expect(o.location, unittest.equals('foo'));
1508 unittest.expect(o.name, unittest.equals('foo')); 1548 unittest.expect(o.name, unittest.equals('foo'));
1509 } 1549 }
1510 buildCounterPackage--; 1550 buildCounterPackage--;
1511 } 1551 }
1512 1552
1513 buildUnnamed3570() { 1553 buildUnnamed3385() {
1514 var o = new core.List<api.MultiOutputInfo>(); 1554 var o = new core.List<api.MultiOutputInfo>();
1515 o.add(buildMultiOutputInfo()); 1555 o.add(buildMultiOutputInfo());
1516 o.add(buildMultiOutputInfo()); 1556 o.add(buildMultiOutputInfo());
1517 return o; 1557 return o;
1518 } 1558 }
1519 1559
1520 checkUnnamed3570(core.List<api.MultiOutputInfo> o) { 1560 checkUnnamed3385(core.List<api.MultiOutputInfo> o) {
1521 unittest.expect(o, unittest.hasLength(2)); 1561 unittest.expect(o, unittest.hasLength(2));
1522 checkMultiOutputInfo(o[0]); 1562 checkMultiOutputInfo(o[0]);
1523 checkMultiOutputInfo(o[1]); 1563 checkMultiOutputInfo(o[1]);
1524 } 1564 }
1525 1565
1526 buildUnnamed3571() { 1566 buildUnnamed3386() {
1527 var o = new core.List<api.SideInputInfo>(); 1567 var o = new core.List<api.SideInputInfo>();
1528 o.add(buildSideInputInfo()); 1568 o.add(buildSideInputInfo());
1529 o.add(buildSideInputInfo()); 1569 o.add(buildSideInputInfo());
1530 return o; 1570 return o;
1531 } 1571 }
1532 1572
1533 checkUnnamed3571(core.List<api.SideInputInfo> o) { 1573 checkUnnamed3386(core.List<api.SideInputInfo> o) {
1534 unittest.expect(o, unittest.hasLength(2)); 1574 unittest.expect(o, unittest.hasLength(2));
1535 checkSideInputInfo(o[0]); 1575 checkSideInputInfo(o[0]);
1536 checkSideInputInfo(o[1]); 1576 checkSideInputInfo(o[1]);
1537 } 1577 }
1538 1578
1539 buildUnnamed3572() { 1579 buildUnnamed3387() {
1540 var o = new core.Map<core.String, core.Object>(); 1580 var o = new core.Map<core.String, core.Object>();
1541 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1581 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1542 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1582 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1543 return o; 1583 return o;
1544 } 1584 }
1545 1585
1546 checkUnnamed3572(core.Map<core.String, core.Object> o) { 1586 checkUnnamed3387(core.Map<core.String, core.Object> o) {
1547 unittest.expect(o, unittest.hasLength(2)); 1587 unittest.expect(o, unittest.hasLength(2));
1548 var casted17 = (o["x"]) as core.Map; unittest.expect(casted17, unittest.hasLen gth(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest .expect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["stri ng"], unittest.equals('foo')); 1588 var casted17 = (o["x"]) as core.Map; unittest.expect(casted17, unittest.hasLen gth(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest .expect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["stri ng"], unittest.equals('foo'));
1549 var casted18 = (o["y"]) as core.Map; unittest.expect(casted18, unittest.hasLen gth(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest .expect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["stri ng"], unittest.equals('foo')); 1589 var casted18 = (o["y"]) as core.Map; unittest.expect(casted18, unittest.hasLen gth(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest .expect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["stri ng"], unittest.equals('foo'));
1550 } 1590 }
1551 1591
1552 core.int buildCounterParDoInstruction = 0; 1592 core.int buildCounterParDoInstruction = 0;
1553 buildParDoInstruction() { 1593 buildParDoInstruction() {
1554 var o = new api.ParDoInstruction(); 1594 var o = new api.ParDoInstruction();
1555 buildCounterParDoInstruction++; 1595 buildCounterParDoInstruction++;
1556 if (buildCounterParDoInstruction < 3) { 1596 if (buildCounterParDoInstruction < 3) {
1557 o.input = buildInstructionInput(); 1597 o.input = buildInstructionInput();
1558 o.multiOutputInfos = buildUnnamed3570(); 1598 o.multiOutputInfos = buildUnnamed3385();
1559 o.numOutputs = 42; 1599 o.numOutputs = 42;
1560 o.sideInputs = buildUnnamed3571(); 1600 o.sideInputs = buildUnnamed3386();
1561 o.userFn = buildUnnamed3572(); 1601 o.userFn = buildUnnamed3387();
1562 } 1602 }
1563 buildCounterParDoInstruction--; 1603 buildCounterParDoInstruction--;
1564 return o; 1604 return o;
1565 } 1605 }
1566 1606
1567 checkParDoInstruction(api.ParDoInstruction o) { 1607 checkParDoInstruction(api.ParDoInstruction o) {
1568 buildCounterParDoInstruction++; 1608 buildCounterParDoInstruction++;
1569 if (buildCounterParDoInstruction < 3) { 1609 if (buildCounterParDoInstruction < 3) {
1570 checkInstructionInput(o.input); 1610 checkInstructionInput(o.input);
1571 checkUnnamed3570(o.multiOutputInfos); 1611 checkUnnamed3385(o.multiOutputInfos);
1572 unittest.expect(o.numOutputs, unittest.equals(42)); 1612 unittest.expect(o.numOutputs, unittest.equals(42));
1573 checkUnnamed3571(o.sideInputs); 1613 checkUnnamed3386(o.sideInputs);
1574 checkUnnamed3572(o.userFn); 1614 checkUnnamed3387(o.userFn);
1575 } 1615 }
1576 buildCounterParDoInstruction--; 1616 buildCounterParDoInstruction--;
1577 } 1617 }
1578 1618
1579 buildUnnamed3573() { 1619 buildUnnamed3388() {
1580 var o = new core.List<api.InstructionOutput>(); 1620 var o = new core.List<api.InstructionOutput>();
1581 o.add(buildInstructionOutput()); 1621 o.add(buildInstructionOutput());
1582 o.add(buildInstructionOutput()); 1622 o.add(buildInstructionOutput());
1583 return o; 1623 return o;
1584 } 1624 }
1585 1625
1586 checkUnnamed3573(core.List<api.InstructionOutput> o) { 1626 checkUnnamed3388(core.List<api.InstructionOutput> o) {
1587 unittest.expect(o, unittest.hasLength(2)); 1627 unittest.expect(o, unittest.hasLength(2));
1588 checkInstructionOutput(o[0]); 1628 checkInstructionOutput(o[0]);
1589 checkInstructionOutput(o[1]); 1629 checkInstructionOutput(o[1]);
1590 } 1630 }
1591 1631
1592 core.int buildCounterParallelInstruction = 0; 1632 core.int buildCounterParallelInstruction = 0;
1593 buildParallelInstruction() { 1633 buildParallelInstruction() {
1594 var o = new api.ParallelInstruction(); 1634 var o = new api.ParallelInstruction();
1595 buildCounterParallelInstruction++; 1635 buildCounterParallelInstruction++;
1596 if (buildCounterParallelInstruction < 3) { 1636 if (buildCounterParallelInstruction < 3) {
1597 o.flatten = buildFlattenInstruction(); 1637 o.flatten = buildFlattenInstruction();
1598 o.name = "foo"; 1638 o.name = "foo";
1599 o.originalName = "foo"; 1639 o.originalName = "foo";
1600 o.outputs = buildUnnamed3573(); 1640 o.outputs = buildUnnamed3388();
1601 o.parDo = buildParDoInstruction(); 1641 o.parDo = buildParDoInstruction();
1602 o.partialGroupByKey = buildPartialGroupByKeyInstruction(); 1642 o.partialGroupByKey = buildPartialGroupByKeyInstruction();
1603 o.read = buildReadInstruction(); 1643 o.read = buildReadInstruction();
1604 o.systemName = "foo"; 1644 o.systemName = "foo";
1605 o.write = buildWriteInstruction(); 1645 o.write = buildWriteInstruction();
1606 } 1646 }
1607 buildCounterParallelInstruction--; 1647 buildCounterParallelInstruction--;
1608 return o; 1648 return o;
1609 } 1649 }
1610 1650
1611 checkParallelInstruction(api.ParallelInstruction o) { 1651 checkParallelInstruction(api.ParallelInstruction o) {
1612 buildCounterParallelInstruction++; 1652 buildCounterParallelInstruction++;
1613 if (buildCounterParallelInstruction < 3) { 1653 if (buildCounterParallelInstruction < 3) {
1614 checkFlattenInstruction(o.flatten); 1654 checkFlattenInstruction(o.flatten);
1615 unittest.expect(o.name, unittest.equals('foo')); 1655 unittest.expect(o.name, unittest.equals('foo'));
1616 unittest.expect(o.originalName, unittest.equals('foo')); 1656 unittest.expect(o.originalName, unittest.equals('foo'));
1617 checkUnnamed3573(o.outputs); 1657 checkUnnamed3388(o.outputs);
1618 checkParDoInstruction(o.parDo); 1658 checkParDoInstruction(o.parDo);
1619 checkPartialGroupByKeyInstruction(o.partialGroupByKey); 1659 checkPartialGroupByKeyInstruction(o.partialGroupByKey);
1620 checkReadInstruction(o.read); 1660 checkReadInstruction(o.read);
1621 unittest.expect(o.systemName, unittest.equals('foo')); 1661 unittest.expect(o.systemName, unittest.equals('foo'));
1622 checkWriteInstruction(o.write); 1662 checkWriteInstruction(o.write);
1623 } 1663 }
1624 buildCounterParallelInstruction--; 1664 buildCounterParallelInstruction--;
1625 } 1665 }
1626 1666
1627 buildUnnamed3574() { 1667 buildUnnamed3389() {
1628 var o = new core.Map<core.String, core.Object>(); 1668 var o = new core.Map<core.String, core.Object>();
1629 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1669 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1630 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1670 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1631 return o; 1671 return o;
1632 } 1672 }
1633 1673
1634 checkUnnamed3574(core.Map<core.String, core.Object> o) { 1674 checkUnnamed3389(core.Map<core.String, core.Object> o) {
1635 unittest.expect(o, unittest.hasLength(2)); 1675 unittest.expect(o, unittest.hasLength(2));
1636 var casted19 = (o["x"]) as core.Map; unittest.expect(casted19, unittest.hasLen gth(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest .expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["stri ng"], unittest.equals('foo')); 1676 var casted19 = (o["x"]) as core.Map; unittest.expect(casted19, unittest.hasLen gth(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest .expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["stri ng"], unittest.equals('foo'));
1637 var casted20 = (o["y"]) as core.Map; unittest.expect(casted20, unittest.hasLen gth(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unittest .expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["stri ng"], unittest.equals('foo')); 1677 var casted20 = (o["y"]) as core.Map; unittest.expect(casted20, unittest.hasLen gth(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unittest .expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["stri ng"], unittest.equals('foo'));
1638 } 1678 }
1639 1679
1640 buildUnnamed3575() { 1680 buildUnnamed3390() {
1641 var o = new core.List<api.SideInputInfo>(); 1681 var o = new core.List<api.SideInputInfo>();
1642 o.add(buildSideInputInfo()); 1682 o.add(buildSideInputInfo());
1643 o.add(buildSideInputInfo()); 1683 o.add(buildSideInputInfo());
1644 return o; 1684 return o;
1645 } 1685 }
1646 1686
1647 checkUnnamed3575(core.List<api.SideInputInfo> o) { 1687 checkUnnamed3390(core.List<api.SideInputInfo> o) {
1648 unittest.expect(o, unittest.hasLength(2)); 1688 unittest.expect(o, unittest.hasLength(2));
1649 checkSideInputInfo(o[0]); 1689 checkSideInputInfo(o[0]);
1650 checkSideInputInfo(o[1]); 1690 checkSideInputInfo(o[1]);
1651 } 1691 }
1652 1692
1653 buildUnnamed3576() { 1693 buildUnnamed3391() {
1654 var o = new core.Map<core.String, core.Object>(); 1694 var o = new core.Map<core.String, core.Object>();
1655 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1695 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1656 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1696 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1657 return o; 1697 return o;
1658 } 1698 }
1659 1699
1660 checkUnnamed3576(core.Map<core.String, core.Object> o) { 1700 checkUnnamed3391(core.Map<core.String, core.Object> o) {
1661 unittest.expect(o, unittest.hasLength(2)); 1701 unittest.expect(o, unittest.hasLength(2));
1662 var casted21 = (o["x"]) as core.Map; unittest.expect(casted21, unittest.hasLen gth(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest .expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["stri ng"], unittest.equals('foo')); 1702 var casted21 = (o["x"]) as core.Map; unittest.expect(casted21, unittest.hasLen gth(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest .expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["stri ng"], unittest.equals('foo'));
1663 var casted22 = (o["y"]) as core.Map; unittest.expect(casted22, unittest.hasLen gth(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest .expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["stri ng"], unittest.equals('foo')); 1703 var casted22 = (o["y"]) as core.Map; unittest.expect(casted22, unittest.hasLen gth(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest .expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["stri ng"], unittest.equals('foo'));
1664 } 1704 }
1665 1705
1666 core.int buildCounterPartialGroupByKeyInstruction = 0; 1706 core.int buildCounterPartialGroupByKeyInstruction = 0;
1667 buildPartialGroupByKeyInstruction() { 1707 buildPartialGroupByKeyInstruction() {
1668 var o = new api.PartialGroupByKeyInstruction(); 1708 var o = new api.PartialGroupByKeyInstruction();
1669 buildCounterPartialGroupByKeyInstruction++; 1709 buildCounterPartialGroupByKeyInstruction++;
1670 if (buildCounterPartialGroupByKeyInstruction < 3) { 1710 if (buildCounterPartialGroupByKeyInstruction < 3) {
1671 o.input = buildInstructionInput(); 1711 o.input = buildInstructionInput();
1672 o.inputElementCodec = buildUnnamed3574(); 1712 o.inputElementCodec = buildUnnamed3389();
1673 o.originalCombineValuesInputStoreName = "foo"; 1713 o.originalCombineValuesInputStoreName = "foo";
1674 o.originalCombineValuesStepName = "foo"; 1714 o.originalCombineValuesStepName = "foo";
1675 o.sideInputs = buildUnnamed3575(); 1715 o.sideInputs = buildUnnamed3390();
1676 o.valueCombiningFn = buildUnnamed3576(); 1716 o.valueCombiningFn = buildUnnamed3391();
1677 } 1717 }
1678 buildCounterPartialGroupByKeyInstruction--; 1718 buildCounterPartialGroupByKeyInstruction--;
1679 return o; 1719 return o;
1680 } 1720 }
1681 1721
1682 checkPartialGroupByKeyInstruction(api.PartialGroupByKeyInstruction o) { 1722 checkPartialGroupByKeyInstruction(api.PartialGroupByKeyInstruction o) {
1683 buildCounterPartialGroupByKeyInstruction++; 1723 buildCounterPartialGroupByKeyInstruction++;
1684 if (buildCounterPartialGroupByKeyInstruction < 3) { 1724 if (buildCounterPartialGroupByKeyInstruction < 3) {
1685 checkInstructionInput(o.input); 1725 checkInstructionInput(o.input);
1686 checkUnnamed3574(o.inputElementCodec); 1726 checkUnnamed3389(o.inputElementCodec);
1687 unittest.expect(o.originalCombineValuesInputStoreName, unittest.equals('foo' )); 1727 unittest.expect(o.originalCombineValuesInputStoreName, unittest.equals('foo' ));
1688 unittest.expect(o.originalCombineValuesStepName, unittest.equals('foo')); 1728 unittest.expect(o.originalCombineValuesStepName, unittest.equals('foo'));
1689 checkUnnamed3575(o.sideInputs); 1729 checkUnnamed3390(o.sideInputs);
1690 checkUnnamed3576(o.valueCombiningFn); 1730 checkUnnamed3391(o.valueCombiningFn);
1691 } 1731 }
1692 buildCounterPartialGroupByKeyInstruction--; 1732 buildCounterPartialGroupByKeyInstruction--;
1693 } 1733 }
1694 1734
1695 core.int buildCounterPosition = 0; 1735 core.int buildCounterPosition = 0;
1696 buildPosition() { 1736 buildPosition() {
1697 var o = new api.Position(); 1737 var o = new api.Position();
1698 buildCounterPosition++; 1738 buildCounterPosition++;
1699 if (buildCounterPosition < 3) { 1739 if (buildCounterPosition < 3) {
1700 o.byteOffset = "foo"; 1740 o.byteOffset = "foo";
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
1762 } 1802 }
1763 1803
1764 checkReadInstruction(api.ReadInstruction o) { 1804 checkReadInstruction(api.ReadInstruction o) {
1765 buildCounterReadInstruction++; 1805 buildCounterReadInstruction++;
1766 if (buildCounterReadInstruction < 3) { 1806 if (buildCounterReadInstruction < 3) {
1767 checkSource(o.source); 1807 checkSource(o.source);
1768 } 1808 }
1769 buildCounterReadInstruction--; 1809 buildCounterReadInstruction--;
1770 } 1810 }
1771 1811
1772 buildUnnamed3577() { 1812 buildUnnamed3392() {
1773 var o = new core.List<api.WorkItemStatus>(); 1813 var o = new core.List<api.WorkItemStatus>();
1774 o.add(buildWorkItemStatus()); 1814 o.add(buildWorkItemStatus());
1775 o.add(buildWorkItemStatus()); 1815 o.add(buildWorkItemStatus());
1776 return o; 1816 return o;
1777 } 1817 }
1778 1818
1779 checkUnnamed3577(core.List<api.WorkItemStatus> o) { 1819 checkUnnamed3392(core.List<api.WorkItemStatus> o) {
1780 unittest.expect(o, unittest.hasLength(2)); 1820 unittest.expect(o, unittest.hasLength(2));
1781 checkWorkItemStatus(o[0]); 1821 checkWorkItemStatus(o[0]);
1782 checkWorkItemStatus(o[1]); 1822 checkWorkItemStatus(o[1]);
1783 } 1823 }
1784 1824
1785 core.int buildCounterReportWorkItemStatusRequest = 0; 1825 core.int buildCounterReportWorkItemStatusRequest = 0;
1786 buildReportWorkItemStatusRequest() { 1826 buildReportWorkItemStatusRequest() {
1787 var o = new api.ReportWorkItemStatusRequest(); 1827 var o = new api.ReportWorkItemStatusRequest();
1788 buildCounterReportWorkItemStatusRequest++; 1828 buildCounterReportWorkItemStatusRequest++;
1789 if (buildCounterReportWorkItemStatusRequest < 3) { 1829 if (buildCounterReportWorkItemStatusRequest < 3) {
1790 o.currentWorkerTime = "foo"; 1830 o.currentWorkerTime = "foo";
1791 o.workItemStatuses = buildUnnamed3577(); 1831 o.location = "foo";
1832 o.workItemStatuses = buildUnnamed3392();
1792 o.workerId = "foo"; 1833 o.workerId = "foo";
1793 } 1834 }
1794 buildCounterReportWorkItemStatusRequest--; 1835 buildCounterReportWorkItemStatusRequest--;
1795 return o; 1836 return o;
1796 } 1837 }
1797 1838
1798 checkReportWorkItemStatusRequest(api.ReportWorkItemStatusRequest o) { 1839 checkReportWorkItemStatusRequest(api.ReportWorkItemStatusRequest o) {
1799 buildCounterReportWorkItemStatusRequest++; 1840 buildCounterReportWorkItemStatusRequest++;
1800 if (buildCounterReportWorkItemStatusRequest < 3) { 1841 if (buildCounterReportWorkItemStatusRequest < 3) {
1801 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); 1842 unittest.expect(o.currentWorkerTime, unittest.equals('foo'));
1802 checkUnnamed3577(o.workItemStatuses); 1843 unittest.expect(o.location, unittest.equals('foo'));
1844 checkUnnamed3392(o.workItemStatuses);
1803 unittest.expect(o.workerId, unittest.equals('foo')); 1845 unittest.expect(o.workerId, unittest.equals('foo'));
1804 } 1846 }
1805 buildCounterReportWorkItemStatusRequest--; 1847 buildCounterReportWorkItemStatusRequest--;
1806 } 1848 }
1807 1849
1808 buildUnnamed3578() { 1850 buildUnnamed3393() {
1809 var o = new core.List<api.WorkItemServiceState>(); 1851 var o = new core.List<api.WorkItemServiceState>();
1810 o.add(buildWorkItemServiceState()); 1852 o.add(buildWorkItemServiceState());
1811 o.add(buildWorkItemServiceState()); 1853 o.add(buildWorkItemServiceState());
1812 return o; 1854 return o;
1813 } 1855 }
1814 1856
1815 checkUnnamed3578(core.List<api.WorkItemServiceState> o) { 1857 checkUnnamed3393(core.List<api.WorkItemServiceState> o) {
1816 unittest.expect(o, unittest.hasLength(2)); 1858 unittest.expect(o, unittest.hasLength(2));
1817 checkWorkItemServiceState(o[0]); 1859 checkWorkItemServiceState(o[0]);
1818 checkWorkItemServiceState(o[1]); 1860 checkWorkItemServiceState(o[1]);
1819 } 1861 }
1820 1862
1821 core.int buildCounterReportWorkItemStatusResponse = 0; 1863 core.int buildCounterReportWorkItemStatusResponse = 0;
1822 buildReportWorkItemStatusResponse() { 1864 buildReportWorkItemStatusResponse() {
1823 var o = new api.ReportWorkItemStatusResponse(); 1865 var o = new api.ReportWorkItemStatusResponse();
1824 buildCounterReportWorkItemStatusResponse++; 1866 buildCounterReportWorkItemStatusResponse++;
1825 if (buildCounterReportWorkItemStatusResponse < 3) { 1867 if (buildCounterReportWorkItemStatusResponse < 3) {
1826 o.workItemServiceStates = buildUnnamed3578(); 1868 o.workItemServiceStates = buildUnnamed3393();
1827 } 1869 }
1828 buildCounterReportWorkItemStatusResponse--; 1870 buildCounterReportWorkItemStatusResponse--;
1829 return o; 1871 return o;
1830 } 1872 }
1831 1873
1832 checkReportWorkItemStatusResponse(api.ReportWorkItemStatusResponse o) { 1874 checkReportWorkItemStatusResponse(api.ReportWorkItemStatusResponse o) {
1833 buildCounterReportWorkItemStatusResponse++; 1875 buildCounterReportWorkItemStatusResponse++;
1834 if (buildCounterReportWorkItemStatusResponse < 3) { 1876 if (buildCounterReportWorkItemStatusResponse < 3) {
1835 checkUnnamed3578(o.workItemServiceStates); 1877 checkUnnamed3393(o.workItemServiceStates);
1836 } 1878 }
1837 buildCounterReportWorkItemStatusResponse--; 1879 buildCounterReportWorkItemStatusResponse--;
1838 } 1880 }
1839 1881
1840 core.int buildCounterReportedParallelism = 0; 1882 core.int buildCounterReportedParallelism = 0;
1841 buildReportedParallelism() { 1883 buildReportedParallelism() {
1842 var o = new api.ReportedParallelism(); 1884 var o = new api.ReportedParallelism();
1843 buildCounterReportedParallelism++; 1885 buildCounterReportedParallelism++;
1844 if (buildCounterReportedParallelism < 3) { 1886 if (buildCounterReportedParallelism < 3) {
1845 o.isInfinite = true; 1887 o.isInfinite = true;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1891 return o; 1933 return o;
1892 } 1934 }
1893 1935
1894 checkSendDebugCaptureResponse(api.SendDebugCaptureResponse o) { 1936 checkSendDebugCaptureResponse(api.SendDebugCaptureResponse o) {
1895 buildCounterSendDebugCaptureResponse++; 1937 buildCounterSendDebugCaptureResponse++;
1896 if (buildCounterSendDebugCaptureResponse < 3) { 1938 if (buildCounterSendDebugCaptureResponse < 3) {
1897 } 1939 }
1898 buildCounterSendDebugCaptureResponse--; 1940 buildCounterSendDebugCaptureResponse--;
1899 } 1941 }
1900 1942
1901 buildUnnamed3579() { 1943 buildUnnamed3394() {
1902 var o = new core.List<api.WorkerMessage>(); 1944 var o = new core.List<api.WorkerMessage>();
1903 o.add(buildWorkerMessage()); 1945 o.add(buildWorkerMessage());
1904 o.add(buildWorkerMessage()); 1946 o.add(buildWorkerMessage());
1905 return o; 1947 return o;
1906 } 1948 }
1907 1949
1908 checkUnnamed3579(core.List<api.WorkerMessage> o) { 1950 checkUnnamed3394(core.List<api.WorkerMessage> o) {
1909 unittest.expect(o, unittest.hasLength(2)); 1951 unittest.expect(o, unittest.hasLength(2));
1910 checkWorkerMessage(o[0]); 1952 checkWorkerMessage(o[0]);
1911 checkWorkerMessage(o[1]); 1953 checkWorkerMessage(o[1]);
1912 } 1954 }
1913 1955
1914 core.int buildCounterSendWorkerMessagesRequest = 0; 1956 core.int buildCounterSendWorkerMessagesRequest = 0;
1915 buildSendWorkerMessagesRequest() { 1957 buildSendWorkerMessagesRequest() {
1916 var o = new api.SendWorkerMessagesRequest(); 1958 var o = new api.SendWorkerMessagesRequest();
1917 buildCounterSendWorkerMessagesRequest++; 1959 buildCounterSendWorkerMessagesRequest++;
1918 if (buildCounterSendWorkerMessagesRequest < 3) { 1960 if (buildCounterSendWorkerMessagesRequest < 3) {
1919 o.workerMessages = buildUnnamed3579(); 1961 o.workerMessages = buildUnnamed3394();
1920 } 1962 }
1921 buildCounterSendWorkerMessagesRequest--; 1963 buildCounterSendWorkerMessagesRequest--;
1922 return o; 1964 return o;
1923 } 1965 }
1924 1966
1925 checkSendWorkerMessagesRequest(api.SendWorkerMessagesRequest o) { 1967 checkSendWorkerMessagesRequest(api.SendWorkerMessagesRequest o) {
1926 buildCounterSendWorkerMessagesRequest++; 1968 buildCounterSendWorkerMessagesRequest++;
1927 if (buildCounterSendWorkerMessagesRequest < 3) { 1969 if (buildCounterSendWorkerMessagesRequest < 3) {
1928 checkUnnamed3579(o.workerMessages); 1970 checkUnnamed3394(o.workerMessages);
1929 } 1971 }
1930 buildCounterSendWorkerMessagesRequest--; 1972 buildCounterSendWorkerMessagesRequest--;
1931 } 1973 }
1932 1974
1933 buildUnnamed3580() { 1975 buildUnnamed3395() {
1934 var o = new core.List<api.WorkerMessageResponse>(); 1976 var o = new core.List<api.WorkerMessageResponse>();
1935 o.add(buildWorkerMessageResponse()); 1977 o.add(buildWorkerMessageResponse());
1936 o.add(buildWorkerMessageResponse()); 1978 o.add(buildWorkerMessageResponse());
1937 return o; 1979 return o;
1938 } 1980 }
1939 1981
1940 checkUnnamed3580(core.List<api.WorkerMessageResponse> o) { 1982 checkUnnamed3395(core.List<api.WorkerMessageResponse> o) {
1941 unittest.expect(o, unittest.hasLength(2)); 1983 unittest.expect(o, unittest.hasLength(2));
1942 checkWorkerMessageResponse(o[0]); 1984 checkWorkerMessageResponse(o[0]);
1943 checkWorkerMessageResponse(o[1]); 1985 checkWorkerMessageResponse(o[1]);
1944 } 1986 }
1945 1987
1946 core.int buildCounterSendWorkerMessagesResponse = 0; 1988 core.int buildCounterSendWorkerMessagesResponse = 0;
1947 buildSendWorkerMessagesResponse() { 1989 buildSendWorkerMessagesResponse() {
1948 var o = new api.SendWorkerMessagesResponse(); 1990 var o = new api.SendWorkerMessagesResponse();
1949 buildCounterSendWorkerMessagesResponse++; 1991 buildCounterSendWorkerMessagesResponse++;
1950 if (buildCounterSendWorkerMessagesResponse < 3) { 1992 if (buildCounterSendWorkerMessagesResponse < 3) {
1951 o.workerMessageResponses = buildUnnamed3580(); 1993 o.workerMessageResponses = buildUnnamed3395();
1952 } 1994 }
1953 buildCounterSendWorkerMessagesResponse--; 1995 buildCounterSendWorkerMessagesResponse--;
1954 return o; 1996 return o;
1955 } 1997 }
1956 1998
1957 checkSendWorkerMessagesResponse(api.SendWorkerMessagesResponse o) { 1999 checkSendWorkerMessagesResponse(api.SendWorkerMessagesResponse o) {
1958 buildCounterSendWorkerMessagesResponse++; 2000 buildCounterSendWorkerMessagesResponse++;
1959 if (buildCounterSendWorkerMessagesResponse < 3) { 2001 if (buildCounterSendWorkerMessagesResponse < 3) {
1960 checkUnnamed3580(o.workerMessageResponses); 2002 checkUnnamed3395(o.workerMessageResponses);
1961 } 2003 }
1962 buildCounterSendWorkerMessagesResponse--; 2004 buildCounterSendWorkerMessagesResponse--;
1963 } 2005 }
1964 2006
1965 buildUnnamed3581() { 2007 buildUnnamed3396() {
1966 var o = new core.List<api.SideInputInfo>(); 2008 var o = new core.List<api.SideInputInfo>();
1967 o.add(buildSideInputInfo()); 2009 o.add(buildSideInputInfo());
1968 o.add(buildSideInputInfo()); 2010 o.add(buildSideInputInfo());
1969 return o; 2011 return o;
1970 } 2012 }
1971 2013
1972 checkUnnamed3581(core.List<api.SideInputInfo> o) { 2014 checkUnnamed3396(core.List<api.SideInputInfo> o) {
1973 unittest.expect(o, unittest.hasLength(2)); 2015 unittest.expect(o, unittest.hasLength(2));
1974 checkSideInputInfo(o[0]); 2016 checkSideInputInfo(o[0]);
1975 checkSideInputInfo(o[1]); 2017 checkSideInputInfo(o[1]);
1976 } 2018 }
1977 2019
1978 buildUnnamed3582() { 2020 buildUnnamed3397() {
1979 var o = new core.List<api.SeqMapTaskOutputInfo>(); 2021 var o = new core.List<api.SeqMapTaskOutputInfo>();
1980 o.add(buildSeqMapTaskOutputInfo()); 2022 o.add(buildSeqMapTaskOutputInfo());
1981 o.add(buildSeqMapTaskOutputInfo()); 2023 o.add(buildSeqMapTaskOutputInfo());
1982 return o; 2024 return o;
1983 } 2025 }
1984 2026
1985 checkUnnamed3582(core.List<api.SeqMapTaskOutputInfo> o) { 2027 checkUnnamed3397(core.List<api.SeqMapTaskOutputInfo> o) {
1986 unittest.expect(o, unittest.hasLength(2)); 2028 unittest.expect(o, unittest.hasLength(2));
1987 checkSeqMapTaskOutputInfo(o[0]); 2029 checkSeqMapTaskOutputInfo(o[0]);
1988 checkSeqMapTaskOutputInfo(o[1]); 2030 checkSeqMapTaskOutputInfo(o[1]);
1989 } 2031 }
1990 2032
1991 buildUnnamed3583() { 2033 buildUnnamed3398() {
1992 var o = new core.Map<core.String, core.Object>(); 2034 var o = new core.Map<core.String, core.Object>();
1993 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2035 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1994 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2036 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1995 return o; 2037 return o;
1996 } 2038 }
1997 2039
1998 checkUnnamed3583(core.Map<core.String, core.Object> o) { 2040 checkUnnamed3398(core.Map<core.String, core.Object> o) {
1999 unittest.expect(o, unittest.hasLength(2)); 2041 unittest.expect(o, unittest.hasLength(2));
2000 var casted23 = (o["x"]) as core.Map; unittest.expect(casted23, unittest.hasLen gth(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest .expect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["stri ng"], unittest.equals('foo')); 2042 var casted23 = (o["x"]) as core.Map; unittest.expect(casted23, unittest.hasLen gth(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest .expect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["stri ng"], unittest.equals('foo'));
2001 var casted24 = (o["y"]) as core.Map; unittest.expect(casted24, unittest.hasLen gth(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest .expect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["stri ng"], unittest.equals('foo')); 2043 var casted24 = (o["y"]) as core.Map; unittest.expect(casted24, unittest.hasLen gth(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest .expect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["stri ng"], unittest.equals('foo'));
2002 } 2044 }
2003 2045
2004 core.int buildCounterSeqMapTask = 0; 2046 core.int buildCounterSeqMapTask = 0;
2005 buildSeqMapTask() { 2047 buildSeqMapTask() {
2006 var o = new api.SeqMapTask(); 2048 var o = new api.SeqMapTask();
2007 buildCounterSeqMapTask++; 2049 buildCounterSeqMapTask++;
2008 if (buildCounterSeqMapTask < 3) { 2050 if (buildCounterSeqMapTask < 3) {
2009 o.inputs = buildUnnamed3581(); 2051 o.inputs = buildUnnamed3396();
2010 o.name = "foo"; 2052 o.name = "foo";
2011 o.outputInfos = buildUnnamed3582(); 2053 o.outputInfos = buildUnnamed3397();
2012 o.stageName = "foo"; 2054 o.stageName = "foo";
2013 o.systemName = "foo"; 2055 o.systemName = "foo";
2014 o.userFn = buildUnnamed3583(); 2056 o.userFn = buildUnnamed3398();
2015 } 2057 }
2016 buildCounterSeqMapTask--; 2058 buildCounterSeqMapTask--;
2017 return o; 2059 return o;
2018 } 2060 }
2019 2061
2020 checkSeqMapTask(api.SeqMapTask o) { 2062 checkSeqMapTask(api.SeqMapTask o) {
2021 buildCounterSeqMapTask++; 2063 buildCounterSeqMapTask++;
2022 if (buildCounterSeqMapTask < 3) { 2064 if (buildCounterSeqMapTask < 3) {
2023 checkUnnamed3581(o.inputs); 2065 checkUnnamed3396(o.inputs);
2024 unittest.expect(o.name, unittest.equals('foo')); 2066 unittest.expect(o.name, unittest.equals('foo'));
2025 checkUnnamed3582(o.outputInfos); 2067 checkUnnamed3397(o.outputInfos);
2026 unittest.expect(o.stageName, unittest.equals('foo')); 2068 unittest.expect(o.stageName, unittest.equals('foo'));
2027 unittest.expect(o.systemName, unittest.equals('foo')); 2069 unittest.expect(o.systemName, unittest.equals('foo'));
2028 checkUnnamed3583(o.userFn); 2070 checkUnnamed3398(o.userFn);
2029 } 2071 }
2030 buildCounterSeqMapTask--; 2072 buildCounterSeqMapTask--;
2031 } 2073 }
2032 2074
2033 core.int buildCounterSeqMapTaskOutputInfo = 0; 2075 core.int buildCounterSeqMapTaskOutputInfo = 0;
2034 buildSeqMapTaskOutputInfo() { 2076 buildSeqMapTaskOutputInfo() {
2035 var o = new api.SeqMapTaskOutputInfo(); 2077 var o = new api.SeqMapTaskOutputInfo();
2036 buildCounterSeqMapTaskOutputInfo++; 2078 buildCounterSeqMapTaskOutputInfo++;
2037 if (buildCounterSeqMapTaskOutputInfo < 3) { 2079 if (buildCounterSeqMapTaskOutputInfo < 3) {
2038 o.sink = buildSink(); 2080 o.sink = buildSink();
(...skipping 26 matching lines...) Expand all
2065 2107
2066 checkShellTask(api.ShellTask o) { 2108 checkShellTask(api.ShellTask o) {
2067 buildCounterShellTask++; 2109 buildCounterShellTask++;
2068 if (buildCounterShellTask < 3) { 2110 if (buildCounterShellTask < 3) {
2069 unittest.expect(o.command, unittest.equals('foo')); 2111 unittest.expect(o.command, unittest.equals('foo'));
2070 unittest.expect(o.exitCode, unittest.equals(42)); 2112 unittest.expect(o.exitCode, unittest.equals(42));
2071 } 2113 }
2072 buildCounterShellTask--; 2114 buildCounterShellTask--;
2073 } 2115 }
2074 2116
2075 buildUnnamed3584() { 2117 buildUnnamed3399() {
2076 var o = new core.Map<core.String, core.Object>(); 2118 var o = new core.Map<core.String, core.Object>();
2077 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2119 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2078 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2120 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2079 return o; 2121 return o;
2080 } 2122 }
2081 2123
2082 checkUnnamed3584(core.Map<core.String, core.Object> o) { 2124 checkUnnamed3399(core.Map<core.String, core.Object> o) {
2083 unittest.expect(o, unittest.hasLength(2)); 2125 unittest.expect(o, unittest.hasLength(2));
2084 var casted25 = (o["x"]) as core.Map; unittest.expect(casted25, unittest.hasLen gth(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest .expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["stri ng"], unittest.equals('foo')); 2126 var casted25 = (o["x"]) as core.Map; unittest.expect(casted25, unittest.hasLen gth(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest .expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["stri ng"], unittest.equals('foo'));
2085 var casted26 = (o["y"]) as core.Map; unittest.expect(casted26, unittest.hasLen gth(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest .expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["stri ng"], unittest.equals('foo')); 2127 var casted26 = (o["y"]) as core.Map; unittest.expect(casted26, unittest.hasLen gth(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest .expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["stri ng"], unittest.equals('foo'));
2086 } 2128 }
2087 2129
2088 buildUnnamed3585() { 2130 buildUnnamed3400() {
2089 var o = new core.List<api.Source>(); 2131 var o = new core.List<api.Source>();
2090 o.add(buildSource()); 2132 o.add(buildSource());
2091 o.add(buildSource()); 2133 o.add(buildSource());
2092 return o; 2134 return o;
2093 } 2135 }
2094 2136
2095 checkUnnamed3585(core.List<api.Source> o) { 2137 checkUnnamed3400(core.List<api.Source> o) {
2096 unittest.expect(o, unittest.hasLength(2)); 2138 unittest.expect(o, unittest.hasLength(2));
2097 checkSource(o[0]); 2139 checkSource(o[0]);
2098 checkSource(o[1]); 2140 checkSource(o[1]);
2099 } 2141 }
2100 2142
2101 core.int buildCounterSideInputInfo = 0; 2143 core.int buildCounterSideInputInfo = 0;
2102 buildSideInputInfo() { 2144 buildSideInputInfo() {
2103 var o = new api.SideInputInfo(); 2145 var o = new api.SideInputInfo();
2104 buildCounterSideInputInfo++; 2146 buildCounterSideInputInfo++;
2105 if (buildCounterSideInputInfo < 3) { 2147 if (buildCounterSideInputInfo < 3) {
2106 o.kind = buildUnnamed3584(); 2148 o.kind = buildUnnamed3399();
2107 o.sources = buildUnnamed3585(); 2149 o.sources = buildUnnamed3400();
2108 o.tag = "foo"; 2150 o.tag = "foo";
2109 } 2151 }
2110 buildCounterSideInputInfo--; 2152 buildCounterSideInputInfo--;
2111 return o; 2153 return o;
2112 } 2154 }
2113 2155
2114 checkSideInputInfo(api.SideInputInfo o) { 2156 checkSideInputInfo(api.SideInputInfo o) {
2115 buildCounterSideInputInfo++; 2157 buildCounterSideInputInfo++;
2116 if (buildCounterSideInputInfo < 3) { 2158 if (buildCounterSideInputInfo < 3) {
2117 checkUnnamed3584(o.kind); 2159 checkUnnamed3399(o.kind);
2118 checkUnnamed3585(o.sources); 2160 checkUnnamed3400(o.sources);
2119 unittest.expect(o.tag, unittest.equals('foo')); 2161 unittest.expect(o.tag, unittest.equals('foo'));
2120 } 2162 }
2121 buildCounterSideInputInfo--; 2163 buildCounterSideInputInfo--;
2122 } 2164 }
2123 2165
2124 buildUnnamed3586() { 2166 buildUnnamed3401() {
2125 var o = new core.Map<core.String, core.Object>(); 2167 var o = new core.Map<core.String, core.Object>();
2126 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2168 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2127 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2169 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2128 return o; 2170 return o;
2129 } 2171 }
2130 2172
2131 checkUnnamed3586(core.Map<core.String, core.Object> o) { 2173 checkUnnamed3401(core.Map<core.String, core.Object> o) {
2132 unittest.expect(o, unittest.hasLength(2)); 2174 unittest.expect(o, unittest.hasLength(2));
2133 var casted27 = (o["x"]) as core.Map; unittest.expect(casted27, unittest.hasLen gth(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest .expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["stri ng"], unittest.equals('foo')); 2175 var casted27 = (o["x"]) as core.Map; unittest.expect(casted27, unittest.hasLen gth(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest .expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["stri ng"], unittest.equals('foo'));
2134 var casted28 = (o["y"]) as core.Map; unittest.expect(casted28, unittest.hasLen gth(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest .expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["stri ng"], unittest.equals('foo')); 2176 var casted28 = (o["y"]) as core.Map; unittest.expect(casted28, unittest.hasLen gth(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest .expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["stri ng"], unittest.equals('foo'));
2135 } 2177 }
2136 2178
2137 buildUnnamed3587() { 2179 buildUnnamed3402() {
2138 var o = new core.Map<core.String, core.Object>(); 2180 var o = new core.Map<core.String, core.Object>();
2139 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2181 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2140 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2182 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2141 return o; 2183 return o;
2142 } 2184 }
2143 2185
2144 checkUnnamed3587(core.Map<core.String, core.Object> o) { 2186 checkUnnamed3402(core.Map<core.String, core.Object> o) {
2145 unittest.expect(o, unittest.hasLength(2)); 2187 unittest.expect(o, unittest.hasLength(2));
2146 var casted29 = (o["x"]) as core.Map; unittest.expect(casted29, unittest.hasLen gth(3)); unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); unittest .expect(casted29["bool"], unittest.equals(true)); unittest.expect(casted29["stri ng"], unittest.equals('foo')); 2188 var casted29 = (o["x"]) as core.Map; unittest.expect(casted29, unittest.hasLen gth(3)); unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); unittest .expect(casted29["bool"], unittest.equals(true)); unittest.expect(casted29["stri ng"], unittest.equals('foo'));
2147 var casted30 = (o["y"]) as core.Map; unittest.expect(casted30, unittest.hasLen gth(3)); unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); unittest .expect(casted30["bool"], unittest.equals(true)); unittest.expect(casted30["stri ng"], unittest.equals('foo')); 2189 var casted30 = (o["y"]) as core.Map; unittest.expect(casted30, unittest.hasLen gth(3)); unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); unittest .expect(casted30["bool"], unittest.equals(true)); unittest.expect(casted30["stri ng"], unittest.equals('foo'));
2148 } 2190 }
2149 2191
2150 core.int buildCounterSink = 0; 2192 core.int buildCounterSink = 0;
2151 buildSink() { 2193 buildSink() {
2152 var o = new api.Sink(); 2194 var o = new api.Sink();
2153 buildCounterSink++; 2195 buildCounterSink++;
2154 if (buildCounterSink < 3) { 2196 if (buildCounterSink < 3) {
2155 o.codec = buildUnnamed3586(); 2197 o.codec = buildUnnamed3401();
2156 o.spec = buildUnnamed3587(); 2198 o.spec = buildUnnamed3402();
2157 } 2199 }
2158 buildCounterSink--; 2200 buildCounterSink--;
2159 return o; 2201 return o;
2160 } 2202 }
2161 2203
2162 checkSink(api.Sink o) { 2204 checkSink(api.Sink o) {
2163 buildCounterSink++; 2205 buildCounterSink++;
2164 if (buildCounterSink < 3) { 2206 if (buildCounterSink < 3) {
2165 checkUnnamed3586(o.codec); 2207 checkUnnamed3401(o.codec);
2166 checkUnnamed3587(o.spec); 2208 checkUnnamed3402(o.spec);
2167 } 2209 }
2168 buildCounterSink--; 2210 buildCounterSink--;
2169 } 2211 }
2170 2212
2171 buildUnnamed3588() { 2213 buildUnnamed3403() {
2172 var o = new core.Map<core.String, core.Object>(); 2214 var o = new core.Map<core.String, core.Object>();
2173 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2215 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2174 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2216 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2175 return o; 2217 return o;
2176 } 2218 }
2177 2219
2178 checkUnnamed3588(core.Map<core.String, core.Object> o) { 2220 checkUnnamed3403(core.Map<core.String, core.Object> o) {
2179 unittest.expect(o, unittest.hasLength(2)); 2221 unittest.expect(o, unittest.hasLength(2));
2180 var casted31 = (o["x"]) as core.Map; unittest.expect(casted31, unittest.hasLen gth(3)); unittest.expect(casted31["list"], unittest.equals([1, 2, 3])); unittest .expect(casted31["bool"], unittest.equals(true)); unittest.expect(casted31["stri ng"], unittest.equals('foo')); 2222 var casted31 = (o["x"]) as core.Map; unittest.expect(casted31, unittest.hasLen gth(3)); unittest.expect(casted31["list"], unittest.equals([1, 2, 3])); unittest .expect(casted31["bool"], unittest.equals(true)); unittest.expect(casted31["stri ng"], unittest.equals('foo'));
2181 var casted32 = (o["y"]) as core.Map; unittest.expect(casted32, unittest.hasLen gth(3)); unittest.expect(casted32["list"], unittest.equals([1, 2, 3])); unittest .expect(casted32["bool"], unittest.equals(true)); unittest.expect(casted32["stri ng"], unittest.equals('foo')); 2223 var casted32 = (o["y"]) as core.Map; unittest.expect(casted32, unittest.hasLen gth(3)); unittest.expect(casted32["list"], unittest.equals([1, 2, 3])); unittest .expect(casted32["bool"], unittest.equals(true)); unittest.expect(casted32["stri ng"], unittest.equals('foo'));
2182 } 2224 }
2183 2225
2184 buildUnnamed3589() { 2226 buildUnnamed3404() {
2185 var o = new core.List<core.Map<core.String, core.Object>>(); 2227 var o = new core.List<core.Map<core.String, core.Object>>();
2186 o.add(buildUnnamed3588()); 2228 o.add(buildUnnamed3403());
2187 o.add(buildUnnamed3588()); 2229 o.add(buildUnnamed3403());
2188 return o; 2230 return o;
2189 } 2231 }
2190 2232
2191 checkUnnamed3589(core.List<core.Map<core.String, core.Object>> o) { 2233 checkUnnamed3404(core.List<core.Map<core.String, core.Object>> o) {
2192 unittest.expect(o, unittest.hasLength(2)); 2234 unittest.expect(o, unittest.hasLength(2));
2193 checkUnnamed3588(o[0]); 2235 checkUnnamed3403(o[0]);
2194 checkUnnamed3588(o[1]); 2236 checkUnnamed3403(o[1]);
2195 } 2237 }
2196 2238
2197 buildUnnamed3590() { 2239 buildUnnamed3405() {
2198 var o = new core.Map<core.String, core.Object>(); 2240 var o = new core.Map<core.String, core.Object>();
2199 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2241 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2200 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2242 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2201 return o; 2243 return o;
2202 } 2244 }
2203 2245
2204 checkUnnamed3590(core.Map<core.String, core.Object> o) { 2246 checkUnnamed3405(core.Map<core.String, core.Object> o) {
2205 unittest.expect(o, unittest.hasLength(2)); 2247 unittest.expect(o, unittest.hasLength(2));
2206 var casted33 = (o["x"]) as core.Map; unittest.expect(casted33, unittest.hasLen gth(3)); unittest.expect(casted33["list"], unittest.equals([1, 2, 3])); unittest .expect(casted33["bool"], unittest.equals(true)); unittest.expect(casted33["stri ng"], unittest.equals('foo')); 2248 var casted33 = (o["x"]) as core.Map; unittest.expect(casted33, unittest.hasLen gth(3)); unittest.expect(casted33["list"], unittest.equals([1, 2, 3])); unittest .expect(casted33["bool"], unittest.equals(true)); unittest.expect(casted33["stri ng"], unittest.equals('foo'));
2207 var casted34 = (o["y"]) as core.Map; unittest.expect(casted34, unittest.hasLen gth(3)); unittest.expect(casted34["list"], unittest.equals([1, 2, 3])); unittest .expect(casted34["bool"], unittest.equals(true)); unittest.expect(casted34["stri ng"], unittest.equals('foo')); 2249 var casted34 = (o["y"]) as core.Map; unittest.expect(casted34, unittest.hasLen gth(3)); unittest.expect(casted34["list"], unittest.equals([1, 2, 3])); unittest .expect(casted34["bool"], unittest.equals(true)); unittest.expect(casted34["stri ng"], unittest.equals('foo'));
2208 } 2250 }
2209 2251
2210 buildUnnamed3591() { 2252 buildUnnamed3406() {
2211 var o = new core.Map<core.String, core.Object>(); 2253 var o = new core.Map<core.String, core.Object>();
2212 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2254 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2213 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2255 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2214 return o; 2256 return o;
2215 } 2257 }
2216 2258
2217 checkUnnamed3591(core.Map<core.String, core.Object> o) { 2259 checkUnnamed3406(core.Map<core.String, core.Object> o) {
2218 unittest.expect(o, unittest.hasLength(2)); 2260 unittest.expect(o, unittest.hasLength(2));
2219 var casted35 = (o["x"]) as core.Map; unittest.expect(casted35, unittest.hasLen gth(3)); unittest.expect(casted35["list"], unittest.equals([1, 2, 3])); unittest .expect(casted35["bool"], unittest.equals(true)); unittest.expect(casted35["stri ng"], unittest.equals('foo')); 2261 var casted35 = (o["x"]) as core.Map; unittest.expect(casted35, unittest.hasLen gth(3)); unittest.expect(casted35["list"], unittest.equals([1, 2, 3])); unittest .expect(casted35["bool"], unittest.equals(true)); unittest.expect(casted35["stri ng"], unittest.equals('foo'));
2220 var casted36 = (o["y"]) as core.Map; unittest.expect(casted36, unittest.hasLen gth(3)); unittest.expect(casted36["list"], unittest.equals([1, 2, 3])); unittest .expect(casted36["bool"], unittest.equals(true)); unittest.expect(casted36["stri ng"], unittest.equals('foo')); 2262 var casted36 = (o["y"]) as core.Map; unittest.expect(casted36, unittest.hasLen gth(3)); unittest.expect(casted36["list"], unittest.equals([1, 2, 3])); unittest .expect(casted36["bool"], unittest.equals(true)); unittest.expect(casted36["stri ng"], unittest.equals('foo'));
2221 } 2263 }
2222 2264
2223 core.int buildCounterSource = 0; 2265 core.int buildCounterSource = 0;
2224 buildSource() { 2266 buildSource() {
2225 var o = new api.Source(); 2267 var o = new api.Source();
2226 buildCounterSource++; 2268 buildCounterSource++;
2227 if (buildCounterSource < 3) { 2269 if (buildCounterSource < 3) {
2228 o.baseSpecs = buildUnnamed3589(); 2270 o.baseSpecs = buildUnnamed3404();
2229 o.codec = buildUnnamed3590(); 2271 o.codec = buildUnnamed3405();
2230 o.doesNotNeedSplitting = true; 2272 o.doesNotNeedSplitting = true;
2231 o.metadata = buildSourceMetadata(); 2273 o.metadata = buildSourceMetadata();
2232 o.spec = buildUnnamed3591(); 2274 o.spec = buildUnnamed3406();
2233 } 2275 }
2234 buildCounterSource--; 2276 buildCounterSource--;
2235 return o; 2277 return o;
2236 } 2278 }
2237 2279
2238 checkSource(api.Source o) { 2280 checkSource(api.Source o) {
2239 buildCounterSource++; 2281 buildCounterSource++;
2240 if (buildCounterSource < 3) { 2282 if (buildCounterSource < 3) {
2241 checkUnnamed3589(o.baseSpecs); 2283 checkUnnamed3404(o.baseSpecs);
2242 checkUnnamed3590(o.codec); 2284 checkUnnamed3405(o.codec);
2243 unittest.expect(o.doesNotNeedSplitting, unittest.isTrue); 2285 unittest.expect(o.doesNotNeedSplitting, unittest.isTrue);
2244 checkSourceMetadata(o.metadata); 2286 checkSourceMetadata(o.metadata);
2245 checkUnnamed3591(o.spec); 2287 checkUnnamed3406(o.spec);
2246 } 2288 }
2247 buildCounterSource--; 2289 buildCounterSource--;
2248 } 2290 }
2249 2291
2250 core.int buildCounterSourceFork = 0; 2292 core.int buildCounterSourceFork = 0;
2251 buildSourceFork() { 2293 buildSourceFork() {
2252 var o = new api.SourceFork(); 2294 var o = new api.SourceFork();
2253 buildCounterSourceFork++; 2295 buildCounterSourceFork++;
2254 if (buildCounterSourceFork < 3) { 2296 if (buildCounterSourceFork < 3) {
2255 o.primary = buildSourceSplitShard(); 2297 o.primary = buildSourceSplitShard();
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
2410 2452
2411 checkSourceSplitRequest(api.SourceSplitRequest o) { 2453 checkSourceSplitRequest(api.SourceSplitRequest o) {
2412 buildCounterSourceSplitRequest++; 2454 buildCounterSourceSplitRequest++;
2413 if (buildCounterSourceSplitRequest < 3) { 2455 if (buildCounterSourceSplitRequest < 3) {
2414 checkSourceSplitOptions(o.options); 2456 checkSourceSplitOptions(o.options);
2415 checkSource(o.source); 2457 checkSource(o.source);
2416 } 2458 }
2417 buildCounterSourceSplitRequest--; 2459 buildCounterSourceSplitRequest--;
2418 } 2460 }
2419 2461
2420 buildUnnamed3592() { 2462 buildUnnamed3407() {
2421 var o = new core.List<api.DerivedSource>(); 2463 var o = new core.List<api.DerivedSource>();
2422 o.add(buildDerivedSource()); 2464 o.add(buildDerivedSource());
2423 o.add(buildDerivedSource()); 2465 o.add(buildDerivedSource());
2424 return o; 2466 return o;
2425 } 2467 }
2426 2468
2427 checkUnnamed3592(core.List<api.DerivedSource> o) { 2469 checkUnnamed3407(core.List<api.DerivedSource> o) {
2428 unittest.expect(o, unittest.hasLength(2)); 2470 unittest.expect(o, unittest.hasLength(2));
2429 checkDerivedSource(o[0]); 2471 checkDerivedSource(o[0]);
2430 checkDerivedSource(o[1]); 2472 checkDerivedSource(o[1]);
2431 } 2473 }
2432 2474
2433 buildUnnamed3593() { 2475 buildUnnamed3408() {
2434 var o = new core.List<api.SourceSplitShard>(); 2476 var o = new core.List<api.SourceSplitShard>();
2435 o.add(buildSourceSplitShard()); 2477 o.add(buildSourceSplitShard());
2436 o.add(buildSourceSplitShard()); 2478 o.add(buildSourceSplitShard());
2437 return o; 2479 return o;
2438 } 2480 }
2439 2481
2440 checkUnnamed3593(core.List<api.SourceSplitShard> o) { 2482 checkUnnamed3408(core.List<api.SourceSplitShard> o) {
2441 unittest.expect(o, unittest.hasLength(2)); 2483 unittest.expect(o, unittest.hasLength(2));
2442 checkSourceSplitShard(o[0]); 2484 checkSourceSplitShard(o[0]);
2443 checkSourceSplitShard(o[1]); 2485 checkSourceSplitShard(o[1]);
2444 } 2486 }
2445 2487
2446 core.int buildCounterSourceSplitResponse = 0; 2488 core.int buildCounterSourceSplitResponse = 0;
2447 buildSourceSplitResponse() { 2489 buildSourceSplitResponse() {
2448 var o = new api.SourceSplitResponse(); 2490 var o = new api.SourceSplitResponse();
2449 buildCounterSourceSplitResponse++; 2491 buildCounterSourceSplitResponse++;
2450 if (buildCounterSourceSplitResponse < 3) { 2492 if (buildCounterSourceSplitResponse < 3) {
2451 o.bundles = buildUnnamed3592(); 2493 o.bundles = buildUnnamed3407();
2452 o.outcome = "foo"; 2494 o.outcome = "foo";
2453 o.shards = buildUnnamed3593(); 2495 o.shards = buildUnnamed3408();
2454 } 2496 }
2455 buildCounterSourceSplitResponse--; 2497 buildCounterSourceSplitResponse--;
2456 return o; 2498 return o;
2457 } 2499 }
2458 2500
2459 checkSourceSplitResponse(api.SourceSplitResponse o) { 2501 checkSourceSplitResponse(api.SourceSplitResponse o) {
2460 buildCounterSourceSplitResponse++; 2502 buildCounterSourceSplitResponse++;
2461 if (buildCounterSourceSplitResponse < 3) { 2503 if (buildCounterSourceSplitResponse < 3) {
2462 checkUnnamed3592(o.bundles); 2504 checkUnnamed3407(o.bundles);
2463 unittest.expect(o.outcome, unittest.equals('foo')); 2505 unittest.expect(o.outcome, unittest.equals('foo'));
2464 checkUnnamed3593(o.shards); 2506 checkUnnamed3408(o.shards);
2465 } 2507 }
2466 buildCounterSourceSplitResponse--; 2508 buildCounterSourceSplitResponse--;
2467 } 2509 }
2468 2510
2469 core.int buildCounterSourceSplitShard = 0; 2511 core.int buildCounterSourceSplitShard = 0;
2470 buildSourceSplitShard() { 2512 buildSourceSplitShard() {
2471 var o = new api.SourceSplitShard(); 2513 var o = new api.SourceSplitShard();
2472 buildCounterSourceSplitShard++; 2514 buildCounterSourceSplitShard++;
2473 if (buildCounterSourceSplitShard < 3) { 2515 if (buildCounterSourceSplitShard < 3) {
2474 o.derivationMode = "foo"; 2516 o.derivationMode = "foo";
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2522 2564
2523 checkStateFamilyConfig(api.StateFamilyConfig o) { 2565 checkStateFamilyConfig(api.StateFamilyConfig o) {
2524 buildCounterStateFamilyConfig++; 2566 buildCounterStateFamilyConfig++;
2525 if (buildCounterStateFamilyConfig < 3) { 2567 if (buildCounterStateFamilyConfig < 3) {
2526 unittest.expect(o.isRead, unittest.isTrue); 2568 unittest.expect(o.isRead, unittest.isTrue);
2527 unittest.expect(o.stateFamily, unittest.equals('foo')); 2569 unittest.expect(o.stateFamily, unittest.equals('foo'));
2528 } 2570 }
2529 buildCounterStateFamilyConfig--; 2571 buildCounterStateFamilyConfig--;
2530 } 2572 }
2531 2573
2532 buildUnnamed3594() { 2574 buildUnnamed3409() {
2533 var o = new core.Map<core.String, core.Object>(); 2575 var o = new core.Map<core.String, core.Object>();
2534 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2576 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2535 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2577 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2536 return o; 2578 return o;
2537 } 2579 }
2538 2580
2539 checkUnnamed3594(core.Map<core.String, core.Object> o) { 2581 checkUnnamed3409(core.Map<core.String, core.Object> o) {
2540 unittest.expect(o, unittest.hasLength(2)); 2582 unittest.expect(o, unittest.hasLength(2));
2541 var casted37 = (o["x"]) as core.Map; unittest.expect(casted37, unittest.hasLen gth(3)); unittest.expect(casted37["list"], unittest.equals([1, 2, 3])); unittest .expect(casted37["bool"], unittest.equals(true)); unittest.expect(casted37["stri ng"], unittest.equals('foo')); 2583 var casted37 = (o["x"]) as core.Map; unittest.expect(casted37, unittest.hasLen gth(3)); unittest.expect(casted37["list"], unittest.equals([1, 2, 3])); unittest .expect(casted37["bool"], unittest.equals(true)); unittest.expect(casted37["stri ng"], unittest.equals('foo'));
2542 var casted38 = (o["y"]) as core.Map; unittest.expect(casted38, unittest.hasLen gth(3)); unittest.expect(casted38["list"], unittest.equals([1, 2, 3])); unittest .expect(casted38["bool"], unittest.equals(true)); unittest.expect(casted38["stri ng"], unittest.equals('foo')); 2584 var casted38 = (o["y"]) as core.Map; unittest.expect(casted38, unittest.hasLen gth(3)); unittest.expect(casted38["list"], unittest.equals([1, 2, 3])); unittest .expect(casted38["bool"], unittest.equals(true)); unittest.expect(casted38["stri ng"], unittest.equals('foo'));
2543 } 2585 }
2544 2586
2545 buildUnnamed3595() { 2587 buildUnnamed3410() {
2546 var o = new core.List<core.Map<core.String, core.Object>>(); 2588 var o = new core.List<core.Map<core.String, core.Object>>();
2547 o.add(buildUnnamed3594()); 2589 o.add(buildUnnamed3409());
2548 o.add(buildUnnamed3594()); 2590 o.add(buildUnnamed3409());
2549 return o; 2591 return o;
2550 } 2592 }
2551 2593
2552 checkUnnamed3595(core.List<core.Map<core.String, core.Object>> o) { 2594 checkUnnamed3410(core.List<core.Map<core.String, core.Object>> o) {
2553 unittest.expect(o, unittest.hasLength(2)); 2595 unittest.expect(o, unittest.hasLength(2));
2554 checkUnnamed3594(o[0]); 2596 checkUnnamed3409(o[0]);
2555 checkUnnamed3594(o[1]); 2597 checkUnnamed3409(o[1]);
2556 } 2598 }
2557 2599
2558 core.int buildCounterStatus = 0; 2600 core.int buildCounterStatus = 0;
2559 buildStatus() { 2601 buildStatus() {
2560 var o = new api.Status(); 2602 var o = new api.Status();
2561 buildCounterStatus++; 2603 buildCounterStatus++;
2562 if (buildCounterStatus < 3) { 2604 if (buildCounterStatus < 3) {
2563 o.code = 42; 2605 o.code = 42;
2564 o.details = buildUnnamed3595(); 2606 o.details = buildUnnamed3410();
2565 o.message = "foo"; 2607 o.message = "foo";
2566 } 2608 }
2567 buildCounterStatus--; 2609 buildCounterStatus--;
2568 return o; 2610 return o;
2569 } 2611 }
2570 2612
2571 checkStatus(api.Status o) { 2613 checkStatus(api.Status o) {
2572 buildCounterStatus++; 2614 buildCounterStatus++;
2573 if (buildCounterStatus < 3) { 2615 if (buildCounterStatus < 3) {
2574 unittest.expect(o.code, unittest.equals(42)); 2616 unittest.expect(o.code, unittest.equals(42));
2575 checkUnnamed3595(o.details); 2617 checkUnnamed3410(o.details);
2576 unittest.expect(o.message, unittest.equals('foo')); 2618 unittest.expect(o.message, unittest.equals('foo'));
2577 } 2619 }
2578 buildCounterStatus--; 2620 buildCounterStatus--;
2579 } 2621 }
2580 2622
2581 buildUnnamed3596() { 2623 buildUnnamed3411() {
2582 var o = new core.Map<core.String, core.Object>(); 2624 var o = new core.Map<core.String, core.Object>();
2583 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2625 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2584 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2626 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2585 return o; 2627 return o;
2586 } 2628 }
2587 2629
2588 checkUnnamed3596(core.Map<core.String, core.Object> o) { 2630 checkUnnamed3411(core.Map<core.String, core.Object> o) {
2589 unittest.expect(o, unittest.hasLength(2)); 2631 unittest.expect(o, unittest.hasLength(2));
2590 var casted39 = (o["x"]) as core.Map; unittest.expect(casted39, unittest.hasLen gth(3)); unittest.expect(casted39["list"], unittest.equals([1, 2, 3])); unittest .expect(casted39["bool"], unittest.equals(true)); unittest.expect(casted39["stri ng"], unittest.equals('foo')); 2632 var casted39 = (o["x"]) as core.Map; unittest.expect(casted39, unittest.hasLen gth(3)); unittest.expect(casted39["list"], unittest.equals([1, 2, 3])); unittest .expect(casted39["bool"], unittest.equals(true)); unittest.expect(casted39["stri ng"], unittest.equals('foo'));
2591 var casted40 = (o["y"]) as core.Map; unittest.expect(casted40, unittest.hasLen gth(3)); unittest.expect(casted40["list"], unittest.equals([1, 2, 3])); unittest .expect(casted40["bool"], unittest.equals(true)); unittest.expect(casted40["stri ng"], unittest.equals('foo')); 2633 var casted40 = (o["y"]) as core.Map; unittest.expect(casted40, unittest.hasLen gth(3)); unittest.expect(casted40["list"], unittest.equals([1, 2, 3])); unittest .expect(casted40["bool"], unittest.equals(true)); unittest.expect(casted40["stri ng"], unittest.equals('foo'));
2592 } 2634 }
2593 2635
2594 core.int buildCounterStep = 0; 2636 core.int buildCounterStep = 0;
2595 buildStep() { 2637 buildStep() {
2596 var o = new api.Step(); 2638 var o = new api.Step();
2597 buildCounterStep++; 2639 buildCounterStep++;
2598 if (buildCounterStep < 3) { 2640 if (buildCounterStep < 3) {
2599 o.kind = "foo"; 2641 o.kind = "foo";
2600 o.name = "foo"; 2642 o.name = "foo";
2601 o.properties = buildUnnamed3596(); 2643 o.properties = buildUnnamed3411();
2602 } 2644 }
2603 buildCounterStep--; 2645 buildCounterStep--;
2604 return o; 2646 return o;
2605 } 2647 }
2606 2648
2607 checkStep(api.Step o) { 2649 checkStep(api.Step o) {
2608 buildCounterStep++; 2650 buildCounterStep++;
2609 if (buildCounterStep < 3) { 2651 if (buildCounterStep < 3) {
2610 unittest.expect(o.kind, unittest.equals('foo')); 2652 unittest.expect(o.kind, unittest.equals('foo'));
2611 unittest.expect(o.name, unittest.equals('foo')); 2653 unittest.expect(o.name, unittest.equals('foo'));
2612 checkUnnamed3596(o.properties); 2654 checkUnnamed3411(o.properties);
2613 } 2655 }
2614 buildCounterStep--; 2656 buildCounterStep--;
2615 } 2657 }
2616 2658
2617 core.int buildCounterStreamLocation = 0; 2659 core.int buildCounterStreamLocation = 0;
2618 buildStreamLocation() { 2660 buildStreamLocation() {
2619 var o = new api.StreamLocation(); 2661 var o = new api.StreamLocation();
2620 buildCounterStreamLocation++; 2662 buildCounterStreamLocation++;
2621 if (buildCounterStreamLocation < 3) { 2663 if (buildCounterStreamLocation < 3) {
2622 o.customSourceLocation = buildCustomSourceLocation(); 2664 o.customSourceLocation = buildCustomSourceLocation();
2623 o.pubsubLocation = buildPubsubLocation(); 2665 o.pubsubLocation = buildPubsubLocation();
2624 o.sideInputLocation = buildStreamingSideInputLocation(); 2666 o.sideInputLocation = buildStreamingSideInputLocation();
2625 o.streamingStageLocation = buildStreamingStageLocation(); 2667 o.streamingStageLocation = buildStreamingStageLocation();
2626 } 2668 }
2627 buildCounterStreamLocation--; 2669 buildCounterStreamLocation--;
2628 return o; 2670 return o;
2629 } 2671 }
2630 2672
2631 checkStreamLocation(api.StreamLocation o) { 2673 checkStreamLocation(api.StreamLocation o) {
2632 buildCounterStreamLocation++; 2674 buildCounterStreamLocation++;
2633 if (buildCounterStreamLocation < 3) { 2675 if (buildCounterStreamLocation < 3) {
2634 checkCustomSourceLocation(o.customSourceLocation); 2676 checkCustomSourceLocation(o.customSourceLocation);
2635 checkPubsubLocation(o.pubsubLocation); 2677 checkPubsubLocation(o.pubsubLocation);
2636 checkStreamingSideInputLocation(o.sideInputLocation); 2678 checkStreamingSideInputLocation(o.sideInputLocation);
2637 checkStreamingStageLocation(o.streamingStageLocation); 2679 checkStreamingStageLocation(o.streamingStageLocation);
2638 } 2680 }
2639 buildCounterStreamLocation--; 2681 buildCounterStreamLocation--;
2640 } 2682 }
2641 2683
2642 buildUnnamed3597() { 2684 buildUnnamed3412() {
2643 var o = new core.List<api.ParallelInstruction>(); 2685 var o = new core.List<api.ParallelInstruction>();
2644 o.add(buildParallelInstruction()); 2686 o.add(buildParallelInstruction());
2645 o.add(buildParallelInstruction()); 2687 o.add(buildParallelInstruction());
2646 return o; 2688 return o;
2647 } 2689 }
2648 2690
2649 checkUnnamed3597(core.List<api.ParallelInstruction> o) { 2691 checkUnnamed3412(core.List<api.ParallelInstruction> o) {
2650 unittest.expect(o, unittest.hasLength(2)); 2692 unittest.expect(o, unittest.hasLength(2));
2651 checkParallelInstruction(o[0]); 2693 checkParallelInstruction(o[0]);
2652 checkParallelInstruction(o[1]); 2694 checkParallelInstruction(o[1]);
2653 } 2695 }
2654 2696
2655 core.int buildCounterStreamingComputationConfig = 0; 2697 core.int buildCounterStreamingComputationConfig = 0;
2656 buildStreamingComputationConfig() { 2698 buildStreamingComputationConfig() {
2657 var o = new api.StreamingComputationConfig(); 2699 var o = new api.StreamingComputationConfig();
2658 buildCounterStreamingComputationConfig++; 2700 buildCounterStreamingComputationConfig++;
2659 if (buildCounterStreamingComputationConfig < 3) { 2701 if (buildCounterStreamingComputationConfig < 3) {
2660 o.computationId = "foo"; 2702 o.computationId = "foo";
2661 o.instructions = buildUnnamed3597(); 2703 o.instructions = buildUnnamed3412();
2662 o.stageName = "foo"; 2704 o.stageName = "foo";
2663 o.systemName = "foo"; 2705 o.systemName = "foo";
2664 } 2706 }
2665 buildCounterStreamingComputationConfig--; 2707 buildCounterStreamingComputationConfig--;
2666 return o; 2708 return o;
2667 } 2709 }
2668 2710
2669 checkStreamingComputationConfig(api.StreamingComputationConfig o) { 2711 checkStreamingComputationConfig(api.StreamingComputationConfig o) {
2670 buildCounterStreamingComputationConfig++; 2712 buildCounterStreamingComputationConfig++;
2671 if (buildCounterStreamingComputationConfig < 3) { 2713 if (buildCounterStreamingComputationConfig < 3) {
2672 unittest.expect(o.computationId, unittest.equals('foo')); 2714 unittest.expect(o.computationId, unittest.equals('foo'));
2673 checkUnnamed3597(o.instructions); 2715 checkUnnamed3412(o.instructions);
2674 unittest.expect(o.stageName, unittest.equals('foo')); 2716 unittest.expect(o.stageName, unittest.equals('foo'));
2675 unittest.expect(o.systemName, unittest.equals('foo')); 2717 unittest.expect(o.systemName, unittest.equals('foo'));
2676 } 2718 }
2677 buildCounterStreamingComputationConfig--; 2719 buildCounterStreamingComputationConfig--;
2678 } 2720 }
2679 2721
2680 buildUnnamed3598() { 2722 buildUnnamed3413() {
2681 var o = new core.List<api.KeyRangeDataDiskAssignment>(); 2723 var o = new core.List<api.KeyRangeDataDiskAssignment>();
2682 o.add(buildKeyRangeDataDiskAssignment()); 2724 o.add(buildKeyRangeDataDiskAssignment());
2683 o.add(buildKeyRangeDataDiskAssignment()); 2725 o.add(buildKeyRangeDataDiskAssignment());
2684 return o; 2726 return o;
2685 } 2727 }
2686 2728
2687 checkUnnamed3598(core.List<api.KeyRangeDataDiskAssignment> o) { 2729 checkUnnamed3413(core.List<api.KeyRangeDataDiskAssignment> o) {
2688 unittest.expect(o, unittest.hasLength(2)); 2730 unittest.expect(o, unittest.hasLength(2));
2689 checkKeyRangeDataDiskAssignment(o[0]); 2731 checkKeyRangeDataDiskAssignment(o[0]);
2690 checkKeyRangeDataDiskAssignment(o[1]); 2732 checkKeyRangeDataDiskAssignment(o[1]);
2691 } 2733 }
2692 2734
2693 core.int buildCounterStreamingComputationRanges = 0; 2735 core.int buildCounterStreamingComputationRanges = 0;
2694 buildStreamingComputationRanges() { 2736 buildStreamingComputationRanges() {
2695 var o = new api.StreamingComputationRanges(); 2737 var o = new api.StreamingComputationRanges();
2696 buildCounterStreamingComputationRanges++; 2738 buildCounterStreamingComputationRanges++;
2697 if (buildCounterStreamingComputationRanges < 3) { 2739 if (buildCounterStreamingComputationRanges < 3) {
2698 o.computationId = "foo"; 2740 o.computationId = "foo";
2699 o.rangeAssignments = buildUnnamed3598(); 2741 o.rangeAssignments = buildUnnamed3413();
2700 } 2742 }
2701 buildCounterStreamingComputationRanges--; 2743 buildCounterStreamingComputationRanges--;
2702 return o; 2744 return o;
2703 } 2745 }
2704 2746
2705 checkStreamingComputationRanges(api.StreamingComputationRanges o) { 2747 checkStreamingComputationRanges(api.StreamingComputationRanges o) {
2706 buildCounterStreamingComputationRanges++; 2748 buildCounterStreamingComputationRanges++;
2707 if (buildCounterStreamingComputationRanges < 3) { 2749 if (buildCounterStreamingComputationRanges < 3) {
2708 unittest.expect(o.computationId, unittest.equals('foo')); 2750 unittest.expect(o.computationId, unittest.equals('foo'));
2709 checkUnnamed3598(o.rangeAssignments); 2751 checkUnnamed3413(o.rangeAssignments);
2710 } 2752 }
2711 buildCounterStreamingComputationRanges--; 2753 buildCounterStreamingComputationRanges--;
2712 } 2754 }
2713 2755
2714 buildUnnamed3599() { 2756 buildUnnamed3414() {
2715 var o = new core.List<api.StreamingComputationRanges>(); 2757 var o = new core.List<api.StreamingComputationRanges>();
2716 o.add(buildStreamingComputationRanges()); 2758 o.add(buildStreamingComputationRanges());
2717 o.add(buildStreamingComputationRanges()); 2759 o.add(buildStreamingComputationRanges());
2718 return o; 2760 return o;
2719 } 2761 }
2720 2762
2721 checkUnnamed3599(core.List<api.StreamingComputationRanges> o) { 2763 checkUnnamed3414(core.List<api.StreamingComputationRanges> o) {
2722 unittest.expect(o, unittest.hasLength(2)); 2764 unittest.expect(o, unittest.hasLength(2));
2723 checkStreamingComputationRanges(o[0]); 2765 checkStreamingComputationRanges(o[0]);
2724 checkStreamingComputationRanges(o[1]); 2766 checkStreamingComputationRanges(o[1]);
2725 } 2767 }
2726 2768
2727 buildUnnamed3600() { 2769 buildUnnamed3415() {
2728 var o = new core.List<api.MountedDataDisk>(); 2770 var o = new core.List<api.MountedDataDisk>();
2729 o.add(buildMountedDataDisk()); 2771 o.add(buildMountedDataDisk());
2730 o.add(buildMountedDataDisk()); 2772 o.add(buildMountedDataDisk());
2731 return o; 2773 return o;
2732 } 2774 }
2733 2775
2734 checkUnnamed3600(core.List<api.MountedDataDisk> o) { 2776 checkUnnamed3415(core.List<api.MountedDataDisk> o) {
2735 unittest.expect(o, unittest.hasLength(2)); 2777 unittest.expect(o, unittest.hasLength(2));
2736 checkMountedDataDisk(o[0]); 2778 checkMountedDataDisk(o[0]);
2737 checkMountedDataDisk(o[1]); 2779 checkMountedDataDisk(o[1]);
2738 } 2780 }
2739 2781
2740 core.int buildCounterStreamingComputationTask = 0; 2782 core.int buildCounterStreamingComputationTask = 0;
2741 buildStreamingComputationTask() { 2783 buildStreamingComputationTask() {
2742 var o = new api.StreamingComputationTask(); 2784 var o = new api.StreamingComputationTask();
2743 buildCounterStreamingComputationTask++; 2785 buildCounterStreamingComputationTask++;
2744 if (buildCounterStreamingComputationTask < 3) { 2786 if (buildCounterStreamingComputationTask < 3) {
2745 o.computationRanges = buildUnnamed3599(); 2787 o.computationRanges = buildUnnamed3414();
2746 o.dataDisks = buildUnnamed3600(); 2788 o.dataDisks = buildUnnamed3415();
2747 o.taskType = "foo"; 2789 o.taskType = "foo";
2748 } 2790 }
2749 buildCounterStreamingComputationTask--; 2791 buildCounterStreamingComputationTask--;
2750 return o; 2792 return o;
2751 } 2793 }
2752 2794
2753 checkStreamingComputationTask(api.StreamingComputationTask o) { 2795 checkStreamingComputationTask(api.StreamingComputationTask o) {
2754 buildCounterStreamingComputationTask++; 2796 buildCounterStreamingComputationTask++;
2755 if (buildCounterStreamingComputationTask < 3) { 2797 if (buildCounterStreamingComputationTask < 3) {
2756 checkUnnamed3599(o.computationRanges); 2798 checkUnnamed3414(o.computationRanges);
2757 checkUnnamed3600(o.dataDisks); 2799 checkUnnamed3415(o.dataDisks);
2758 unittest.expect(o.taskType, unittest.equals('foo')); 2800 unittest.expect(o.taskType, unittest.equals('foo'));
2759 } 2801 }
2760 buildCounterStreamingComputationTask--; 2802 buildCounterStreamingComputationTask--;
2761 } 2803 }
2762 2804
2763 buildUnnamed3601() { 2805 buildUnnamed3416() {
2764 var o = new core.List<api.StreamingComputationConfig>(); 2806 var o = new core.List<api.StreamingComputationConfig>();
2765 o.add(buildStreamingComputationConfig()); 2807 o.add(buildStreamingComputationConfig());
2766 o.add(buildStreamingComputationConfig()); 2808 o.add(buildStreamingComputationConfig());
2767 return o; 2809 return o;
2768 } 2810 }
2769 2811
2770 checkUnnamed3601(core.List<api.StreamingComputationConfig> o) { 2812 checkUnnamed3416(core.List<api.StreamingComputationConfig> o) {
2771 unittest.expect(o, unittest.hasLength(2)); 2813 unittest.expect(o, unittest.hasLength(2));
2772 checkStreamingComputationConfig(o[0]); 2814 checkStreamingComputationConfig(o[0]);
2773 checkStreamingComputationConfig(o[1]); 2815 checkStreamingComputationConfig(o[1]);
2774 } 2816 }
2775 2817
2776 buildUnnamed3602() { 2818 buildUnnamed3417() {
2777 var o = new core.Map<core.String, core.String>(); 2819 var o = new core.Map<core.String, core.String>();
2778 o["x"] = "foo"; 2820 o["x"] = "foo";
2779 o["y"] = "foo"; 2821 o["y"] = "foo";
2780 return o; 2822 return o;
2781 } 2823 }
2782 2824
2783 checkUnnamed3602(core.Map<core.String, core.String> o) { 2825 checkUnnamed3417(core.Map<core.String, core.String> o) {
2784 unittest.expect(o, unittest.hasLength(2)); 2826 unittest.expect(o, unittest.hasLength(2));
2785 unittest.expect(o["x"], unittest.equals('foo')); 2827 unittest.expect(o["x"], unittest.equals('foo'));
2786 unittest.expect(o["y"], unittest.equals('foo')); 2828 unittest.expect(o["y"], unittest.equals('foo'));
2787 } 2829 }
2788 2830
2789 core.int buildCounterStreamingConfigTask = 0; 2831 core.int buildCounterStreamingConfigTask = 0;
2790 buildStreamingConfigTask() { 2832 buildStreamingConfigTask() {
2791 var o = new api.StreamingConfigTask(); 2833 var o = new api.StreamingConfigTask();
2792 buildCounterStreamingConfigTask++; 2834 buildCounterStreamingConfigTask++;
2793 if (buildCounterStreamingConfigTask < 3) { 2835 if (buildCounterStreamingConfigTask < 3) {
2794 o.streamingComputationConfigs = buildUnnamed3601(); 2836 o.streamingComputationConfigs = buildUnnamed3416();
2795 o.userStepToStateFamilyNameMap = buildUnnamed3602(); 2837 o.userStepToStateFamilyNameMap = buildUnnamed3417();
2796 } 2838 }
2797 buildCounterStreamingConfigTask--; 2839 buildCounterStreamingConfigTask--;
2798 return o; 2840 return o;
2799 } 2841 }
2800 2842
2801 checkStreamingConfigTask(api.StreamingConfigTask o) { 2843 checkStreamingConfigTask(api.StreamingConfigTask o) {
2802 buildCounterStreamingConfigTask++; 2844 buildCounterStreamingConfigTask++;
2803 if (buildCounterStreamingConfigTask < 3) { 2845 if (buildCounterStreamingConfigTask < 3) {
2804 checkUnnamed3601(o.streamingComputationConfigs); 2846 checkUnnamed3416(o.streamingComputationConfigs);
2805 checkUnnamed3602(o.userStepToStateFamilyNameMap); 2847 checkUnnamed3417(o.userStepToStateFamilyNameMap);
2806 } 2848 }
2807 buildCounterStreamingConfigTask--; 2849 buildCounterStreamingConfigTask--;
2808 } 2850 }
2809 2851
2810 core.int buildCounterStreamingSetupTask = 0; 2852 core.int buildCounterStreamingSetupTask = 0;
2811 buildStreamingSetupTask() { 2853 buildStreamingSetupTask() {
2812 var o = new api.StreamingSetupTask(); 2854 var o = new api.StreamingSetupTask();
2813 buildCounterStreamingSetupTask++; 2855 buildCounterStreamingSetupTask++;
2814 if (buildCounterStreamingSetupTask < 3) { 2856 if (buildCounterStreamingSetupTask < 3) {
2815 o.drain = true; 2857 o.drain = true;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
2865 } 2907 }
2866 2908
2867 checkStreamingStageLocation(api.StreamingStageLocation o) { 2909 checkStreamingStageLocation(api.StreamingStageLocation o) {
2868 buildCounterStreamingStageLocation++; 2910 buildCounterStreamingStageLocation++;
2869 if (buildCounterStreamingStageLocation < 3) { 2911 if (buildCounterStreamingStageLocation < 3) {
2870 unittest.expect(o.streamId, unittest.equals('foo')); 2912 unittest.expect(o.streamId, unittest.equals('foo'));
2871 } 2913 }
2872 buildCounterStreamingStageLocation--; 2914 buildCounterStreamingStageLocation--;
2873 } 2915 }
2874 2916
2875 buildUnnamed3603() { 2917 buildUnnamed3418() {
2876 var o = new core.List<core.String>(); 2918 var o = new core.List<core.String>();
2877 o.add("foo"); 2919 o.add("foo");
2878 o.add("foo"); 2920 o.add("foo");
2879 return o; 2921 return o;
2880 } 2922 }
2881 2923
2882 checkUnnamed3603(core.List<core.String> o) { 2924 checkUnnamed3418(core.List<core.String> o) {
2883 unittest.expect(o, unittest.hasLength(2)); 2925 unittest.expect(o, unittest.hasLength(2));
2884 unittest.expect(o[0], unittest.equals('foo')); 2926 unittest.expect(o[0], unittest.equals('foo'));
2885 unittest.expect(o[1], unittest.equals('foo')); 2927 unittest.expect(o[1], unittest.equals('foo'));
2886 } 2928 }
2887 2929
2888 core.int buildCounterStringList = 0; 2930 core.int buildCounterStringList = 0;
2889 buildStringList() { 2931 buildStringList() {
2890 var o = new api.StringList(); 2932 var o = new api.StringList();
2891 buildCounterStringList++; 2933 buildCounterStringList++;
2892 if (buildCounterStringList < 3) { 2934 if (buildCounterStringList < 3) {
2893 o.elements = buildUnnamed3603(); 2935 o.elements = buildUnnamed3418();
2894 } 2936 }
2895 buildCounterStringList--; 2937 buildCounterStringList--;
2896 return o; 2938 return o;
2897 } 2939 }
2898 2940
2899 checkStringList(api.StringList o) { 2941 checkStringList(api.StringList o) {
2900 buildCounterStringList++; 2942 buildCounterStringList++;
2901 if (buildCounterStringList < 3) { 2943 if (buildCounterStringList < 3) {
2902 checkUnnamed3603(o.elements); 2944 checkUnnamed3418(o.elements);
2903 } 2945 }
2904 buildCounterStringList--; 2946 buildCounterStringList--;
2905 } 2947 }
2906 2948
2907 buildUnnamed3604() { 2949 buildUnnamed3419() {
2908 var o = new core.List<core.String>(); 2950 var o = new core.List<core.String>();
2909 o.add("foo"); 2951 o.add("foo");
2910 o.add("foo"); 2952 o.add("foo");
2911 return o; 2953 return o;
2912 } 2954 }
2913 2955
2914 checkUnnamed3604(core.List<core.String> o) { 2956 checkUnnamed3419(core.List<core.String> o) {
2915 unittest.expect(o, unittest.hasLength(2)); 2957 unittest.expect(o, unittest.hasLength(2));
2916 unittest.expect(o[0], unittest.equals('foo')); 2958 unittest.expect(o[0], unittest.equals('foo'));
2917 unittest.expect(o[1], unittest.equals('foo')); 2959 unittest.expect(o[1], unittest.equals('foo'));
2918 } 2960 }
2919 2961
2920 core.int buildCounterTaskRunnerSettings = 0; 2962 core.int buildCounterTaskRunnerSettings = 0;
2921 buildTaskRunnerSettings() { 2963 buildTaskRunnerSettings() {
2922 var o = new api.TaskRunnerSettings(); 2964 var o = new api.TaskRunnerSettings();
2923 buildCounterTaskRunnerSettings++; 2965 buildCounterTaskRunnerSettings++;
2924 if (buildCounterTaskRunnerSettings < 3) { 2966 if (buildCounterTaskRunnerSettings < 3) {
2925 o.alsologtostderr = true; 2967 o.alsologtostderr = true;
2926 o.baseTaskDir = "foo"; 2968 o.baseTaskDir = "foo";
2927 o.baseUrl = "foo"; 2969 o.baseUrl = "foo";
2928 o.commandlinesFileName = "foo"; 2970 o.commandlinesFileName = "foo";
2929 o.continueOnException = true; 2971 o.continueOnException = true;
2930 o.dataflowApiVersion = "foo"; 2972 o.dataflowApiVersion = "foo";
2931 o.harnessCommand = "foo"; 2973 o.harnessCommand = "foo";
2932 o.languageHint = "foo"; 2974 o.languageHint = "foo";
2933 o.logDir = "foo"; 2975 o.logDir = "foo";
2934 o.logToSerialconsole = true; 2976 o.logToSerialconsole = true;
2935 o.logUploadLocation = "foo"; 2977 o.logUploadLocation = "foo";
2936 o.oauthScopes = buildUnnamed3604(); 2978 o.oauthScopes = buildUnnamed3419();
2937 o.parallelWorkerSettings = buildWorkerSettings(); 2979 o.parallelWorkerSettings = buildWorkerSettings();
2938 o.streamingWorkerMainClass = "foo"; 2980 o.streamingWorkerMainClass = "foo";
2939 o.taskGroup = "foo"; 2981 o.taskGroup = "foo";
2940 o.taskUser = "foo"; 2982 o.taskUser = "foo";
2941 o.tempStoragePrefix = "foo"; 2983 o.tempStoragePrefix = "foo";
2942 o.vmId = "foo"; 2984 o.vmId = "foo";
2943 o.workflowFileName = "foo"; 2985 o.workflowFileName = "foo";
2944 } 2986 }
2945 buildCounterTaskRunnerSettings--; 2987 buildCounterTaskRunnerSettings--;
2946 return o; 2988 return o;
2947 } 2989 }
2948 2990
2949 checkTaskRunnerSettings(api.TaskRunnerSettings o) { 2991 checkTaskRunnerSettings(api.TaskRunnerSettings o) {
2950 buildCounterTaskRunnerSettings++; 2992 buildCounterTaskRunnerSettings++;
2951 if (buildCounterTaskRunnerSettings < 3) { 2993 if (buildCounterTaskRunnerSettings < 3) {
2952 unittest.expect(o.alsologtostderr, unittest.isTrue); 2994 unittest.expect(o.alsologtostderr, unittest.isTrue);
2953 unittest.expect(o.baseTaskDir, unittest.equals('foo')); 2995 unittest.expect(o.baseTaskDir, unittest.equals('foo'));
2954 unittest.expect(o.baseUrl, unittest.equals('foo')); 2996 unittest.expect(o.baseUrl, unittest.equals('foo'));
2955 unittest.expect(o.commandlinesFileName, unittest.equals('foo')); 2997 unittest.expect(o.commandlinesFileName, unittest.equals('foo'));
2956 unittest.expect(o.continueOnException, unittest.isTrue); 2998 unittest.expect(o.continueOnException, unittest.isTrue);
2957 unittest.expect(o.dataflowApiVersion, unittest.equals('foo')); 2999 unittest.expect(o.dataflowApiVersion, unittest.equals('foo'));
2958 unittest.expect(o.harnessCommand, unittest.equals('foo')); 3000 unittest.expect(o.harnessCommand, unittest.equals('foo'));
2959 unittest.expect(o.languageHint, unittest.equals('foo')); 3001 unittest.expect(o.languageHint, unittest.equals('foo'));
2960 unittest.expect(o.logDir, unittest.equals('foo')); 3002 unittest.expect(o.logDir, unittest.equals('foo'));
2961 unittest.expect(o.logToSerialconsole, unittest.isTrue); 3003 unittest.expect(o.logToSerialconsole, unittest.isTrue);
2962 unittest.expect(o.logUploadLocation, unittest.equals('foo')); 3004 unittest.expect(o.logUploadLocation, unittest.equals('foo'));
2963 checkUnnamed3604(o.oauthScopes); 3005 checkUnnamed3419(o.oauthScopes);
2964 checkWorkerSettings(o.parallelWorkerSettings); 3006 checkWorkerSettings(o.parallelWorkerSettings);
2965 unittest.expect(o.streamingWorkerMainClass, unittest.equals('foo')); 3007 unittest.expect(o.streamingWorkerMainClass, unittest.equals('foo'));
2966 unittest.expect(o.taskGroup, unittest.equals('foo')); 3008 unittest.expect(o.taskGroup, unittest.equals('foo'));
2967 unittest.expect(o.taskUser, unittest.equals('foo')); 3009 unittest.expect(o.taskUser, unittest.equals('foo'));
2968 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); 3010 unittest.expect(o.tempStoragePrefix, unittest.equals('foo'));
2969 unittest.expect(o.vmId, unittest.equals('foo')); 3011 unittest.expect(o.vmId, unittest.equals('foo'));
2970 unittest.expect(o.workflowFileName, unittest.equals('foo')); 3012 unittest.expect(o.workflowFileName, unittest.equals('foo'));
2971 } 3013 }
2972 buildCounterTaskRunnerSettings--; 3014 buildCounterTaskRunnerSettings--;
2973 } 3015 }
2974 3016
2975 buildUnnamed3605() { 3017 buildUnnamed3420() {
2976 var o = new core.List<api.ComputationTopology>(); 3018 var o = new core.List<api.ComputationTopology>();
2977 o.add(buildComputationTopology()); 3019 o.add(buildComputationTopology());
2978 o.add(buildComputationTopology()); 3020 o.add(buildComputationTopology());
2979 return o; 3021 return o;
2980 } 3022 }
2981 3023
2982 checkUnnamed3605(core.List<api.ComputationTopology> o) { 3024 checkUnnamed3420(core.List<api.ComputationTopology> o) {
2983 unittest.expect(o, unittest.hasLength(2)); 3025 unittest.expect(o, unittest.hasLength(2));
2984 checkComputationTopology(o[0]); 3026 checkComputationTopology(o[0]);
2985 checkComputationTopology(o[1]); 3027 checkComputationTopology(o[1]);
2986 } 3028 }
2987 3029
2988 buildUnnamed3606() { 3030 buildUnnamed3421() {
2989 var o = new core.List<api.DataDiskAssignment>(); 3031 var o = new core.List<api.DataDiskAssignment>();
2990 o.add(buildDataDiskAssignment()); 3032 o.add(buildDataDiskAssignment());
2991 o.add(buildDataDiskAssignment()); 3033 o.add(buildDataDiskAssignment());
2992 return o; 3034 return o;
2993 } 3035 }
2994 3036
2995 checkUnnamed3606(core.List<api.DataDiskAssignment> o) { 3037 checkUnnamed3421(core.List<api.DataDiskAssignment> o) {
2996 unittest.expect(o, unittest.hasLength(2)); 3038 unittest.expect(o, unittest.hasLength(2));
2997 checkDataDiskAssignment(o[0]); 3039 checkDataDiskAssignment(o[0]);
2998 checkDataDiskAssignment(o[1]); 3040 checkDataDiskAssignment(o[1]);
2999 } 3041 }
3000 3042
3001 buildUnnamed3607() { 3043 buildUnnamed3422() {
3002 var o = new core.Map<core.String, core.String>(); 3044 var o = new core.Map<core.String, core.String>();
3003 o["x"] = "foo"; 3045 o["x"] = "foo";
3004 o["y"] = "foo"; 3046 o["y"] = "foo";
3005 return o; 3047 return o;
3006 } 3048 }
3007 3049
3008 checkUnnamed3607(core.Map<core.String, core.String> o) { 3050 checkUnnamed3422(core.Map<core.String, core.String> o) {
3009 unittest.expect(o, unittest.hasLength(2)); 3051 unittest.expect(o, unittest.hasLength(2));
3010 unittest.expect(o["x"], unittest.equals('foo')); 3052 unittest.expect(o["x"], unittest.equals('foo'));
3011 unittest.expect(o["y"], unittest.equals('foo')); 3053 unittest.expect(o["y"], unittest.equals('foo'));
3012 } 3054 }
3013 3055
3014 core.int buildCounterTopologyConfig = 0; 3056 core.int buildCounterTopologyConfig = 0;
3015 buildTopologyConfig() { 3057 buildTopologyConfig() {
3016 var o = new api.TopologyConfig(); 3058 var o = new api.TopologyConfig();
3017 buildCounterTopologyConfig++; 3059 buildCounterTopologyConfig++;
3018 if (buildCounterTopologyConfig < 3) { 3060 if (buildCounterTopologyConfig < 3) {
3019 o.computations = buildUnnamed3605(); 3061 o.computations = buildUnnamed3420();
3020 o.dataDiskAssignments = buildUnnamed3606(); 3062 o.dataDiskAssignments = buildUnnamed3421();
3021 o.forwardingKeyBits = 42; 3063 o.forwardingKeyBits = 42;
3022 o.persistentStateVersion = 42; 3064 o.persistentStateVersion = 42;
3023 o.userStageToComputationNameMap = buildUnnamed3607(); 3065 o.userStageToComputationNameMap = buildUnnamed3422();
3024 } 3066 }
3025 buildCounterTopologyConfig--; 3067 buildCounterTopologyConfig--;
3026 return o; 3068 return o;
3027 } 3069 }
3028 3070
3029 checkTopologyConfig(api.TopologyConfig o) { 3071 checkTopologyConfig(api.TopologyConfig o) {
3030 buildCounterTopologyConfig++; 3072 buildCounterTopologyConfig++;
3031 if (buildCounterTopologyConfig < 3) { 3073 if (buildCounterTopologyConfig < 3) {
3032 checkUnnamed3605(o.computations); 3074 checkUnnamed3420(o.computations);
3033 checkUnnamed3606(o.dataDiskAssignments); 3075 checkUnnamed3421(o.dataDiskAssignments);
3034 unittest.expect(o.forwardingKeyBits, unittest.equals(42)); 3076 unittest.expect(o.forwardingKeyBits, unittest.equals(42));
3035 unittest.expect(o.persistentStateVersion, unittest.equals(42)); 3077 unittest.expect(o.persistentStateVersion, unittest.equals(42));
3036 checkUnnamed3607(o.userStageToComputationNameMap); 3078 checkUnnamed3422(o.userStageToComputationNameMap);
3037 } 3079 }
3038 buildCounterTopologyConfig--; 3080 buildCounterTopologyConfig--;
3039 } 3081 }
3040 3082
3041 buildUnnamed3608() { 3083 buildUnnamed3423() {
3042 var o = new core.List<api.Package>(); 3084 var o = new core.List<api.Package>();
3043 o.add(buildPackage()); 3085 o.add(buildPackage());
3044 o.add(buildPackage()); 3086 o.add(buildPackage());
3045 return o; 3087 return o;
3046 } 3088 }
3047 3089
3048 checkUnnamed3608(core.List<api.Package> o) { 3090 checkUnnamed3423(core.List<api.Package> o) {
3049 unittest.expect(o, unittest.hasLength(2)); 3091 unittest.expect(o, unittest.hasLength(2));
3050 checkPackage(o[0]); 3092 checkPackage(o[0]);
3051 checkPackage(o[1]); 3093 checkPackage(o[1]);
3052 } 3094 }
3053 3095
3054 core.int buildCounterWorkItem = 0; 3096 core.int buildCounterWorkItem = 0;
3055 buildWorkItem() { 3097 buildWorkItem() {
3056 var o = new api.WorkItem(); 3098 var o = new api.WorkItem();
3057 buildCounterWorkItem++; 3099 buildCounterWorkItem++;
3058 if (buildCounterWorkItem < 3) { 3100 if (buildCounterWorkItem < 3) {
3059 o.configuration = "foo"; 3101 o.configuration = "foo";
3060 o.id = "foo"; 3102 o.id = "foo";
3061 o.initialReportIndex = "foo"; 3103 o.initialReportIndex = "foo";
3062 o.jobId = "foo"; 3104 o.jobId = "foo";
3063 o.leaseExpireTime = "foo"; 3105 o.leaseExpireTime = "foo";
3064 o.mapTask = buildMapTask(); 3106 o.mapTask = buildMapTask();
3065 o.packages = buildUnnamed3608(); 3107 o.packages = buildUnnamed3423();
3066 o.projectId = "foo"; 3108 o.projectId = "foo";
3067 o.reportStatusInterval = "foo"; 3109 o.reportStatusInterval = "foo";
3068 o.seqMapTask = buildSeqMapTask(); 3110 o.seqMapTask = buildSeqMapTask();
3069 o.shellTask = buildShellTask(); 3111 o.shellTask = buildShellTask();
3070 o.sourceOperationTask = buildSourceOperationRequest(); 3112 o.sourceOperationTask = buildSourceOperationRequest();
3071 o.streamingComputationTask = buildStreamingComputationTask(); 3113 o.streamingComputationTask = buildStreamingComputationTask();
3072 o.streamingConfigTask = buildStreamingConfigTask(); 3114 o.streamingConfigTask = buildStreamingConfigTask();
3073 o.streamingSetupTask = buildStreamingSetupTask(); 3115 o.streamingSetupTask = buildStreamingSetupTask();
3074 } 3116 }
3075 buildCounterWorkItem--; 3117 buildCounterWorkItem--;
3076 return o; 3118 return o;
3077 } 3119 }
3078 3120
3079 checkWorkItem(api.WorkItem o) { 3121 checkWorkItem(api.WorkItem o) {
3080 buildCounterWorkItem++; 3122 buildCounterWorkItem++;
3081 if (buildCounterWorkItem < 3) { 3123 if (buildCounterWorkItem < 3) {
3082 unittest.expect(o.configuration, unittest.equals('foo')); 3124 unittest.expect(o.configuration, unittest.equals('foo'));
3083 unittest.expect(o.id, unittest.equals('foo')); 3125 unittest.expect(o.id, unittest.equals('foo'));
3084 unittest.expect(o.initialReportIndex, unittest.equals('foo')); 3126 unittest.expect(o.initialReportIndex, unittest.equals('foo'));
3085 unittest.expect(o.jobId, unittest.equals('foo')); 3127 unittest.expect(o.jobId, unittest.equals('foo'));
3086 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); 3128 unittest.expect(o.leaseExpireTime, unittest.equals('foo'));
3087 checkMapTask(o.mapTask); 3129 checkMapTask(o.mapTask);
3088 checkUnnamed3608(o.packages); 3130 checkUnnamed3423(o.packages);
3089 unittest.expect(o.projectId, unittest.equals('foo')); 3131 unittest.expect(o.projectId, unittest.equals('foo'));
3090 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); 3132 unittest.expect(o.reportStatusInterval, unittest.equals('foo'));
3091 checkSeqMapTask(o.seqMapTask); 3133 checkSeqMapTask(o.seqMapTask);
3092 checkShellTask(o.shellTask); 3134 checkShellTask(o.shellTask);
3093 checkSourceOperationRequest(o.sourceOperationTask); 3135 checkSourceOperationRequest(o.sourceOperationTask);
3094 checkStreamingComputationTask(o.streamingComputationTask); 3136 checkStreamingComputationTask(o.streamingComputationTask);
3095 checkStreamingConfigTask(o.streamingConfigTask); 3137 checkStreamingConfigTask(o.streamingConfigTask);
3096 checkStreamingSetupTask(o.streamingSetupTask); 3138 checkStreamingSetupTask(o.streamingSetupTask);
3097 } 3139 }
3098 buildCounterWorkItem--; 3140 buildCounterWorkItem--;
3099 } 3141 }
3100 3142
3101 buildUnnamed3609() { 3143 buildUnnamed3424() {
3102 var o = new core.Map<core.String, core.Object>(); 3144 var o = new core.Map<core.String, core.Object>();
3103 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 3145 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
3104 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 3146 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
3105 return o; 3147 return o;
3106 } 3148 }
3107 3149
3108 checkUnnamed3609(core.Map<core.String, core.Object> o) { 3150 checkUnnamed3424(core.Map<core.String, core.Object> o) {
3109 unittest.expect(o, unittest.hasLength(2)); 3151 unittest.expect(o, unittest.hasLength(2));
3110 var casted41 = (o["x"]) as core.Map; unittest.expect(casted41, unittest.hasLen gth(3)); unittest.expect(casted41["list"], unittest.equals([1, 2, 3])); unittest .expect(casted41["bool"], unittest.equals(true)); unittest.expect(casted41["stri ng"], unittest.equals('foo')); 3152 var casted41 = (o["x"]) as core.Map; unittest.expect(casted41, unittest.hasLen gth(3)); unittest.expect(casted41["list"], unittest.equals([1, 2, 3])); unittest .expect(casted41["bool"], unittest.equals(true)); unittest.expect(casted41["stri ng"], unittest.equals('foo'));
3111 var casted42 = (o["y"]) as core.Map; unittest.expect(casted42, unittest.hasLen gth(3)); unittest.expect(casted42["list"], unittest.equals([1, 2, 3])); unittest .expect(casted42["bool"], unittest.equals(true)); unittest.expect(casted42["stri ng"], unittest.equals('foo')); 3153 var casted42 = (o["y"]) as core.Map; unittest.expect(casted42, unittest.hasLen gth(3)); unittest.expect(casted42["list"], unittest.equals([1, 2, 3])); unittest .expect(casted42["bool"], unittest.equals(true)); unittest.expect(casted42["stri ng"], unittest.equals('foo'));
3112 } 3154 }
3113 3155
3114 buildUnnamed3610() { 3156 buildUnnamed3425() {
3115 var o = new core.List<api.MetricShortId>(); 3157 var o = new core.List<api.MetricShortId>();
3116 o.add(buildMetricShortId()); 3158 o.add(buildMetricShortId());
3117 o.add(buildMetricShortId()); 3159 o.add(buildMetricShortId());
3118 return o; 3160 return o;
3119 } 3161 }
3120 3162
3121 checkUnnamed3610(core.List<api.MetricShortId> o) { 3163 checkUnnamed3425(core.List<api.MetricShortId> o) {
3122 unittest.expect(o, unittest.hasLength(2)); 3164 unittest.expect(o, unittest.hasLength(2));
3123 checkMetricShortId(o[0]); 3165 checkMetricShortId(o[0]);
3124 checkMetricShortId(o[1]); 3166 checkMetricShortId(o[1]);
3125 } 3167 }
3126 3168
3127 core.int buildCounterWorkItemServiceState = 0; 3169 core.int buildCounterWorkItemServiceState = 0;
3128 buildWorkItemServiceState() { 3170 buildWorkItemServiceState() {
3129 var o = new api.WorkItemServiceState(); 3171 var o = new api.WorkItemServiceState();
3130 buildCounterWorkItemServiceState++; 3172 buildCounterWorkItemServiceState++;
3131 if (buildCounterWorkItemServiceState < 3) { 3173 if (buildCounterWorkItemServiceState < 3) {
3132 o.harnessData = buildUnnamed3609(); 3174 o.harnessData = buildUnnamed3424();
3133 o.leaseExpireTime = "foo"; 3175 o.leaseExpireTime = "foo";
3134 o.metricShortId = buildUnnamed3610(); 3176 o.metricShortId = buildUnnamed3425();
3135 o.nextReportIndex = "foo"; 3177 o.nextReportIndex = "foo";
3136 o.reportStatusInterval = "foo"; 3178 o.reportStatusInterval = "foo";
3137 o.splitRequest = buildApproximateSplitRequest(); 3179 o.splitRequest = buildApproximateSplitRequest();
3138 o.suggestedStopPoint = buildApproximateProgress(); 3180 o.suggestedStopPoint = buildApproximateProgress();
3139 o.suggestedStopPosition = buildPosition(); 3181 o.suggestedStopPosition = buildPosition();
3140 } 3182 }
3141 buildCounterWorkItemServiceState--; 3183 buildCounterWorkItemServiceState--;
3142 return o; 3184 return o;
3143 } 3185 }
3144 3186
3145 checkWorkItemServiceState(api.WorkItemServiceState o) { 3187 checkWorkItemServiceState(api.WorkItemServiceState o) {
3146 buildCounterWorkItemServiceState++; 3188 buildCounterWorkItemServiceState++;
3147 if (buildCounterWorkItemServiceState < 3) { 3189 if (buildCounterWorkItemServiceState < 3) {
3148 checkUnnamed3609(o.harnessData); 3190 checkUnnamed3424(o.harnessData);
3149 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); 3191 unittest.expect(o.leaseExpireTime, unittest.equals('foo'));
3150 checkUnnamed3610(o.metricShortId); 3192 checkUnnamed3425(o.metricShortId);
3151 unittest.expect(o.nextReportIndex, unittest.equals('foo')); 3193 unittest.expect(o.nextReportIndex, unittest.equals('foo'));
3152 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); 3194 unittest.expect(o.reportStatusInterval, unittest.equals('foo'));
3153 checkApproximateSplitRequest(o.splitRequest); 3195 checkApproximateSplitRequest(o.splitRequest);
3154 checkApproximateProgress(o.suggestedStopPoint); 3196 checkApproximateProgress(o.suggestedStopPoint);
3155 checkPosition(o.suggestedStopPosition); 3197 checkPosition(o.suggestedStopPosition);
3156 } 3198 }
3157 buildCounterWorkItemServiceState--; 3199 buildCounterWorkItemServiceState--;
3158 } 3200 }
3159 3201
3160 buildUnnamed3611() { 3202 buildUnnamed3426() {
3161 var o = new core.List<api.CounterUpdate>(); 3203 var o = new core.List<api.CounterUpdate>();
3162 o.add(buildCounterUpdate()); 3204 o.add(buildCounterUpdate());
3163 o.add(buildCounterUpdate()); 3205 o.add(buildCounterUpdate());
3164 return o; 3206 return o;
3165 } 3207 }
3166 3208
3167 checkUnnamed3611(core.List<api.CounterUpdate> o) { 3209 checkUnnamed3426(core.List<api.CounterUpdate> o) {
3168 unittest.expect(o, unittest.hasLength(2)); 3210 unittest.expect(o, unittest.hasLength(2));
3169 checkCounterUpdate(o[0]); 3211 checkCounterUpdate(o[0]);
3170 checkCounterUpdate(o[1]); 3212 checkCounterUpdate(o[1]);
3171 } 3213 }
3172 3214
3173 buildUnnamed3612() { 3215 buildUnnamed3427() {
3174 var o = new core.List<api.Status>(); 3216 var o = new core.List<api.Status>();
3175 o.add(buildStatus()); 3217 o.add(buildStatus());
3176 o.add(buildStatus()); 3218 o.add(buildStatus());
3177 return o; 3219 return o;
3178 } 3220 }
3179 3221
3180 checkUnnamed3612(core.List<api.Status> o) { 3222 checkUnnamed3427(core.List<api.Status> o) {
3181 unittest.expect(o, unittest.hasLength(2)); 3223 unittest.expect(o, unittest.hasLength(2));
3182 checkStatus(o[0]); 3224 checkStatus(o[0]);
3183 checkStatus(o[1]); 3225 checkStatus(o[1]);
3184 } 3226 }
3185 3227
3186 buildUnnamed3613() { 3228 buildUnnamed3428() {
3187 var o = new core.List<api.MetricUpdate>(); 3229 var o = new core.List<api.MetricUpdate>();
3188 o.add(buildMetricUpdate()); 3230 o.add(buildMetricUpdate());
3189 o.add(buildMetricUpdate()); 3231 o.add(buildMetricUpdate());
3190 return o; 3232 return o;
3191 } 3233 }
3192 3234
3193 checkUnnamed3613(core.List<api.MetricUpdate> o) { 3235 checkUnnamed3428(core.List<api.MetricUpdate> o) {
3194 unittest.expect(o, unittest.hasLength(2)); 3236 unittest.expect(o, unittest.hasLength(2));
3195 checkMetricUpdate(o[0]); 3237 checkMetricUpdate(o[0]);
3196 checkMetricUpdate(o[1]); 3238 checkMetricUpdate(o[1]);
3197 } 3239 }
3198 3240
3199 core.int buildCounterWorkItemStatus = 0; 3241 core.int buildCounterWorkItemStatus = 0;
3200 buildWorkItemStatus() { 3242 buildWorkItemStatus() {
3201 var o = new api.WorkItemStatus(); 3243 var o = new api.WorkItemStatus();
3202 buildCounterWorkItemStatus++; 3244 buildCounterWorkItemStatus++;
3203 if (buildCounterWorkItemStatus < 3) { 3245 if (buildCounterWorkItemStatus < 3) {
3204 o.completed = true; 3246 o.completed = true;
3205 o.counterUpdates = buildUnnamed3611(); 3247 o.counterUpdates = buildUnnamed3426();
3206 o.dynamicSourceSplit = buildDynamicSourceSplit(); 3248 o.dynamicSourceSplit = buildDynamicSourceSplit();
3207 o.errors = buildUnnamed3612(); 3249 o.errors = buildUnnamed3427();
3208 o.metricUpdates = buildUnnamed3613(); 3250 o.metricUpdates = buildUnnamed3428();
3209 o.progress = buildApproximateProgress(); 3251 o.progress = buildApproximateProgress();
3210 o.reportIndex = "foo"; 3252 o.reportIndex = "foo";
3211 o.reportedProgress = buildApproximateReportedProgress(); 3253 o.reportedProgress = buildApproximateReportedProgress();
3212 o.requestedLeaseDuration = "foo"; 3254 o.requestedLeaseDuration = "foo";
3213 o.sourceFork = buildSourceFork(); 3255 o.sourceFork = buildSourceFork();
3214 o.sourceOperationResponse = buildSourceOperationResponse(); 3256 o.sourceOperationResponse = buildSourceOperationResponse();
3215 o.stopPosition = buildPosition(); 3257 o.stopPosition = buildPosition();
3216 o.workItemId = "foo"; 3258 o.workItemId = "foo";
3217 } 3259 }
3218 buildCounterWorkItemStatus--; 3260 buildCounterWorkItemStatus--;
3219 return o; 3261 return o;
3220 } 3262 }
3221 3263
3222 checkWorkItemStatus(api.WorkItemStatus o) { 3264 checkWorkItemStatus(api.WorkItemStatus o) {
3223 buildCounterWorkItemStatus++; 3265 buildCounterWorkItemStatus++;
3224 if (buildCounterWorkItemStatus < 3) { 3266 if (buildCounterWorkItemStatus < 3) {
3225 unittest.expect(o.completed, unittest.isTrue); 3267 unittest.expect(o.completed, unittest.isTrue);
3226 checkUnnamed3611(o.counterUpdates); 3268 checkUnnamed3426(o.counterUpdates);
3227 checkDynamicSourceSplit(o.dynamicSourceSplit); 3269 checkDynamicSourceSplit(o.dynamicSourceSplit);
3228 checkUnnamed3612(o.errors); 3270 checkUnnamed3427(o.errors);
3229 checkUnnamed3613(o.metricUpdates); 3271 checkUnnamed3428(o.metricUpdates);
3230 checkApproximateProgress(o.progress); 3272 checkApproximateProgress(o.progress);
3231 unittest.expect(o.reportIndex, unittest.equals('foo')); 3273 unittest.expect(o.reportIndex, unittest.equals('foo'));
3232 checkApproximateReportedProgress(o.reportedProgress); 3274 checkApproximateReportedProgress(o.reportedProgress);
3233 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); 3275 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo'));
3234 checkSourceFork(o.sourceFork); 3276 checkSourceFork(o.sourceFork);
3235 checkSourceOperationResponse(o.sourceOperationResponse); 3277 checkSourceOperationResponse(o.sourceOperationResponse);
3236 checkPosition(o.stopPosition); 3278 checkPosition(o.stopPosition);
3237 unittest.expect(o.workItemId, unittest.equals('foo')); 3279 unittest.expect(o.workItemId, unittest.equals('foo'));
3238 } 3280 }
3239 buildCounterWorkItemStatus--; 3281 buildCounterWorkItemStatus--;
3240 } 3282 }
3241 3283
3242 buildUnnamed3614() { 3284 buildUnnamed3429() {
3243 var o = new core.Map<core.String, core.Object>(); 3285 var o = new core.Map<core.String, core.Object>();
3244 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 3286 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
3245 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 3287 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
3246 return o; 3288 return o;
3247 } 3289 }
3248 3290
3249 checkUnnamed3614(core.Map<core.String, core.Object> o) { 3291 checkUnnamed3429(core.Map<core.String, core.Object> o) {
3250 unittest.expect(o, unittest.hasLength(2)); 3292 unittest.expect(o, unittest.hasLength(2));
3251 var casted43 = (o["x"]) as core.Map; unittest.expect(casted43, unittest.hasLen gth(3)); unittest.expect(casted43["list"], unittest.equals([1, 2, 3])); unittest .expect(casted43["bool"], unittest.equals(true)); unittest.expect(casted43["stri ng"], unittest.equals('foo')); 3293 var casted43 = (o["x"]) as core.Map; unittest.expect(casted43, unittest.hasLen gth(3)); unittest.expect(casted43["list"], unittest.equals([1, 2, 3])); unittest .expect(casted43["bool"], unittest.equals(true)); unittest.expect(casted43["stri ng"], unittest.equals('foo'));
3252 var casted44 = (o["y"]) as core.Map; unittest.expect(casted44, unittest.hasLen gth(3)); unittest.expect(casted44["list"], unittest.equals([1, 2, 3])); unittest .expect(casted44["bool"], unittest.equals(true)); unittest.expect(casted44["stri ng"], unittest.equals('foo')); 3294 var casted44 = (o["y"]) as core.Map; unittest.expect(casted44, unittest.hasLen gth(3)); unittest.expect(casted44["list"], unittest.equals([1, 2, 3])); unittest .expect(casted44["bool"], unittest.equals(true)); unittest.expect(casted44["stri ng"], unittest.equals('foo'));
3253 } 3295 }
3254 3296
3255 buildUnnamed3615() { 3297 buildUnnamed3430() {
3256 var o = new core.List<core.Map<core.String, core.Object>>(); 3298 var o = new core.List<core.Map<core.String, core.Object>>();
3257 o.add(buildUnnamed3614()); 3299 o.add(buildUnnamed3429());
3258 o.add(buildUnnamed3614()); 3300 o.add(buildUnnamed3429());
3259 return o; 3301 return o;
3260 } 3302 }
3261 3303
3262 checkUnnamed3615(core.List<core.Map<core.String, core.Object>> o) { 3304 checkUnnamed3430(core.List<core.Map<core.String, core.Object>> o) {
3263 unittest.expect(o, unittest.hasLength(2)); 3305 unittest.expect(o, unittest.hasLength(2));
3264 checkUnnamed3614(o[0]); 3306 checkUnnamed3429(o[0]);
3265 checkUnnamed3614(o[1]); 3307 checkUnnamed3429(o[1]);
3266 } 3308 }
3267 3309
3268 core.int buildCounterWorkerHealthReport = 0; 3310 core.int buildCounterWorkerHealthReport = 0;
3269 buildWorkerHealthReport() { 3311 buildWorkerHealthReport() {
3270 var o = new api.WorkerHealthReport(); 3312 var o = new api.WorkerHealthReport();
3271 buildCounterWorkerHealthReport++; 3313 buildCounterWorkerHealthReport++;
3272 if (buildCounterWorkerHealthReport < 3) { 3314 if (buildCounterWorkerHealthReport < 3) {
3273 o.pods = buildUnnamed3615(); 3315 o.pods = buildUnnamed3430();
3274 o.reportInterval = "foo"; 3316 o.reportInterval = "foo";
3275 o.vmIsHealthy = true; 3317 o.vmIsHealthy = true;
3276 o.vmStartupTime = "foo"; 3318 o.vmStartupTime = "foo";
3277 } 3319 }
3278 buildCounterWorkerHealthReport--; 3320 buildCounterWorkerHealthReport--;
3279 return o; 3321 return o;
3280 } 3322 }
3281 3323
3282 checkWorkerHealthReport(api.WorkerHealthReport o) { 3324 checkWorkerHealthReport(api.WorkerHealthReport o) {
3283 buildCounterWorkerHealthReport++; 3325 buildCounterWorkerHealthReport++;
3284 if (buildCounterWorkerHealthReport < 3) { 3326 if (buildCounterWorkerHealthReport < 3) {
3285 checkUnnamed3615(o.pods); 3327 checkUnnamed3430(o.pods);
3286 unittest.expect(o.reportInterval, unittest.equals('foo')); 3328 unittest.expect(o.reportInterval, unittest.equals('foo'));
3287 unittest.expect(o.vmIsHealthy, unittest.isTrue); 3329 unittest.expect(o.vmIsHealthy, unittest.isTrue);
3288 unittest.expect(o.vmStartupTime, unittest.equals('foo')); 3330 unittest.expect(o.vmStartupTime, unittest.equals('foo'));
3289 } 3331 }
3290 buildCounterWorkerHealthReport--; 3332 buildCounterWorkerHealthReport--;
3291 } 3333 }
3292 3334
3293 core.int buildCounterWorkerHealthReportResponse = 0; 3335 core.int buildCounterWorkerHealthReportResponse = 0;
3294 buildWorkerHealthReportResponse() { 3336 buildWorkerHealthReportResponse() {
3295 var o = new api.WorkerHealthReportResponse(); 3337 var o = new api.WorkerHealthReportResponse();
3296 buildCounterWorkerHealthReportResponse++; 3338 buildCounterWorkerHealthReportResponse++;
3297 if (buildCounterWorkerHealthReportResponse < 3) { 3339 if (buildCounterWorkerHealthReportResponse < 3) {
3298 o.reportInterval = "foo"; 3340 o.reportInterval = "foo";
3299 } 3341 }
3300 buildCounterWorkerHealthReportResponse--; 3342 buildCounterWorkerHealthReportResponse--;
3301 return o; 3343 return o;
3302 } 3344 }
3303 3345
3304 checkWorkerHealthReportResponse(api.WorkerHealthReportResponse o) { 3346 checkWorkerHealthReportResponse(api.WorkerHealthReportResponse o) {
3305 buildCounterWorkerHealthReportResponse++; 3347 buildCounterWorkerHealthReportResponse++;
3306 if (buildCounterWorkerHealthReportResponse < 3) { 3348 if (buildCounterWorkerHealthReportResponse < 3) {
3307 unittest.expect(o.reportInterval, unittest.equals('foo')); 3349 unittest.expect(o.reportInterval, unittest.equals('foo'));
3308 } 3350 }
3309 buildCounterWorkerHealthReportResponse--; 3351 buildCounterWorkerHealthReportResponse--;
3310 } 3352 }
3311 3353
3312 buildUnnamed3616() { 3354 buildUnnamed3431() {
3313 var o = new core.Map<core.String, core.String>(); 3355 var o = new core.Map<core.String, core.String>();
3314 o["x"] = "foo"; 3356 o["x"] = "foo";
3315 o["y"] = "foo"; 3357 o["y"] = "foo";
3316 return o; 3358 return o;
3317 } 3359 }
3318 3360
3319 checkUnnamed3616(core.Map<core.String, core.String> o) { 3361 checkUnnamed3431(core.Map<core.String, core.String> o) {
3320 unittest.expect(o, unittest.hasLength(2)); 3362 unittest.expect(o, unittest.hasLength(2));
3321 unittest.expect(o["x"], unittest.equals('foo')); 3363 unittest.expect(o["x"], unittest.equals('foo'));
3322 unittest.expect(o["y"], unittest.equals('foo')); 3364 unittest.expect(o["y"], unittest.equals('foo'));
3323 } 3365 }
3324 3366
3325 core.int buildCounterWorkerMessage = 0; 3367 core.int buildCounterWorkerMessage = 0;
3326 buildWorkerMessage() { 3368 buildWorkerMessage() {
3327 var o = new api.WorkerMessage(); 3369 var o = new api.WorkerMessage();
3328 buildCounterWorkerMessage++; 3370 buildCounterWorkerMessage++;
3329 if (buildCounterWorkerMessage < 3) { 3371 if (buildCounterWorkerMessage < 3) {
3330 o.labels = buildUnnamed3616(); 3372 o.labels = buildUnnamed3431();
3331 o.time = "foo"; 3373 o.time = "foo";
3332 o.workerHealthReport = buildWorkerHealthReport(); 3374 o.workerHealthReport = buildWorkerHealthReport();
3333 o.workerMessageCode = buildWorkerMessageCode(); 3375 o.workerMessageCode = buildWorkerMessageCode();
3334 } 3376 }
3335 buildCounterWorkerMessage--; 3377 buildCounterWorkerMessage--;
3336 return o; 3378 return o;
3337 } 3379 }
3338 3380
3339 checkWorkerMessage(api.WorkerMessage o) { 3381 checkWorkerMessage(api.WorkerMessage o) {
3340 buildCounterWorkerMessage++; 3382 buildCounterWorkerMessage++;
3341 if (buildCounterWorkerMessage < 3) { 3383 if (buildCounterWorkerMessage < 3) {
3342 checkUnnamed3616(o.labels); 3384 checkUnnamed3431(o.labels);
3343 unittest.expect(o.time, unittest.equals('foo')); 3385 unittest.expect(o.time, unittest.equals('foo'));
3344 checkWorkerHealthReport(o.workerHealthReport); 3386 checkWorkerHealthReport(o.workerHealthReport);
3345 checkWorkerMessageCode(o.workerMessageCode); 3387 checkWorkerMessageCode(o.workerMessageCode);
3346 } 3388 }
3347 buildCounterWorkerMessage--; 3389 buildCounterWorkerMessage--;
3348 } 3390 }
3349 3391
3350 buildUnnamed3617() { 3392 buildUnnamed3432() {
3351 var o = new core.Map<core.String, core.Object>(); 3393 var o = new core.Map<core.String, core.Object>();
3352 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 3394 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
3353 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 3395 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
3354 return o; 3396 return o;
3355 } 3397 }
3356 3398
3357 checkUnnamed3617(core.Map<core.String, core.Object> o) { 3399 checkUnnamed3432(core.Map<core.String, core.Object> o) {
3358 unittest.expect(o, unittest.hasLength(2)); 3400 unittest.expect(o, unittest.hasLength(2));
3359 var casted45 = (o["x"]) as core.Map; unittest.expect(casted45, unittest.hasLen gth(3)); unittest.expect(casted45["list"], unittest.equals([1, 2, 3])); unittest .expect(casted45["bool"], unittest.equals(true)); unittest.expect(casted45["stri ng"], unittest.equals('foo')); 3401 var casted45 = (o["x"]) as core.Map; unittest.expect(casted45, unittest.hasLen gth(3)); unittest.expect(casted45["list"], unittest.equals([1, 2, 3])); unittest .expect(casted45["bool"], unittest.equals(true)); unittest.expect(casted45["stri ng"], unittest.equals('foo'));
3360 var casted46 = (o["y"]) as core.Map; unittest.expect(casted46, unittest.hasLen gth(3)); unittest.expect(casted46["list"], unittest.equals([1, 2, 3])); unittest .expect(casted46["bool"], unittest.equals(true)); unittest.expect(casted46["stri ng"], unittest.equals('foo')); 3402 var casted46 = (o["y"]) as core.Map; unittest.expect(casted46, unittest.hasLen gth(3)); unittest.expect(casted46["list"], unittest.equals([1, 2, 3])); unittest .expect(casted46["bool"], unittest.equals(true)); unittest.expect(casted46["stri ng"], unittest.equals('foo'));
3361 } 3403 }
3362 3404
3363 core.int buildCounterWorkerMessageCode = 0; 3405 core.int buildCounterWorkerMessageCode = 0;
3364 buildWorkerMessageCode() { 3406 buildWorkerMessageCode() {
3365 var o = new api.WorkerMessageCode(); 3407 var o = new api.WorkerMessageCode();
3366 buildCounterWorkerMessageCode++; 3408 buildCounterWorkerMessageCode++;
3367 if (buildCounterWorkerMessageCode < 3) { 3409 if (buildCounterWorkerMessageCode < 3) {
3368 o.code = "foo"; 3410 o.code = "foo";
3369 o.parameters = buildUnnamed3617(); 3411 o.parameters = buildUnnamed3432();
3370 } 3412 }
3371 buildCounterWorkerMessageCode--; 3413 buildCounterWorkerMessageCode--;
3372 return o; 3414 return o;
3373 } 3415 }
3374 3416
3375 checkWorkerMessageCode(api.WorkerMessageCode o) { 3417 checkWorkerMessageCode(api.WorkerMessageCode o) {
3376 buildCounterWorkerMessageCode++; 3418 buildCounterWorkerMessageCode++;
3377 if (buildCounterWorkerMessageCode < 3) { 3419 if (buildCounterWorkerMessageCode < 3) {
3378 unittest.expect(o.code, unittest.equals('foo')); 3420 unittest.expect(o.code, unittest.equals('foo'));
3379 checkUnnamed3617(o.parameters); 3421 checkUnnamed3432(o.parameters);
3380 } 3422 }
3381 buildCounterWorkerMessageCode--; 3423 buildCounterWorkerMessageCode--;
3382 } 3424 }
3383 3425
3384 core.int buildCounterWorkerMessageResponse = 0; 3426 core.int buildCounterWorkerMessageResponse = 0;
3385 buildWorkerMessageResponse() { 3427 buildWorkerMessageResponse() {
3386 var o = new api.WorkerMessageResponse(); 3428 var o = new api.WorkerMessageResponse();
3387 buildCounterWorkerMessageResponse++; 3429 buildCounterWorkerMessageResponse++;
3388 if (buildCounterWorkerMessageResponse < 3) { 3430 if (buildCounterWorkerMessageResponse < 3) {
3389 o.workerHealthReportResponse = buildWorkerHealthReportResponse(); 3431 o.workerHealthReportResponse = buildWorkerHealthReportResponse();
3390 } 3432 }
3391 buildCounterWorkerMessageResponse--; 3433 buildCounterWorkerMessageResponse--;
3392 return o; 3434 return o;
3393 } 3435 }
3394 3436
3395 checkWorkerMessageResponse(api.WorkerMessageResponse o) { 3437 checkWorkerMessageResponse(api.WorkerMessageResponse o) {
3396 buildCounterWorkerMessageResponse++; 3438 buildCounterWorkerMessageResponse++;
3397 if (buildCounterWorkerMessageResponse < 3) { 3439 if (buildCounterWorkerMessageResponse < 3) {
3398 checkWorkerHealthReportResponse(o.workerHealthReportResponse); 3440 checkWorkerHealthReportResponse(o.workerHealthReportResponse);
3399 } 3441 }
3400 buildCounterWorkerMessageResponse--; 3442 buildCounterWorkerMessageResponse--;
3401 } 3443 }
3402 3444
3403 buildUnnamed3618() { 3445 buildUnnamed3433() {
3404 var o = new core.List<api.Disk>(); 3446 var o = new core.List<api.Disk>();
3405 o.add(buildDisk()); 3447 o.add(buildDisk());
3406 o.add(buildDisk()); 3448 o.add(buildDisk());
3407 return o; 3449 return o;
3408 } 3450 }
3409 3451
3410 checkUnnamed3618(core.List<api.Disk> o) { 3452 checkUnnamed3433(core.List<api.Disk> o) {
3411 unittest.expect(o, unittest.hasLength(2)); 3453 unittest.expect(o, unittest.hasLength(2));
3412 checkDisk(o[0]); 3454 checkDisk(o[0]);
3413 checkDisk(o[1]); 3455 checkDisk(o[1]);
3414 } 3456 }
3415 3457
3416 buildUnnamed3619() { 3458 buildUnnamed3434() {
3417 var o = new core.Map<core.String, core.String>(); 3459 var o = new core.Map<core.String, core.String>();
3418 o["x"] = "foo"; 3460 o["x"] = "foo";
3419 o["y"] = "foo"; 3461 o["y"] = "foo";
3420 return o; 3462 return o;
3421 } 3463 }
3422 3464
3423 checkUnnamed3619(core.Map<core.String, core.String> o) { 3465 checkUnnamed3434(core.Map<core.String, core.String> o) {
3424 unittest.expect(o, unittest.hasLength(2)); 3466 unittest.expect(o, unittest.hasLength(2));
3425 unittest.expect(o["x"], unittest.equals('foo')); 3467 unittest.expect(o["x"], unittest.equals('foo'));
3426 unittest.expect(o["y"], unittest.equals('foo')); 3468 unittest.expect(o["y"], unittest.equals('foo'));
3427 } 3469 }
3428 3470
3429 buildUnnamed3620() { 3471 buildUnnamed3435() {
3430 var o = new core.List<api.Package>(); 3472 var o = new core.List<api.Package>();
3431 o.add(buildPackage()); 3473 o.add(buildPackage());
3432 o.add(buildPackage()); 3474 o.add(buildPackage());
3433 return o; 3475 return o;
3434 } 3476 }
3435 3477
3436 checkUnnamed3620(core.List<api.Package> o) { 3478 checkUnnamed3435(core.List<api.Package> o) {
3437 unittest.expect(o, unittest.hasLength(2)); 3479 unittest.expect(o, unittest.hasLength(2));
3438 checkPackage(o[0]); 3480 checkPackage(o[0]);
3439 checkPackage(o[1]); 3481 checkPackage(o[1]);
3440 } 3482 }
3441 3483
3442 buildUnnamed3621() { 3484 buildUnnamed3436() {
3443 var o = new core.Map<core.String, core.Object>(); 3485 var o = new core.Map<core.String, core.Object>();
3444 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 3486 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
3445 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 3487 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
3446 return o; 3488 return o;
3447 } 3489 }
3448 3490
3449 checkUnnamed3621(core.Map<core.String, core.Object> o) { 3491 checkUnnamed3436(core.Map<core.String, core.Object> o) {
3450 unittest.expect(o, unittest.hasLength(2)); 3492 unittest.expect(o, unittest.hasLength(2));
3451 var casted47 = (o["x"]) as core.Map; unittest.expect(casted47, unittest.hasLen gth(3)); unittest.expect(casted47["list"], unittest.equals([1, 2, 3])); unittest .expect(casted47["bool"], unittest.equals(true)); unittest.expect(casted47["stri ng"], unittest.equals('foo')); 3493 var casted47 = (o["x"]) as core.Map; unittest.expect(casted47, unittest.hasLen gth(3)); unittest.expect(casted47["list"], unittest.equals([1, 2, 3])); unittest .expect(casted47["bool"], unittest.equals(true)); unittest.expect(casted47["stri ng"], unittest.equals('foo'));
3452 var casted48 = (o["y"]) as core.Map; unittest.expect(casted48, unittest.hasLen gth(3)); unittest.expect(casted48["list"], unittest.equals([1, 2, 3])); unittest .expect(casted48["bool"], unittest.equals(true)); unittest.expect(casted48["stri ng"], unittest.equals('foo')); 3494 var casted48 = (o["y"]) as core.Map; unittest.expect(casted48, unittest.hasLen gth(3)); unittest.expect(casted48["list"], unittest.equals([1, 2, 3])); unittest .expect(casted48["bool"], unittest.equals(true)); unittest.expect(casted48["stri ng"], unittest.equals('foo'));
3453 } 3495 }
3454 3496
3455 core.int buildCounterWorkerPool = 0; 3497 core.int buildCounterWorkerPool = 0;
3456 buildWorkerPool() { 3498 buildWorkerPool() {
3457 var o = new api.WorkerPool(); 3499 var o = new api.WorkerPool();
3458 buildCounterWorkerPool++; 3500 buildCounterWorkerPool++;
3459 if (buildCounterWorkerPool < 3) { 3501 if (buildCounterWorkerPool < 3) {
3460 o.autoscalingSettings = buildAutoscalingSettings(); 3502 o.autoscalingSettings = buildAutoscalingSettings();
3461 o.dataDisks = buildUnnamed3618(); 3503 o.dataDisks = buildUnnamed3433();
3462 o.defaultPackageSet = "foo"; 3504 o.defaultPackageSet = "foo";
3463 o.diskSizeGb = 42; 3505 o.diskSizeGb = 42;
3464 o.diskSourceImage = "foo"; 3506 o.diskSourceImage = "foo";
3465 o.diskType = "foo"; 3507 o.diskType = "foo";
3466 o.ipConfiguration = "foo"; 3508 o.ipConfiguration = "foo";
3467 o.kind = "foo"; 3509 o.kind = "foo";
3468 o.machineType = "foo"; 3510 o.machineType = "foo";
3469 o.metadata = buildUnnamed3619(); 3511 o.metadata = buildUnnamed3434();
3470 o.network = "foo"; 3512 o.network = "foo";
3471 o.numThreadsPerWorker = 42; 3513 o.numThreadsPerWorker = 42;
3472 o.numWorkers = 42; 3514 o.numWorkers = 42;
3473 o.onHostMaintenance = "foo"; 3515 o.onHostMaintenance = "foo";
3474 o.packages = buildUnnamed3620(); 3516 o.packages = buildUnnamed3435();
3475 o.poolArgs = buildUnnamed3621(); 3517 o.poolArgs = buildUnnamed3436();
3476 o.subnetwork = "foo"; 3518 o.subnetwork = "foo";
3477 o.taskrunnerSettings = buildTaskRunnerSettings(); 3519 o.taskrunnerSettings = buildTaskRunnerSettings();
3478 o.teardownPolicy = "foo"; 3520 o.teardownPolicy = "foo";
3479 o.workerHarnessContainerImage = "foo"; 3521 o.workerHarnessContainerImage = "foo";
3480 o.zone = "foo"; 3522 o.zone = "foo";
3481 } 3523 }
3482 buildCounterWorkerPool--; 3524 buildCounterWorkerPool--;
3483 return o; 3525 return o;
3484 } 3526 }
3485 3527
3486 checkWorkerPool(api.WorkerPool o) { 3528 checkWorkerPool(api.WorkerPool o) {
3487 buildCounterWorkerPool++; 3529 buildCounterWorkerPool++;
3488 if (buildCounterWorkerPool < 3) { 3530 if (buildCounterWorkerPool < 3) {
3489 checkAutoscalingSettings(o.autoscalingSettings); 3531 checkAutoscalingSettings(o.autoscalingSettings);
3490 checkUnnamed3618(o.dataDisks); 3532 checkUnnamed3433(o.dataDisks);
3491 unittest.expect(o.defaultPackageSet, unittest.equals('foo')); 3533 unittest.expect(o.defaultPackageSet, unittest.equals('foo'));
3492 unittest.expect(o.diskSizeGb, unittest.equals(42)); 3534 unittest.expect(o.diskSizeGb, unittest.equals(42));
3493 unittest.expect(o.diskSourceImage, unittest.equals('foo')); 3535 unittest.expect(o.diskSourceImage, unittest.equals('foo'));
3494 unittest.expect(o.diskType, unittest.equals('foo')); 3536 unittest.expect(o.diskType, unittest.equals('foo'));
3495 unittest.expect(o.ipConfiguration, unittest.equals('foo')); 3537 unittest.expect(o.ipConfiguration, unittest.equals('foo'));
3496 unittest.expect(o.kind, unittest.equals('foo')); 3538 unittest.expect(o.kind, unittest.equals('foo'));
3497 unittest.expect(o.machineType, unittest.equals('foo')); 3539 unittest.expect(o.machineType, unittest.equals('foo'));
3498 checkUnnamed3619(o.metadata); 3540 checkUnnamed3434(o.metadata);
3499 unittest.expect(o.network, unittest.equals('foo')); 3541 unittest.expect(o.network, unittest.equals('foo'));
3500 unittest.expect(o.numThreadsPerWorker, unittest.equals(42)); 3542 unittest.expect(o.numThreadsPerWorker, unittest.equals(42));
3501 unittest.expect(o.numWorkers, unittest.equals(42)); 3543 unittest.expect(o.numWorkers, unittest.equals(42));
3502 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); 3544 unittest.expect(o.onHostMaintenance, unittest.equals('foo'));
3503 checkUnnamed3620(o.packages); 3545 checkUnnamed3435(o.packages);
3504 checkUnnamed3621(o.poolArgs); 3546 checkUnnamed3436(o.poolArgs);
3505 unittest.expect(o.subnetwork, unittest.equals('foo')); 3547 unittest.expect(o.subnetwork, unittest.equals('foo'));
3506 checkTaskRunnerSettings(o.taskrunnerSettings); 3548 checkTaskRunnerSettings(o.taskrunnerSettings);
3507 unittest.expect(o.teardownPolicy, unittest.equals('foo')); 3549 unittest.expect(o.teardownPolicy, unittest.equals('foo'));
3508 unittest.expect(o.workerHarnessContainerImage, unittest.equals('foo')); 3550 unittest.expect(o.workerHarnessContainerImage, unittest.equals('foo'));
3509 unittest.expect(o.zone, unittest.equals('foo')); 3551 unittest.expect(o.zone, unittest.equals('foo'));
3510 } 3552 }
3511 buildCounterWorkerPool--; 3553 buildCounterWorkerPool--;
3512 } 3554 }
3513 3555
3514 core.int buildCounterWorkerSettings = 0; 3556 core.int buildCounterWorkerSettings = 0;
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
3709 3751
3710 unittest.group("obj-schema-Environment", () { 3752 unittest.group("obj-schema-Environment", () {
3711 unittest.test("to-json--from-json", () { 3753 unittest.test("to-json--from-json", () {
3712 var o = buildEnvironment(); 3754 var o = buildEnvironment();
3713 var od = new api.Environment.fromJson(o.toJson()); 3755 var od = new api.Environment.fromJson(o.toJson());
3714 checkEnvironment(od); 3756 checkEnvironment(od);
3715 }); 3757 });
3716 }); 3758 });
3717 3759
3718 3760
3761 unittest.group("obj-schema-FailedLocation", () {
3762 unittest.test("to-json--from-json", () {
3763 var o = buildFailedLocation();
3764 var od = new api.FailedLocation.fromJson(o.toJson());
3765 checkFailedLocation(od);
3766 });
3767 });
3768
3769
3719 unittest.group("obj-schema-FlattenInstruction", () { 3770 unittest.group("obj-schema-FlattenInstruction", () {
3720 unittest.test("to-json--from-json", () { 3771 unittest.test("to-json--from-json", () {
3721 var o = buildFlattenInstruction(); 3772 var o = buildFlattenInstruction();
3722 var od = new api.FlattenInstruction.fromJson(o.toJson()); 3773 var od = new api.FlattenInstruction.fromJson(o.toJson());
3723 checkFlattenInstruction(od); 3774 checkFlattenInstruction(od);
3724 }); 3775 });
3725 }); 3776 });
3726 3777
3727 3778
3728 unittest.group("obj-schema-FloatingPointList", () { 3779 unittest.group("obj-schema-FloatingPointList", () {
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
4524 4575
4525 unittest.group("resource-ProjectsJobsResourceApi", () { 4576 unittest.group("resource-ProjectsJobsResourceApi", () {
4526 unittest.test("method--create", () { 4577 unittest.test("method--create", () {
4527 4578
4528 var mock = new HttpServerMock(); 4579 var mock = new HttpServerMock();
4529 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; 4580 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs;
4530 var arg_request = buildJob(); 4581 var arg_request = buildJob();
4531 var arg_projectId = "foo"; 4582 var arg_projectId = "foo";
4532 var arg_view = "foo"; 4583 var arg_view = "foo";
4533 var arg_replaceJobId = "foo"; 4584 var arg_replaceJobId = "foo";
4585 var arg_location = "foo";
4534 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4586 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4535 var obj = new api.Job.fromJson(json); 4587 var obj = new api.Job.fromJson(json);
4536 checkJob(obj); 4588 checkJob(obj);
4537 4589
4538 var path = (req.url).path; 4590 var path = (req.url).path;
4539 var pathOffset = 0; 4591 var pathOffset = 0;
4540 var index; 4592 var index;
4541 var subPart; 4593 var subPart;
4542 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4594 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4543 pathOffset += 1; 4595 pathOffset += 1;
(...skipping 18 matching lines...) Expand all
4562 throw new core.ArgumentError("Invalid boolean: $n"); 4614 throw new core.ArgumentError("Invalid boolean: $n");
4563 } 4615 }
4564 if (query.length > 0) { 4616 if (query.length > 0) {
4565 for (var part in query.split("&")) { 4617 for (var part in query.split("&")) {
4566 var keyvalue = part.split("="); 4618 var keyvalue = part.split("=");
4567 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4619 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4568 } 4620 }
4569 } 4621 }
4570 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); 4622 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
4571 unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_repl aceJobId)); 4623 unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_repl aceJobId));
4624 unittest.expect(queryMap["location"].first, unittest.equals(arg_location ));
4572 4625
4573 4626
4574 var h = { 4627 var h = {
4575 "content-type" : "application/json; charset=utf-8", 4628 "content-type" : "application/json; charset=utf-8",
4576 }; 4629 };
4577 var resp = convert.JSON.encode(buildJob()); 4630 var resp = convert.JSON.encode(buildJob());
4578 return new async.Future.value(stringResponse(200, h, resp)); 4631 return new async.Future.value(stringResponse(200, h, resp));
4579 }), true); 4632 }), true);
4580 res.create(arg_request, arg_projectId, view: arg_view, replaceJobId: arg_r eplaceJobId).then(unittest.expectAsync(((api.Job response) { 4633 res.create(arg_request, arg_projectId, view: arg_view, replaceJobId: arg_r eplaceJobId, location: arg_location).then(unittest.expectAsync(((api.Job respons e) {
4581 checkJob(response); 4634 checkJob(response);
4582 }))); 4635 })));
4583 }); 4636 });
4584 4637
4585 unittest.test("method--get", () { 4638 unittest.test("method--get", () {
4586 4639
4587 var mock = new HttpServerMock(); 4640 var mock = new HttpServerMock();
4588 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; 4641 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs;
4589 var arg_projectId = "foo"; 4642 var arg_projectId = "foo";
4590 var arg_jobId = "foo"; 4643 var arg_jobId = "foo";
4591 var arg_view = "foo"; 4644 var arg_view = "foo";
4645 var arg_location = "foo";
4592 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4646 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4593 var path = (req.url).path; 4647 var path = (req.url).path;
4594 var pathOffset = 0; 4648 var pathOffset = 0;
4595 var index; 4649 var index;
4596 var subPart; 4650 var subPart;
4597 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4651 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4598 pathOffset += 1; 4652 pathOffset += 1;
4599 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/")); 4653 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/"));
4600 pathOffset += 14; 4654 pathOffset += 14;
4601 index = path.indexOf("/jobs/", pathOffset); 4655 index = path.indexOf("/jobs/", pathOffset);
(...skipping 17 matching lines...) Expand all
4619 if (n == null) return null; 4673 if (n == null) return null;
4620 throw new core.ArgumentError("Invalid boolean: $n"); 4674 throw new core.ArgumentError("Invalid boolean: $n");
4621 } 4675 }
4622 if (query.length > 0) { 4676 if (query.length > 0) {
4623 for (var part in query.split("&")) { 4677 for (var part in query.split("&")) {
4624 var keyvalue = part.split("="); 4678 var keyvalue = part.split("=");
4625 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4679 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4626 } 4680 }
4627 } 4681 }
4628 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); 4682 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
4683 unittest.expect(queryMap["location"].first, unittest.equals(arg_location ));
4629 4684
4630 4685
4631 var h = { 4686 var h = {
4632 "content-type" : "application/json; charset=utf-8", 4687 "content-type" : "application/json; charset=utf-8",
4633 }; 4688 };
4634 var resp = convert.JSON.encode(buildJob()); 4689 var resp = convert.JSON.encode(buildJob());
4635 return new async.Future.value(stringResponse(200, h, resp)); 4690 return new async.Future.value(stringResponse(200, h, resp));
4636 }), true); 4691 }), true);
4637 res.get(arg_projectId, arg_jobId, view: arg_view).then(unittest.expectAsyn c(((api.Job response) { 4692 res.get(arg_projectId, arg_jobId, view: arg_view, location: arg_location). then(unittest.expectAsync(((api.Job response) {
4638 checkJob(response); 4693 checkJob(response);
4639 }))); 4694 })));
4640 }); 4695 });
4641 4696
4642 unittest.test("method--getMetrics", () { 4697 unittest.test("method--getMetrics", () {
4643 4698
4644 var mock = new HttpServerMock(); 4699 var mock = new HttpServerMock();
4645 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; 4700 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs;
4646 var arg_projectId = "foo"; 4701 var arg_projectId = "foo";
4647 var arg_jobId = "foo"; 4702 var arg_jobId = "foo";
4648 var arg_startTime = "foo"; 4703 var arg_startTime = "foo";
4704 var arg_location = "foo";
4649 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4705 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4650 var path = (req.url).path; 4706 var path = (req.url).path;
4651 var pathOffset = 0; 4707 var pathOffset = 0;
4652 var index; 4708 var index;
4653 var subPart; 4709 var subPart;
4654 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4710 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4655 pathOffset += 1; 4711 pathOffset += 1;
4656 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/")); 4712 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/"));
4657 pathOffset += 14; 4713 pathOffset += 14;
4658 index = path.indexOf("/jobs/", pathOffset); 4714 index = path.indexOf("/jobs/", pathOffset);
(...skipping 21 matching lines...) Expand all
4680 if (n == null) return null; 4736 if (n == null) return null;
4681 throw new core.ArgumentError("Invalid boolean: $n"); 4737 throw new core.ArgumentError("Invalid boolean: $n");
4682 } 4738 }
4683 if (query.length > 0) { 4739 if (query.length > 0) {
4684 for (var part in query.split("&")) { 4740 for (var part in query.split("&")) {
4685 var keyvalue = part.split("="); 4741 var keyvalue = part.split("=");
4686 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4742 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4687 } 4743 }
4688 } 4744 }
4689 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi me)); 4745 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi me));
4746 unittest.expect(queryMap["location"].first, unittest.equals(arg_location ));
4690 4747
4691 4748
4692 var h = { 4749 var h = {
4693 "content-type" : "application/json; charset=utf-8", 4750 "content-type" : "application/json; charset=utf-8",
4694 }; 4751 };
4695 var resp = convert.JSON.encode(buildJobMetrics()); 4752 var resp = convert.JSON.encode(buildJobMetrics());
4696 return new async.Future.value(stringResponse(200, h, resp)); 4753 return new async.Future.value(stringResponse(200, h, resp));
4697 }), true); 4754 }), true);
4698 res.getMetrics(arg_projectId, arg_jobId, startTime: arg_startTime).then(un ittest.expectAsync(((api.JobMetrics response) { 4755 res.getMetrics(arg_projectId, arg_jobId, startTime: arg_startTime, locatio n: arg_location).then(unittest.expectAsync(((api.JobMetrics response) {
4699 checkJobMetrics(response); 4756 checkJobMetrics(response);
4700 }))); 4757 })));
4701 }); 4758 });
4702 4759
4703 unittest.test("method--list", () { 4760 unittest.test("method--list", () {
4704 4761
4705 var mock = new HttpServerMock(); 4762 var mock = new HttpServerMock();
4706 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; 4763 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs;
4707 var arg_projectId = "foo"; 4764 var arg_projectId = "foo";
4708 var arg_filter = "foo"; 4765 var arg_filter = "foo";
4709 var arg_view = "foo"; 4766 var arg_view = "foo";
4710 var arg_pageSize = 42; 4767 var arg_pageSize = 42;
4711 var arg_pageToken = "foo"; 4768 var arg_pageToken = "foo";
4769 var arg_location = "foo";
4712 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4770 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4713 var path = (req.url).path; 4771 var path = (req.url).path;
4714 var pathOffset = 0; 4772 var pathOffset = 0;
4715 var index; 4773 var index;
4716 var subPart; 4774 var subPart;
4717 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4775 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4718 pathOffset += 1; 4776 pathOffset += 1;
4719 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/")); 4777 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/"));
4720 pathOffset += 14; 4778 pathOffset += 14;
4721 index = path.indexOf("/jobs", pathOffset); 4779 index = path.indexOf("/jobs", pathOffset);
(...skipping 17 matching lines...) Expand all
4739 if (query.length > 0) { 4797 if (query.length > 0) {
4740 for (var part in query.split("&")) { 4798 for (var part in query.split("&")) {
4741 var keyvalue = part.split("="); 4799 var keyvalue = part.split("=");
4742 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4800 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4743 } 4801 }
4744 } 4802 }
4745 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 4803 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
4746 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); 4804 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
4747 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 4805 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
4748 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 4806 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4807 unittest.expect(queryMap["location"].first, unittest.equals(arg_location ));
4749 4808
4750 4809
4751 var h = { 4810 var h = {
4752 "content-type" : "application/json; charset=utf-8", 4811 "content-type" : "application/json; charset=utf-8",
4753 }; 4812 };
4754 var resp = convert.JSON.encode(buildListJobsResponse()); 4813 var resp = convert.JSON.encode(buildListJobsResponse());
4755 return new async.Future.value(stringResponse(200, h, resp)); 4814 return new async.Future.value(stringResponse(200, h, resp));
4756 }), true); 4815 }), true);
4757 res.list(arg_projectId, filter: arg_filter, view: arg_view, pageSize: arg_ pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListJobsResp onse response) { 4816 res.list(arg_projectId, filter: arg_filter, view: arg_view, pageSize: arg_ pageSize, pageToken: arg_pageToken, location: arg_location).then(unittest.expect Async(((api.ListJobsResponse response) {
4758 checkListJobsResponse(response); 4817 checkListJobsResponse(response);
4759 }))); 4818 })));
4760 }); 4819 });
4761 4820
4762 unittest.test("method--update", () { 4821 unittest.test("method--update", () {
4763 4822
4764 var mock = new HttpServerMock(); 4823 var mock = new HttpServerMock();
4765 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; 4824 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs;
4766 var arg_request = buildJob(); 4825 var arg_request = buildJob();
4767 var arg_projectId = "foo"; 4826 var arg_projectId = "foo";
4768 var arg_jobId = "foo"; 4827 var arg_jobId = "foo";
4828 var arg_location = "foo";
4769 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4829 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4770 var obj = new api.Job.fromJson(json); 4830 var obj = new api.Job.fromJson(json);
4771 checkJob(obj); 4831 checkJob(obj);
4772 4832
4773 var path = (req.url).path; 4833 var path = (req.url).path;
4774 var pathOffset = 0; 4834 var pathOffset = 0;
4775 var index; 4835 var index;
4776 var subPart; 4836 var subPart;
4777 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4837 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4778 pathOffset += 1; 4838 pathOffset += 1;
(...skipping 19 matching lines...) Expand all
4798 if (n == "false") return false; 4858 if (n == "false") return false;
4799 if (n == null) return null; 4859 if (n == null) return null;
4800 throw new core.ArgumentError("Invalid boolean: $n"); 4860 throw new core.ArgumentError("Invalid boolean: $n");
4801 } 4861 }
4802 if (query.length > 0) { 4862 if (query.length > 0) {
4803 for (var part in query.split("&")) { 4863 for (var part in query.split("&")) {
4804 var keyvalue = part.split("="); 4864 var keyvalue = part.split("=");
4805 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4865 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4806 } 4866 }
4807 } 4867 }
4868 unittest.expect(queryMap["location"].first, unittest.equals(arg_location ));
4808 4869
4809 4870
4810 var h = { 4871 var h = {
4811 "content-type" : "application/json; charset=utf-8", 4872 "content-type" : "application/json; charset=utf-8",
4812 }; 4873 };
4813 var resp = convert.JSON.encode(buildJob()); 4874 var resp = convert.JSON.encode(buildJob());
4814 return new async.Future.value(stringResponse(200, h, resp)); 4875 return new async.Future.value(stringResponse(200, h, resp));
4815 }), true); 4876 }), true);
4816 res.update(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsyn c(((api.Job response) { 4877 res.update(arg_request, arg_projectId, arg_jobId, location: arg_location). then(unittest.expectAsync(((api.Job response) {
4817 checkJob(response); 4878 checkJob(response);
4818 }))); 4879 })));
4819 }); 4880 });
4820 4881
4821 }); 4882 });
4822 4883
4823 4884
4824 unittest.group("resource-ProjectsJobsDebugResourceApi", () { 4885 unittest.group("resource-ProjectsJobsDebugResourceApi", () {
4825 unittest.test("method--getConfig", () { 4886 unittest.test("method--getConfig", () {
4826 4887
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
4956 5017
4957 var mock = new HttpServerMock(); 5018 var mock = new HttpServerMock();
4958 api.ProjectsJobsMessagesResourceApi res = new api.DataflowApi(mock).projec ts.jobs.messages; 5019 api.ProjectsJobsMessagesResourceApi res = new api.DataflowApi(mock).projec ts.jobs.messages;
4959 var arg_projectId = "foo"; 5020 var arg_projectId = "foo";
4960 var arg_jobId = "foo"; 5021 var arg_jobId = "foo";
4961 var arg_minimumImportance = "foo"; 5022 var arg_minimumImportance = "foo";
4962 var arg_pageSize = 42; 5023 var arg_pageSize = 42;
4963 var arg_pageToken = "foo"; 5024 var arg_pageToken = "foo";
4964 var arg_startTime = "foo"; 5025 var arg_startTime = "foo";
4965 var arg_endTime = "foo"; 5026 var arg_endTime = "foo";
5027 var arg_location = "foo";
4966 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5028 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4967 var path = (req.url).path; 5029 var path = (req.url).path;
4968 var pathOffset = 0; 5030 var pathOffset = 0;
4969 var index; 5031 var index;
4970 var subPart; 5032 var subPart;
4971 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5033 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4972 pathOffset += 1; 5034 pathOffset += 1;
4973 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/")); 5035 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/"));
4974 pathOffset += 14; 5036 pathOffset += 14;
4975 index = path.indexOf("/jobs/", pathOffset); 5037 index = path.indexOf("/jobs/", pathOffset);
(...skipping 25 matching lines...) Expand all
5001 for (var part in query.split("&")) { 5063 for (var part in query.split("&")) {
5002 var keyvalue = part.split("="); 5064 var keyvalue = part.split("=");
5003 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5065 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5004 } 5066 }
5005 } 5067 }
5006 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg _minimumImportance)); 5068 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg _minimumImportance));
5007 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 5069 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
5008 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 5070 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
5009 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi me)); 5071 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi me));
5010 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)) ; 5072 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)) ;
5073 unittest.expect(queryMap["location"].first, unittest.equals(arg_location ));
5011 5074
5012 5075
5013 var h = { 5076 var h = {
5014 "content-type" : "application/json; charset=utf-8", 5077 "content-type" : "application/json; charset=utf-8",
5015 }; 5078 };
5016 var resp = convert.JSON.encode(buildListJobMessagesResponse()); 5079 var resp = convert.JSON.encode(buildListJobMessagesResponse());
5017 return new async.Future.value(stringResponse(200, h, resp)); 5080 return new async.Future.value(stringResponse(200, h, resp));
5018 }), true); 5081 }), true);
5019 res.list(arg_projectId, arg_jobId, minimumImportance: arg_minimumImportanc e, pageSize: arg_pageSize, pageToken: arg_pageToken, startTime: arg_startTime, e ndTime: arg_endTime).then(unittest.expectAsync(((api.ListJobMessagesResponse res ponse) { 5082 res.list(arg_projectId, arg_jobId, minimumImportance: arg_minimumImportanc e, pageSize: arg_pageSize, pageToken: arg_pageToken, startTime: arg_startTime, e ndTime: arg_endTime, location: arg_location).then(unittest.expectAsync(((api.Lis tJobMessagesResponse response) {
5020 checkListJobMessagesResponse(response); 5083 checkListJobMessagesResponse(response);
5021 }))); 5084 })));
5022 }); 5085 });
5023 5086
5024 }); 5087 });
5025 5088
5026 5089
5027 unittest.group("resource-ProjectsJobsWorkItemsResourceApi", () { 5090 unittest.group("resource-ProjectsJobsWorkItemsResourceApi", () {
5028 unittest.test("method--lease", () { 5091 unittest.test("method--lease", () {
5029 5092
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
5147 return new async.Future.value(stringResponse(200, h, resp)); 5210 return new async.Future.value(stringResponse(200, h, resp));
5148 }), true); 5211 }), true);
5149 res.reportStatus(arg_request, arg_projectId, arg_jobId).then(unittest.expe ctAsync(((api.ReportWorkItemStatusResponse response) { 5212 res.reportStatus(arg_request, arg_projectId, arg_jobId).then(unittest.expe ctAsync(((api.ReportWorkItemStatusResponse response) {
5150 checkReportWorkItemStatusResponse(response); 5213 checkReportWorkItemStatusResponse(response);
5151 }))); 5214 })));
5152 }); 5215 });
5153 5216
5154 }); 5217 });
5155 5218
5156 5219
5220 unittest.group("resource-ProjectsLocationsJobsResourceApi", () {
5221 unittest.test("method--create", () {
5222
5223 var mock = new HttpServerMock();
5224 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje cts.locations.jobs;
5225 var arg_request = buildJob();
5226 var arg_projectId = "foo";
5227 var arg_location = "foo";
5228 var arg_view = "foo";
5229 var arg_replaceJobId = "foo";
5230 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5231 var obj = new api.Job.fromJson(json);
5232 checkJob(obj);
5233
5234 var path = (req.url).path;
5235 var pathOffset = 0;
5236 var index;
5237 var subPart;
5238 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5239 pathOffset += 1;
5240 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/"));
5241 pathOffset += 14;
5242 index = path.indexOf("/locations/", pathOffset);
5243 unittest.expect(index >= 0, unittest.isTrue);
5244 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5245 pathOffset = index;
5246 unittest.expect(subPart, unittest.equals("$arg_projectId"));
5247 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/locations/"));
5248 pathOffset += 11;
5249 index = path.indexOf("/jobs", pathOffset);
5250 unittest.expect(index >= 0, unittest.isTrue);
5251 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5252 pathOffset = index;
5253 unittest.expect(subPart, unittest.equals("$arg_location"));
5254 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ als("/jobs"));
5255 pathOffset += 5;
5256
5257 var query = (req.url).query;
5258 var queryOffset = 0;
5259 var queryMap = {};
5260 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5261 parseBool(n) {
5262 if (n == "true") return true;
5263 if (n == "false") return false;
5264 if (n == null) return null;
5265 throw new core.ArgumentError("Invalid boolean: $n");
5266 }
5267 if (query.length > 0) {
5268 for (var part in query.split("&")) {
5269 var keyvalue = part.split("=");
5270 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5271 }
5272 }
5273 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
5274 unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_repl aceJobId));
5275
5276
5277 var h = {
5278 "content-type" : "application/json; charset=utf-8",
5279 };
5280 var resp = convert.JSON.encode(buildJob());
5281 return new async.Future.value(stringResponse(200, h, resp));
5282 }), true);
5283 res.create(arg_request, arg_projectId, arg_location, view: arg_view, repla ceJobId: arg_replaceJobId).then(unittest.expectAsync(((api.Job response) {
5284 checkJob(response);
5285 })));
5286 });
5287
5288 unittest.test("method--get", () {
5289
5290 var mock = new HttpServerMock();
5291 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje cts.locations.jobs;
5292 var arg_projectId = "foo";
5293 var arg_location = "foo";
5294 var arg_jobId = "foo";
5295 var arg_view = "foo";
5296 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5297 var path = (req.url).path;
5298 var pathOffset = 0;
5299 var index;
5300 var subPart;
5301 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5302 pathOffset += 1;
5303 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/"));
5304 pathOffset += 14;
5305 index = path.indexOf("/locations/", pathOffset);
5306 unittest.expect(index >= 0, unittest.isTrue);
5307 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5308 pathOffset = index;
5309 unittest.expect(subPart, unittest.equals("$arg_projectId"));
5310 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/locations/"));
5311 pathOffset += 11;
5312 index = path.indexOf("/jobs/", pathOffset);
5313 unittest.expect(index >= 0, unittest.isTrue);
5314 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5315 pathOffset = index;
5316 unittest.expect(subPart, unittest.equals("$arg_location"));
5317 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("/jobs/"));
5318 pathOffset += 6;
5319 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
5320 pathOffset = path.length;
5321 unittest.expect(subPart, unittest.equals("$arg_jobId"));
5322
5323 var query = (req.url).query;
5324 var queryOffset = 0;
5325 var queryMap = {};
5326 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5327 parseBool(n) {
5328 if (n == "true") return true;
5329 if (n == "false") return false;
5330 if (n == null) return null;
5331 throw new core.ArgumentError("Invalid boolean: $n");
5332 }
5333 if (query.length > 0) {
5334 for (var part in query.split("&")) {
5335 var keyvalue = part.split("=");
5336 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5337 }
5338 }
5339 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
5340
5341
5342 var h = {
5343 "content-type" : "application/json; charset=utf-8",
5344 };
5345 var resp = convert.JSON.encode(buildJob());
5346 return new async.Future.value(stringResponse(200, h, resp));
5347 }), true);
5348 res.get(arg_projectId, arg_location, arg_jobId, view: arg_view).then(unitt est.expectAsync(((api.Job response) {
5349 checkJob(response);
5350 })));
5351 });
5352
5353 unittest.test("method--getMetrics", () {
5354
5355 var mock = new HttpServerMock();
5356 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje cts.locations.jobs;
5357 var arg_projectId = "foo";
5358 var arg_location = "foo";
5359 var arg_jobId = "foo";
5360 var arg_startTime = "foo";
5361 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5362 var path = (req.url).path;
5363 var pathOffset = 0;
5364 var index;
5365 var subPart;
5366 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5367 pathOffset += 1;
5368 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/"));
5369 pathOffset += 14;
5370 index = path.indexOf("/locations/", pathOffset);
5371 unittest.expect(index >= 0, unittest.isTrue);
5372 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5373 pathOffset = index;
5374 unittest.expect(subPart, unittest.equals("$arg_projectId"));
5375 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/locations/"));
5376 pathOffset += 11;
5377 index = path.indexOf("/jobs/", pathOffset);
5378 unittest.expect(index >= 0, unittest.isTrue);
5379 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5380 pathOffset = index;
5381 unittest.expect(subPart, unittest.equals("$arg_location"));
5382 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("/jobs/"));
5383 pathOffset += 6;
5384 index = path.indexOf("/metrics", pathOffset);
5385 unittest.expect(index >= 0, unittest.isTrue);
5386 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5387 pathOffset = index;
5388 unittest.expect(subPart, unittest.equals("$arg_jobId"));
5389 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/metrics"));
5390 pathOffset += 8;
5391
5392 var query = (req.url).query;
5393 var queryOffset = 0;
5394 var queryMap = {};
5395 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5396 parseBool(n) {
5397 if (n == "true") return true;
5398 if (n == "false") return false;
5399 if (n == null) return null;
5400 throw new core.ArgumentError("Invalid boolean: $n");
5401 }
5402 if (query.length > 0) {
5403 for (var part in query.split("&")) {
5404 var keyvalue = part.split("=");
5405 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5406 }
5407 }
5408 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi me));
5409
5410
5411 var h = {
5412 "content-type" : "application/json; charset=utf-8",
5413 };
5414 var resp = convert.JSON.encode(buildJobMetrics());
5415 return new async.Future.value(stringResponse(200, h, resp));
5416 }), true);
5417 res.getMetrics(arg_projectId, arg_location, arg_jobId, startTime: arg_star tTime).then(unittest.expectAsync(((api.JobMetrics response) {
5418 checkJobMetrics(response);
5419 })));
5420 });
5421
5422 unittest.test("method--list", () {
5423
5424 var mock = new HttpServerMock();
5425 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje cts.locations.jobs;
5426 var arg_projectId = "foo";
5427 var arg_location = "foo";
5428 var arg_filter = "foo";
5429 var arg_view = "foo";
5430 var arg_pageSize = 42;
5431 var arg_pageToken = "foo";
5432 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5433 var path = (req.url).path;
5434 var pathOffset = 0;
5435 var index;
5436 var subPart;
5437 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5438 pathOffset += 1;
5439 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/"));
5440 pathOffset += 14;
5441 index = path.indexOf("/locations/", pathOffset);
5442 unittest.expect(index >= 0, unittest.isTrue);
5443 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5444 pathOffset = index;
5445 unittest.expect(subPart, unittest.equals("$arg_projectId"));
5446 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/locations/"));
5447 pathOffset += 11;
5448 index = path.indexOf("/jobs", pathOffset);
5449 unittest.expect(index >= 0, unittest.isTrue);
5450 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5451 pathOffset = index;
5452 unittest.expect(subPart, unittest.equals("$arg_location"));
5453 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ als("/jobs"));
5454 pathOffset += 5;
5455
5456 var query = (req.url).query;
5457 var queryOffset = 0;
5458 var queryMap = {};
5459 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5460 parseBool(n) {
5461 if (n == "true") return true;
5462 if (n == "false") return false;
5463 if (n == null) return null;
5464 throw new core.ArgumentError("Invalid boolean: $n");
5465 }
5466 if (query.length > 0) {
5467 for (var part in query.split("&")) {
5468 var keyvalue = part.split("=");
5469 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5470 }
5471 }
5472 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
5473 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
5474 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
5475 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
5476
5477
5478 var h = {
5479 "content-type" : "application/json; charset=utf-8",
5480 };
5481 var resp = convert.JSON.encode(buildListJobsResponse());
5482 return new async.Future.value(stringResponse(200, h, resp));
5483 }), true);
5484 res.list(arg_projectId, arg_location, filter: arg_filter, view: arg_view, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((ap i.ListJobsResponse response) {
5485 checkListJobsResponse(response);
5486 })));
5487 });
5488
5489 unittest.test("method--update", () {
5490
5491 var mock = new HttpServerMock();
5492 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje cts.locations.jobs;
5493 var arg_request = buildJob();
5494 var arg_projectId = "foo";
5495 var arg_location = "foo";
5496 var arg_jobId = "foo";
5497 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5498 var obj = new api.Job.fromJson(json);
5499 checkJob(obj);
5500
5501 var path = (req.url).path;
5502 var pathOffset = 0;
5503 var index;
5504 var subPart;
5505 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5506 pathOffset += 1;
5507 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/"));
5508 pathOffset += 14;
5509 index = path.indexOf("/locations/", pathOffset);
5510 unittest.expect(index >= 0, unittest.isTrue);
5511 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5512 pathOffset = index;
5513 unittest.expect(subPart, unittest.equals("$arg_projectId"));
5514 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/locations/"));
5515 pathOffset += 11;
5516 index = path.indexOf("/jobs/", pathOffset);
5517 unittest.expect(index >= 0, unittest.isTrue);
5518 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5519 pathOffset = index;
5520 unittest.expect(subPart, unittest.equals("$arg_location"));
5521 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("/jobs/"));
5522 pathOffset += 6;
5523 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
5524 pathOffset = path.length;
5525 unittest.expect(subPart, unittest.equals("$arg_jobId"));
5526
5527 var query = (req.url).query;
5528 var queryOffset = 0;
5529 var queryMap = {};
5530 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5531 parseBool(n) {
5532 if (n == "true") return true;
5533 if (n == "false") return false;
5534 if (n == null) return null;
5535 throw new core.ArgumentError("Invalid boolean: $n");
5536 }
5537 if (query.length > 0) {
5538 for (var part in query.split("&")) {
5539 var keyvalue = part.split("=");
5540 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5541 }
5542 }
5543
5544
5545 var h = {
5546 "content-type" : "application/json; charset=utf-8",
5547 };
5548 var resp = convert.JSON.encode(buildJob());
5549 return new async.Future.value(stringResponse(200, h, resp));
5550 }), true);
5551 res.update(arg_request, arg_projectId, arg_location, arg_jobId).then(unitt est.expectAsync(((api.Job response) {
5552 checkJob(response);
5553 })));
5554 });
5555
5556 });
5557
5558
5559 unittest.group("resource-ProjectsLocationsJobsMessagesResourceApi", () {
5560 unittest.test("method--list", () {
5561
5562 var mock = new HttpServerMock();
5563 api.ProjectsLocationsJobsMessagesResourceApi res = new api.DataflowApi(moc k).projects.locations.jobs.messages;
5564 var arg_projectId = "foo";
5565 var arg_location = "foo";
5566 var arg_jobId = "foo";
5567 var arg_minimumImportance = "foo";
5568 var arg_pageSize = 42;
5569 var arg_pageToken = "foo";
5570 var arg_startTime = "foo";
5571 var arg_endTime = "foo";
5572 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5573 var path = (req.url).path;
5574 var pathOffset = 0;
5575 var index;
5576 var subPart;
5577 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5578 pathOffset += 1;
5579 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/"));
5580 pathOffset += 14;
5581 index = path.indexOf("/locations/", pathOffset);
5582 unittest.expect(index >= 0, unittest.isTrue);
5583 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5584 pathOffset = index;
5585 unittest.expect(subPart, unittest.equals("$arg_projectId"));
5586 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/locations/"));
5587 pathOffset += 11;
5588 index = path.indexOf("/jobs/", pathOffset);
5589 unittest.expect(index >= 0, unittest.isTrue);
5590 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5591 pathOffset = index;
5592 unittest.expect(subPart, unittest.equals("$arg_location"));
5593 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("/jobs/"));
5594 pathOffset += 6;
5595 index = path.indexOf("/messages", pathOffset);
5596 unittest.expect(index >= 0, unittest.isTrue);
5597 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5598 pathOffset = index;
5599 unittest.expect(subPart, unittest.equals("$arg_jobId"));
5600 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/messages"));
5601 pathOffset += 9;
5602
5603 var query = (req.url).query;
5604 var queryOffset = 0;
5605 var queryMap = {};
5606 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5607 parseBool(n) {
5608 if (n == "true") return true;
5609 if (n == "false") return false;
5610 if (n == null) return null;
5611 throw new core.ArgumentError("Invalid boolean: $n");
5612 }
5613 if (query.length > 0) {
5614 for (var part in query.split("&")) {
5615 var keyvalue = part.split("=");
5616 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5617 }
5618 }
5619 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg _minimumImportance));
5620 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
5621 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
5622 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi me));
5623 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)) ;
5624
5625
5626 var h = {
5627 "content-type" : "application/json; charset=utf-8",
5628 };
5629 var resp = convert.JSON.encode(buildListJobMessagesResponse());
5630 return new async.Future.value(stringResponse(200, h, resp));
5631 }), true);
5632 res.list(arg_projectId, arg_location, arg_jobId, minimumImportance: arg_mi nimumImportance, pageSize: arg_pageSize, pageToken: arg_pageToken, startTime: ar g_startTime, endTime: arg_endTime).then(unittest.expectAsync(((api.ListJobMessag esResponse response) {
5633 checkListJobMessagesResponse(response);
5634 })));
5635 });
5636
5637 });
5638
5639
5640 unittest.group("resource-ProjectsLocationsJobsWorkItemsResourceApi", () {
5641 unittest.test("method--lease", () {
5642
5643 var mock = new HttpServerMock();
5644 api.ProjectsLocationsJobsWorkItemsResourceApi res = new api.DataflowApi(mo ck).projects.locations.jobs.workItems;
5645 var arg_request = buildLeaseWorkItemRequest();
5646 var arg_projectId = "foo";
5647 var arg_location = "foo";
5648 var arg_jobId = "foo";
5649 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5650 var obj = new api.LeaseWorkItemRequest.fromJson(json);
5651 checkLeaseWorkItemRequest(obj);
5652
5653 var path = (req.url).path;
5654 var pathOffset = 0;
5655 var index;
5656 var subPart;
5657 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5658 pathOffset += 1;
5659 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/"));
5660 pathOffset += 14;
5661 index = path.indexOf("/locations/", pathOffset);
5662 unittest.expect(index >= 0, unittest.isTrue);
5663 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5664 pathOffset = index;
5665 unittest.expect(subPart, unittest.equals("$arg_projectId"));
5666 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/locations/"));
5667 pathOffset += 11;
5668 index = path.indexOf("/jobs/", pathOffset);
5669 unittest.expect(index >= 0, unittest.isTrue);
5670 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5671 pathOffset = index;
5672 unittest.expect(subPart, unittest.equals("$arg_location"));
5673 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("/jobs/"));
5674 pathOffset += 6;
5675 index = path.indexOf("/workItems:lease", pathOffset);
5676 unittest.expect(index >= 0, unittest.isTrue);
5677 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5678 pathOffset = index;
5679 unittest.expect(subPart, unittest.equals("$arg_jobId"));
5680 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("/workItems:lease"));
5681 pathOffset += 16;
5682
5683 var query = (req.url).query;
5684 var queryOffset = 0;
5685 var queryMap = {};
5686 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5687 parseBool(n) {
5688 if (n == "true") return true;
5689 if (n == "false") return false;
5690 if (n == null) return null;
5691 throw new core.ArgumentError("Invalid boolean: $n");
5692 }
5693 if (query.length > 0) {
5694 for (var part in query.split("&")) {
5695 var keyvalue = part.split("=");
5696 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5697 }
5698 }
5699
5700
5701 var h = {
5702 "content-type" : "application/json; charset=utf-8",
5703 };
5704 var resp = convert.JSON.encode(buildLeaseWorkItemResponse());
5705 return new async.Future.value(stringResponse(200, h, resp));
5706 }), true);
5707 res.lease(arg_request, arg_projectId, arg_location, arg_jobId).then(unitte st.expectAsync(((api.LeaseWorkItemResponse response) {
5708 checkLeaseWorkItemResponse(response);
5709 })));
5710 });
5711
5712 unittest.test("method--reportStatus", () {
5713
5714 var mock = new HttpServerMock();
5715 api.ProjectsLocationsJobsWorkItemsResourceApi res = new api.DataflowApi(mo ck).projects.locations.jobs.workItems;
5716 var arg_request = buildReportWorkItemStatusRequest();
5717 var arg_projectId = "foo";
5718 var arg_location = "foo";
5719 var arg_jobId = "foo";
5720 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5721 var obj = new api.ReportWorkItemStatusRequest.fromJson(json);
5722 checkReportWorkItemStatusRequest(obj);
5723
5724 var path = (req.url).path;
5725 var pathOffset = 0;
5726 var index;
5727 var subPart;
5728 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5729 pathOffset += 1;
5730 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("v1b3/projects/"));
5731 pathOffset += 14;
5732 index = path.indexOf("/locations/", pathOffset);
5733 unittest.expect(index >= 0, unittest.isTrue);
5734 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5735 pathOffset = index;
5736 unittest.expect(subPart, unittest.equals("$arg_projectId"));
5737 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/locations/"));
5738 pathOffset += 11;
5739 index = path.indexOf("/jobs/", pathOffset);
5740 unittest.expect(index >= 0, unittest.isTrue);
5741 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5742 pathOffset = index;
5743 unittest.expect(subPart, unittest.equals("$arg_location"));
5744 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ als("/jobs/"));
5745 pathOffset += 6;
5746 index = path.indexOf("/workItems:reportStatus", pathOffset);
5747 unittest.expect(index >= 0, unittest.isTrue);
5748 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5749 pathOffset = index;
5750 unittest.expect(subPart, unittest.equals("$arg_jobId"));
5751 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq uals("/workItems:reportStatus"));
5752 pathOffset += 23;
5753
5754 var query = (req.url).query;
5755 var queryOffset = 0;
5756 var queryMap = {};
5757 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5758 parseBool(n) {
5759 if (n == "true") return true;
5760 if (n == "false") return false;
5761 if (n == null) return null;
5762 throw new core.ArgumentError("Invalid boolean: $n");
5763 }
5764 if (query.length > 0) {
5765 for (var part in query.split("&")) {
5766 var keyvalue = part.split("=");
5767 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5768 }
5769 }
5770
5771
5772 var h = {
5773 "content-type" : "application/json; charset=utf-8",
5774 };
5775 var resp = convert.JSON.encode(buildReportWorkItemStatusResponse());
5776 return new async.Future.value(stringResponse(200, h, resp));
5777 }), true);
5778 res.reportStatus(arg_request, arg_projectId, arg_location, arg_jobId).then (unittest.expectAsync(((api.ReportWorkItemStatusResponse response) {
5779 checkReportWorkItemStatusResponse(response);
5780 })));
5781 });
5782
5783 });
5784
5785
5157 unittest.group("resource-ProjectsTemplatesResourceApi", () { 5786 unittest.group("resource-ProjectsTemplatesResourceApi", () {
5158 unittest.test("method--create", () { 5787 unittest.test("method--create", () {
5159 5788
5160 var mock = new HttpServerMock(); 5789 var mock = new HttpServerMock();
5161 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects. templates; 5790 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects. templates;
5162 var arg_request = buildCreateJobFromTemplateRequest(); 5791 var arg_request = buildCreateJobFromTemplateRequest();
5163 var arg_projectId = "foo"; 5792 var arg_projectId = "foo";
5164 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5793 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5165 var obj = new api.CreateJobFromTemplateRequest.fromJson(json); 5794 var obj = new api.CreateJobFromTemplateRequest.fromJson(json);
5166 checkCreateJobFromTemplateRequest(obj); 5795 checkCreateJobFromTemplateRequest(obj);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
5208 res.create(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job response) { 5837 res.create(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job response) {
5209 checkJob(response); 5838 checkJob(response);
5210 }))); 5839 })));
5211 }); 5840 });
5212 5841
5213 }); 5842 });
5214 5843
5215 5844
5216 } 5845 }
5217 5846
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698