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

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

Issue 1078053002: Roll of googleapis as of 4/7/2015. (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis_beta.dataflow.v1beta3.test; 1 library googleapis_beta.dataflow.v1beta3.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;
11 import 'package:googleapis_beta/common/common.dart' as common;
12 import 'package:googleapis_beta/src/common_internal.dart' as common_internal;
13 import '../common/common_internal_test.dart' as common_test;
14 11
15 import 'package:googleapis_beta/dataflow/v1beta3.dart' as api; 12 import 'package:googleapis_beta/dataflow/v1beta3.dart' as api;
16 13
14 class HttpServerMock extends http.BaseClient {
15 core.Function _callback;
16 core.bool _expectJson;
17 17
18 void register(core.Function callback, core.bool expectJson) {
19 _callback = callback;
20 _expectJson = expectJson;
21 }
22
23 async.Future<http.StreamedResponse> send(http.BaseRequest request) {
24 if (_expectJson) {
25 return request.finalize()
26 .transform(convert.UTF8.decoder)
27 .join('')
28 .then((core.String jsonString) {
29 if (jsonString.isEmpty) {
30 return _callback(request, null);
31 } else {
32 return _callback(request, convert.JSON.decode(jsonString));
33 }
34 });
35 } else {
36 var stream = request.finalize();
37 if (stream == null) {
38 return _callback(request, []);
39 } else {
40 return stream.toBytes().then((data) {
41 return _callback(request, data);
42 });
43 }
44 }
45 }
46 }
47
48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers);
52 }
18 53
19 core.int buildCounterApproximateProgress = 0; 54 core.int buildCounterApproximateProgress = 0;
20 buildApproximateProgress() { 55 buildApproximateProgress() {
21 var o = new api.ApproximateProgress(); 56 var o = new api.ApproximateProgress();
22 buildCounterApproximateProgress++; 57 buildCounterApproximateProgress++;
23 if (buildCounterApproximateProgress < 3) { 58 if (buildCounterApproximateProgress < 3) {
24 o.percentComplete = 42.0; 59 o.percentComplete = 42.0;
25 o.position = buildPosition(); 60 o.position = buildPosition();
26 o.remainingTime = "foo"; 61 o.remainingTime = "foo";
27 } 62 }
(...skipping 25 matching lines...) Expand all
53 88
54 checkAutoscalingSettings(api.AutoscalingSettings o) { 89 checkAutoscalingSettings(api.AutoscalingSettings o) {
55 buildCounterAutoscalingSettings++; 90 buildCounterAutoscalingSettings++;
56 if (buildCounterAutoscalingSettings < 3) { 91 if (buildCounterAutoscalingSettings < 3) {
57 unittest.expect(o.algorithm, unittest.equals('foo')); 92 unittest.expect(o.algorithm, unittest.equals('foo'));
58 unittest.expect(o.maxNumWorkers, unittest.equals(42)); 93 unittest.expect(o.maxNumWorkers, unittest.equals(42));
59 } 94 }
60 buildCounterAutoscalingSettings--; 95 buildCounterAutoscalingSettings--;
61 } 96 }
62 97
63 buildUnnamed1776() { 98 buildUnnamed1492() {
64 var o = new core.List<api.StreamLocation>(); 99 var o = new core.List<api.StreamLocation>();
65 o.add(buildStreamLocation()); 100 o.add(buildStreamLocation());
66 o.add(buildStreamLocation()); 101 o.add(buildStreamLocation());
67 return o; 102 return o;
68 } 103 }
69 104
70 checkUnnamed1776(core.List<api.StreamLocation> o) { 105 checkUnnamed1492(core.List<api.StreamLocation> o) {
71 unittest.expect(o, unittest.hasLength(2)); 106 unittest.expect(o, unittest.hasLength(2));
72 checkStreamLocation(o[0]); 107 checkStreamLocation(o[0]);
73 checkStreamLocation(o[1]); 108 checkStreamLocation(o[1]);
74 } 109 }
75 110
76 buildUnnamed1777() { 111 buildUnnamed1493() {
77 var o = new core.List<api.KeyRangeLocation>(); 112 var o = new core.List<api.KeyRangeLocation>();
78 o.add(buildKeyRangeLocation()); 113 o.add(buildKeyRangeLocation());
79 o.add(buildKeyRangeLocation()); 114 o.add(buildKeyRangeLocation());
80 return o; 115 return o;
81 } 116 }
82 117
83 checkUnnamed1777(core.List<api.KeyRangeLocation> o) { 118 checkUnnamed1493(core.List<api.KeyRangeLocation> o) {
84 unittest.expect(o, unittest.hasLength(2)); 119 unittest.expect(o, unittest.hasLength(2));
85 checkKeyRangeLocation(o[0]); 120 checkKeyRangeLocation(o[0]);
86 checkKeyRangeLocation(o[1]); 121 checkKeyRangeLocation(o[1]);
87 } 122 }
88 123
89 buildUnnamed1778() { 124 buildUnnamed1494() {
90 var o = new core.List<api.StreamLocation>(); 125 var o = new core.List<api.StreamLocation>();
91 o.add(buildStreamLocation()); 126 o.add(buildStreamLocation());
92 o.add(buildStreamLocation()); 127 o.add(buildStreamLocation());
93 return o; 128 return o;
94 } 129 }
95 130
96 checkUnnamed1778(core.List<api.StreamLocation> o) { 131 checkUnnamed1494(core.List<api.StreamLocation> o) {
97 unittest.expect(o, unittest.hasLength(2)); 132 unittest.expect(o, unittest.hasLength(2));
98 checkStreamLocation(o[0]); 133 checkStreamLocation(o[0]);
99 checkStreamLocation(o[1]); 134 checkStreamLocation(o[1]);
100 } 135 }
101 136
102 core.int buildCounterComputationTopology = 0; 137 core.int buildCounterComputationTopology = 0;
103 buildComputationTopology() { 138 buildComputationTopology() {
104 var o = new api.ComputationTopology(); 139 var o = new api.ComputationTopology();
105 buildCounterComputationTopology++; 140 buildCounterComputationTopology++;
106 if (buildCounterComputationTopology < 3) { 141 if (buildCounterComputationTopology < 3) {
107 o.computationId = "foo"; 142 o.computationId = "foo";
108 o.inputs = buildUnnamed1776(); 143 o.inputs = buildUnnamed1492();
109 o.keyRanges = buildUnnamed1777(); 144 o.keyRanges = buildUnnamed1493();
110 o.outputs = buildUnnamed1778(); 145 o.outputs = buildUnnamed1494();
111 } 146 }
112 buildCounterComputationTopology--; 147 buildCounterComputationTopology--;
113 return o; 148 return o;
114 } 149 }
115 150
116 checkComputationTopology(api.ComputationTopology o) { 151 checkComputationTopology(api.ComputationTopology o) {
117 buildCounterComputationTopology++; 152 buildCounterComputationTopology++;
118 if (buildCounterComputationTopology < 3) { 153 if (buildCounterComputationTopology < 3) {
119 unittest.expect(o.computationId, unittest.equals('foo')); 154 unittest.expect(o.computationId, unittest.equals('foo'));
120 checkUnnamed1776(o.inputs); 155 checkUnnamed1492(o.inputs);
121 checkUnnamed1777(o.keyRanges); 156 checkUnnamed1493(o.keyRanges);
122 checkUnnamed1778(o.outputs); 157 checkUnnamed1494(o.outputs);
123 } 158 }
124 buildCounterComputationTopology--; 159 buildCounterComputationTopology--;
125 } 160 }
126 161
127 buildUnnamed1779() { 162 buildUnnamed1495() {
128 var o = new core.List<core.String>(); 163 var o = new core.List<core.String>();
129 o.add("foo"); 164 o.add("foo");
130 o.add("foo"); 165 o.add("foo");
131 return o; 166 return o;
132 } 167 }
133 168
134 checkUnnamed1779(core.List<core.String> o) { 169 checkUnnamed1495(core.List<core.String> o) {
135 unittest.expect(o, unittest.hasLength(2)); 170 unittest.expect(o, unittest.hasLength(2));
136 unittest.expect(o[0], unittest.equals('foo')); 171 unittest.expect(o[0], unittest.equals('foo'));
137 unittest.expect(o[1], unittest.equals('foo')); 172 unittest.expect(o[1], unittest.equals('foo'));
138 } 173 }
139 174
140 core.int buildCounterDataDiskAssignment = 0; 175 core.int buildCounterDataDiskAssignment = 0;
141 buildDataDiskAssignment() { 176 buildDataDiskAssignment() {
142 var o = new api.DataDiskAssignment(); 177 var o = new api.DataDiskAssignment();
143 buildCounterDataDiskAssignment++; 178 buildCounterDataDiskAssignment++;
144 if (buildCounterDataDiskAssignment < 3) { 179 if (buildCounterDataDiskAssignment < 3) {
145 o.dataDisks = buildUnnamed1779(); 180 o.dataDisks = buildUnnamed1495();
146 o.vmInstance = "foo"; 181 o.vmInstance = "foo";
147 } 182 }
148 buildCounterDataDiskAssignment--; 183 buildCounterDataDiskAssignment--;
149 return o; 184 return o;
150 } 185 }
151 186
152 checkDataDiskAssignment(api.DataDiskAssignment o) { 187 checkDataDiskAssignment(api.DataDiskAssignment o) {
153 buildCounterDataDiskAssignment++; 188 buildCounterDataDiskAssignment++;
154 if (buildCounterDataDiskAssignment < 3) { 189 if (buildCounterDataDiskAssignment < 3) {
155 checkUnnamed1779(o.dataDisks); 190 checkUnnamed1495(o.dataDisks);
156 unittest.expect(o.vmInstance, unittest.equals('foo')); 191 unittest.expect(o.vmInstance, unittest.equals('foo'));
157 } 192 }
158 buildCounterDataDiskAssignment--; 193 buildCounterDataDiskAssignment--;
159 } 194 }
160 195
196 core.int buildCounterDerivedSource = 0;
197 buildDerivedSource() {
198 var o = new api.DerivedSource();
199 buildCounterDerivedSource++;
200 if (buildCounterDerivedSource < 3) {
201 o.derivationMode = "foo";
202 o.source = buildSource();
203 }
204 buildCounterDerivedSource--;
205 return o;
206 }
207
208 checkDerivedSource(api.DerivedSource o) {
209 buildCounterDerivedSource++;
210 if (buildCounterDerivedSource < 3) {
211 unittest.expect(o.derivationMode, unittest.equals('foo'));
212 checkSource(o.source);
213 }
214 buildCounterDerivedSource--;
215 }
216
161 core.int buildCounterDisk = 0; 217 core.int buildCounterDisk = 0;
162 buildDisk() { 218 buildDisk() {
163 var o = new api.Disk(); 219 var o = new api.Disk();
164 buildCounterDisk++; 220 buildCounterDisk++;
165 if (buildCounterDisk < 3) { 221 if (buildCounterDisk < 3) {
166 o.diskType = "foo"; 222 o.diskType = "foo";
167 o.mountPoint = "foo"; 223 o.mountPoint = "foo";
168 o.sizeGb = 42; 224 o.sizeGb = 42;
169 } 225 }
170 buildCounterDisk--; 226 buildCounterDisk--;
171 return o; 227 return o;
172 } 228 }
173 229
174 checkDisk(api.Disk o) { 230 checkDisk(api.Disk o) {
175 buildCounterDisk++; 231 buildCounterDisk++;
176 if (buildCounterDisk < 3) { 232 if (buildCounterDisk < 3) {
177 unittest.expect(o.diskType, unittest.equals('foo')); 233 unittest.expect(o.diskType, unittest.equals('foo'));
178 unittest.expect(o.mountPoint, unittest.equals('foo')); 234 unittest.expect(o.mountPoint, unittest.equals('foo'));
179 unittest.expect(o.sizeGb, unittest.equals(42)); 235 unittest.expect(o.sizeGb, unittest.equals(42));
180 } 236 }
181 buildCounterDisk--; 237 buildCounterDisk--;
182 } 238 }
183 239
184 buildUnnamed1780() { 240 core.int buildCounterDynamicSourceSplit = 0;
241 buildDynamicSourceSplit() {
242 var o = new api.DynamicSourceSplit();
243 buildCounterDynamicSourceSplit++;
244 if (buildCounterDynamicSourceSplit < 3) {
245 o.primary = buildDerivedSource();
246 o.residual = buildDerivedSource();
247 }
248 buildCounterDynamicSourceSplit--;
249 return o;
250 }
251
252 checkDynamicSourceSplit(api.DynamicSourceSplit o) {
253 buildCounterDynamicSourceSplit++;
254 if (buildCounterDynamicSourceSplit < 3) {
255 checkDerivedSource(o.primary);
256 checkDerivedSource(o.residual);
257 }
258 buildCounterDynamicSourceSplit--;
259 }
260
261 buildUnnamed1496() {
185 var o = new core.List<core.String>(); 262 var o = new core.List<core.String>();
186 o.add("foo"); 263 o.add("foo");
187 o.add("foo"); 264 o.add("foo");
188 return o; 265 return o;
189 } 266 }
190 267
191 checkUnnamed1780(core.List<core.String> o) { 268 checkUnnamed1496(core.List<core.String> o) {
192 unittest.expect(o, unittest.hasLength(2)); 269 unittest.expect(o, unittest.hasLength(2));
193 unittest.expect(o[0], unittest.equals('foo')); 270 unittest.expect(o[0], unittest.equals('foo'));
194 unittest.expect(o[1], unittest.equals('foo')); 271 unittest.expect(o[1], unittest.equals('foo'));
195 } 272 }
196 273
197 buildUnnamed1781() { 274 buildUnnamed1497() {
198 var o = new core.Map<core.String, core.Object>(); 275 var o = new core.Map<core.String, core.Object>();
199 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 276 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
200 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 277 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
201 return o; 278 return o;
202 } 279 }
203 280
204 checkUnnamed1781(core.Map<core.String, core.Object> o) { 281 checkUnnamed1497(core.Map<core.String, core.Object> o) {
205 unittest.expect(o, unittest.hasLength(2)); 282 unittest.expect(o, unittest.hasLength(2));
206 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); 283 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
207 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); 284 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
208 } 285 }
209 286
210 buildUnnamed1782() { 287 buildUnnamed1498() {
211 var o = new core.Map<core.String, core.Object>(); 288 var o = new core.Map<core.String, core.Object>();
212 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 289 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
213 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 290 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
214 return o; 291 return o;
215 } 292 }
216 293
217 checkUnnamed1782(core.Map<core.String, core.Object> o) { 294 checkUnnamed1498(core.Map<core.String, core.Object> o) {
218 unittest.expect(o, unittest.hasLength(2)); 295 unittest.expect(o, unittest.hasLength(2));
219 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); 296 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo'));
220 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); 297 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo'));
221 } 298 }
222 299
223 buildUnnamed1783() { 300 buildUnnamed1499() {
224 var o = new core.Map<core.String, core.Object>(); 301 var o = new core.Map<core.String, core.Object>();
225 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 302 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
226 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 303 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
227 return o; 304 return o;
228 } 305 }
229 306
230 checkUnnamed1783(core.Map<core.String, core.Object> o) { 307 checkUnnamed1499(core.Map<core.String, core.Object> o) {
231 unittest.expect(o, unittest.hasLength(2)); 308 unittest.expect(o, unittest.hasLength(2));
232 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); 309 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
233 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); 310 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo'));
234 } 311 }
235 312
236 buildUnnamed1784() { 313 buildUnnamed1500() {
237 var o = new core.List<api.WorkerPool>(); 314 var o = new core.List<api.WorkerPool>();
238 o.add(buildWorkerPool()); 315 o.add(buildWorkerPool());
239 o.add(buildWorkerPool()); 316 o.add(buildWorkerPool());
240 return o; 317 return o;
241 } 318 }
242 319
243 checkUnnamed1784(core.List<api.WorkerPool> o) { 320 checkUnnamed1500(core.List<api.WorkerPool> o) {
244 unittest.expect(o, unittest.hasLength(2)); 321 unittest.expect(o, unittest.hasLength(2));
245 checkWorkerPool(o[0]); 322 checkWorkerPool(o[0]);
246 checkWorkerPool(o[1]); 323 checkWorkerPool(o[1]);
247 } 324 }
248 325
249 core.int buildCounterEnvironment = 0; 326 core.int buildCounterEnvironment = 0;
250 buildEnvironment() { 327 buildEnvironment() {
251 var o = new api.Environment(); 328 var o = new api.Environment();
252 buildCounterEnvironment++; 329 buildCounterEnvironment++;
253 if (buildCounterEnvironment < 3) { 330 if (buildCounterEnvironment < 3) {
254 o.clusterManagerApiService = "foo"; 331 o.clusterManagerApiService = "foo";
255 o.dataset = "foo"; 332 o.dataset = "foo";
256 o.experiments = buildUnnamed1780(); 333 o.experiments = buildUnnamed1496();
257 o.sdkPipelineOptions = buildUnnamed1781(); 334 o.sdkPipelineOptions = buildUnnamed1497();
258 o.tempStoragePrefix = "foo"; 335 o.tempStoragePrefix = "foo";
259 o.userAgent = buildUnnamed1782(); 336 o.userAgent = buildUnnamed1498();
260 o.version = buildUnnamed1783(); 337 o.version = buildUnnamed1499();
261 o.workerPools = buildUnnamed1784(); 338 o.workerPools = buildUnnamed1500();
262 } 339 }
263 buildCounterEnvironment--; 340 buildCounterEnvironment--;
264 return o; 341 return o;
265 } 342 }
266 343
267 checkEnvironment(api.Environment o) { 344 checkEnvironment(api.Environment o) {
268 buildCounterEnvironment++; 345 buildCounterEnvironment++;
269 if (buildCounterEnvironment < 3) { 346 if (buildCounterEnvironment < 3) {
270 unittest.expect(o.clusterManagerApiService, unittest.equals('foo')); 347 unittest.expect(o.clusterManagerApiService, unittest.equals('foo'));
271 unittest.expect(o.dataset, unittest.equals('foo')); 348 unittest.expect(o.dataset, unittest.equals('foo'));
272 checkUnnamed1780(o.experiments); 349 checkUnnamed1496(o.experiments);
273 checkUnnamed1781(o.sdkPipelineOptions); 350 checkUnnamed1497(o.sdkPipelineOptions);
274 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); 351 unittest.expect(o.tempStoragePrefix, unittest.equals('foo'));
275 checkUnnamed1782(o.userAgent); 352 checkUnnamed1498(o.userAgent);
276 checkUnnamed1783(o.version); 353 checkUnnamed1499(o.version);
277 checkUnnamed1784(o.workerPools); 354 checkUnnamed1500(o.workerPools);
278 } 355 }
279 buildCounterEnvironment--; 356 buildCounterEnvironment--;
280 } 357 }
281 358
282 buildUnnamed1785() { 359 buildUnnamed1501() {
283 var o = new core.List<api.InstructionInput>(); 360 var o = new core.List<api.InstructionInput>();
284 o.add(buildInstructionInput()); 361 o.add(buildInstructionInput());
285 o.add(buildInstructionInput()); 362 o.add(buildInstructionInput());
286 return o; 363 return o;
287 } 364 }
288 365
289 checkUnnamed1785(core.List<api.InstructionInput> o) { 366 checkUnnamed1501(core.List<api.InstructionInput> o) {
290 unittest.expect(o, unittest.hasLength(2)); 367 unittest.expect(o, unittest.hasLength(2));
291 checkInstructionInput(o[0]); 368 checkInstructionInput(o[0]);
292 checkInstructionInput(o[1]); 369 checkInstructionInput(o[1]);
293 } 370 }
294 371
295 core.int buildCounterFlattenInstruction = 0; 372 core.int buildCounterFlattenInstruction = 0;
296 buildFlattenInstruction() { 373 buildFlattenInstruction() {
297 var o = new api.FlattenInstruction(); 374 var o = new api.FlattenInstruction();
298 buildCounterFlattenInstruction++; 375 buildCounterFlattenInstruction++;
299 if (buildCounterFlattenInstruction < 3) { 376 if (buildCounterFlattenInstruction < 3) {
300 o.inputs = buildUnnamed1785(); 377 o.inputs = buildUnnamed1501();
301 } 378 }
302 buildCounterFlattenInstruction--; 379 buildCounterFlattenInstruction--;
303 return o; 380 return o;
304 } 381 }
305 382
306 checkFlattenInstruction(api.FlattenInstruction o) { 383 checkFlattenInstruction(api.FlattenInstruction o) {
307 buildCounterFlattenInstruction++; 384 buildCounterFlattenInstruction++;
308 if (buildCounterFlattenInstruction < 3) { 385 if (buildCounterFlattenInstruction < 3) {
309 checkUnnamed1785(o.inputs); 386 checkUnnamed1501(o.inputs);
310 } 387 }
311 buildCounterFlattenInstruction--; 388 buildCounterFlattenInstruction--;
312 } 389 }
313 390
314 core.int buildCounterInstructionInput = 0; 391 core.int buildCounterInstructionInput = 0;
315 buildInstructionInput() { 392 buildInstructionInput() {
316 var o = new api.InstructionInput(); 393 var o = new api.InstructionInput();
317 buildCounterInstructionInput++; 394 buildCounterInstructionInput++;
318 if (buildCounterInstructionInput < 3) { 395 if (buildCounterInstructionInput < 3) {
319 o.outputNum = 42; 396 o.outputNum = 42;
320 o.producerInstructionIndex = 42; 397 o.producerInstructionIndex = 42;
321 } 398 }
322 buildCounterInstructionInput--; 399 buildCounterInstructionInput--;
323 return o; 400 return o;
324 } 401 }
325 402
326 checkInstructionInput(api.InstructionInput o) { 403 checkInstructionInput(api.InstructionInput o) {
327 buildCounterInstructionInput++; 404 buildCounterInstructionInput++;
328 if (buildCounterInstructionInput < 3) { 405 if (buildCounterInstructionInput < 3) {
329 unittest.expect(o.outputNum, unittest.equals(42)); 406 unittest.expect(o.outputNum, unittest.equals(42));
330 unittest.expect(o.producerInstructionIndex, unittest.equals(42)); 407 unittest.expect(o.producerInstructionIndex, unittest.equals(42));
331 } 408 }
332 buildCounterInstructionInput--; 409 buildCounterInstructionInput--;
333 } 410 }
334 411
335 buildUnnamed1786() { 412 buildUnnamed1502() {
336 var o = new core.Map<core.String, core.Object>(); 413 var o = new core.Map<core.String, core.Object>();
337 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 414 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
338 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 415 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
339 return o; 416 return o;
340 } 417 }
341 418
342 checkUnnamed1786(core.Map<core.String, core.Object> o) { 419 checkUnnamed1502(core.Map<core.String, core.Object> o) {
343 unittest.expect(o, unittest.hasLength(2)); 420 unittest.expect(o, unittest.hasLength(2));
344 var casted7 = (o["x"]) 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')); 421 var casted7 = (o["x"]) 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'));
345 var casted8 = (o["y"]) 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')); 422 var casted8 = (o["y"]) 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'));
346 } 423 }
347 424
348 core.int buildCounterInstructionOutput = 0; 425 core.int buildCounterInstructionOutput = 0;
349 buildInstructionOutput() { 426 buildInstructionOutput() {
350 var o = new api.InstructionOutput(); 427 var o = new api.InstructionOutput();
351 buildCounterInstructionOutput++; 428 buildCounterInstructionOutput++;
352 if (buildCounterInstructionOutput < 3) { 429 if (buildCounterInstructionOutput < 3) {
353 o.codec = buildUnnamed1786(); 430 o.codec = buildUnnamed1502();
354 o.name = "foo"; 431 o.name = "foo";
355 } 432 }
356 buildCounterInstructionOutput--; 433 buildCounterInstructionOutput--;
357 return o; 434 return o;
358 } 435 }
359 436
360 checkInstructionOutput(api.InstructionOutput o) { 437 checkInstructionOutput(api.InstructionOutput o) {
361 buildCounterInstructionOutput++; 438 buildCounterInstructionOutput++;
362 if (buildCounterInstructionOutput < 3) { 439 if (buildCounterInstructionOutput < 3) {
363 checkUnnamed1786(o.codec); 440 checkUnnamed1502(o.codec);
364 unittest.expect(o.name, unittest.equals('foo')); 441 unittest.expect(o.name, unittest.equals('foo'));
365 } 442 }
366 buildCounterInstructionOutput--; 443 buildCounterInstructionOutput--;
367 } 444 }
368 445
369 buildUnnamed1787() { 446 buildUnnamed1503() {
370 var o = new core.List<api.Step>(); 447 var o = new core.List<api.Step>();
371 o.add(buildStep()); 448 o.add(buildStep());
372 o.add(buildStep()); 449 o.add(buildStep());
373 return o; 450 return o;
374 } 451 }
375 452
376 checkUnnamed1787(core.List<api.Step> o) { 453 checkUnnamed1503(core.List<api.Step> o) {
377 unittest.expect(o, unittest.hasLength(2)); 454 unittest.expect(o, unittest.hasLength(2));
378 checkStep(o[0]); 455 checkStep(o[0]);
379 checkStep(o[1]); 456 checkStep(o[1]);
380 } 457 }
381 458
382 core.int buildCounterJob = 0; 459 core.int buildCounterJob = 0;
383 buildJob() { 460 buildJob() {
384 var o = new api.Job(); 461 var o = new api.Job();
385 buildCounterJob++; 462 buildCounterJob++;
386 if (buildCounterJob < 3) { 463 if (buildCounterJob < 3) {
387 o.createTime = "foo"; 464 o.createTime = "foo";
388 o.currentState = "foo"; 465 o.currentState = "foo";
389 o.currentStateTime = "foo"; 466 o.currentStateTime = "foo";
390 o.environment = buildEnvironment(); 467 o.environment = buildEnvironment();
391 o.executionInfo = buildJobExecutionInfo(); 468 o.executionInfo = buildJobExecutionInfo();
392 o.id = "foo"; 469 o.id = "foo";
393 o.name = "foo"; 470 o.name = "foo";
394 o.projectId = "foo"; 471 o.projectId = "foo";
395 o.requestedState = "foo"; 472 o.requestedState = "foo";
396 o.steps = buildUnnamed1787(); 473 o.steps = buildUnnamed1503();
397 o.type = "foo"; 474 o.type = "foo";
398 } 475 }
399 buildCounterJob--; 476 buildCounterJob--;
400 return o; 477 return o;
401 } 478 }
402 479
403 checkJob(api.Job o) { 480 checkJob(api.Job o) {
404 buildCounterJob++; 481 buildCounterJob++;
405 if (buildCounterJob < 3) { 482 if (buildCounterJob < 3) {
406 unittest.expect(o.createTime, unittest.equals('foo')); 483 unittest.expect(o.createTime, unittest.equals('foo'));
407 unittest.expect(o.currentState, unittest.equals('foo')); 484 unittest.expect(o.currentState, unittest.equals('foo'));
408 unittest.expect(o.currentStateTime, unittest.equals('foo')); 485 unittest.expect(o.currentStateTime, unittest.equals('foo'));
409 checkEnvironment(o.environment); 486 checkEnvironment(o.environment);
410 checkJobExecutionInfo(o.executionInfo); 487 checkJobExecutionInfo(o.executionInfo);
411 unittest.expect(o.id, unittest.equals('foo')); 488 unittest.expect(o.id, unittest.equals('foo'));
412 unittest.expect(o.name, unittest.equals('foo')); 489 unittest.expect(o.name, unittest.equals('foo'));
413 unittest.expect(o.projectId, unittest.equals('foo')); 490 unittest.expect(o.projectId, unittest.equals('foo'));
414 unittest.expect(o.requestedState, unittest.equals('foo')); 491 unittest.expect(o.requestedState, unittest.equals('foo'));
415 checkUnnamed1787(o.steps); 492 checkUnnamed1503(o.steps);
416 unittest.expect(o.type, unittest.equals('foo')); 493 unittest.expect(o.type, unittest.equals('foo'));
417 } 494 }
418 buildCounterJob--; 495 buildCounterJob--;
419 } 496 }
420 497
421 buildUnnamed1788() { 498 buildUnnamed1504() {
422 var o = new core.Map<core.String, api.JobExecutionStageInfo>(); 499 var o = new core.Map<core.String, api.JobExecutionStageInfo>();
423 o["x"] = buildJobExecutionStageInfo(); 500 o["x"] = buildJobExecutionStageInfo();
424 o["y"] = buildJobExecutionStageInfo(); 501 o["y"] = buildJobExecutionStageInfo();
425 return o; 502 return o;
426 } 503 }
427 504
428 checkUnnamed1788(core.Map<core.String, api.JobExecutionStageInfo> o) { 505 checkUnnamed1504(core.Map<core.String, api.JobExecutionStageInfo> o) {
429 unittest.expect(o, unittest.hasLength(2)); 506 unittest.expect(o, unittest.hasLength(2));
430 checkJobExecutionStageInfo(o["x"]); 507 checkJobExecutionStageInfo(o["x"]);
431 checkJobExecutionStageInfo(o["y"]); 508 checkJobExecutionStageInfo(o["y"]);
432 } 509 }
433 510
434 core.int buildCounterJobExecutionInfo = 0; 511 core.int buildCounterJobExecutionInfo = 0;
435 buildJobExecutionInfo() { 512 buildJobExecutionInfo() {
436 var o = new api.JobExecutionInfo(); 513 var o = new api.JobExecutionInfo();
437 buildCounterJobExecutionInfo++; 514 buildCounterJobExecutionInfo++;
438 if (buildCounterJobExecutionInfo < 3) { 515 if (buildCounterJobExecutionInfo < 3) {
439 o.stages = buildUnnamed1788(); 516 o.stages = buildUnnamed1504();
440 } 517 }
441 buildCounterJobExecutionInfo--; 518 buildCounterJobExecutionInfo--;
442 return o; 519 return o;
443 } 520 }
444 521
445 checkJobExecutionInfo(api.JobExecutionInfo o) { 522 checkJobExecutionInfo(api.JobExecutionInfo o) {
446 buildCounterJobExecutionInfo++; 523 buildCounterJobExecutionInfo++;
447 if (buildCounterJobExecutionInfo < 3) { 524 if (buildCounterJobExecutionInfo < 3) {
448 checkUnnamed1788(o.stages); 525 checkUnnamed1504(o.stages);
449 } 526 }
450 buildCounterJobExecutionInfo--; 527 buildCounterJobExecutionInfo--;
451 } 528 }
452 529
453 buildUnnamed1789() { 530 buildUnnamed1505() {
454 var o = new core.List<core.String>(); 531 var o = new core.List<core.String>();
455 o.add("foo"); 532 o.add("foo");
456 o.add("foo"); 533 o.add("foo");
457 return o; 534 return o;
458 } 535 }
459 536
460 checkUnnamed1789(core.List<core.String> o) { 537 checkUnnamed1505(core.List<core.String> o) {
461 unittest.expect(o, unittest.hasLength(2)); 538 unittest.expect(o, unittest.hasLength(2));
462 unittest.expect(o[0], unittest.equals('foo')); 539 unittest.expect(o[0], unittest.equals('foo'));
463 unittest.expect(o[1], unittest.equals('foo')); 540 unittest.expect(o[1], unittest.equals('foo'));
464 } 541 }
465 542
466 core.int buildCounterJobExecutionStageInfo = 0; 543 core.int buildCounterJobExecutionStageInfo = 0;
467 buildJobExecutionStageInfo() { 544 buildJobExecutionStageInfo() {
468 var o = new api.JobExecutionStageInfo(); 545 var o = new api.JobExecutionStageInfo();
469 buildCounterJobExecutionStageInfo++; 546 buildCounterJobExecutionStageInfo++;
470 if (buildCounterJobExecutionStageInfo < 3) { 547 if (buildCounterJobExecutionStageInfo < 3) {
471 o.stepName = buildUnnamed1789(); 548 o.stepName = buildUnnamed1505();
472 } 549 }
473 buildCounterJobExecutionStageInfo--; 550 buildCounterJobExecutionStageInfo--;
474 return o; 551 return o;
475 } 552 }
476 553
477 checkJobExecutionStageInfo(api.JobExecutionStageInfo o) { 554 checkJobExecutionStageInfo(api.JobExecutionStageInfo o) {
478 buildCounterJobExecutionStageInfo++; 555 buildCounterJobExecutionStageInfo++;
479 if (buildCounterJobExecutionStageInfo < 3) { 556 if (buildCounterJobExecutionStageInfo < 3) {
480 checkUnnamed1789(o.stepName); 557 checkUnnamed1505(o.stepName);
481 } 558 }
482 buildCounterJobExecutionStageInfo--; 559 buildCounterJobExecutionStageInfo--;
483 } 560 }
484 561
485 core.int buildCounterJobMessage = 0; 562 core.int buildCounterJobMessage = 0;
486 buildJobMessage() { 563 buildJobMessage() {
487 var o = new api.JobMessage(); 564 var o = new api.JobMessage();
488 buildCounterJobMessage++; 565 buildCounterJobMessage++;
489 if (buildCounterJobMessage < 3) { 566 if (buildCounterJobMessage < 3) {
490 o.id = "foo"; 567 o.id = "foo";
491 o.messageImportance = "foo"; 568 o.messageImportance = "foo";
492 o.messageText = "foo"; 569 o.messageText = "foo";
493 o.time = "foo"; 570 o.time = "foo";
494 } 571 }
495 buildCounterJobMessage--; 572 buildCounterJobMessage--;
496 return o; 573 return o;
497 } 574 }
498 575
499 checkJobMessage(api.JobMessage o) { 576 checkJobMessage(api.JobMessage o) {
500 buildCounterJobMessage++; 577 buildCounterJobMessage++;
501 if (buildCounterJobMessage < 3) { 578 if (buildCounterJobMessage < 3) {
502 unittest.expect(o.id, unittest.equals('foo')); 579 unittest.expect(o.id, unittest.equals('foo'));
503 unittest.expect(o.messageImportance, unittest.equals('foo')); 580 unittest.expect(o.messageImportance, unittest.equals('foo'));
504 unittest.expect(o.messageText, unittest.equals('foo')); 581 unittest.expect(o.messageText, unittest.equals('foo'));
505 unittest.expect(o.time, unittest.equals('foo')); 582 unittest.expect(o.time, unittest.equals('foo'));
506 } 583 }
507 buildCounterJobMessage--; 584 buildCounterJobMessage--;
508 } 585 }
509 586
510 buildUnnamed1790() { 587 buildUnnamed1506() {
511 var o = new core.List<api.MetricUpdate>(); 588 var o = new core.List<api.MetricUpdate>();
512 o.add(buildMetricUpdate()); 589 o.add(buildMetricUpdate());
513 o.add(buildMetricUpdate()); 590 o.add(buildMetricUpdate());
514 return o; 591 return o;
515 } 592 }
516 593
517 checkUnnamed1790(core.List<api.MetricUpdate> o) { 594 checkUnnamed1506(core.List<api.MetricUpdate> o) {
518 unittest.expect(o, unittest.hasLength(2)); 595 unittest.expect(o, unittest.hasLength(2));
519 checkMetricUpdate(o[0]); 596 checkMetricUpdate(o[0]);
520 checkMetricUpdate(o[1]); 597 checkMetricUpdate(o[1]);
521 } 598 }
522 599
523 core.int buildCounterJobMetrics = 0; 600 core.int buildCounterJobMetrics = 0;
524 buildJobMetrics() { 601 buildJobMetrics() {
525 var o = new api.JobMetrics(); 602 var o = new api.JobMetrics();
526 buildCounterJobMetrics++; 603 buildCounterJobMetrics++;
527 if (buildCounterJobMetrics < 3) { 604 if (buildCounterJobMetrics < 3) {
528 o.metricTime = "foo"; 605 o.metricTime = "foo";
529 o.metrics = buildUnnamed1790(); 606 o.metrics = buildUnnamed1506();
530 } 607 }
531 buildCounterJobMetrics--; 608 buildCounterJobMetrics--;
532 return o; 609 return o;
533 } 610 }
534 611
535 checkJobMetrics(api.JobMetrics o) { 612 checkJobMetrics(api.JobMetrics o) {
536 buildCounterJobMetrics++; 613 buildCounterJobMetrics++;
537 if (buildCounterJobMetrics < 3) { 614 if (buildCounterJobMetrics < 3) {
538 unittest.expect(o.metricTime, unittest.equals('foo')); 615 unittest.expect(o.metricTime, unittest.equals('foo'));
539 checkUnnamed1790(o.metrics); 616 checkUnnamed1506(o.metrics);
540 } 617 }
541 buildCounterJobMetrics--; 618 buildCounterJobMetrics--;
542 } 619 }
543 620
621 core.int buildCounterKeyRangeDataDiskAssignment = 0;
622 buildKeyRangeDataDiskAssignment() {
623 var o = new api.KeyRangeDataDiskAssignment();
624 buildCounterKeyRangeDataDiskAssignment++;
625 if (buildCounterKeyRangeDataDiskAssignment < 3) {
626 o.dataDisk = "foo";
627 o.end = "foo";
628 o.start = "foo";
629 }
630 buildCounterKeyRangeDataDiskAssignment--;
631 return o;
632 }
633
634 checkKeyRangeDataDiskAssignment(api.KeyRangeDataDiskAssignment o) {
635 buildCounterKeyRangeDataDiskAssignment++;
636 if (buildCounterKeyRangeDataDiskAssignment < 3) {
637 unittest.expect(o.dataDisk, unittest.equals('foo'));
638 unittest.expect(o.end, unittest.equals('foo'));
639 unittest.expect(o.start, unittest.equals('foo'));
640 }
641 buildCounterKeyRangeDataDiskAssignment--;
642 }
643
544 core.int buildCounterKeyRangeLocation = 0; 644 core.int buildCounterKeyRangeLocation = 0;
545 buildKeyRangeLocation() { 645 buildKeyRangeLocation() {
546 var o = new api.KeyRangeLocation(); 646 var o = new api.KeyRangeLocation();
547 buildCounterKeyRangeLocation++; 647 buildCounterKeyRangeLocation++;
548 if (buildCounterKeyRangeLocation < 3) { 648 if (buildCounterKeyRangeLocation < 3) {
549 o.dataDisk = "foo"; 649 o.dataDisk = "foo";
550 o.deliveryEndpoint = "foo"; 650 o.deliveryEndpoint = "foo";
551 o.end = "foo"; 651 o.end = "foo";
552 o.persistentDirectory = "foo"; 652 o.persistentDirectory = "foo";
553 o.start = "foo"; 653 o.start = "foo";
554 } 654 }
555 buildCounterKeyRangeLocation--; 655 buildCounterKeyRangeLocation--;
556 return o; 656 return o;
557 } 657 }
558 658
559 checkKeyRangeLocation(api.KeyRangeLocation o) { 659 checkKeyRangeLocation(api.KeyRangeLocation o) {
560 buildCounterKeyRangeLocation++; 660 buildCounterKeyRangeLocation++;
561 if (buildCounterKeyRangeLocation < 3) { 661 if (buildCounterKeyRangeLocation < 3) {
562 unittest.expect(o.dataDisk, unittest.equals('foo')); 662 unittest.expect(o.dataDisk, unittest.equals('foo'));
563 unittest.expect(o.deliveryEndpoint, unittest.equals('foo')); 663 unittest.expect(o.deliveryEndpoint, unittest.equals('foo'));
564 unittest.expect(o.end, unittest.equals('foo')); 664 unittest.expect(o.end, unittest.equals('foo'));
565 unittest.expect(o.persistentDirectory, unittest.equals('foo')); 665 unittest.expect(o.persistentDirectory, unittest.equals('foo'));
566 unittest.expect(o.start, unittest.equals('foo')); 666 unittest.expect(o.start, unittest.equals('foo'));
567 } 667 }
568 buildCounterKeyRangeLocation--; 668 buildCounterKeyRangeLocation--;
569 } 669 }
570 670
571 buildUnnamed1791() { 671 buildUnnamed1507() {
572 var o = new core.List<core.String>(); 672 var o = new core.List<core.String>();
573 o.add("foo"); 673 o.add("foo");
574 o.add("foo"); 674 o.add("foo");
575 return o; 675 return o;
576 } 676 }
577 677
578 checkUnnamed1791(core.List<core.String> o) { 678 checkUnnamed1507(core.List<core.String> o) {
579 unittest.expect(o, unittest.hasLength(2)); 679 unittest.expect(o, unittest.hasLength(2));
580 unittest.expect(o[0], unittest.equals('foo')); 680 unittest.expect(o[0], unittest.equals('foo'));
581 unittest.expect(o[1], unittest.equals('foo')); 681 unittest.expect(o[1], unittest.equals('foo'));
582 } 682 }
583 683
584 buildUnnamed1792() { 684 buildUnnamed1508() {
585 var o = new core.List<core.String>(); 685 var o = new core.List<core.String>();
586 o.add("foo"); 686 o.add("foo");
587 o.add("foo"); 687 o.add("foo");
588 return o; 688 return o;
589 } 689 }
590 690
591 checkUnnamed1792(core.List<core.String> o) { 691 checkUnnamed1508(core.List<core.String> o) {
592 unittest.expect(o, unittest.hasLength(2)); 692 unittest.expect(o, unittest.hasLength(2));
593 unittest.expect(o[0], unittest.equals('foo')); 693 unittest.expect(o[0], unittest.equals('foo'));
594 unittest.expect(o[1], unittest.equals('foo')); 694 unittest.expect(o[1], unittest.equals('foo'));
595 } 695 }
596 696
597 core.int buildCounterLeaseWorkItemRequest = 0; 697 core.int buildCounterLeaseWorkItemRequest = 0;
598 buildLeaseWorkItemRequest() { 698 buildLeaseWorkItemRequest() {
599 var o = new api.LeaseWorkItemRequest(); 699 var o = new api.LeaseWorkItemRequest();
600 buildCounterLeaseWorkItemRequest++; 700 buildCounterLeaseWorkItemRequest++;
601 if (buildCounterLeaseWorkItemRequest < 3) { 701 if (buildCounterLeaseWorkItemRequest < 3) {
602 o.currentWorkerTime = "foo"; 702 o.currentWorkerTime = "foo";
603 o.requestedLeaseDuration = "foo"; 703 o.requestedLeaseDuration = "foo";
604 o.workItemTypes = buildUnnamed1791(); 704 o.workItemTypes = buildUnnamed1507();
605 o.workerCapabilities = buildUnnamed1792(); 705 o.workerCapabilities = buildUnnamed1508();
606 o.workerId = "foo"; 706 o.workerId = "foo";
607 } 707 }
608 buildCounterLeaseWorkItemRequest--; 708 buildCounterLeaseWorkItemRequest--;
609 return o; 709 return o;
610 } 710 }
611 711
612 checkLeaseWorkItemRequest(api.LeaseWorkItemRequest o) { 712 checkLeaseWorkItemRequest(api.LeaseWorkItemRequest o) {
613 buildCounterLeaseWorkItemRequest++; 713 buildCounterLeaseWorkItemRequest++;
614 if (buildCounterLeaseWorkItemRequest < 3) { 714 if (buildCounterLeaseWorkItemRequest < 3) {
615 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); 715 unittest.expect(o.currentWorkerTime, unittest.equals('foo'));
616 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); 716 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo'));
617 checkUnnamed1791(o.workItemTypes); 717 checkUnnamed1507(o.workItemTypes);
618 checkUnnamed1792(o.workerCapabilities); 718 checkUnnamed1508(o.workerCapabilities);
619 unittest.expect(o.workerId, unittest.equals('foo')); 719 unittest.expect(o.workerId, unittest.equals('foo'));
620 } 720 }
621 buildCounterLeaseWorkItemRequest--; 721 buildCounterLeaseWorkItemRequest--;
622 } 722 }
623 723
624 buildUnnamed1793() { 724 buildUnnamed1509() {
625 var o = new core.List<api.WorkItem>(); 725 var o = new core.List<api.WorkItem>();
626 o.add(buildWorkItem()); 726 o.add(buildWorkItem());
627 o.add(buildWorkItem()); 727 o.add(buildWorkItem());
628 return o; 728 return o;
629 } 729 }
630 730
631 checkUnnamed1793(core.List<api.WorkItem> o) { 731 checkUnnamed1509(core.List<api.WorkItem> o) {
632 unittest.expect(o, unittest.hasLength(2)); 732 unittest.expect(o, unittest.hasLength(2));
633 checkWorkItem(o[0]); 733 checkWorkItem(o[0]);
634 checkWorkItem(o[1]); 734 checkWorkItem(o[1]);
635 } 735 }
636 736
637 core.int buildCounterLeaseWorkItemResponse = 0; 737 core.int buildCounterLeaseWorkItemResponse = 0;
638 buildLeaseWorkItemResponse() { 738 buildLeaseWorkItemResponse() {
639 var o = new api.LeaseWorkItemResponse(); 739 var o = new api.LeaseWorkItemResponse();
640 buildCounterLeaseWorkItemResponse++; 740 buildCounterLeaseWorkItemResponse++;
641 if (buildCounterLeaseWorkItemResponse < 3) { 741 if (buildCounterLeaseWorkItemResponse < 3) {
642 o.workItems = buildUnnamed1793(); 742 o.workItems = buildUnnamed1509();
643 } 743 }
644 buildCounterLeaseWorkItemResponse--; 744 buildCounterLeaseWorkItemResponse--;
645 return o; 745 return o;
646 } 746 }
647 747
648 checkLeaseWorkItemResponse(api.LeaseWorkItemResponse o) { 748 checkLeaseWorkItemResponse(api.LeaseWorkItemResponse o) {
649 buildCounterLeaseWorkItemResponse++; 749 buildCounterLeaseWorkItemResponse++;
650 if (buildCounterLeaseWorkItemResponse < 3) { 750 if (buildCounterLeaseWorkItemResponse < 3) {
651 checkUnnamed1793(o.workItems); 751 checkUnnamed1509(o.workItems);
652 } 752 }
653 buildCounterLeaseWorkItemResponse--; 753 buildCounterLeaseWorkItemResponse--;
654 } 754 }
655 755
656 buildUnnamed1794() { 756 buildUnnamed1510() {
657 var o = new core.List<api.JobMessage>(); 757 var o = new core.List<api.JobMessage>();
658 o.add(buildJobMessage()); 758 o.add(buildJobMessage());
659 o.add(buildJobMessage()); 759 o.add(buildJobMessage());
660 return o; 760 return o;
661 } 761 }
662 762
663 checkUnnamed1794(core.List<api.JobMessage> o) { 763 checkUnnamed1510(core.List<api.JobMessage> o) {
664 unittest.expect(o, unittest.hasLength(2)); 764 unittest.expect(o, unittest.hasLength(2));
665 checkJobMessage(o[0]); 765 checkJobMessage(o[0]);
666 checkJobMessage(o[1]); 766 checkJobMessage(o[1]);
667 } 767 }
668 768
669 core.int buildCounterListJobMessagesResponse = 0; 769 core.int buildCounterListJobMessagesResponse = 0;
670 buildListJobMessagesResponse() { 770 buildListJobMessagesResponse() {
671 var o = new api.ListJobMessagesResponse(); 771 var o = new api.ListJobMessagesResponse();
672 buildCounterListJobMessagesResponse++; 772 buildCounterListJobMessagesResponse++;
673 if (buildCounterListJobMessagesResponse < 3) { 773 if (buildCounterListJobMessagesResponse < 3) {
674 o.jobMessages = buildUnnamed1794(); 774 o.jobMessages = buildUnnamed1510();
675 o.nextPageToken = "foo"; 775 o.nextPageToken = "foo";
676 } 776 }
677 buildCounterListJobMessagesResponse--; 777 buildCounterListJobMessagesResponse--;
678 return o; 778 return o;
679 } 779 }
680 780
681 checkListJobMessagesResponse(api.ListJobMessagesResponse o) { 781 checkListJobMessagesResponse(api.ListJobMessagesResponse o) {
682 buildCounterListJobMessagesResponse++; 782 buildCounterListJobMessagesResponse++;
683 if (buildCounterListJobMessagesResponse < 3) { 783 if (buildCounterListJobMessagesResponse < 3) {
684 checkUnnamed1794(o.jobMessages); 784 checkUnnamed1510(o.jobMessages);
685 unittest.expect(o.nextPageToken, unittest.equals('foo')); 785 unittest.expect(o.nextPageToken, unittest.equals('foo'));
686 } 786 }
687 buildCounterListJobMessagesResponse--; 787 buildCounterListJobMessagesResponse--;
688 } 788 }
689 789
690 buildUnnamed1795() { 790 buildUnnamed1511() {
691 var o = new core.List<api.Job>(); 791 var o = new core.List<api.Job>();
692 o.add(buildJob()); 792 o.add(buildJob());
693 o.add(buildJob()); 793 o.add(buildJob());
694 return o; 794 return o;
695 } 795 }
696 796
697 checkUnnamed1795(core.List<api.Job> o) { 797 checkUnnamed1511(core.List<api.Job> o) {
698 unittest.expect(o, unittest.hasLength(2)); 798 unittest.expect(o, unittest.hasLength(2));
699 checkJob(o[0]); 799 checkJob(o[0]);
700 checkJob(o[1]); 800 checkJob(o[1]);
701 } 801 }
702 802
703 core.int buildCounterListJobsResponse = 0; 803 core.int buildCounterListJobsResponse = 0;
704 buildListJobsResponse() { 804 buildListJobsResponse() {
705 var o = new api.ListJobsResponse(); 805 var o = new api.ListJobsResponse();
706 buildCounterListJobsResponse++; 806 buildCounterListJobsResponse++;
707 if (buildCounterListJobsResponse < 3) { 807 if (buildCounterListJobsResponse < 3) {
708 o.jobs = buildUnnamed1795(); 808 o.jobs = buildUnnamed1511();
709 o.nextPageToken = "foo"; 809 o.nextPageToken = "foo";
710 } 810 }
711 buildCounterListJobsResponse--; 811 buildCounterListJobsResponse--;
712 return o; 812 return o;
713 } 813 }
714 814
715 checkListJobsResponse(api.ListJobsResponse o) { 815 checkListJobsResponse(api.ListJobsResponse o) {
716 buildCounterListJobsResponse++; 816 buildCounterListJobsResponse++;
717 if (buildCounterListJobsResponse < 3) { 817 if (buildCounterListJobsResponse < 3) {
718 checkUnnamed1795(o.jobs); 818 checkUnnamed1511(o.jobs);
719 unittest.expect(o.nextPageToken, unittest.equals('foo')); 819 unittest.expect(o.nextPageToken, unittest.equals('foo'));
720 } 820 }
721 buildCounterListJobsResponse--; 821 buildCounterListJobsResponse--;
722 } 822 }
723 823
724 buildUnnamed1796() { 824 buildUnnamed1512() {
725 var o = new core.List<api.ParallelInstruction>(); 825 var o = new core.List<api.ParallelInstruction>();
726 o.add(buildParallelInstruction()); 826 o.add(buildParallelInstruction());
727 o.add(buildParallelInstruction()); 827 o.add(buildParallelInstruction());
728 return o; 828 return o;
729 } 829 }
730 830
731 checkUnnamed1796(core.List<api.ParallelInstruction> o) { 831 checkUnnamed1512(core.List<api.ParallelInstruction> o) {
732 unittest.expect(o, unittest.hasLength(2)); 832 unittest.expect(o, unittest.hasLength(2));
733 checkParallelInstruction(o[0]); 833 checkParallelInstruction(o[0]);
734 checkParallelInstruction(o[1]); 834 checkParallelInstruction(o[1]);
735 } 835 }
736 836
737 core.int buildCounterMapTask = 0; 837 core.int buildCounterMapTask = 0;
738 buildMapTask() { 838 buildMapTask() {
739 var o = new api.MapTask(); 839 var o = new api.MapTask();
740 buildCounterMapTask++; 840 buildCounterMapTask++;
741 if (buildCounterMapTask < 3) { 841 if (buildCounterMapTask < 3) {
742 o.instructions = buildUnnamed1796(); 842 o.instructions = buildUnnamed1512();
743 o.stageName = "foo"; 843 o.stageName = "foo";
744 o.systemName = "foo"; 844 o.systemName = "foo";
745 } 845 }
746 buildCounterMapTask--; 846 buildCounterMapTask--;
747 return o; 847 return o;
748 } 848 }
749 849
750 checkMapTask(api.MapTask o) { 850 checkMapTask(api.MapTask o) {
751 buildCounterMapTask++; 851 buildCounterMapTask++;
752 if (buildCounterMapTask < 3) { 852 if (buildCounterMapTask < 3) {
753 checkUnnamed1796(o.instructions); 853 checkUnnamed1512(o.instructions);
754 unittest.expect(o.stageName, unittest.equals('foo')); 854 unittest.expect(o.stageName, unittest.equals('foo'));
755 unittest.expect(o.systemName, unittest.equals('foo')); 855 unittest.expect(o.systemName, unittest.equals('foo'));
756 } 856 }
757 buildCounterMapTask--; 857 buildCounterMapTask--;
758 } 858 }
759 859
760 buildUnnamed1797() { 860 buildUnnamed1513() {
761 var o = new core.Map<core.String, core.String>(); 861 var o = new core.Map<core.String, core.String>();
762 o["x"] = "foo"; 862 o["x"] = "foo";
763 o["y"] = "foo"; 863 o["y"] = "foo";
764 return o; 864 return o;
765 } 865 }
766 866
767 checkUnnamed1797(core.Map<core.String, core.String> o) { 867 checkUnnamed1513(core.Map<core.String, core.String> o) {
768 unittest.expect(o, unittest.hasLength(2)); 868 unittest.expect(o, unittest.hasLength(2));
769 unittest.expect(o["x"], unittest.equals('foo')); 869 unittest.expect(o["x"], unittest.equals('foo'));
770 unittest.expect(o["y"], unittest.equals('foo')); 870 unittest.expect(o["y"], unittest.equals('foo'));
771 } 871 }
772 872
773 core.int buildCounterMetricStructuredName = 0; 873 core.int buildCounterMetricStructuredName = 0;
774 buildMetricStructuredName() { 874 buildMetricStructuredName() {
775 var o = new api.MetricStructuredName(); 875 var o = new api.MetricStructuredName();
776 buildCounterMetricStructuredName++; 876 buildCounterMetricStructuredName++;
777 if (buildCounterMetricStructuredName < 3) { 877 if (buildCounterMetricStructuredName < 3) {
778 o.context = buildUnnamed1797(); 878 o.context = buildUnnamed1513();
779 o.name = "foo"; 879 o.name = "foo";
780 o.origin = "foo"; 880 o.origin = "foo";
781 } 881 }
782 buildCounterMetricStructuredName--; 882 buildCounterMetricStructuredName--;
783 return o; 883 return o;
784 } 884 }
785 885
786 checkMetricStructuredName(api.MetricStructuredName o) { 886 checkMetricStructuredName(api.MetricStructuredName o) {
787 buildCounterMetricStructuredName++; 887 buildCounterMetricStructuredName++;
788 if (buildCounterMetricStructuredName < 3) { 888 if (buildCounterMetricStructuredName < 3) {
789 checkUnnamed1797(o.context); 889 checkUnnamed1513(o.context);
790 unittest.expect(o.name, unittest.equals('foo')); 890 unittest.expect(o.name, unittest.equals('foo'));
791 unittest.expect(o.origin, unittest.equals('foo')); 891 unittest.expect(o.origin, unittest.equals('foo'));
792 } 892 }
793 buildCounterMetricStructuredName--; 893 buildCounterMetricStructuredName--;
794 } 894 }
795 895
796 core.int buildCounterMetricUpdate = 0; 896 core.int buildCounterMetricUpdate = 0;
797 buildMetricUpdate() { 897 buildMetricUpdate() {
798 var o = new api.MetricUpdate(); 898 var o = new api.MetricUpdate();
799 buildCounterMetricUpdate++; 899 buildCounterMetricUpdate++;
(...skipping 21 matching lines...) Expand all
821 var casted10 = (o.meanCount) as core.Map; unittest.expect(casted10, unittest .hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); u nittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted1 0["string"], unittest.equals('foo')); 921 var casted10 = (o.meanCount) as core.Map; unittest.expect(casted10, unittest .hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); u nittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted1 0["string"], unittest.equals('foo'));
822 var casted11 = (o.meanSum) as core.Map; unittest.expect(casted11, unittest.h asLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); uni ttest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11[ "string"], unittest.equals('foo')); 922 var casted11 = (o.meanSum) as core.Map; unittest.expect(casted11, unittest.h asLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); uni ttest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11[ "string"], unittest.equals('foo'));
823 checkMetricStructuredName(o.name); 923 checkMetricStructuredName(o.name);
824 var casted12 = (o.scalar) as core.Map; unittest.expect(casted12, unittest.ha sLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unit test.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12[" string"], unittest.equals('foo')); 924 var casted12 = (o.scalar) as core.Map; unittest.expect(casted12, unittest.ha sLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unit test.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12[" string"], unittest.equals('foo'));
825 var casted13 = (o.set) as core.Map; unittest.expect(casted13, unittest.hasLe ngth(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittes t.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["str ing"], unittest.equals('foo')); 925 var casted13 = (o.set) as core.Map; unittest.expect(casted13, unittest.hasLe ngth(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittes t.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["str ing"], unittest.equals('foo'));
826 unittest.expect(o.updateTime, unittest.equals('foo')); 926 unittest.expect(o.updateTime, unittest.equals('foo'));
827 } 927 }
828 buildCounterMetricUpdate--; 928 buildCounterMetricUpdate--;
829 } 929 }
830 930
931 core.int buildCounterMountedDataDisk = 0;
932 buildMountedDataDisk() {
933 var o = new api.MountedDataDisk();
934 buildCounterMountedDataDisk++;
935 if (buildCounterMountedDataDisk < 3) {
936 o.dataDisk = "foo";
937 }
938 buildCounterMountedDataDisk--;
939 return o;
940 }
941
942 checkMountedDataDisk(api.MountedDataDisk o) {
943 buildCounterMountedDataDisk++;
944 if (buildCounterMountedDataDisk < 3) {
945 unittest.expect(o.dataDisk, unittest.equals('foo'));
946 }
947 buildCounterMountedDataDisk--;
948 }
949
831 core.int buildCounterMultiOutputInfo = 0; 950 core.int buildCounterMultiOutputInfo = 0;
832 buildMultiOutputInfo() { 951 buildMultiOutputInfo() {
833 var o = new api.MultiOutputInfo(); 952 var o = new api.MultiOutputInfo();
834 buildCounterMultiOutputInfo++; 953 buildCounterMultiOutputInfo++;
835 if (buildCounterMultiOutputInfo < 3) { 954 if (buildCounterMultiOutputInfo < 3) {
836 o.tag = "foo"; 955 o.tag = "foo";
837 } 956 }
838 buildCounterMultiOutputInfo--; 957 buildCounterMultiOutputInfo--;
839 return o; 958 return o;
840 } 959 }
(...skipping 20 matching lines...) Expand all
861 980
862 checkPackage(api.Package o) { 981 checkPackage(api.Package o) {
863 buildCounterPackage++; 982 buildCounterPackage++;
864 if (buildCounterPackage < 3) { 983 if (buildCounterPackage < 3) {
865 unittest.expect(o.location, unittest.equals('foo')); 984 unittest.expect(o.location, unittest.equals('foo'));
866 unittest.expect(o.name, unittest.equals('foo')); 985 unittest.expect(o.name, unittest.equals('foo'));
867 } 986 }
868 buildCounterPackage--; 987 buildCounterPackage--;
869 } 988 }
870 989
871 buildUnnamed1798() { 990 buildUnnamed1514() {
872 var o = new core.List<api.MultiOutputInfo>(); 991 var o = new core.List<api.MultiOutputInfo>();
873 o.add(buildMultiOutputInfo()); 992 o.add(buildMultiOutputInfo());
874 o.add(buildMultiOutputInfo()); 993 o.add(buildMultiOutputInfo());
875 return o; 994 return o;
876 } 995 }
877 996
878 checkUnnamed1798(core.List<api.MultiOutputInfo> o) { 997 checkUnnamed1514(core.List<api.MultiOutputInfo> o) {
879 unittest.expect(o, unittest.hasLength(2)); 998 unittest.expect(o, unittest.hasLength(2));
880 checkMultiOutputInfo(o[0]); 999 checkMultiOutputInfo(o[0]);
881 checkMultiOutputInfo(o[1]); 1000 checkMultiOutputInfo(o[1]);
882 } 1001 }
883 1002
884 buildUnnamed1799() { 1003 buildUnnamed1515() {
885 var o = new core.List<api.SideInputInfo>(); 1004 var o = new core.List<api.SideInputInfo>();
886 o.add(buildSideInputInfo()); 1005 o.add(buildSideInputInfo());
887 o.add(buildSideInputInfo()); 1006 o.add(buildSideInputInfo());
888 return o; 1007 return o;
889 } 1008 }
890 1009
891 checkUnnamed1799(core.List<api.SideInputInfo> o) { 1010 checkUnnamed1515(core.List<api.SideInputInfo> o) {
892 unittest.expect(o, unittest.hasLength(2)); 1011 unittest.expect(o, unittest.hasLength(2));
893 checkSideInputInfo(o[0]); 1012 checkSideInputInfo(o[0]);
894 checkSideInputInfo(o[1]); 1013 checkSideInputInfo(o[1]);
895 } 1014 }
896 1015
897 buildUnnamed1800() { 1016 buildUnnamed1516() {
898 var o = new core.Map<core.String, core.Object>(); 1017 var o = new core.Map<core.String, core.Object>();
899 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1018 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
900 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1019 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
901 return o; 1020 return o;
902 } 1021 }
903 1022
904 checkUnnamed1800(core.Map<core.String, core.Object> o) { 1023 checkUnnamed1516(core.Map<core.String, core.Object> o) {
905 unittest.expect(o, unittest.hasLength(2)); 1024 unittest.expect(o, unittest.hasLength(2));
906 var casted14 = (o["x"]) as core.Map; unittest.expect(casted14, unittest.hasLen gth(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest .expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["stri ng"], unittest.equals('foo')); 1025 var casted14 = (o["x"]) as core.Map; unittest.expect(casted14, unittest.hasLen gth(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest .expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["stri ng"], unittest.equals('foo'));
907 var casted15 = (o["y"]) as core.Map; unittest.expect(casted15, unittest.hasLen gth(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); unittest .expect(casted15["bool"], unittest.equals(true)); unittest.expect(casted15["stri ng"], unittest.equals('foo')); 1026 var casted15 = (o["y"]) as core.Map; unittest.expect(casted15, unittest.hasLen gth(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); unittest .expect(casted15["bool"], unittest.equals(true)); unittest.expect(casted15["stri ng"], unittest.equals('foo'));
908 } 1027 }
909 1028
910 core.int buildCounterParDoInstruction = 0; 1029 core.int buildCounterParDoInstruction = 0;
911 buildParDoInstruction() { 1030 buildParDoInstruction() {
912 var o = new api.ParDoInstruction(); 1031 var o = new api.ParDoInstruction();
913 buildCounterParDoInstruction++; 1032 buildCounterParDoInstruction++;
914 if (buildCounterParDoInstruction < 3) { 1033 if (buildCounterParDoInstruction < 3) {
915 o.input = buildInstructionInput(); 1034 o.input = buildInstructionInput();
916 o.multiOutputInfos = buildUnnamed1798(); 1035 o.multiOutputInfos = buildUnnamed1514();
917 o.numOutputs = 42; 1036 o.numOutputs = 42;
918 o.sideInputs = buildUnnamed1799(); 1037 o.sideInputs = buildUnnamed1515();
919 o.userFn = buildUnnamed1800(); 1038 o.userFn = buildUnnamed1516();
920 } 1039 }
921 buildCounterParDoInstruction--; 1040 buildCounterParDoInstruction--;
922 return o; 1041 return o;
923 } 1042 }
924 1043
925 checkParDoInstruction(api.ParDoInstruction o) { 1044 checkParDoInstruction(api.ParDoInstruction o) {
926 buildCounterParDoInstruction++; 1045 buildCounterParDoInstruction++;
927 if (buildCounterParDoInstruction < 3) { 1046 if (buildCounterParDoInstruction < 3) {
928 checkInstructionInput(o.input); 1047 checkInstructionInput(o.input);
929 checkUnnamed1798(o.multiOutputInfos); 1048 checkUnnamed1514(o.multiOutputInfos);
930 unittest.expect(o.numOutputs, unittest.equals(42)); 1049 unittest.expect(o.numOutputs, unittest.equals(42));
931 checkUnnamed1799(o.sideInputs); 1050 checkUnnamed1515(o.sideInputs);
932 checkUnnamed1800(o.userFn); 1051 checkUnnamed1516(o.userFn);
933 } 1052 }
934 buildCounterParDoInstruction--; 1053 buildCounterParDoInstruction--;
935 } 1054 }
936 1055
937 buildUnnamed1801() { 1056 buildUnnamed1517() {
938 var o = new core.List<api.InstructionOutput>(); 1057 var o = new core.List<api.InstructionOutput>();
939 o.add(buildInstructionOutput()); 1058 o.add(buildInstructionOutput());
940 o.add(buildInstructionOutput()); 1059 o.add(buildInstructionOutput());
941 return o; 1060 return o;
942 } 1061 }
943 1062
944 checkUnnamed1801(core.List<api.InstructionOutput> o) { 1063 checkUnnamed1517(core.List<api.InstructionOutput> o) {
945 unittest.expect(o, unittest.hasLength(2)); 1064 unittest.expect(o, unittest.hasLength(2));
946 checkInstructionOutput(o[0]); 1065 checkInstructionOutput(o[0]);
947 checkInstructionOutput(o[1]); 1066 checkInstructionOutput(o[1]);
948 } 1067 }
949 1068
950 core.int buildCounterParallelInstruction = 0; 1069 core.int buildCounterParallelInstruction = 0;
951 buildParallelInstruction() { 1070 buildParallelInstruction() {
952 var o = new api.ParallelInstruction(); 1071 var o = new api.ParallelInstruction();
953 buildCounterParallelInstruction++; 1072 buildCounterParallelInstruction++;
954 if (buildCounterParallelInstruction < 3) { 1073 if (buildCounterParallelInstruction < 3) {
955 o.flatten = buildFlattenInstruction(); 1074 o.flatten = buildFlattenInstruction();
956 o.name = "foo"; 1075 o.name = "foo";
957 o.outputs = buildUnnamed1801(); 1076 o.outputs = buildUnnamed1517();
958 o.parDo = buildParDoInstruction(); 1077 o.parDo = buildParDoInstruction();
959 o.partialGroupByKey = buildPartialGroupByKeyInstruction(); 1078 o.partialGroupByKey = buildPartialGroupByKeyInstruction();
960 o.read = buildReadInstruction(); 1079 o.read = buildReadInstruction();
961 o.systemName = "foo"; 1080 o.systemName = "foo";
962 o.write = buildWriteInstruction(); 1081 o.write = buildWriteInstruction();
963 } 1082 }
964 buildCounterParallelInstruction--; 1083 buildCounterParallelInstruction--;
965 return o; 1084 return o;
966 } 1085 }
967 1086
968 checkParallelInstruction(api.ParallelInstruction o) { 1087 checkParallelInstruction(api.ParallelInstruction o) {
969 buildCounterParallelInstruction++; 1088 buildCounterParallelInstruction++;
970 if (buildCounterParallelInstruction < 3) { 1089 if (buildCounterParallelInstruction < 3) {
971 checkFlattenInstruction(o.flatten); 1090 checkFlattenInstruction(o.flatten);
972 unittest.expect(o.name, unittest.equals('foo')); 1091 unittest.expect(o.name, unittest.equals('foo'));
973 checkUnnamed1801(o.outputs); 1092 checkUnnamed1517(o.outputs);
974 checkParDoInstruction(o.parDo); 1093 checkParDoInstruction(o.parDo);
975 checkPartialGroupByKeyInstruction(o.partialGroupByKey); 1094 checkPartialGroupByKeyInstruction(o.partialGroupByKey);
976 checkReadInstruction(o.read); 1095 checkReadInstruction(o.read);
977 unittest.expect(o.systemName, unittest.equals('foo')); 1096 unittest.expect(o.systemName, unittest.equals('foo'));
978 checkWriteInstruction(o.write); 1097 checkWriteInstruction(o.write);
979 } 1098 }
980 buildCounterParallelInstruction--; 1099 buildCounterParallelInstruction--;
981 } 1100 }
982 1101
983 buildUnnamed1802() { 1102 buildUnnamed1518() {
984 var o = new core.Map<core.String, core.Object>(); 1103 var o = new core.Map<core.String, core.Object>();
985 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1104 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
986 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1105 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
987 return o; 1106 return o;
988 } 1107 }
989 1108
990 checkUnnamed1802(core.Map<core.String, core.Object> o) { 1109 checkUnnamed1518(core.Map<core.String, core.Object> o) {
991 unittest.expect(o, unittest.hasLength(2)); 1110 unittest.expect(o, unittest.hasLength(2));
992 var casted16 = (o["x"]) as core.Map; unittest.expect(casted16, unittest.hasLen gth(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); unittest .expect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16["stri ng"], unittest.equals('foo')); 1111 var casted16 = (o["x"]) as core.Map; unittest.expect(casted16, unittest.hasLen gth(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); unittest .expect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16["stri ng"], unittest.equals('foo'));
993 var casted17 = (o["y"]) 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')); 1112 var casted17 = (o["y"]) 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'));
994 } 1113 }
995 1114
1115 buildUnnamed1519() {
1116 var o = new core.Map<core.String, core.Object>();
1117 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1118 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1119 return o;
1120 }
1121
1122 checkUnnamed1519(core.Map<core.String, core.Object> o) {
1123 unittest.expect(o, unittest.hasLength(2));
1124 var casted18 = (o["x"]) 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'));
1125 var casted19 = (o["y"]) 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'));
1126 }
1127
996 core.int buildCounterPartialGroupByKeyInstruction = 0; 1128 core.int buildCounterPartialGroupByKeyInstruction = 0;
997 buildPartialGroupByKeyInstruction() { 1129 buildPartialGroupByKeyInstruction() {
998 var o = new api.PartialGroupByKeyInstruction(); 1130 var o = new api.PartialGroupByKeyInstruction();
999 buildCounterPartialGroupByKeyInstruction++; 1131 buildCounterPartialGroupByKeyInstruction++;
1000 if (buildCounterPartialGroupByKeyInstruction < 3) { 1132 if (buildCounterPartialGroupByKeyInstruction < 3) {
1001 o.input = buildInstructionInput(); 1133 o.input = buildInstructionInput();
1002 o.inputElementCodec = buildUnnamed1802(); 1134 o.inputElementCodec = buildUnnamed1518();
1135 o.valueCombiningFn = buildUnnamed1519();
1003 } 1136 }
1004 buildCounterPartialGroupByKeyInstruction--; 1137 buildCounterPartialGroupByKeyInstruction--;
1005 return o; 1138 return o;
1006 } 1139 }
1007 1140
1008 checkPartialGroupByKeyInstruction(api.PartialGroupByKeyInstruction o) { 1141 checkPartialGroupByKeyInstruction(api.PartialGroupByKeyInstruction o) {
1009 buildCounterPartialGroupByKeyInstruction++; 1142 buildCounterPartialGroupByKeyInstruction++;
1010 if (buildCounterPartialGroupByKeyInstruction < 3) { 1143 if (buildCounterPartialGroupByKeyInstruction < 3) {
1011 checkInstructionInput(o.input); 1144 checkInstructionInput(o.input);
1012 checkUnnamed1802(o.inputElementCodec); 1145 checkUnnamed1518(o.inputElementCodec);
1146 checkUnnamed1519(o.valueCombiningFn);
1013 } 1147 }
1014 buildCounterPartialGroupByKeyInstruction--; 1148 buildCounterPartialGroupByKeyInstruction--;
1015 } 1149 }
1016 1150
1017 core.int buildCounterPosition = 0; 1151 core.int buildCounterPosition = 0;
1018 buildPosition() { 1152 buildPosition() {
1019 var o = new api.Position(); 1153 var o = new api.Position();
1020 buildCounterPosition++; 1154 buildCounterPosition++;
1021 if (buildCounterPosition < 3) { 1155 if (buildCounterPosition < 3) {
1022 o.byteOffset = "foo"; 1156 o.byteOffset = "foo";
(...skipping 21 matching lines...) Expand all
1044 core.int buildCounterPubsubLocation = 0; 1178 core.int buildCounterPubsubLocation = 0;
1045 buildPubsubLocation() { 1179 buildPubsubLocation() {
1046 var o = new api.PubsubLocation(); 1180 var o = new api.PubsubLocation();
1047 buildCounterPubsubLocation++; 1181 buildCounterPubsubLocation++;
1048 if (buildCounterPubsubLocation < 3) { 1182 if (buildCounterPubsubLocation < 3) {
1049 o.dropLateData = true; 1183 o.dropLateData = true;
1050 o.idLabel = "foo"; 1184 o.idLabel = "foo";
1051 o.subscription = "foo"; 1185 o.subscription = "foo";
1052 o.timestampLabel = "foo"; 1186 o.timestampLabel = "foo";
1053 o.topic = "foo"; 1187 o.topic = "foo";
1188 o.trackingSubscription = "foo";
1054 } 1189 }
1055 buildCounterPubsubLocation--; 1190 buildCounterPubsubLocation--;
1056 return o; 1191 return o;
1057 } 1192 }
1058 1193
1059 checkPubsubLocation(api.PubsubLocation o) { 1194 checkPubsubLocation(api.PubsubLocation o) {
1060 buildCounterPubsubLocation++; 1195 buildCounterPubsubLocation++;
1061 if (buildCounterPubsubLocation < 3) { 1196 if (buildCounterPubsubLocation < 3) {
1062 unittest.expect(o.dropLateData, unittest.isTrue); 1197 unittest.expect(o.dropLateData, unittest.isTrue);
1063 unittest.expect(o.idLabel, unittest.equals('foo')); 1198 unittest.expect(o.idLabel, unittest.equals('foo'));
1064 unittest.expect(o.subscription, unittest.equals('foo')); 1199 unittest.expect(o.subscription, unittest.equals('foo'));
1065 unittest.expect(o.timestampLabel, unittest.equals('foo')); 1200 unittest.expect(o.timestampLabel, unittest.equals('foo'));
1066 unittest.expect(o.topic, unittest.equals('foo')); 1201 unittest.expect(o.topic, unittest.equals('foo'));
1202 unittest.expect(o.trackingSubscription, unittest.equals('foo'));
1067 } 1203 }
1068 buildCounterPubsubLocation--; 1204 buildCounterPubsubLocation--;
1069 } 1205 }
1070 1206
1071 core.int buildCounterReadInstruction = 0; 1207 core.int buildCounterReadInstruction = 0;
1072 buildReadInstruction() { 1208 buildReadInstruction() {
1073 var o = new api.ReadInstruction(); 1209 var o = new api.ReadInstruction();
1074 buildCounterReadInstruction++; 1210 buildCounterReadInstruction++;
1075 if (buildCounterReadInstruction < 3) { 1211 if (buildCounterReadInstruction < 3) {
1076 o.source = buildSource(); 1212 o.source = buildSource();
1077 } 1213 }
1078 buildCounterReadInstruction--; 1214 buildCounterReadInstruction--;
1079 return o; 1215 return o;
1080 } 1216 }
1081 1217
1082 checkReadInstruction(api.ReadInstruction o) { 1218 checkReadInstruction(api.ReadInstruction o) {
1083 buildCounterReadInstruction++; 1219 buildCounterReadInstruction++;
1084 if (buildCounterReadInstruction < 3) { 1220 if (buildCounterReadInstruction < 3) {
1085 checkSource(o.source); 1221 checkSource(o.source);
1086 } 1222 }
1087 buildCounterReadInstruction--; 1223 buildCounterReadInstruction--;
1088 } 1224 }
1089 1225
1090 buildUnnamed1803() { 1226 buildUnnamed1520() {
1091 var o = new core.List<api.WorkItemStatus>(); 1227 var o = new core.List<api.WorkItemStatus>();
1092 o.add(buildWorkItemStatus()); 1228 o.add(buildWorkItemStatus());
1093 o.add(buildWorkItemStatus()); 1229 o.add(buildWorkItemStatus());
1094 return o; 1230 return o;
1095 } 1231 }
1096 1232
1097 checkUnnamed1803(core.List<api.WorkItemStatus> o) { 1233 checkUnnamed1520(core.List<api.WorkItemStatus> o) {
1098 unittest.expect(o, unittest.hasLength(2)); 1234 unittest.expect(o, unittest.hasLength(2));
1099 checkWorkItemStatus(o[0]); 1235 checkWorkItemStatus(o[0]);
1100 checkWorkItemStatus(o[1]); 1236 checkWorkItemStatus(o[1]);
1101 } 1237 }
1102 1238
1103 core.int buildCounterReportWorkItemStatusRequest = 0; 1239 core.int buildCounterReportWorkItemStatusRequest = 0;
1104 buildReportWorkItemStatusRequest() { 1240 buildReportWorkItemStatusRequest() {
1105 var o = new api.ReportWorkItemStatusRequest(); 1241 var o = new api.ReportWorkItemStatusRequest();
1106 buildCounterReportWorkItemStatusRequest++; 1242 buildCounterReportWorkItemStatusRequest++;
1107 if (buildCounterReportWorkItemStatusRequest < 3) { 1243 if (buildCounterReportWorkItemStatusRequest < 3) {
1108 o.currentWorkerTime = "foo"; 1244 o.currentWorkerTime = "foo";
1109 o.workItemStatuses = buildUnnamed1803(); 1245 o.workItemStatuses = buildUnnamed1520();
1110 o.workerId = "foo"; 1246 o.workerId = "foo";
1111 } 1247 }
1112 buildCounterReportWorkItemStatusRequest--; 1248 buildCounterReportWorkItemStatusRequest--;
1113 return o; 1249 return o;
1114 } 1250 }
1115 1251
1116 checkReportWorkItemStatusRequest(api.ReportWorkItemStatusRequest o) { 1252 checkReportWorkItemStatusRequest(api.ReportWorkItemStatusRequest o) {
1117 buildCounterReportWorkItemStatusRequest++; 1253 buildCounterReportWorkItemStatusRequest++;
1118 if (buildCounterReportWorkItemStatusRequest < 3) { 1254 if (buildCounterReportWorkItemStatusRequest < 3) {
1119 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); 1255 unittest.expect(o.currentWorkerTime, unittest.equals('foo'));
1120 checkUnnamed1803(o.workItemStatuses); 1256 checkUnnamed1520(o.workItemStatuses);
1121 unittest.expect(o.workerId, unittest.equals('foo')); 1257 unittest.expect(o.workerId, unittest.equals('foo'));
1122 } 1258 }
1123 buildCounterReportWorkItemStatusRequest--; 1259 buildCounterReportWorkItemStatusRequest--;
1124 } 1260 }
1125 1261
1126 buildUnnamed1804() { 1262 buildUnnamed1521() {
1127 var o = new core.List<api.WorkItemServiceState>(); 1263 var o = new core.List<api.WorkItemServiceState>();
1128 o.add(buildWorkItemServiceState()); 1264 o.add(buildWorkItemServiceState());
1129 o.add(buildWorkItemServiceState()); 1265 o.add(buildWorkItemServiceState());
1130 return o; 1266 return o;
1131 } 1267 }
1132 1268
1133 checkUnnamed1804(core.List<api.WorkItemServiceState> o) { 1269 checkUnnamed1521(core.List<api.WorkItemServiceState> o) {
1134 unittest.expect(o, unittest.hasLength(2)); 1270 unittest.expect(o, unittest.hasLength(2));
1135 checkWorkItemServiceState(o[0]); 1271 checkWorkItemServiceState(o[0]);
1136 checkWorkItemServiceState(o[1]); 1272 checkWorkItemServiceState(o[1]);
1137 } 1273 }
1138 1274
1139 core.int buildCounterReportWorkItemStatusResponse = 0; 1275 core.int buildCounterReportWorkItemStatusResponse = 0;
1140 buildReportWorkItemStatusResponse() { 1276 buildReportWorkItemStatusResponse() {
1141 var o = new api.ReportWorkItemStatusResponse(); 1277 var o = new api.ReportWorkItemStatusResponse();
1142 buildCounterReportWorkItemStatusResponse++; 1278 buildCounterReportWorkItemStatusResponse++;
1143 if (buildCounterReportWorkItemStatusResponse < 3) { 1279 if (buildCounterReportWorkItemStatusResponse < 3) {
1144 o.workItemServiceStates = buildUnnamed1804(); 1280 o.workItemServiceStates = buildUnnamed1521();
1145 } 1281 }
1146 buildCounterReportWorkItemStatusResponse--; 1282 buildCounterReportWorkItemStatusResponse--;
1147 return o; 1283 return o;
1148 } 1284 }
1149 1285
1150 checkReportWorkItemStatusResponse(api.ReportWorkItemStatusResponse o) { 1286 checkReportWorkItemStatusResponse(api.ReportWorkItemStatusResponse o) {
1151 buildCounterReportWorkItemStatusResponse++; 1287 buildCounterReportWorkItemStatusResponse++;
1152 if (buildCounterReportWorkItemStatusResponse < 3) { 1288 if (buildCounterReportWorkItemStatusResponse < 3) {
1153 checkUnnamed1804(o.workItemServiceStates); 1289 checkUnnamed1521(o.workItemServiceStates);
1154 } 1290 }
1155 buildCounterReportWorkItemStatusResponse--; 1291 buildCounterReportWorkItemStatusResponse--;
1156 } 1292 }
1157 1293
1158 buildUnnamed1805() { 1294 buildUnnamed1522() {
1159 var o = new core.List<api.SideInputInfo>(); 1295 var o = new core.List<api.SideInputInfo>();
1160 o.add(buildSideInputInfo()); 1296 o.add(buildSideInputInfo());
1161 o.add(buildSideInputInfo()); 1297 o.add(buildSideInputInfo());
1162 return o; 1298 return o;
1163 } 1299 }
1164 1300
1165 checkUnnamed1805(core.List<api.SideInputInfo> o) { 1301 checkUnnamed1522(core.List<api.SideInputInfo> o) {
1166 unittest.expect(o, unittest.hasLength(2)); 1302 unittest.expect(o, unittest.hasLength(2));
1167 checkSideInputInfo(o[0]); 1303 checkSideInputInfo(o[0]);
1168 checkSideInputInfo(o[1]); 1304 checkSideInputInfo(o[1]);
1169 } 1305 }
1170 1306
1171 buildUnnamed1806() { 1307 buildUnnamed1523() {
1172 var o = new core.List<api.SeqMapTaskOutputInfo>(); 1308 var o = new core.List<api.SeqMapTaskOutputInfo>();
1173 o.add(buildSeqMapTaskOutputInfo()); 1309 o.add(buildSeqMapTaskOutputInfo());
1174 o.add(buildSeqMapTaskOutputInfo()); 1310 o.add(buildSeqMapTaskOutputInfo());
1175 return o; 1311 return o;
1176 } 1312 }
1177 1313
1178 checkUnnamed1806(core.List<api.SeqMapTaskOutputInfo> o) { 1314 checkUnnamed1523(core.List<api.SeqMapTaskOutputInfo> o) {
1179 unittest.expect(o, unittest.hasLength(2)); 1315 unittest.expect(o, unittest.hasLength(2));
1180 checkSeqMapTaskOutputInfo(o[0]); 1316 checkSeqMapTaskOutputInfo(o[0]);
1181 checkSeqMapTaskOutputInfo(o[1]); 1317 checkSeqMapTaskOutputInfo(o[1]);
1182 } 1318 }
1183 1319
1184 buildUnnamed1807() { 1320 buildUnnamed1524() {
1185 var o = new core.Map<core.String, core.Object>(); 1321 var o = new core.Map<core.String, core.Object>();
1186 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1322 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1187 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1323 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1188 return o; 1324 return o;
1189 } 1325 }
1190 1326
1191 checkUnnamed1807(core.Map<core.String, core.Object> o) { 1327 checkUnnamed1524(core.Map<core.String, core.Object> o) {
1192 unittest.expect(o, unittest.hasLength(2)); 1328 unittest.expect(o, unittest.hasLength(2));
1193 var casted18 = (o["x"]) 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')); 1329 var casted20 = (o["x"]) 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'));
1194 var casted19 = (o["y"]) 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')); 1330 var casted21 = (o["y"]) 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'));
1195 } 1331 }
1196 1332
1197 core.int buildCounterSeqMapTask = 0; 1333 core.int buildCounterSeqMapTask = 0;
1198 buildSeqMapTask() { 1334 buildSeqMapTask() {
1199 var o = new api.SeqMapTask(); 1335 var o = new api.SeqMapTask();
1200 buildCounterSeqMapTask++; 1336 buildCounterSeqMapTask++;
1201 if (buildCounterSeqMapTask < 3) { 1337 if (buildCounterSeqMapTask < 3) {
1202 o.inputs = buildUnnamed1805(); 1338 o.inputs = buildUnnamed1522();
1203 o.name = "foo"; 1339 o.name = "foo";
1204 o.outputInfos = buildUnnamed1806(); 1340 o.outputInfos = buildUnnamed1523();
1205 o.stageName = "foo"; 1341 o.stageName = "foo";
1206 o.systemName = "foo"; 1342 o.systemName = "foo";
1207 o.userFn = buildUnnamed1807(); 1343 o.userFn = buildUnnamed1524();
1208 } 1344 }
1209 buildCounterSeqMapTask--; 1345 buildCounterSeqMapTask--;
1210 return o; 1346 return o;
1211 } 1347 }
1212 1348
1213 checkSeqMapTask(api.SeqMapTask o) { 1349 checkSeqMapTask(api.SeqMapTask o) {
1214 buildCounterSeqMapTask++; 1350 buildCounterSeqMapTask++;
1215 if (buildCounterSeqMapTask < 3) { 1351 if (buildCounterSeqMapTask < 3) {
1216 checkUnnamed1805(o.inputs); 1352 checkUnnamed1522(o.inputs);
1217 unittest.expect(o.name, unittest.equals('foo')); 1353 unittest.expect(o.name, unittest.equals('foo'));
1218 checkUnnamed1806(o.outputInfos); 1354 checkUnnamed1523(o.outputInfos);
1219 unittest.expect(o.stageName, unittest.equals('foo')); 1355 unittest.expect(o.stageName, unittest.equals('foo'));
1220 unittest.expect(o.systemName, unittest.equals('foo')); 1356 unittest.expect(o.systemName, unittest.equals('foo'));
1221 checkUnnamed1807(o.userFn); 1357 checkUnnamed1524(o.userFn);
1222 } 1358 }
1223 buildCounterSeqMapTask--; 1359 buildCounterSeqMapTask--;
1224 } 1360 }
1225 1361
1226 core.int buildCounterSeqMapTaskOutputInfo = 0; 1362 core.int buildCounterSeqMapTaskOutputInfo = 0;
1227 buildSeqMapTaskOutputInfo() { 1363 buildSeqMapTaskOutputInfo() {
1228 var o = new api.SeqMapTaskOutputInfo(); 1364 var o = new api.SeqMapTaskOutputInfo();
1229 buildCounterSeqMapTaskOutputInfo++; 1365 buildCounterSeqMapTaskOutputInfo++;
1230 if (buildCounterSeqMapTaskOutputInfo < 3) { 1366 if (buildCounterSeqMapTaskOutputInfo < 3) {
1231 o.sink = buildSink(); 1367 o.sink = buildSink();
(...skipping 26 matching lines...) Expand all
1258 1394
1259 checkShellTask(api.ShellTask o) { 1395 checkShellTask(api.ShellTask o) {
1260 buildCounterShellTask++; 1396 buildCounterShellTask++;
1261 if (buildCounterShellTask < 3) { 1397 if (buildCounterShellTask < 3) {
1262 unittest.expect(o.command, unittest.equals('foo')); 1398 unittest.expect(o.command, unittest.equals('foo'));
1263 unittest.expect(o.exitCode, unittest.equals(42)); 1399 unittest.expect(o.exitCode, unittest.equals(42));
1264 } 1400 }
1265 buildCounterShellTask--; 1401 buildCounterShellTask--;
1266 } 1402 }
1267 1403
1268 buildUnnamed1808() { 1404 buildUnnamed1525() {
1269 var o = new core.Map<core.String, core.Object>(); 1405 var o = new core.Map<core.String, core.Object>();
1270 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1406 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1271 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1407 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1272 return o; 1408 return o;
1273 } 1409 }
1274 1410
1275 checkUnnamed1808(core.Map<core.String, core.Object> o) { 1411 checkUnnamed1525(core.Map<core.String, core.Object> o) {
1276 unittest.expect(o, unittest.hasLength(2)); 1412 unittest.expect(o, unittest.hasLength(2));
1277 var casted20 = (o["x"]) 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')); 1413 var casted22 = (o["x"]) 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'));
1278 var casted21 = (o["y"]) 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')); 1414 var casted23 = (o["y"]) 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'));
1279 } 1415 }
1280 1416
1281 buildUnnamed1809() { 1417 buildUnnamed1526() {
1282 var o = new core.List<api.Source>(); 1418 var o = new core.List<api.Source>();
1283 o.add(buildSource()); 1419 o.add(buildSource());
1284 o.add(buildSource()); 1420 o.add(buildSource());
1285 return o; 1421 return o;
1286 } 1422 }
1287 1423
1288 checkUnnamed1809(core.List<api.Source> o) { 1424 checkUnnamed1526(core.List<api.Source> o) {
1289 unittest.expect(o, unittest.hasLength(2)); 1425 unittest.expect(o, unittest.hasLength(2));
1290 checkSource(o[0]); 1426 checkSource(o[0]);
1291 checkSource(o[1]); 1427 checkSource(o[1]);
1292 } 1428 }
1293 1429
1294 core.int buildCounterSideInputInfo = 0; 1430 core.int buildCounterSideInputInfo = 0;
1295 buildSideInputInfo() { 1431 buildSideInputInfo() {
1296 var o = new api.SideInputInfo(); 1432 var o = new api.SideInputInfo();
1297 buildCounterSideInputInfo++; 1433 buildCounterSideInputInfo++;
1298 if (buildCounterSideInputInfo < 3) { 1434 if (buildCounterSideInputInfo < 3) {
1299 o.kind = buildUnnamed1808(); 1435 o.kind = buildUnnamed1525();
1300 o.sources = buildUnnamed1809(); 1436 o.sources = buildUnnamed1526();
1301 o.tag = "foo"; 1437 o.tag = "foo";
1302 } 1438 }
1303 buildCounterSideInputInfo--; 1439 buildCounterSideInputInfo--;
1304 return o; 1440 return o;
1305 } 1441 }
1306 1442
1307 checkSideInputInfo(api.SideInputInfo o) { 1443 checkSideInputInfo(api.SideInputInfo o) {
1308 buildCounterSideInputInfo++; 1444 buildCounterSideInputInfo++;
1309 if (buildCounterSideInputInfo < 3) { 1445 if (buildCounterSideInputInfo < 3) {
1310 checkUnnamed1808(o.kind); 1446 checkUnnamed1525(o.kind);
1311 checkUnnamed1809(o.sources); 1447 checkUnnamed1526(o.sources);
1312 unittest.expect(o.tag, unittest.equals('foo')); 1448 unittest.expect(o.tag, unittest.equals('foo'));
1313 } 1449 }
1314 buildCounterSideInputInfo--; 1450 buildCounterSideInputInfo--;
1315 } 1451 }
1316 1452
1317 buildUnnamed1810() { 1453 buildUnnamed1527() {
1318 var o = new core.Map<core.String, core.Object>(); 1454 var o = new core.Map<core.String, core.Object>();
1319 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1455 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1320 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1456 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1321 return o; 1457 return o;
1322 } 1458 }
1323 1459
1324 checkUnnamed1810(core.Map<core.String, core.Object> o) { 1460 checkUnnamed1527(core.Map<core.String, core.Object> o) {
1325 unittest.expect(o, unittest.hasLength(2)); 1461 unittest.expect(o, unittest.hasLength(2));
1326 var casted22 = (o["x"]) 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')); 1462 var casted24 = (o["x"]) 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'));
1327 var casted23 = (o["y"]) 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')); 1463 var casted25 = (o["y"]) 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'));
1328 } 1464 }
1329 1465
1330 buildUnnamed1811() { 1466 buildUnnamed1528() {
1331 var o = new core.Map<core.String, core.Object>(); 1467 var o = new core.Map<core.String, core.Object>();
1332 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1468 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1333 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1469 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1334 return o; 1470 return o;
1335 } 1471 }
1336 1472
1337 checkUnnamed1811(core.Map<core.String, core.Object> o) { 1473 checkUnnamed1528(core.Map<core.String, core.Object> o) {
1338 unittest.expect(o, unittest.hasLength(2)); 1474 unittest.expect(o, unittest.hasLength(2));
1339 var casted24 = (o["x"]) 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')); 1475 var casted26 = (o["x"]) 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'));
1340 var casted25 = (o["y"]) 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')); 1476 var casted27 = (o["y"]) 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'));
1341 } 1477 }
1342 1478
1343 core.int buildCounterSink = 0; 1479 core.int buildCounterSink = 0;
1344 buildSink() { 1480 buildSink() {
1345 var o = new api.Sink(); 1481 var o = new api.Sink();
1346 buildCounterSink++; 1482 buildCounterSink++;
1347 if (buildCounterSink < 3) { 1483 if (buildCounterSink < 3) {
1348 o.codec = buildUnnamed1810(); 1484 o.codec = buildUnnamed1527();
1349 o.spec = buildUnnamed1811(); 1485 o.spec = buildUnnamed1528();
1350 } 1486 }
1351 buildCounterSink--; 1487 buildCounterSink--;
1352 return o; 1488 return o;
1353 } 1489 }
1354 1490
1355 checkSink(api.Sink o) { 1491 checkSink(api.Sink o) {
1356 buildCounterSink++; 1492 buildCounterSink++;
1357 if (buildCounterSink < 3) { 1493 if (buildCounterSink < 3) {
1358 checkUnnamed1810(o.codec); 1494 checkUnnamed1527(o.codec);
1359 checkUnnamed1811(o.spec); 1495 checkUnnamed1528(o.spec);
1360 } 1496 }
1361 buildCounterSink--; 1497 buildCounterSink--;
1362 } 1498 }
1363 1499
1364 buildUnnamed1812() { 1500 buildUnnamed1529() {
1365 var o = new core.Map<core.String, core.Object>(); 1501 var o = new core.Map<core.String, core.Object>();
1366 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1502 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1367 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1503 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1368 return o; 1504 return o;
1369 } 1505 }
1370 1506
1371 checkUnnamed1812(core.Map<core.String, core.Object> o) { 1507 checkUnnamed1529(core.Map<core.String, core.Object> o) {
1372 unittest.expect(o, unittest.hasLength(2)); 1508 unittest.expect(o, unittest.hasLength(2));
1373 var casted26 = (o["x"]) 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')); 1509 var casted28 = (o["x"]) 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'));
1374 var casted27 = (o["y"]) 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')); 1510 var casted29 = (o["y"]) 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'));
1375 } 1511 }
1376 1512
1377 buildUnnamed1813() { 1513 buildUnnamed1530() {
1378 var o = new core.List<core.Map<core.String, core.Object>>(); 1514 var o = new core.List<core.Map<core.String, core.Object>>();
1379 o.add(buildUnnamed1812()); 1515 o.add(buildUnnamed1529());
1380 o.add(buildUnnamed1812()); 1516 o.add(buildUnnamed1529());
1381 return o; 1517 return o;
1382 } 1518 }
1383 1519
1384 checkUnnamed1813(core.List<core.Map<core.String, core.Object>> o) { 1520 checkUnnamed1530(core.List<core.Map<core.String, core.Object>> o) {
1385 unittest.expect(o, unittest.hasLength(2)); 1521 unittest.expect(o, unittest.hasLength(2));
1386 checkUnnamed1812(o[0]); 1522 checkUnnamed1529(o[0]);
1387 checkUnnamed1812(o[1]); 1523 checkUnnamed1529(o[1]);
1388 } 1524 }
1389 1525
1390 buildUnnamed1814() { 1526 buildUnnamed1531() {
1391 var o = new core.Map<core.String, core.Object>(); 1527 var o = new core.Map<core.String, core.Object>();
1392 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1528 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1393 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1529 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1394 return o; 1530 return o;
1395 } 1531 }
1396 1532
1397 checkUnnamed1814(core.Map<core.String, core.Object> o) { 1533 checkUnnamed1531(core.Map<core.String, core.Object> o) {
1398 unittest.expect(o, unittest.hasLength(2)); 1534 unittest.expect(o, unittest.hasLength(2));
1399 var casted28 = (o["x"]) 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')); 1535 var casted30 = (o["x"]) 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'));
1400 var casted29 = (o["y"]) 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')); 1536 var casted31 = (o["y"]) 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'));
1401 } 1537 }
1402 1538
1403 buildUnnamed1815() { 1539 buildUnnamed1532() {
1404 var o = new core.Map<core.String, core.Object>(); 1540 var o = new core.Map<core.String, core.Object>();
1405 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1541 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1406 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1542 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1407 return o; 1543 return o;
1408 } 1544 }
1409 1545
1410 checkUnnamed1815(core.Map<core.String, core.Object> o) { 1546 checkUnnamed1532(core.Map<core.String, core.Object> o) {
1411 unittest.expect(o, unittest.hasLength(2)); 1547 unittest.expect(o, unittest.hasLength(2));
1412 var casted30 = (o["x"]) 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')); 1548 var casted32 = (o["x"]) 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'));
1413 var casted31 = (o["y"]) 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')); 1549 var casted33 = (o["y"]) 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'));
1414 } 1550 }
1415 1551
1416 core.int buildCounterSource = 0; 1552 core.int buildCounterSource = 0;
1417 buildSource() { 1553 buildSource() {
1418 var o = new api.Source(); 1554 var o = new api.Source();
1419 buildCounterSource++; 1555 buildCounterSource++;
1420 if (buildCounterSource < 3) { 1556 if (buildCounterSource < 3) {
1421 o.baseSpecs = buildUnnamed1813(); 1557 o.baseSpecs = buildUnnamed1530();
1422 o.codec = buildUnnamed1814(); 1558 o.codec = buildUnnamed1531();
1423 o.doesNotNeedSplitting = true; 1559 o.doesNotNeedSplitting = true;
1424 o.metadata = buildSourceMetadata(); 1560 o.metadata = buildSourceMetadata();
1425 o.spec = buildUnnamed1815(); 1561 o.spec = buildUnnamed1532();
1426 } 1562 }
1427 buildCounterSource--; 1563 buildCounterSource--;
1428 return o; 1564 return o;
1429 } 1565 }
1430 1566
1431 checkSource(api.Source o) { 1567 checkSource(api.Source o) {
1432 buildCounterSource++; 1568 buildCounterSource++;
1433 if (buildCounterSource < 3) { 1569 if (buildCounterSource < 3) {
1434 checkUnnamed1813(o.baseSpecs); 1570 checkUnnamed1530(o.baseSpecs);
1435 checkUnnamed1814(o.codec); 1571 checkUnnamed1531(o.codec);
1436 unittest.expect(o.doesNotNeedSplitting, unittest.isTrue); 1572 unittest.expect(o.doesNotNeedSplitting, unittest.isTrue);
1437 checkSourceMetadata(o.metadata); 1573 checkSourceMetadata(o.metadata);
1438 checkUnnamed1815(o.spec); 1574 checkUnnamed1532(o.spec);
1439 } 1575 }
1440 buildCounterSource--; 1576 buildCounterSource--;
1441 } 1577 }
1442 1578
1443 core.int buildCounterSourceFork = 0; 1579 core.int buildCounterSourceFork = 0;
1444 buildSourceFork() { 1580 buildSourceFork() {
1445 var o = new api.SourceFork(); 1581 var o = new api.SourceFork();
1446 buildCounterSourceFork++; 1582 buildCounterSourceFork++;
1447 if (buildCounterSourceFork < 3) { 1583 if (buildCounterSourceFork < 3) {
1448 o.primary = buildSourceSplitShard(); 1584 o.primary = buildSourceSplitShard();
1585 o.primarySource = buildDerivedSource();
1449 o.residual = buildSourceSplitShard(); 1586 o.residual = buildSourceSplitShard();
1587 o.residualSource = buildDerivedSource();
1450 } 1588 }
1451 buildCounterSourceFork--; 1589 buildCounterSourceFork--;
1452 return o; 1590 return o;
1453 } 1591 }
1454 1592
1455 checkSourceFork(api.SourceFork o) { 1593 checkSourceFork(api.SourceFork o) {
1456 buildCounterSourceFork++; 1594 buildCounterSourceFork++;
1457 if (buildCounterSourceFork < 3) { 1595 if (buildCounterSourceFork < 3) {
1458 checkSourceSplitShard(o.primary); 1596 checkSourceSplitShard(o.primary);
1597 checkDerivedSource(o.primarySource);
1459 checkSourceSplitShard(o.residual); 1598 checkSourceSplitShard(o.residual);
1599 checkDerivedSource(o.residualSource);
1460 } 1600 }
1461 buildCounterSourceFork--; 1601 buildCounterSourceFork--;
1462 } 1602 }
1463 1603
1464 core.int buildCounterSourceGetMetadataRequest = 0; 1604 core.int buildCounterSourceGetMetadataRequest = 0;
1465 buildSourceGetMetadataRequest() { 1605 buildSourceGetMetadataRequest() {
1466 var o = new api.SourceGetMetadataRequest(); 1606 var o = new api.SourceGetMetadataRequest();
1467 buildCounterSourceGetMetadataRequest++; 1607 buildCounterSourceGetMetadataRequest++;
1468 if (buildCounterSourceGetMetadataRequest < 3) { 1608 if (buildCounterSourceGetMetadataRequest < 3) {
1469 o.source = buildSource(); 1609 o.source = buildSource();
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 checkSourceSplitResponse(o.split); 1702 checkSourceSplitResponse(o.split);
1563 } 1703 }
1564 buildCounterSourceOperationResponse--; 1704 buildCounterSourceOperationResponse--;
1565 } 1705 }
1566 1706
1567 core.int buildCounterSourceSplitOptions = 0; 1707 core.int buildCounterSourceSplitOptions = 0;
1568 buildSourceSplitOptions() { 1708 buildSourceSplitOptions() {
1569 var o = new api.SourceSplitOptions(); 1709 var o = new api.SourceSplitOptions();
1570 buildCounterSourceSplitOptions++; 1710 buildCounterSourceSplitOptions++;
1571 if (buildCounterSourceSplitOptions < 3) { 1711 if (buildCounterSourceSplitOptions < 3) {
1712 o.desiredBundleSizeBytes = "foo";
1572 o.desiredShardSizeBytes = "foo"; 1713 o.desiredShardSizeBytes = "foo";
1573 } 1714 }
1574 buildCounterSourceSplitOptions--; 1715 buildCounterSourceSplitOptions--;
1575 return o; 1716 return o;
1576 } 1717 }
1577 1718
1578 checkSourceSplitOptions(api.SourceSplitOptions o) { 1719 checkSourceSplitOptions(api.SourceSplitOptions o) {
1579 buildCounterSourceSplitOptions++; 1720 buildCounterSourceSplitOptions++;
1580 if (buildCounterSourceSplitOptions < 3) { 1721 if (buildCounterSourceSplitOptions < 3) {
1722 unittest.expect(o.desiredBundleSizeBytes, unittest.equals('foo'));
1581 unittest.expect(o.desiredShardSizeBytes, unittest.equals('foo')); 1723 unittest.expect(o.desiredShardSizeBytes, unittest.equals('foo'));
1582 } 1724 }
1583 buildCounterSourceSplitOptions--; 1725 buildCounterSourceSplitOptions--;
1584 } 1726 }
1585 1727
1586 core.int buildCounterSourceSplitRequest = 0; 1728 core.int buildCounterSourceSplitRequest = 0;
1587 buildSourceSplitRequest() { 1729 buildSourceSplitRequest() {
1588 var o = new api.SourceSplitRequest(); 1730 var o = new api.SourceSplitRequest();
1589 buildCounterSourceSplitRequest++; 1731 buildCounterSourceSplitRequest++;
1590 if (buildCounterSourceSplitRequest < 3) { 1732 if (buildCounterSourceSplitRequest < 3) {
1591 o.options = buildSourceSplitOptions(); 1733 o.options = buildSourceSplitOptions();
1592 o.source = buildSource(); 1734 o.source = buildSource();
1593 } 1735 }
1594 buildCounterSourceSplitRequest--; 1736 buildCounterSourceSplitRequest--;
1595 return o; 1737 return o;
1596 } 1738 }
1597 1739
1598 checkSourceSplitRequest(api.SourceSplitRequest o) { 1740 checkSourceSplitRequest(api.SourceSplitRequest o) {
1599 buildCounterSourceSplitRequest++; 1741 buildCounterSourceSplitRequest++;
1600 if (buildCounterSourceSplitRequest < 3) { 1742 if (buildCounterSourceSplitRequest < 3) {
1601 checkSourceSplitOptions(o.options); 1743 checkSourceSplitOptions(o.options);
1602 checkSource(o.source); 1744 checkSource(o.source);
1603 } 1745 }
1604 buildCounterSourceSplitRequest--; 1746 buildCounterSourceSplitRequest--;
1605 } 1747 }
1606 1748
1607 buildUnnamed1816() { 1749 buildUnnamed1533() {
1750 var o = new core.List<api.DerivedSource>();
1751 o.add(buildDerivedSource());
1752 o.add(buildDerivedSource());
1753 return o;
1754 }
1755
1756 checkUnnamed1533(core.List<api.DerivedSource> o) {
1757 unittest.expect(o, unittest.hasLength(2));
1758 checkDerivedSource(o[0]);
1759 checkDerivedSource(o[1]);
1760 }
1761
1762 buildUnnamed1534() {
1608 var o = new core.List<api.SourceSplitShard>(); 1763 var o = new core.List<api.SourceSplitShard>();
1609 o.add(buildSourceSplitShard()); 1764 o.add(buildSourceSplitShard());
1610 o.add(buildSourceSplitShard()); 1765 o.add(buildSourceSplitShard());
1611 return o; 1766 return o;
1612 } 1767 }
1613 1768
1614 checkUnnamed1816(core.List<api.SourceSplitShard> o) { 1769 checkUnnamed1534(core.List<api.SourceSplitShard> o) {
1615 unittest.expect(o, unittest.hasLength(2)); 1770 unittest.expect(o, unittest.hasLength(2));
1616 checkSourceSplitShard(o[0]); 1771 checkSourceSplitShard(o[0]);
1617 checkSourceSplitShard(o[1]); 1772 checkSourceSplitShard(o[1]);
1618 } 1773 }
1619 1774
1620 core.int buildCounterSourceSplitResponse = 0; 1775 core.int buildCounterSourceSplitResponse = 0;
1621 buildSourceSplitResponse() { 1776 buildSourceSplitResponse() {
1622 var o = new api.SourceSplitResponse(); 1777 var o = new api.SourceSplitResponse();
1623 buildCounterSourceSplitResponse++; 1778 buildCounterSourceSplitResponse++;
1624 if (buildCounterSourceSplitResponse < 3) { 1779 if (buildCounterSourceSplitResponse < 3) {
1780 o.bundles = buildUnnamed1533();
1625 o.outcome = "foo"; 1781 o.outcome = "foo";
1626 o.shards = buildUnnamed1816(); 1782 o.shards = buildUnnamed1534();
1627 } 1783 }
1628 buildCounterSourceSplitResponse--; 1784 buildCounterSourceSplitResponse--;
1629 return o; 1785 return o;
1630 } 1786 }
1631 1787
1632 checkSourceSplitResponse(api.SourceSplitResponse o) { 1788 checkSourceSplitResponse(api.SourceSplitResponse o) {
1633 buildCounterSourceSplitResponse++; 1789 buildCounterSourceSplitResponse++;
1634 if (buildCounterSourceSplitResponse < 3) { 1790 if (buildCounterSourceSplitResponse < 3) {
1791 checkUnnamed1533(o.bundles);
1635 unittest.expect(o.outcome, unittest.equals('foo')); 1792 unittest.expect(o.outcome, unittest.equals('foo'));
1636 checkUnnamed1816(o.shards); 1793 checkUnnamed1534(o.shards);
1637 } 1794 }
1638 buildCounterSourceSplitResponse--; 1795 buildCounterSourceSplitResponse--;
1639 } 1796 }
1640 1797
1641 core.int buildCounterSourceSplitShard = 0; 1798 core.int buildCounterSourceSplitShard = 0;
1642 buildSourceSplitShard() { 1799 buildSourceSplitShard() {
1643 var o = new api.SourceSplitShard(); 1800 var o = new api.SourceSplitShard();
1644 buildCounterSourceSplitShard++; 1801 buildCounterSourceSplitShard++;
1645 if (buildCounterSourceSplitShard < 3) { 1802 if (buildCounterSourceSplitShard < 3) {
1646 o.derivationMode = "foo"; 1803 o.derivationMode = "foo";
1647 o.source = buildSource(); 1804 o.source = buildSource();
1648 } 1805 }
1649 buildCounterSourceSplitShard--; 1806 buildCounterSourceSplitShard--;
1650 return o; 1807 return o;
1651 } 1808 }
1652 1809
1653 checkSourceSplitShard(api.SourceSplitShard o) { 1810 checkSourceSplitShard(api.SourceSplitShard o) {
1654 buildCounterSourceSplitShard++; 1811 buildCounterSourceSplitShard++;
1655 if (buildCounterSourceSplitShard < 3) { 1812 if (buildCounterSourceSplitShard < 3) {
1656 unittest.expect(o.derivationMode, unittest.equals('foo')); 1813 unittest.expect(o.derivationMode, unittest.equals('foo'));
1657 checkSource(o.source); 1814 checkSource(o.source);
1658 } 1815 }
1659 buildCounterSourceSplitShard--; 1816 buildCounterSourceSplitShard--;
1660 } 1817 }
1661 1818
1662 buildUnnamed1817() { 1819 buildUnnamed1535() {
1663 var o = new core.Map<core.String, core.Object>(); 1820 var o = new core.Map<core.String, core.Object>();
1664 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1821 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1665 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1822 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1666 return o; 1823 return o;
1667 } 1824 }
1668 1825
1669 checkUnnamed1817(core.Map<core.String, core.Object> o) { 1826 checkUnnamed1535(core.Map<core.String, core.Object> o) {
1670 unittest.expect(o, unittest.hasLength(2)); 1827 unittest.expect(o, unittest.hasLength(2));
1671 var casted32 = (o["x"]) 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')); 1828 var casted34 = (o["x"]) 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'));
1672 var casted33 = (o["y"]) 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')); 1829 var casted35 = (o["y"]) 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'));
1673 } 1830 }
1674 1831
1675 buildUnnamed1818() { 1832 buildUnnamed1536() {
1676 var o = new core.List<core.Map<core.String, core.Object>>(); 1833 var o = new core.List<core.Map<core.String, core.Object>>();
1677 o.add(buildUnnamed1817()); 1834 o.add(buildUnnamed1535());
1678 o.add(buildUnnamed1817()); 1835 o.add(buildUnnamed1535());
1679 return o; 1836 return o;
1680 } 1837 }
1681 1838
1682 checkUnnamed1818(core.List<core.Map<core.String, core.Object>> o) { 1839 checkUnnamed1536(core.List<core.Map<core.String, core.Object>> o) {
1683 unittest.expect(o, unittest.hasLength(2)); 1840 unittest.expect(o, unittest.hasLength(2));
1684 checkUnnamed1817(o[0]); 1841 checkUnnamed1535(o[0]);
1685 checkUnnamed1817(o[1]); 1842 checkUnnamed1535(o[1]);
1686 } 1843 }
1687 1844
1688 core.int buildCounterStatus = 0; 1845 core.int buildCounterStatus = 0;
1689 buildStatus() { 1846 buildStatus() {
1690 var o = new api.Status(); 1847 var o = new api.Status();
1691 buildCounterStatus++; 1848 buildCounterStatus++;
1692 if (buildCounterStatus < 3) { 1849 if (buildCounterStatus < 3) {
1693 o.code = 42; 1850 o.code = 42;
1694 o.details = buildUnnamed1818(); 1851 o.details = buildUnnamed1536();
1695 o.message = "foo"; 1852 o.message = "foo";
1696 } 1853 }
1697 buildCounterStatus--; 1854 buildCounterStatus--;
1698 return o; 1855 return o;
1699 } 1856 }
1700 1857
1701 checkStatus(api.Status o) { 1858 checkStatus(api.Status o) {
1702 buildCounterStatus++; 1859 buildCounterStatus++;
1703 if (buildCounterStatus < 3) { 1860 if (buildCounterStatus < 3) {
1704 unittest.expect(o.code, unittest.equals(42)); 1861 unittest.expect(o.code, unittest.equals(42));
1705 checkUnnamed1818(o.details); 1862 checkUnnamed1536(o.details);
1706 unittest.expect(o.message, unittest.equals('foo')); 1863 unittest.expect(o.message, unittest.equals('foo'));
1707 } 1864 }
1708 buildCounterStatus--; 1865 buildCounterStatus--;
1709 } 1866 }
1710 1867
1711 buildUnnamed1819() { 1868 buildUnnamed1537() {
1712 var o = new core.Map<core.String, core.Object>(); 1869 var o = new core.Map<core.String, core.Object>();
1713 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1870 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1714 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1871 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1715 return o; 1872 return o;
1716 } 1873 }
1717 1874
1718 checkUnnamed1819(core.Map<core.String, core.Object> o) { 1875 checkUnnamed1537(core.Map<core.String, core.Object> o) {
1719 unittest.expect(o, unittest.hasLength(2)); 1876 unittest.expect(o, unittest.hasLength(2));
1720 var casted34 = (o["x"]) 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')); 1877 var casted36 = (o["x"]) 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'));
1721 var casted35 = (o["y"]) 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')); 1878 var casted37 = (o["y"]) 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'));
1722 } 1879 }
1723 1880
1724 core.int buildCounterStep = 0; 1881 core.int buildCounterStep = 0;
1725 buildStep() { 1882 buildStep() {
1726 var o = new api.Step(); 1883 var o = new api.Step();
1727 buildCounterStep++; 1884 buildCounterStep++;
1728 if (buildCounterStep < 3) { 1885 if (buildCounterStep < 3) {
1729 o.kind = "foo"; 1886 o.kind = "foo";
1730 o.name = "foo"; 1887 o.name = "foo";
1731 o.properties = buildUnnamed1819(); 1888 o.properties = buildUnnamed1537();
1732 } 1889 }
1733 buildCounterStep--; 1890 buildCounterStep--;
1734 return o; 1891 return o;
1735 } 1892 }
1736 1893
1737 checkStep(api.Step o) { 1894 checkStep(api.Step o) {
1738 buildCounterStep++; 1895 buildCounterStep++;
1739 if (buildCounterStep < 3) { 1896 if (buildCounterStep < 3) {
1740 unittest.expect(o.kind, unittest.equals('foo')); 1897 unittest.expect(o.kind, unittest.equals('foo'));
1741 unittest.expect(o.name, unittest.equals('foo')); 1898 unittest.expect(o.name, unittest.equals('foo'));
1742 checkUnnamed1819(o.properties); 1899 checkUnnamed1537(o.properties);
1743 } 1900 }
1744 buildCounterStep--; 1901 buildCounterStep--;
1745 } 1902 }
1746 1903
1747 core.int buildCounterStreamLocation = 0; 1904 core.int buildCounterStreamLocation = 0;
1748 buildStreamLocation() { 1905 buildStreamLocation() {
1749 var o = new api.StreamLocation(); 1906 var o = new api.StreamLocation();
1750 buildCounterStreamLocation++; 1907 buildCounterStreamLocation++;
1751 if (buildCounterStreamLocation < 3) { 1908 if (buildCounterStreamLocation < 3) {
1752 o.pubsubLocation = buildPubsubLocation(); 1909 o.pubsubLocation = buildPubsubLocation();
1910 o.sideInputLocation = buildStreamingSideInputLocation();
1753 o.streamingStageLocation = buildStreamingStageLocation(); 1911 o.streamingStageLocation = buildStreamingStageLocation();
1754 } 1912 }
1755 buildCounterStreamLocation--; 1913 buildCounterStreamLocation--;
1756 return o; 1914 return o;
1757 } 1915 }
1758 1916
1759 checkStreamLocation(api.StreamLocation o) { 1917 checkStreamLocation(api.StreamLocation o) {
1760 buildCounterStreamLocation++; 1918 buildCounterStreamLocation++;
1761 if (buildCounterStreamLocation < 3) { 1919 if (buildCounterStreamLocation < 3) {
1762 checkPubsubLocation(o.pubsubLocation); 1920 checkPubsubLocation(o.pubsubLocation);
1921 checkStreamingSideInputLocation(o.sideInputLocation);
1763 checkStreamingStageLocation(o.streamingStageLocation); 1922 checkStreamingStageLocation(o.streamingStageLocation);
1764 } 1923 }
1765 buildCounterStreamLocation--; 1924 buildCounterStreamLocation--;
1766 } 1925 }
1767 1926
1927 buildUnnamed1538() {
1928 var o = new core.List<api.KeyRangeDataDiskAssignment>();
1929 o.add(buildKeyRangeDataDiskAssignment());
1930 o.add(buildKeyRangeDataDiskAssignment());
1931 return o;
1932 }
1933
1934 checkUnnamed1538(core.List<api.KeyRangeDataDiskAssignment> o) {
1935 unittest.expect(o, unittest.hasLength(2));
1936 checkKeyRangeDataDiskAssignment(o[0]);
1937 checkKeyRangeDataDiskAssignment(o[1]);
1938 }
1939
1940 core.int buildCounterStreamingComputationRanges = 0;
1941 buildStreamingComputationRanges() {
1942 var o = new api.StreamingComputationRanges();
1943 buildCounterStreamingComputationRanges++;
1944 if (buildCounterStreamingComputationRanges < 3) {
1945 o.computationId = "foo";
1946 o.rangeAssignments = buildUnnamed1538();
1947 }
1948 buildCounterStreamingComputationRanges--;
1949 return o;
1950 }
1951
1952 checkStreamingComputationRanges(api.StreamingComputationRanges o) {
1953 buildCounterStreamingComputationRanges++;
1954 if (buildCounterStreamingComputationRanges < 3) {
1955 unittest.expect(o.computationId, unittest.equals('foo'));
1956 checkUnnamed1538(o.rangeAssignments);
1957 }
1958 buildCounterStreamingComputationRanges--;
1959 }
1960
1961 buildUnnamed1539() {
1962 var o = new core.List<api.StreamingComputationRanges>();
1963 o.add(buildStreamingComputationRanges());
1964 o.add(buildStreamingComputationRanges());
1965 return o;
1966 }
1967
1968 checkUnnamed1539(core.List<api.StreamingComputationRanges> o) {
1969 unittest.expect(o, unittest.hasLength(2));
1970 checkStreamingComputationRanges(o[0]);
1971 checkStreamingComputationRanges(o[1]);
1972 }
1973
1974 buildUnnamed1540() {
1975 var o = new core.List<api.MountedDataDisk>();
1976 o.add(buildMountedDataDisk());
1977 o.add(buildMountedDataDisk());
1978 return o;
1979 }
1980
1981 checkUnnamed1540(core.List<api.MountedDataDisk> o) {
1982 unittest.expect(o, unittest.hasLength(2));
1983 checkMountedDataDisk(o[0]);
1984 checkMountedDataDisk(o[1]);
1985 }
1986
1987 core.int buildCounterStreamingComputationTask = 0;
1988 buildStreamingComputationTask() {
1989 var o = new api.StreamingComputationTask();
1990 buildCounterStreamingComputationTask++;
1991 if (buildCounterStreamingComputationTask < 3) {
1992 o.computationRanges = buildUnnamed1539();
1993 o.dataDisks = buildUnnamed1540();
1994 o.taskType = "foo";
1995 }
1996 buildCounterStreamingComputationTask--;
1997 return o;
1998 }
1999
2000 checkStreamingComputationTask(api.StreamingComputationTask o) {
2001 buildCounterStreamingComputationTask++;
2002 if (buildCounterStreamingComputationTask < 3) {
2003 checkUnnamed1539(o.computationRanges);
2004 checkUnnamed1540(o.dataDisks);
2005 unittest.expect(o.taskType, unittest.equals('foo'));
2006 }
2007 buildCounterStreamingComputationTask--;
2008 }
2009
1768 core.int buildCounterStreamingSetupTask = 0; 2010 core.int buildCounterStreamingSetupTask = 0;
1769 buildStreamingSetupTask() { 2011 buildStreamingSetupTask() {
1770 var o = new api.StreamingSetupTask(); 2012 var o = new api.StreamingSetupTask();
1771 buildCounterStreamingSetupTask++; 2013 buildCounterStreamingSetupTask++;
1772 if (buildCounterStreamingSetupTask < 3) { 2014 if (buildCounterStreamingSetupTask < 3) {
1773 o.receiveWorkPort = 42; 2015 o.receiveWorkPort = 42;
1774 o.streamingComputationTopology = buildTopologyConfig(); 2016 o.streamingComputationTopology = buildTopologyConfig();
1775 o.workerHarnessPort = 42; 2017 o.workerHarnessPort = 42;
1776 } 2018 }
1777 buildCounterStreamingSetupTask--; 2019 buildCounterStreamingSetupTask--;
1778 return o; 2020 return o;
1779 } 2021 }
1780 2022
1781 checkStreamingSetupTask(api.StreamingSetupTask o) { 2023 checkStreamingSetupTask(api.StreamingSetupTask o) {
1782 buildCounterStreamingSetupTask++; 2024 buildCounterStreamingSetupTask++;
1783 if (buildCounterStreamingSetupTask < 3) { 2025 if (buildCounterStreamingSetupTask < 3) {
1784 unittest.expect(o.receiveWorkPort, unittest.equals(42)); 2026 unittest.expect(o.receiveWorkPort, unittest.equals(42));
1785 checkTopologyConfig(o.streamingComputationTopology); 2027 checkTopologyConfig(o.streamingComputationTopology);
1786 unittest.expect(o.workerHarnessPort, unittest.equals(42)); 2028 unittest.expect(o.workerHarnessPort, unittest.equals(42));
1787 } 2029 }
1788 buildCounterStreamingSetupTask--; 2030 buildCounterStreamingSetupTask--;
1789 } 2031 }
1790 2032
2033 core.int buildCounterStreamingSideInputLocation = 0;
2034 buildStreamingSideInputLocation() {
2035 var o = new api.StreamingSideInputLocation();
2036 buildCounterStreamingSideInputLocation++;
2037 if (buildCounterStreamingSideInputLocation < 3) {
2038 o.tag = "foo";
2039 }
2040 buildCounterStreamingSideInputLocation--;
2041 return o;
2042 }
2043
2044 checkStreamingSideInputLocation(api.StreamingSideInputLocation o) {
2045 buildCounterStreamingSideInputLocation++;
2046 if (buildCounterStreamingSideInputLocation < 3) {
2047 unittest.expect(o.tag, unittest.equals('foo'));
2048 }
2049 buildCounterStreamingSideInputLocation--;
2050 }
2051
1791 core.int buildCounterStreamingStageLocation = 0; 2052 core.int buildCounterStreamingStageLocation = 0;
1792 buildStreamingStageLocation() { 2053 buildStreamingStageLocation() {
1793 var o = new api.StreamingStageLocation(); 2054 var o = new api.StreamingStageLocation();
1794 buildCounterStreamingStageLocation++; 2055 buildCounterStreamingStageLocation++;
1795 if (buildCounterStreamingStageLocation < 3) { 2056 if (buildCounterStreamingStageLocation < 3) {
1796 o.streamId = "foo"; 2057 o.streamId = "foo";
1797 } 2058 }
1798 buildCounterStreamingStageLocation--; 2059 buildCounterStreamingStageLocation--;
1799 return o; 2060 return o;
1800 } 2061 }
1801 2062
1802 checkStreamingStageLocation(api.StreamingStageLocation o) { 2063 checkStreamingStageLocation(api.StreamingStageLocation o) {
1803 buildCounterStreamingStageLocation++; 2064 buildCounterStreamingStageLocation++;
1804 if (buildCounterStreamingStageLocation < 3) { 2065 if (buildCounterStreamingStageLocation < 3) {
1805 unittest.expect(o.streamId, unittest.equals('foo')); 2066 unittest.expect(o.streamId, unittest.equals('foo'));
1806 } 2067 }
1807 buildCounterStreamingStageLocation--; 2068 buildCounterStreamingStageLocation--;
1808 } 2069 }
1809 2070
1810 buildUnnamed1820() { 2071 buildUnnamed1541() {
1811 var o = new core.List<core.String>(); 2072 var o = new core.List<core.String>();
1812 o.add("foo"); 2073 o.add("foo");
1813 o.add("foo"); 2074 o.add("foo");
1814 return o; 2075 return o;
1815 } 2076 }
1816 2077
1817 checkUnnamed1820(core.List<core.String> o) { 2078 checkUnnamed1541(core.List<core.String> o) {
1818 unittest.expect(o, unittest.hasLength(2)); 2079 unittest.expect(o, unittest.hasLength(2));
1819 unittest.expect(o[0], unittest.equals('foo')); 2080 unittest.expect(o[0], unittest.equals('foo'));
1820 unittest.expect(o[1], unittest.equals('foo')); 2081 unittest.expect(o[1], unittest.equals('foo'));
1821 } 2082 }
1822 2083
1823 core.int buildCounterTaskRunnerSettings = 0; 2084 core.int buildCounterTaskRunnerSettings = 0;
1824 buildTaskRunnerSettings() { 2085 buildTaskRunnerSettings() {
1825 var o = new api.TaskRunnerSettings(); 2086 var o = new api.TaskRunnerSettings();
1826 buildCounterTaskRunnerSettings++; 2087 buildCounterTaskRunnerSettings++;
1827 if (buildCounterTaskRunnerSettings < 3) { 2088 if (buildCounterTaskRunnerSettings < 3) {
1828 o.alsologtostderr = true; 2089 o.alsologtostderr = true;
1829 o.baseTaskDir = "foo"; 2090 o.baseTaskDir = "foo";
1830 o.baseUrl = "foo"; 2091 o.baseUrl = "foo";
1831 o.commandlinesFileName = "foo"; 2092 o.commandlinesFileName = "foo";
1832 o.continueOnException = true; 2093 o.continueOnException = true;
1833 o.dataflowApiVersion = "foo"; 2094 o.dataflowApiVersion = "foo";
1834 o.harnessCommand = "foo"; 2095 o.harnessCommand = "foo";
1835 o.languageHint = "foo"; 2096 o.languageHint = "foo";
1836 o.logDir = "foo"; 2097 o.logDir = "foo";
1837 o.logToSerialconsole = true; 2098 o.logToSerialconsole = true;
1838 o.logUploadLocation = "foo"; 2099 o.logUploadLocation = "foo";
1839 o.oauthScopes = buildUnnamed1820(); 2100 o.oauthScopes = buildUnnamed1541();
1840 o.parallelWorkerSettings = buildWorkerSettings(); 2101 o.parallelWorkerSettings = buildWorkerSettings();
1841 o.streamingWorkerMainClass = "foo"; 2102 o.streamingWorkerMainClass = "foo";
1842 o.taskGroup = "foo"; 2103 o.taskGroup = "foo";
1843 o.taskUser = "foo"; 2104 o.taskUser = "foo";
1844 o.tempStoragePrefix = "foo"; 2105 o.tempStoragePrefix = "foo";
1845 o.vmId = "foo"; 2106 o.vmId = "foo";
1846 o.workflowFileName = "foo"; 2107 o.workflowFileName = "foo";
1847 } 2108 }
1848 buildCounterTaskRunnerSettings--; 2109 buildCounterTaskRunnerSettings--;
1849 return o; 2110 return o;
1850 } 2111 }
1851 2112
1852 checkTaskRunnerSettings(api.TaskRunnerSettings o) { 2113 checkTaskRunnerSettings(api.TaskRunnerSettings o) {
1853 buildCounterTaskRunnerSettings++; 2114 buildCounterTaskRunnerSettings++;
1854 if (buildCounterTaskRunnerSettings < 3) { 2115 if (buildCounterTaskRunnerSettings < 3) {
1855 unittest.expect(o.alsologtostderr, unittest.isTrue); 2116 unittest.expect(o.alsologtostderr, unittest.isTrue);
1856 unittest.expect(o.baseTaskDir, unittest.equals('foo')); 2117 unittest.expect(o.baseTaskDir, unittest.equals('foo'));
1857 unittest.expect(o.baseUrl, unittest.equals('foo')); 2118 unittest.expect(o.baseUrl, unittest.equals('foo'));
1858 unittest.expect(o.commandlinesFileName, unittest.equals('foo')); 2119 unittest.expect(o.commandlinesFileName, unittest.equals('foo'));
1859 unittest.expect(o.continueOnException, unittest.isTrue); 2120 unittest.expect(o.continueOnException, unittest.isTrue);
1860 unittest.expect(o.dataflowApiVersion, unittest.equals('foo')); 2121 unittest.expect(o.dataflowApiVersion, unittest.equals('foo'));
1861 unittest.expect(o.harnessCommand, unittest.equals('foo')); 2122 unittest.expect(o.harnessCommand, unittest.equals('foo'));
1862 unittest.expect(o.languageHint, unittest.equals('foo')); 2123 unittest.expect(o.languageHint, unittest.equals('foo'));
1863 unittest.expect(o.logDir, unittest.equals('foo')); 2124 unittest.expect(o.logDir, unittest.equals('foo'));
1864 unittest.expect(o.logToSerialconsole, unittest.isTrue); 2125 unittest.expect(o.logToSerialconsole, unittest.isTrue);
1865 unittest.expect(o.logUploadLocation, unittest.equals('foo')); 2126 unittest.expect(o.logUploadLocation, unittest.equals('foo'));
1866 checkUnnamed1820(o.oauthScopes); 2127 checkUnnamed1541(o.oauthScopes);
1867 checkWorkerSettings(o.parallelWorkerSettings); 2128 checkWorkerSettings(o.parallelWorkerSettings);
1868 unittest.expect(o.streamingWorkerMainClass, unittest.equals('foo')); 2129 unittest.expect(o.streamingWorkerMainClass, unittest.equals('foo'));
1869 unittest.expect(o.taskGroup, unittest.equals('foo')); 2130 unittest.expect(o.taskGroup, unittest.equals('foo'));
1870 unittest.expect(o.taskUser, unittest.equals('foo')); 2131 unittest.expect(o.taskUser, unittest.equals('foo'));
1871 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); 2132 unittest.expect(o.tempStoragePrefix, unittest.equals('foo'));
1872 unittest.expect(o.vmId, unittest.equals('foo')); 2133 unittest.expect(o.vmId, unittest.equals('foo'));
1873 unittest.expect(o.workflowFileName, unittest.equals('foo')); 2134 unittest.expect(o.workflowFileName, unittest.equals('foo'));
1874 } 2135 }
1875 buildCounterTaskRunnerSettings--; 2136 buildCounterTaskRunnerSettings--;
1876 } 2137 }
1877 2138
1878 buildUnnamed1821() { 2139 buildUnnamed1542() {
1879 var o = new core.List<api.ComputationTopology>(); 2140 var o = new core.List<api.ComputationTopology>();
1880 o.add(buildComputationTopology()); 2141 o.add(buildComputationTopology());
1881 o.add(buildComputationTopology()); 2142 o.add(buildComputationTopology());
1882 return o; 2143 return o;
1883 } 2144 }
1884 2145
1885 checkUnnamed1821(core.List<api.ComputationTopology> o) { 2146 checkUnnamed1542(core.List<api.ComputationTopology> o) {
1886 unittest.expect(o, unittest.hasLength(2)); 2147 unittest.expect(o, unittest.hasLength(2));
1887 checkComputationTopology(o[0]); 2148 checkComputationTopology(o[0]);
1888 checkComputationTopology(o[1]); 2149 checkComputationTopology(o[1]);
1889 } 2150 }
1890 2151
1891 buildUnnamed1822() { 2152 buildUnnamed1543() {
1892 var o = new core.List<api.DataDiskAssignment>(); 2153 var o = new core.List<api.DataDiskAssignment>();
1893 o.add(buildDataDiskAssignment()); 2154 o.add(buildDataDiskAssignment());
1894 o.add(buildDataDiskAssignment()); 2155 o.add(buildDataDiskAssignment());
1895 return o; 2156 return o;
1896 } 2157 }
1897 2158
1898 checkUnnamed1822(core.List<api.DataDiskAssignment> o) { 2159 checkUnnamed1543(core.List<api.DataDiskAssignment> o) {
1899 unittest.expect(o, unittest.hasLength(2)); 2160 unittest.expect(o, unittest.hasLength(2));
1900 checkDataDiskAssignment(o[0]); 2161 checkDataDiskAssignment(o[0]);
1901 checkDataDiskAssignment(o[1]); 2162 checkDataDiskAssignment(o[1]);
1902 } 2163 }
1903 2164
1904 core.int buildCounterTopologyConfig = 0; 2165 core.int buildCounterTopologyConfig = 0;
1905 buildTopologyConfig() { 2166 buildTopologyConfig() {
1906 var o = new api.TopologyConfig(); 2167 var o = new api.TopologyConfig();
1907 buildCounterTopologyConfig++; 2168 buildCounterTopologyConfig++;
1908 if (buildCounterTopologyConfig < 3) { 2169 if (buildCounterTopologyConfig < 3) {
1909 o.computations = buildUnnamed1821(); 2170 o.computations = buildUnnamed1542();
1910 o.dataDiskAssignments = buildUnnamed1822(); 2171 o.dataDiskAssignments = buildUnnamed1543();
1911 } 2172 }
1912 buildCounterTopologyConfig--; 2173 buildCounterTopologyConfig--;
1913 return o; 2174 return o;
1914 } 2175 }
1915 2176
1916 checkTopologyConfig(api.TopologyConfig o) { 2177 checkTopologyConfig(api.TopologyConfig o) {
1917 buildCounterTopologyConfig++; 2178 buildCounterTopologyConfig++;
1918 if (buildCounterTopologyConfig < 3) { 2179 if (buildCounterTopologyConfig < 3) {
1919 checkUnnamed1821(o.computations); 2180 checkUnnamed1542(o.computations);
1920 checkUnnamed1822(o.dataDiskAssignments); 2181 checkUnnamed1543(o.dataDiskAssignments);
1921 } 2182 }
1922 buildCounterTopologyConfig--; 2183 buildCounterTopologyConfig--;
1923 } 2184 }
1924 2185
1925 buildUnnamed1823() { 2186 buildUnnamed1544() {
1926 var o = new core.List<api.Package>(); 2187 var o = new core.List<api.Package>();
1927 o.add(buildPackage()); 2188 o.add(buildPackage());
1928 o.add(buildPackage()); 2189 o.add(buildPackage());
1929 return o; 2190 return o;
1930 } 2191 }
1931 2192
1932 checkUnnamed1823(core.List<api.Package> o) { 2193 checkUnnamed1544(core.List<api.Package> o) {
1933 unittest.expect(o, unittest.hasLength(2)); 2194 unittest.expect(o, unittest.hasLength(2));
1934 checkPackage(o[0]); 2195 checkPackage(o[0]);
1935 checkPackage(o[1]); 2196 checkPackage(o[1]);
1936 } 2197 }
1937 2198
1938 core.int buildCounterWorkItem = 0; 2199 core.int buildCounterWorkItem = 0;
1939 buildWorkItem() { 2200 buildWorkItem() {
1940 var o = new api.WorkItem(); 2201 var o = new api.WorkItem();
1941 buildCounterWorkItem++; 2202 buildCounterWorkItem++;
1942 if (buildCounterWorkItem < 3) { 2203 if (buildCounterWorkItem < 3) {
1943 o.configuration = "foo"; 2204 o.configuration = "foo";
1944 o.id = "foo"; 2205 o.id = "foo";
2206 o.initialReportIndex = "foo";
1945 o.jobId = "foo"; 2207 o.jobId = "foo";
1946 o.leaseExpireTime = "foo"; 2208 o.leaseExpireTime = "foo";
1947 o.mapTask = buildMapTask(); 2209 o.mapTask = buildMapTask();
1948 o.packages = buildUnnamed1823(); 2210 o.packages = buildUnnamed1544();
1949 o.projectId = "foo"; 2211 o.projectId = "foo";
1950 o.reportStatusInterval = "foo"; 2212 o.reportStatusInterval = "foo";
1951 o.seqMapTask = buildSeqMapTask(); 2213 o.seqMapTask = buildSeqMapTask();
1952 o.shellTask = buildShellTask(); 2214 o.shellTask = buildShellTask();
1953 o.sourceOperationTask = buildSourceOperationRequest(); 2215 o.sourceOperationTask = buildSourceOperationRequest();
2216 o.streamingComputationTask = buildStreamingComputationTask();
1954 o.streamingSetupTask = buildStreamingSetupTask(); 2217 o.streamingSetupTask = buildStreamingSetupTask();
1955 } 2218 }
1956 buildCounterWorkItem--; 2219 buildCounterWorkItem--;
1957 return o; 2220 return o;
1958 } 2221 }
1959 2222
1960 checkWorkItem(api.WorkItem o) { 2223 checkWorkItem(api.WorkItem o) {
1961 buildCounterWorkItem++; 2224 buildCounterWorkItem++;
1962 if (buildCounterWorkItem < 3) { 2225 if (buildCounterWorkItem < 3) {
1963 unittest.expect(o.configuration, unittest.equals('foo')); 2226 unittest.expect(o.configuration, unittest.equals('foo'));
1964 unittest.expect(o.id, unittest.equals('foo')); 2227 unittest.expect(o.id, unittest.equals('foo'));
2228 unittest.expect(o.initialReportIndex, unittest.equals('foo'));
1965 unittest.expect(o.jobId, unittest.equals('foo')); 2229 unittest.expect(o.jobId, unittest.equals('foo'));
1966 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); 2230 unittest.expect(o.leaseExpireTime, unittest.equals('foo'));
1967 checkMapTask(o.mapTask); 2231 checkMapTask(o.mapTask);
1968 checkUnnamed1823(o.packages); 2232 checkUnnamed1544(o.packages);
1969 unittest.expect(o.projectId, unittest.equals('foo')); 2233 unittest.expect(o.projectId, unittest.equals('foo'));
1970 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); 2234 unittest.expect(o.reportStatusInterval, unittest.equals('foo'));
1971 checkSeqMapTask(o.seqMapTask); 2235 checkSeqMapTask(o.seqMapTask);
1972 checkShellTask(o.shellTask); 2236 checkShellTask(o.shellTask);
1973 checkSourceOperationRequest(o.sourceOperationTask); 2237 checkSourceOperationRequest(o.sourceOperationTask);
2238 checkStreamingComputationTask(o.streamingComputationTask);
1974 checkStreamingSetupTask(o.streamingSetupTask); 2239 checkStreamingSetupTask(o.streamingSetupTask);
1975 } 2240 }
1976 buildCounterWorkItem--; 2241 buildCounterWorkItem--;
1977 } 2242 }
1978 2243
1979 buildUnnamed1824() { 2244 buildUnnamed1545() {
1980 var o = new core.Map<core.String, core.Object>(); 2245 var o = new core.Map<core.String, core.Object>();
1981 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2246 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1982 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 2247 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1983 return o; 2248 return o;
1984 } 2249 }
1985 2250
1986 checkUnnamed1824(core.Map<core.String, core.Object> o) { 2251 checkUnnamed1545(core.Map<core.String, core.Object> o) {
1987 unittest.expect(o, unittest.hasLength(2)); 2252 unittest.expect(o, unittest.hasLength(2));
1988 var casted36 = (o["x"]) 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')); 2253 var casted38 = (o["x"]) 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'));
1989 var casted37 = (o["y"]) 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')); 2254 var casted39 = (o["y"]) 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'));
1990 } 2255 }
1991 2256
1992 core.int buildCounterWorkItemServiceState = 0; 2257 core.int buildCounterWorkItemServiceState = 0;
1993 buildWorkItemServiceState() { 2258 buildWorkItemServiceState() {
1994 var o = new api.WorkItemServiceState(); 2259 var o = new api.WorkItemServiceState();
1995 buildCounterWorkItemServiceState++; 2260 buildCounterWorkItemServiceState++;
1996 if (buildCounterWorkItemServiceState < 3) { 2261 if (buildCounterWorkItemServiceState < 3) {
1997 o.harnessData = buildUnnamed1824(); 2262 o.harnessData = buildUnnamed1545();
1998 o.leaseExpireTime = "foo"; 2263 o.leaseExpireTime = "foo";
2264 o.nextReportIndex = "foo";
1999 o.reportStatusInterval = "foo"; 2265 o.reportStatusInterval = "foo";
2000 o.suggestedStopPoint = buildApproximateProgress(); 2266 o.suggestedStopPoint = buildApproximateProgress();
2001 o.suggestedStopPosition = buildPosition(); 2267 o.suggestedStopPosition = buildPosition();
2002 } 2268 }
2003 buildCounterWorkItemServiceState--; 2269 buildCounterWorkItemServiceState--;
2004 return o; 2270 return o;
2005 } 2271 }
2006 2272
2007 checkWorkItemServiceState(api.WorkItemServiceState o) { 2273 checkWorkItemServiceState(api.WorkItemServiceState o) {
2008 buildCounterWorkItemServiceState++; 2274 buildCounterWorkItemServiceState++;
2009 if (buildCounterWorkItemServiceState < 3) { 2275 if (buildCounterWorkItemServiceState < 3) {
2010 checkUnnamed1824(o.harnessData); 2276 checkUnnamed1545(o.harnessData);
2011 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); 2277 unittest.expect(o.leaseExpireTime, unittest.equals('foo'));
2278 unittest.expect(o.nextReportIndex, unittest.equals('foo'));
2012 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); 2279 unittest.expect(o.reportStatusInterval, unittest.equals('foo'));
2013 checkApproximateProgress(o.suggestedStopPoint); 2280 checkApproximateProgress(o.suggestedStopPoint);
2014 checkPosition(o.suggestedStopPosition); 2281 checkPosition(o.suggestedStopPosition);
2015 } 2282 }
2016 buildCounterWorkItemServiceState--; 2283 buildCounterWorkItemServiceState--;
2017 } 2284 }
2018 2285
2019 buildUnnamed1825() { 2286 buildUnnamed1546() {
2020 var o = new core.List<api.Status>(); 2287 var o = new core.List<api.Status>();
2021 o.add(buildStatus()); 2288 o.add(buildStatus());
2022 o.add(buildStatus()); 2289 o.add(buildStatus());
2023 return o; 2290 return o;
2024 } 2291 }
2025 2292
2026 checkUnnamed1825(core.List<api.Status> o) { 2293 checkUnnamed1546(core.List<api.Status> o) {
2027 unittest.expect(o, unittest.hasLength(2)); 2294 unittest.expect(o, unittest.hasLength(2));
2028 checkStatus(o[0]); 2295 checkStatus(o[0]);
2029 checkStatus(o[1]); 2296 checkStatus(o[1]);
2030 } 2297 }
2031 2298
2032 buildUnnamed1826() { 2299 buildUnnamed1547() {
2033 var o = new core.List<api.MetricUpdate>(); 2300 var o = new core.List<api.MetricUpdate>();
2034 o.add(buildMetricUpdate()); 2301 o.add(buildMetricUpdate());
2035 o.add(buildMetricUpdate()); 2302 o.add(buildMetricUpdate());
2036 return o; 2303 return o;
2037 } 2304 }
2038 2305
2039 checkUnnamed1826(core.List<api.MetricUpdate> o) { 2306 checkUnnamed1547(core.List<api.MetricUpdate> o) {
2040 unittest.expect(o, unittest.hasLength(2)); 2307 unittest.expect(o, unittest.hasLength(2));
2041 checkMetricUpdate(o[0]); 2308 checkMetricUpdate(o[0]);
2042 checkMetricUpdate(o[1]); 2309 checkMetricUpdate(o[1]);
2043 } 2310 }
2044 2311
2045 core.int buildCounterWorkItemStatus = 0; 2312 core.int buildCounterWorkItemStatus = 0;
2046 buildWorkItemStatus() { 2313 buildWorkItemStatus() {
2047 var o = new api.WorkItemStatus(); 2314 var o = new api.WorkItemStatus();
2048 buildCounterWorkItemStatus++; 2315 buildCounterWorkItemStatus++;
2049 if (buildCounterWorkItemStatus < 3) { 2316 if (buildCounterWorkItemStatus < 3) {
2050 o.completed = true; 2317 o.completed = true;
2051 o.errors = buildUnnamed1825(); 2318 o.dynamicSourceSplit = buildDynamicSourceSplit();
2052 o.metricUpdates = buildUnnamed1826(); 2319 o.errors = buildUnnamed1546();
2320 o.metricUpdates = buildUnnamed1547();
2053 o.progress = buildApproximateProgress(); 2321 o.progress = buildApproximateProgress();
2054 o.reportIndex = "foo"; 2322 o.reportIndex = "foo";
2055 o.requestedLeaseDuration = "foo"; 2323 o.requestedLeaseDuration = "foo";
2056 o.sourceFork = buildSourceFork(); 2324 o.sourceFork = buildSourceFork();
2057 o.sourceOperationResponse = buildSourceOperationResponse(); 2325 o.sourceOperationResponse = buildSourceOperationResponse();
2058 o.stopPosition = buildPosition(); 2326 o.stopPosition = buildPosition();
2059 o.workItemId = "foo"; 2327 o.workItemId = "foo";
2060 } 2328 }
2061 buildCounterWorkItemStatus--; 2329 buildCounterWorkItemStatus--;
2062 return o; 2330 return o;
2063 } 2331 }
2064 2332
2065 checkWorkItemStatus(api.WorkItemStatus o) { 2333 checkWorkItemStatus(api.WorkItemStatus o) {
2066 buildCounterWorkItemStatus++; 2334 buildCounterWorkItemStatus++;
2067 if (buildCounterWorkItemStatus < 3) { 2335 if (buildCounterWorkItemStatus < 3) {
2068 unittest.expect(o.completed, unittest.isTrue); 2336 unittest.expect(o.completed, unittest.isTrue);
2069 checkUnnamed1825(o.errors); 2337 checkDynamicSourceSplit(o.dynamicSourceSplit);
2070 checkUnnamed1826(o.metricUpdates); 2338 checkUnnamed1546(o.errors);
2339 checkUnnamed1547(o.metricUpdates);
2071 checkApproximateProgress(o.progress); 2340 checkApproximateProgress(o.progress);
2072 unittest.expect(o.reportIndex, unittest.equals('foo')); 2341 unittest.expect(o.reportIndex, unittest.equals('foo'));
2073 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); 2342 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo'));
2074 checkSourceFork(o.sourceFork); 2343 checkSourceFork(o.sourceFork);
2075 checkSourceOperationResponse(o.sourceOperationResponse); 2344 checkSourceOperationResponse(o.sourceOperationResponse);
2076 checkPosition(o.stopPosition); 2345 checkPosition(o.stopPosition);
2077 unittest.expect(o.workItemId, unittest.equals('foo')); 2346 unittest.expect(o.workItemId, unittest.equals('foo'));
2078 } 2347 }
2079 buildCounterWorkItemStatus--; 2348 buildCounterWorkItemStatus--;
2080 } 2349 }
2081 2350
2082 buildUnnamed1827() { 2351 buildUnnamed1548() {
2083 var o = new core.List<api.Disk>(); 2352 var o = new core.List<api.Disk>();
2084 o.add(buildDisk()); 2353 o.add(buildDisk());
2085 o.add(buildDisk()); 2354 o.add(buildDisk());
2086 return o; 2355 return o;
2087 } 2356 }
2088 2357
2089 checkUnnamed1827(core.List<api.Disk> o) { 2358 checkUnnamed1548(core.List<api.Disk> o) {
2090 unittest.expect(o, unittest.hasLength(2)); 2359 unittest.expect(o, unittest.hasLength(2));
2091 checkDisk(o[0]); 2360 checkDisk(o[0]);
2092 checkDisk(o[1]); 2361 checkDisk(o[1]);
2093 } 2362 }
2094 2363
2095 buildUnnamed1828() { 2364 buildUnnamed1549() {
2096 var o = new core.Map<core.String, core.String>(); 2365 var o = new core.Map<core.String, core.String>();
2097 o["x"] = "foo"; 2366 o["x"] = "foo";
2098 o["y"] = "foo"; 2367 o["y"] = "foo";
2099 return o; 2368 return o;
2100 } 2369 }
2101 2370
2102 checkUnnamed1828(core.Map<core.String, core.String> o) { 2371 checkUnnamed1549(core.Map<core.String, core.String> o) {
2103 unittest.expect(o, unittest.hasLength(2)); 2372 unittest.expect(o, unittest.hasLength(2));
2104 unittest.expect(o["x"], unittest.equals('foo')); 2373 unittest.expect(o["x"], unittest.equals('foo'));
2105 unittest.expect(o["y"], unittest.equals('foo')); 2374 unittest.expect(o["y"], unittest.equals('foo'));
2106 } 2375 }
2107 2376
2108 buildUnnamed1829() { 2377 buildUnnamed1550() {
2109 var o = new core.List<api.Package>(); 2378 var o = new core.List<api.Package>();
2110 o.add(buildPackage()); 2379 o.add(buildPackage());
2111 o.add(buildPackage()); 2380 o.add(buildPackage());
2112 return o; 2381 return o;
2113 } 2382 }
2114 2383
2115 checkUnnamed1829(core.List<api.Package> o) { 2384 checkUnnamed1550(core.List<api.Package> o) {
2116 unittest.expect(o, unittest.hasLength(2)); 2385 unittest.expect(o, unittest.hasLength(2));
2117 checkPackage(o[0]); 2386 checkPackage(o[0]);
2118 checkPackage(o[1]); 2387 checkPackage(o[1]);
2119 } 2388 }
2120 2389
2390 buildUnnamed1551() {
2391 var o = new core.Map<core.String, core.Object>();
2392 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2393 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
2394 return o;
2395 }
2396
2397 checkUnnamed1551(core.Map<core.String, core.Object> o) {
2398 unittest.expect(o, unittest.hasLength(2));
2399 var casted40 = (o["x"]) 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'));
2400 var casted41 = (o["y"]) 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'));
2401 }
2402
2121 core.int buildCounterWorkerPool = 0; 2403 core.int buildCounterWorkerPool = 0;
2122 buildWorkerPool() { 2404 buildWorkerPool() {
2123 var o = new api.WorkerPool(); 2405 var o = new api.WorkerPool();
2124 buildCounterWorkerPool++; 2406 buildCounterWorkerPool++;
2125 if (buildCounterWorkerPool < 3) { 2407 if (buildCounterWorkerPool < 3) {
2126 o.autoscalingSettings = buildAutoscalingSettings(); 2408 o.autoscalingSettings = buildAutoscalingSettings();
2127 o.dataDisks = buildUnnamed1827(); 2409 o.dataDisks = buildUnnamed1548();
2128 o.defaultPackageSet = "foo"; 2410 o.defaultPackageSet = "foo";
2129 o.diskSizeGb = 42; 2411 o.diskSizeGb = 42;
2130 o.diskSourceImage = "foo"; 2412 o.diskSourceImage = "foo";
2131 o.kind = "foo"; 2413 o.kind = "foo";
2132 o.machineType = "foo"; 2414 o.machineType = "foo";
2133 o.metadata = buildUnnamed1828(); 2415 o.metadata = buildUnnamed1549();
2134 o.numWorkers = 42; 2416 o.numWorkers = 42;
2135 o.onHostMaintenance = "foo"; 2417 o.onHostMaintenance = "foo";
2136 o.packages = buildUnnamed1829(); 2418 o.packages = buildUnnamed1550();
2419 o.poolArgs = buildUnnamed1551();
2137 o.taskrunnerSettings = buildTaskRunnerSettings(); 2420 o.taskrunnerSettings = buildTaskRunnerSettings();
2138 o.teardownPolicy = "foo"; 2421 o.teardownPolicy = "foo";
2139 o.zone = "foo"; 2422 o.zone = "foo";
2140 } 2423 }
2141 buildCounterWorkerPool--; 2424 buildCounterWorkerPool--;
2142 return o; 2425 return o;
2143 } 2426 }
2144 2427
2145 checkWorkerPool(api.WorkerPool o) { 2428 checkWorkerPool(api.WorkerPool o) {
2146 buildCounterWorkerPool++; 2429 buildCounterWorkerPool++;
2147 if (buildCounterWorkerPool < 3) { 2430 if (buildCounterWorkerPool < 3) {
2148 checkAutoscalingSettings(o.autoscalingSettings); 2431 checkAutoscalingSettings(o.autoscalingSettings);
2149 checkUnnamed1827(o.dataDisks); 2432 checkUnnamed1548(o.dataDisks);
2150 unittest.expect(o.defaultPackageSet, unittest.equals('foo')); 2433 unittest.expect(o.defaultPackageSet, unittest.equals('foo'));
2151 unittest.expect(o.diskSizeGb, unittest.equals(42)); 2434 unittest.expect(o.diskSizeGb, unittest.equals(42));
2152 unittest.expect(o.diskSourceImage, unittest.equals('foo')); 2435 unittest.expect(o.diskSourceImage, unittest.equals('foo'));
2153 unittest.expect(o.kind, unittest.equals('foo')); 2436 unittest.expect(o.kind, unittest.equals('foo'));
2154 unittest.expect(o.machineType, unittest.equals('foo')); 2437 unittest.expect(o.machineType, unittest.equals('foo'));
2155 checkUnnamed1828(o.metadata); 2438 checkUnnamed1549(o.metadata);
2156 unittest.expect(o.numWorkers, unittest.equals(42)); 2439 unittest.expect(o.numWorkers, unittest.equals(42));
2157 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); 2440 unittest.expect(o.onHostMaintenance, unittest.equals('foo'));
2158 checkUnnamed1829(o.packages); 2441 checkUnnamed1550(o.packages);
2442 checkUnnamed1551(o.poolArgs);
2159 checkTaskRunnerSettings(o.taskrunnerSettings); 2443 checkTaskRunnerSettings(o.taskrunnerSettings);
2160 unittest.expect(o.teardownPolicy, unittest.equals('foo')); 2444 unittest.expect(o.teardownPolicy, unittest.equals('foo'));
2161 unittest.expect(o.zone, unittest.equals('foo')); 2445 unittest.expect(o.zone, unittest.equals('foo'));
2162 } 2446 }
2163 buildCounterWorkerPool--; 2447 buildCounterWorkerPool--;
2164 } 2448 }
2165 2449
2166 core.int buildCounterWorkerSettings = 0; 2450 core.int buildCounterWorkerSettings = 0;
2167 buildWorkerSettings() { 2451 buildWorkerSettings() {
2168 var o = new api.WorkerSettings(); 2452 var o = new api.WorkerSettings();
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
2244 2528
2245 unittest.group("obj-schema-DataDiskAssignment", () { 2529 unittest.group("obj-schema-DataDiskAssignment", () {
2246 unittest.test("to-json--from-json", () { 2530 unittest.test("to-json--from-json", () {
2247 var o = buildDataDiskAssignment(); 2531 var o = buildDataDiskAssignment();
2248 var od = new api.DataDiskAssignment.fromJson(o.toJson()); 2532 var od = new api.DataDiskAssignment.fromJson(o.toJson());
2249 checkDataDiskAssignment(od); 2533 checkDataDiskAssignment(od);
2250 }); 2534 });
2251 }); 2535 });
2252 2536
2253 2537
2538 unittest.group("obj-schema-DerivedSource", () {
2539 unittest.test("to-json--from-json", () {
2540 var o = buildDerivedSource();
2541 var od = new api.DerivedSource.fromJson(o.toJson());
2542 checkDerivedSource(od);
2543 });
2544 });
2545
2546
2254 unittest.group("obj-schema-Disk", () { 2547 unittest.group("obj-schema-Disk", () {
2255 unittest.test("to-json--from-json", () { 2548 unittest.test("to-json--from-json", () {
2256 var o = buildDisk(); 2549 var o = buildDisk();
2257 var od = new api.Disk.fromJson(o.toJson()); 2550 var od = new api.Disk.fromJson(o.toJson());
2258 checkDisk(od); 2551 checkDisk(od);
2259 }); 2552 });
2260 }); 2553 });
2261 2554
2262 2555
2556 unittest.group("obj-schema-DynamicSourceSplit", () {
2557 unittest.test("to-json--from-json", () {
2558 var o = buildDynamicSourceSplit();
2559 var od = new api.DynamicSourceSplit.fromJson(o.toJson());
2560 checkDynamicSourceSplit(od);
2561 });
2562 });
2563
2564
2263 unittest.group("obj-schema-Environment", () { 2565 unittest.group("obj-schema-Environment", () {
2264 unittest.test("to-json--from-json", () { 2566 unittest.test("to-json--from-json", () {
2265 var o = buildEnvironment(); 2567 var o = buildEnvironment();
2266 var od = new api.Environment.fromJson(o.toJson()); 2568 var od = new api.Environment.fromJson(o.toJson());
2267 checkEnvironment(od); 2569 checkEnvironment(od);
2268 }); 2570 });
2269 }); 2571 });
2270 2572
2271 2573
2272 unittest.group("obj-schema-FlattenInstruction", () { 2574 unittest.group("obj-schema-FlattenInstruction", () {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
2334 2636
2335 unittest.group("obj-schema-JobMetrics", () { 2637 unittest.group("obj-schema-JobMetrics", () {
2336 unittest.test("to-json--from-json", () { 2638 unittest.test("to-json--from-json", () {
2337 var o = buildJobMetrics(); 2639 var o = buildJobMetrics();
2338 var od = new api.JobMetrics.fromJson(o.toJson()); 2640 var od = new api.JobMetrics.fromJson(o.toJson());
2339 checkJobMetrics(od); 2641 checkJobMetrics(od);
2340 }); 2642 });
2341 }); 2643 });
2342 2644
2343 2645
2646 unittest.group("obj-schema-KeyRangeDataDiskAssignment", () {
2647 unittest.test("to-json--from-json", () {
2648 var o = buildKeyRangeDataDiskAssignment();
2649 var od = new api.KeyRangeDataDiskAssignment.fromJson(o.toJson());
2650 checkKeyRangeDataDiskAssignment(od);
2651 });
2652 });
2653
2654
2344 unittest.group("obj-schema-KeyRangeLocation", () { 2655 unittest.group("obj-schema-KeyRangeLocation", () {
2345 unittest.test("to-json--from-json", () { 2656 unittest.test("to-json--from-json", () {
2346 var o = buildKeyRangeLocation(); 2657 var o = buildKeyRangeLocation();
2347 var od = new api.KeyRangeLocation.fromJson(o.toJson()); 2658 var od = new api.KeyRangeLocation.fromJson(o.toJson());
2348 checkKeyRangeLocation(od); 2659 checkKeyRangeLocation(od);
2349 }); 2660 });
2350 }); 2661 });
2351 2662
2352 2663
2353 unittest.group("obj-schema-LeaseWorkItemRequest", () { 2664 unittest.group("obj-schema-LeaseWorkItemRequest", () {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
2406 2717
2407 unittest.group("obj-schema-MetricUpdate", () { 2718 unittest.group("obj-schema-MetricUpdate", () {
2408 unittest.test("to-json--from-json", () { 2719 unittest.test("to-json--from-json", () {
2409 var o = buildMetricUpdate(); 2720 var o = buildMetricUpdate();
2410 var od = new api.MetricUpdate.fromJson(o.toJson()); 2721 var od = new api.MetricUpdate.fromJson(o.toJson());
2411 checkMetricUpdate(od); 2722 checkMetricUpdate(od);
2412 }); 2723 });
2413 }); 2724 });
2414 2725
2415 2726
2727 unittest.group("obj-schema-MountedDataDisk", () {
2728 unittest.test("to-json--from-json", () {
2729 var o = buildMountedDataDisk();
2730 var od = new api.MountedDataDisk.fromJson(o.toJson());
2731 checkMountedDataDisk(od);
2732 });
2733 });
2734
2735
2416 unittest.group("obj-schema-MultiOutputInfo", () { 2736 unittest.group("obj-schema-MultiOutputInfo", () {
2417 unittest.test("to-json--from-json", () { 2737 unittest.test("to-json--from-json", () {
2418 var o = buildMultiOutputInfo(); 2738 var o = buildMultiOutputInfo();
2419 var od = new api.MultiOutputInfo.fromJson(o.toJson()); 2739 var od = new api.MultiOutputInfo.fromJson(o.toJson());
2420 checkMultiOutputInfo(od); 2740 checkMultiOutputInfo(od);
2421 }); 2741 });
2422 }); 2742 });
2423 2743
2424 2744
2425 unittest.group("obj-schema-Package", () { 2745 unittest.group("obj-schema-Package", () {
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
2667 2987
2668 unittest.group("obj-schema-StreamLocation", () { 2988 unittest.group("obj-schema-StreamLocation", () {
2669 unittest.test("to-json--from-json", () { 2989 unittest.test("to-json--from-json", () {
2670 var o = buildStreamLocation(); 2990 var o = buildStreamLocation();
2671 var od = new api.StreamLocation.fromJson(o.toJson()); 2991 var od = new api.StreamLocation.fromJson(o.toJson());
2672 checkStreamLocation(od); 2992 checkStreamLocation(od);
2673 }); 2993 });
2674 }); 2994 });
2675 2995
2676 2996
2997 unittest.group("obj-schema-StreamingComputationRanges", () {
2998 unittest.test("to-json--from-json", () {
2999 var o = buildStreamingComputationRanges();
3000 var od = new api.StreamingComputationRanges.fromJson(o.toJson());
3001 checkStreamingComputationRanges(od);
3002 });
3003 });
3004
3005
3006 unittest.group("obj-schema-StreamingComputationTask", () {
3007 unittest.test("to-json--from-json", () {
3008 var o = buildStreamingComputationTask();
3009 var od = new api.StreamingComputationTask.fromJson(o.toJson());
3010 checkStreamingComputationTask(od);
3011 });
3012 });
3013
3014
2677 unittest.group("obj-schema-StreamingSetupTask", () { 3015 unittest.group("obj-schema-StreamingSetupTask", () {
2678 unittest.test("to-json--from-json", () { 3016 unittest.test("to-json--from-json", () {
2679 var o = buildStreamingSetupTask(); 3017 var o = buildStreamingSetupTask();
2680 var od = new api.StreamingSetupTask.fromJson(o.toJson()); 3018 var od = new api.StreamingSetupTask.fromJson(o.toJson());
2681 checkStreamingSetupTask(od); 3019 checkStreamingSetupTask(od);
2682 }); 3020 });
2683 }); 3021 });
2684 3022
2685 3023
3024 unittest.group("obj-schema-StreamingSideInputLocation", () {
3025 unittest.test("to-json--from-json", () {
3026 var o = buildStreamingSideInputLocation();
3027 var od = new api.StreamingSideInputLocation.fromJson(o.toJson());
3028 checkStreamingSideInputLocation(od);
3029 });
3030 });
3031
3032
2686 unittest.group("obj-schema-StreamingStageLocation", () { 3033 unittest.group("obj-schema-StreamingStageLocation", () {
2687 unittest.test("to-json--from-json", () { 3034 unittest.test("to-json--from-json", () {
2688 var o = buildStreamingStageLocation(); 3035 var o = buildStreamingStageLocation();
2689 var od = new api.StreamingStageLocation.fromJson(o.toJson()); 3036 var od = new api.StreamingStageLocation.fromJson(o.toJson());
2690 checkStreamingStageLocation(od); 3037 checkStreamingStageLocation(od);
2691 }); 3038 });
2692 }); 3039 });
2693 3040
2694 3041
2695 unittest.group("obj-schema-TaskRunnerSettings", () { 3042 unittest.group("obj-schema-TaskRunnerSettings", () {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
2760 var o = buildWriteInstruction(); 3107 var o = buildWriteInstruction();
2761 var od = new api.WriteInstruction.fromJson(o.toJson()); 3108 var od = new api.WriteInstruction.fromJson(o.toJson());
2762 checkWriteInstruction(od); 3109 checkWriteInstruction(od);
2763 }); 3110 });
2764 }); 3111 });
2765 3112
2766 3113
2767 unittest.group("resource-V1b3ProjectsJobsResourceApi", () { 3114 unittest.group("resource-V1b3ProjectsJobsResourceApi", () {
2768 unittest.test("method--create", () { 3115 unittest.test("method--create", () {
2769 3116
2770 var mock = new common_test.HttpServerMock(); 3117 var mock = new HttpServerMock();
2771 api.V1b3ProjectsJobsResourceApi res = new api.DataflowApi(mock).v1b3.proje cts.jobs; 3118 api.V1b3ProjectsJobsResourceApi res = new api.DataflowApi(mock).v1b3.proje cts.jobs;
2772 var arg_request = buildJob(); 3119 var arg_request = buildJob();
2773 var arg_projectId = "foo"; 3120 var arg_projectId = "foo";
2774 var arg_view = "foo"; 3121 var arg_view = "foo";
2775 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3122 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2776 var obj = new api.Job.fromJson(json); 3123 var obj = new api.Job.fromJson(json);
2777 checkJob(obj); 3124 checkJob(obj);
2778 3125
2779 var path = (req.url).path; 3126 var path = (req.url).path;
2780 var pathOffset = 0; 3127 var pathOffset = 0;
(...skipping 18 matching lines...) Expand all
2799 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3146 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2800 } 3147 }
2801 } 3148 }
2802 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); 3149 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
2803 3150
2804 3151
2805 var h = { 3152 var h = {
2806 "content-type" : "application/json; charset=utf-8", 3153 "content-type" : "application/json; charset=utf-8",
2807 }; 3154 };
2808 var resp = convert.JSON.encode(buildJob()); 3155 var resp = convert.JSON.encode(buildJob());
2809 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3156 return new async.Future.value(stringResponse(200, h, resp));
2810 }), true); 3157 }), true);
2811 res.create(arg_request, arg_projectId, view: arg_view).then(unittest.expec tAsync(((api.Job response) { 3158 res.create(arg_request, arg_projectId, view: arg_view).then(unittest.expec tAsync(((api.Job response) {
2812 checkJob(response); 3159 checkJob(response);
2813 }))); 3160 })));
2814 }); 3161 });
2815 3162
2816 unittest.test("method--get", () { 3163 unittest.test("method--get", () {
2817 3164
2818 var mock = new common_test.HttpServerMock(); 3165 var mock = new HttpServerMock();
2819 api.V1b3ProjectsJobsResourceApi res = new api.DataflowApi(mock).v1b3.proje cts.jobs; 3166 api.V1b3ProjectsJobsResourceApi res = new api.DataflowApi(mock).v1b3.proje cts.jobs;
2820 var arg_projectId = "foo"; 3167 var arg_projectId = "foo";
2821 var arg_jobId = "foo"; 3168 var arg_jobId = "foo";
2822 var arg_view = "foo"; 3169 var arg_view = "foo";
2823 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3170 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2824 var path = (req.url).path; 3171 var path = (req.url).path;
2825 var pathOffset = 0; 3172 var pathOffset = 0;
2826 var index; 3173 var index;
2827 var subPart; 3174 var subPart;
2828 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3175 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 15 matching lines...) Expand all
2844 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3191 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2845 } 3192 }
2846 } 3193 }
2847 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); 3194 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
2848 3195
2849 3196
2850 var h = { 3197 var h = {
2851 "content-type" : "application/json; charset=utf-8", 3198 "content-type" : "application/json; charset=utf-8",
2852 }; 3199 };
2853 var resp = convert.JSON.encode(buildJob()); 3200 var resp = convert.JSON.encode(buildJob());
2854 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3201 return new async.Future.value(stringResponse(200, h, resp));
2855 }), true); 3202 }), true);
2856 res.get(arg_projectId, arg_jobId, view: arg_view).then(unittest.expectAsyn c(((api.Job response) { 3203 res.get(arg_projectId, arg_jobId, view: arg_view).then(unittest.expectAsyn c(((api.Job response) {
2857 checkJob(response); 3204 checkJob(response);
2858 }))); 3205 })));
2859 }); 3206 });
2860 3207
2861 unittest.test("method--getMetrics", () { 3208 unittest.test("method--getMetrics", () {
2862 3209
2863 var mock = new common_test.HttpServerMock(); 3210 var mock = new HttpServerMock();
2864 api.V1b3ProjectsJobsResourceApi res = new api.DataflowApi(mock).v1b3.proje cts.jobs; 3211 api.V1b3ProjectsJobsResourceApi res = new api.DataflowApi(mock).v1b3.proje cts.jobs;
2865 var arg_projectId = "foo"; 3212 var arg_projectId = "foo";
2866 var arg_jobId = "foo"; 3213 var arg_jobId = "foo";
2867 var arg_startTime = "foo"; 3214 var arg_startTime = "foo";
2868 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3215 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2869 var path = (req.url).path; 3216 var path = (req.url).path;
2870 var pathOffset = 0; 3217 var pathOffset = 0;
2871 var index; 3218 var index;
2872 var subPart; 3219 var subPart;
2873 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3220 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 15 matching lines...) Expand all
2889 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3236 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2890 } 3237 }
2891 } 3238 }
2892 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi me)); 3239 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi me));
2893 3240
2894 3241
2895 var h = { 3242 var h = {
2896 "content-type" : "application/json; charset=utf-8", 3243 "content-type" : "application/json; charset=utf-8",
2897 }; 3244 };
2898 var resp = convert.JSON.encode(buildJobMetrics()); 3245 var resp = convert.JSON.encode(buildJobMetrics());
2899 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3246 return new async.Future.value(stringResponse(200, h, resp));
2900 }), true); 3247 }), true);
2901 res.getMetrics(arg_projectId, arg_jobId, startTime: arg_startTime).then(un ittest.expectAsync(((api.JobMetrics response) { 3248 res.getMetrics(arg_projectId, arg_jobId, startTime: arg_startTime).then(un ittest.expectAsync(((api.JobMetrics response) {
2902 checkJobMetrics(response); 3249 checkJobMetrics(response);
2903 }))); 3250 })));
2904 }); 3251 });
2905 3252
2906 unittest.test("method--list", () { 3253 unittest.test("method--list", () {
2907 3254
2908 var mock = new common_test.HttpServerMock(); 3255 var mock = new HttpServerMock();
2909 api.V1b3ProjectsJobsResourceApi res = new api.DataflowApi(mock).v1b3.proje cts.jobs; 3256 api.V1b3ProjectsJobsResourceApi res = new api.DataflowApi(mock).v1b3.proje cts.jobs;
2910 var arg_projectId = "foo"; 3257 var arg_projectId = "foo";
2911 var arg_pageSize = 42; 3258 var arg_pageSize = 42;
2912 var arg_pageToken = "foo"; 3259 var arg_pageToken = "foo";
2913 var arg_view = "foo"; 3260 var arg_view = "foo";
2914 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3261 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2915 var path = (req.url).path; 3262 var path = (req.url).path;
2916 var pathOffset = 0; 3263 var pathOffset = 0;
2917 var index; 3264 var index;
2918 var subPart; 3265 var subPart;
(...skipping 18 matching lines...) Expand all
2937 } 3284 }
2938 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 3285 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2939 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 3286 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2940 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); 3287 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
2941 3288
2942 3289
2943 var h = { 3290 var h = {
2944 "content-type" : "application/json; charset=utf-8", 3291 "content-type" : "application/json; charset=utf-8",
2945 }; 3292 };
2946 var resp = convert.JSON.encode(buildListJobsResponse()); 3293 var resp = convert.JSON.encode(buildListJobsResponse());
2947 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3294 return new async.Future.value(stringResponse(200, h, resp));
2948 }), true); 3295 }), true);
2949 res.list(arg_projectId, pageSize: arg_pageSize, pageToken: arg_pageToken, view: arg_view).then(unittest.expectAsync(((api.ListJobsResponse response) { 3296 res.list(arg_projectId, pageSize: arg_pageSize, pageToken: arg_pageToken, view: arg_view).then(unittest.expectAsync(((api.ListJobsResponse response) {
2950 checkListJobsResponse(response); 3297 checkListJobsResponse(response);
2951 }))); 3298 })));
2952 }); 3299 });
2953 3300
2954 unittest.test("method--patch", () { 3301 unittest.test("method--patch", () {
2955 3302
2956 var mock = new common_test.HttpServerMock(); 3303 var mock = new HttpServerMock();
2957 api.V1b3ProjectsJobsResourceApi res = new api.DataflowApi(mock).v1b3.proje cts.jobs; 3304 api.V1b3ProjectsJobsResourceApi res = new api.DataflowApi(mock).v1b3.proje cts.jobs;
2958 var arg_request = buildJob(); 3305 var arg_request = buildJob();
2959 var arg_projectId = "foo"; 3306 var arg_projectId = "foo";
2960 var arg_jobId = "foo"; 3307 var arg_jobId = "foo";
2961 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3308 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2962 var obj = new api.Job.fromJson(json); 3309 var obj = new api.Job.fromJson(json);
2963 checkJob(obj); 3310 checkJob(obj);
2964 3311
2965 var path = (req.url).path; 3312 var path = (req.url).path;
2966 var pathOffset = 0; 3313 var pathOffset = 0;
(...skipping 17 matching lines...) Expand all
2984 var keyvalue = part.split("="); 3331 var keyvalue = part.split("=");
2985 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3332 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2986 } 3333 }
2987 } 3334 }
2988 3335
2989 3336
2990 var h = { 3337 var h = {
2991 "content-type" : "application/json; charset=utf-8", 3338 "content-type" : "application/json; charset=utf-8",
2992 }; 3339 };
2993 var resp = convert.JSON.encode(buildJob()); 3340 var resp = convert.JSON.encode(buildJob());
2994 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3341 return new async.Future.value(stringResponse(200, h, resp));
2995 }), true); 3342 }), true);
2996 res.patch(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync (((api.Job response) { 3343 res.patch(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync (((api.Job response) {
2997 checkJob(response); 3344 checkJob(response);
2998 }))); 3345 })));
2999 }); 3346 });
3000 3347
3001 unittest.test("method--update", () { 3348 unittest.test("method--update", () {
3002 3349
3003 var mock = new common_test.HttpServerMock(); 3350 var mock = new HttpServerMock();
3004 api.V1b3ProjectsJobsResourceApi res = new api.DataflowApi(mock).v1b3.proje cts.jobs; 3351 api.V1b3ProjectsJobsResourceApi res = new api.DataflowApi(mock).v1b3.proje cts.jobs;
3005 var arg_request = buildJob(); 3352 var arg_request = buildJob();
3006 var arg_projectId = "foo"; 3353 var arg_projectId = "foo";
3007 var arg_jobId = "foo"; 3354 var arg_jobId = "foo";
3008 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3355 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3009 var obj = new api.Job.fromJson(json); 3356 var obj = new api.Job.fromJson(json);
3010 checkJob(obj); 3357 checkJob(obj);
3011 3358
3012 var path = (req.url).path; 3359 var path = (req.url).path;
3013 var pathOffset = 0; 3360 var pathOffset = 0;
(...skipping 17 matching lines...) Expand all
3031 var keyvalue = part.split("="); 3378 var keyvalue = part.split("=");
3032 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3379 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3033 } 3380 }
3034 } 3381 }
3035 3382
3036 3383
3037 var h = { 3384 var h = {
3038 "content-type" : "application/json; charset=utf-8", 3385 "content-type" : "application/json; charset=utf-8",
3039 }; 3386 };
3040 var resp = convert.JSON.encode(buildJob()); 3387 var resp = convert.JSON.encode(buildJob());
3041 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3388 return new async.Future.value(stringResponse(200, h, resp));
3042 }), true); 3389 }), true);
3043 res.update(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsyn c(((api.Job response) { 3390 res.update(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsyn c(((api.Job response) {
3044 checkJob(response); 3391 checkJob(response);
3045 }))); 3392 })));
3046 }); 3393 });
3047 3394
3048 }); 3395 });
3049 3396
3050 3397
3051 unittest.group("resource-V1b3ProjectsJobsMessagesResourceApi", () { 3398 unittest.group("resource-V1b3ProjectsJobsMessagesResourceApi", () {
3052 unittest.test("method--list", () { 3399 unittest.test("method--list", () {
3053 3400
3054 var mock = new common_test.HttpServerMock(); 3401 var mock = new HttpServerMock();
3055 api.V1b3ProjectsJobsMessagesResourceApi res = new api.DataflowApi(mock).v1 b3.projects.jobs.messages; 3402 api.V1b3ProjectsJobsMessagesResourceApi res = new api.DataflowApi(mock).v1 b3.projects.jobs.messages;
3056 var arg_projectId = "foo"; 3403 var arg_projectId = "foo";
3057 var arg_jobId = "foo"; 3404 var arg_jobId = "foo";
3058 var arg_endTime = "foo"; 3405 var arg_endTime = "foo";
3059 var arg_minimumImportance = "foo"; 3406 var arg_minimumImportance = "foo";
3060 var arg_pageSize = 42; 3407 var arg_pageSize = 42;
3061 var arg_pageToken = "foo"; 3408 var arg_pageToken = "foo";
3062 var arg_startTime = "foo"; 3409 var arg_startTime = "foo";
3063 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3410 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3064 var path = (req.url).path; 3411 var path = (req.url).path;
(...skipping 23 matching lines...) Expand all
3088 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg _minimumImportance)); 3435 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg _minimumImportance));
3089 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 3436 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3090 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 3437 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3091 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi me)); 3438 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi me));
3092 3439
3093 3440
3094 var h = { 3441 var h = {
3095 "content-type" : "application/json; charset=utf-8", 3442 "content-type" : "application/json; charset=utf-8",
3096 }; 3443 };
3097 var resp = convert.JSON.encode(buildListJobMessagesResponse()); 3444 var resp = convert.JSON.encode(buildListJobMessagesResponse());
3098 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3445 return new async.Future.value(stringResponse(200, h, resp));
3099 }), true); 3446 }), true);
3100 res.list(arg_projectId, arg_jobId, endTime: arg_endTime, minimumImportance : arg_minimumImportance, pageSize: arg_pageSize, pageToken: arg_pageToken, start Time: arg_startTime).then(unittest.expectAsync(((api.ListJobMessagesResponse res ponse) { 3447 res.list(arg_projectId, arg_jobId, endTime: arg_endTime, minimumImportance : arg_minimumImportance, pageSize: arg_pageSize, pageToken: arg_pageToken, start Time: arg_startTime).then(unittest.expectAsync(((api.ListJobMessagesResponse res ponse) {
3101 checkListJobMessagesResponse(response); 3448 checkListJobMessagesResponse(response);
3102 }))); 3449 })));
3103 }); 3450 });
3104 3451
3105 }); 3452 });
3106 3453
3107 3454
3108 unittest.group("resource-V1b3ProjectsJobsWorkItemsResourceApi", () { 3455 unittest.group("resource-V1b3ProjectsJobsWorkItemsResourceApi", () {
3109 unittest.test("method--lease", () { 3456 unittest.test("method--lease", () {
3110 3457
3111 var mock = new common_test.HttpServerMock(); 3458 var mock = new HttpServerMock();
3112 api.V1b3ProjectsJobsWorkItemsResourceApi res = new api.DataflowApi(mock).v 1b3.projects.jobs.workItems; 3459 api.V1b3ProjectsJobsWorkItemsResourceApi res = new api.DataflowApi(mock).v 1b3.projects.jobs.workItems;
3113 var arg_request = buildLeaseWorkItemRequest(); 3460 var arg_request = buildLeaseWorkItemRequest();
3114 var arg_projectId = "foo"; 3461 var arg_projectId = "foo";
3115 var arg_jobId = "foo"; 3462 var arg_jobId = "foo";
3116 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3463 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3117 var obj = new api.LeaseWorkItemRequest.fromJson(json); 3464 var obj = new api.LeaseWorkItemRequest.fromJson(json);
3118 checkLeaseWorkItemRequest(obj); 3465 checkLeaseWorkItemRequest(obj);
3119 3466
3120 var path = (req.url).path; 3467 var path = (req.url).path;
3121 var pathOffset = 0; 3468 var pathOffset = 0;
(...skipping 17 matching lines...) Expand all
3139 var keyvalue = part.split("="); 3486 var keyvalue = part.split("=");
3140 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3487 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3141 } 3488 }
3142 } 3489 }
3143 3490
3144 3491
3145 var h = { 3492 var h = {
3146 "content-type" : "application/json; charset=utf-8", 3493 "content-type" : "application/json; charset=utf-8",
3147 }; 3494 };
3148 var resp = convert.JSON.encode(buildLeaseWorkItemResponse()); 3495 var resp = convert.JSON.encode(buildLeaseWorkItemResponse());
3149 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3496 return new async.Future.value(stringResponse(200, h, resp));
3150 }), true); 3497 }), true);
3151 res.lease(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync (((api.LeaseWorkItemResponse response) { 3498 res.lease(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync (((api.LeaseWorkItemResponse response) {
3152 checkLeaseWorkItemResponse(response); 3499 checkLeaseWorkItemResponse(response);
3153 }))); 3500 })));
3154 }); 3501 });
3155 3502
3156 unittest.test("method--reportStatus", () { 3503 unittest.test("method--reportStatus", () {
3157 3504
3158 var mock = new common_test.HttpServerMock(); 3505 var mock = new HttpServerMock();
3159 api.V1b3ProjectsJobsWorkItemsResourceApi res = new api.DataflowApi(mock).v 1b3.projects.jobs.workItems; 3506 api.V1b3ProjectsJobsWorkItemsResourceApi res = new api.DataflowApi(mock).v 1b3.projects.jobs.workItems;
3160 var arg_request = buildReportWorkItemStatusRequest(); 3507 var arg_request = buildReportWorkItemStatusRequest();
3161 var arg_projectId = "foo"; 3508 var arg_projectId = "foo";
3162 var arg_jobId = "foo"; 3509 var arg_jobId = "foo";
3163 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3510 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3164 var obj = new api.ReportWorkItemStatusRequest.fromJson(json); 3511 var obj = new api.ReportWorkItemStatusRequest.fromJson(json);
3165 checkReportWorkItemStatusRequest(obj); 3512 checkReportWorkItemStatusRequest(obj);
3166 3513
3167 var path = (req.url).path; 3514 var path = (req.url).path;
3168 var pathOffset = 0; 3515 var pathOffset = 0;
(...skipping 17 matching lines...) Expand all
3186 var keyvalue = part.split("="); 3533 var keyvalue = part.split("=");
3187 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3534 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3188 } 3535 }
3189 } 3536 }
3190 3537
3191 3538
3192 var h = { 3539 var h = {
3193 "content-type" : "application/json; charset=utf-8", 3540 "content-type" : "application/json; charset=utf-8",
3194 }; 3541 };
3195 var resp = convert.JSON.encode(buildReportWorkItemStatusResponse()); 3542 var resp = convert.JSON.encode(buildReportWorkItemStatusResponse());
3196 return new async.Future.value(common_test.stringResponse(200, h, resp)); 3543 return new async.Future.value(stringResponse(200, h, resp));
3197 }), true); 3544 }), true);
3198 res.reportStatus(arg_request, arg_projectId, arg_jobId).then(unittest.expe ctAsync(((api.ReportWorkItemStatusResponse response) { 3545 res.reportStatus(arg_request, arg_projectId, arg_jobId).then(unittest.expe ctAsync(((api.ReportWorkItemStatusResponse response) {
3199 checkReportWorkItemStatusResponse(response); 3546 checkReportWorkItemStatusResponse(response);
3200 }))); 3547 })));
3201 }); 3548 });
3202 3549
3203 }); 3550 });
3204 3551
3205 3552
3206 } 3553 }
3207 3554
OLDNEW
« no previous file with comments | « generated/googleapis_beta/test/dataflow/v1b4_test.dart ('k') | generated/googleapis_beta/test/datastore/v1beta2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698