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

Side by Side Diff: generated/googleapis/test/bigquery/v2_test.dart

Issue 2649893002: Api-roll 44: 2017-01-23 (Closed)
Patch Set: Created 3 years, 10 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.bigquery.v2.test; 1 library googleapis.bigquery.v2.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 unittest.expect(o.encoding, unittest.equals('foo')); 73 unittest.expect(o.encoding, unittest.equals('foo'));
74 unittest.expect(o.fieldName, unittest.equals('foo')); 74 unittest.expect(o.fieldName, unittest.equals('foo'));
75 unittest.expect(o.onlyReadLatest, unittest.isTrue); 75 unittest.expect(o.onlyReadLatest, unittest.isTrue);
76 unittest.expect(o.qualifierEncoded, unittest.equals('foo')); 76 unittest.expect(o.qualifierEncoded, unittest.equals('foo'));
77 unittest.expect(o.qualifierString, unittest.equals('foo')); 77 unittest.expect(o.qualifierString, unittest.equals('foo'));
78 unittest.expect(o.type, unittest.equals('foo')); 78 unittest.expect(o.type, unittest.equals('foo'));
79 } 79 }
80 buildCounterBigtableColumn--; 80 buildCounterBigtableColumn--;
81 } 81 }
82 82
83 buildUnnamed2975() { 83 buildUnnamed2974() {
84 var o = new core.List<api.BigtableColumn>(); 84 var o = new core.List<api.BigtableColumn>();
85 o.add(buildBigtableColumn()); 85 o.add(buildBigtableColumn());
86 o.add(buildBigtableColumn()); 86 o.add(buildBigtableColumn());
87 return o; 87 return o;
88 } 88 }
89 89
90 checkUnnamed2975(core.List<api.BigtableColumn> o) { 90 checkUnnamed2974(core.List<api.BigtableColumn> o) {
91 unittest.expect(o, unittest.hasLength(2)); 91 unittest.expect(o, unittest.hasLength(2));
92 checkBigtableColumn(o[0]); 92 checkBigtableColumn(o[0]);
93 checkBigtableColumn(o[1]); 93 checkBigtableColumn(o[1]);
94 } 94 }
95 95
96 core.int buildCounterBigtableColumnFamily = 0; 96 core.int buildCounterBigtableColumnFamily = 0;
97 buildBigtableColumnFamily() { 97 buildBigtableColumnFamily() {
98 var o = new api.BigtableColumnFamily(); 98 var o = new api.BigtableColumnFamily();
99 buildCounterBigtableColumnFamily++; 99 buildCounterBigtableColumnFamily++;
100 if (buildCounterBigtableColumnFamily < 3) { 100 if (buildCounterBigtableColumnFamily < 3) {
101 o.columns = buildUnnamed2975(); 101 o.columns = buildUnnamed2974();
102 o.encoding = "foo"; 102 o.encoding = "foo";
103 o.familyId = "foo"; 103 o.familyId = "foo";
104 o.onlyReadLatest = true; 104 o.onlyReadLatest = true;
105 o.type = "foo"; 105 o.type = "foo";
106 } 106 }
107 buildCounterBigtableColumnFamily--; 107 buildCounterBigtableColumnFamily--;
108 return o; 108 return o;
109 } 109 }
110 110
111 checkBigtableColumnFamily(api.BigtableColumnFamily o) { 111 checkBigtableColumnFamily(api.BigtableColumnFamily o) {
112 buildCounterBigtableColumnFamily++; 112 buildCounterBigtableColumnFamily++;
113 if (buildCounterBigtableColumnFamily < 3) { 113 if (buildCounterBigtableColumnFamily < 3) {
114 checkUnnamed2975(o.columns); 114 checkUnnamed2974(o.columns);
115 unittest.expect(o.encoding, unittest.equals('foo')); 115 unittest.expect(o.encoding, unittest.equals('foo'));
116 unittest.expect(o.familyId, unittest.equals('foo')); 116 unittest.expect(o.familyId, unittest.equals('foo'));
117 unittest.expect(o.onlyReadLatest, unittest.isTrue); 117 unittest.expect(o.onlyReadLatest, unittest.isTrue);
118 unittest.expect(o.type, unittest.equals('foo')); 118 unittest.expect(o.type, unittest.equals('foo'));
119 } 119 }
120 buildCounterBigtableColumnFamily--; 120 buildCounterBigtableColumnFamily--;
121 } 121 }
122 122
123 buildUnnamed2976() { 123 buildUnnamed2975() {
124 var o = new core.List<api.BigtableColumnFamily>(); 124 var o = new core.List<api.BigtableColumnFamily>();
125 o.add(buildBigtableColumnFamily()); 125 o.add(buildBigtableColumnFamily());
126 o.add(buildBigtableColumnFamily()); 126 o.add(buildBigtableColumnFamily());
127 return o; 127 return o;
128 } 128 }
129 129
130 checkUnnamed2976(core.List<api.BigtableColumnFamily> o) { 130 checkUnnamed2975(core.List<api.BigtableColumnFamily> o) {
131 unittest.expect(o, unittest.hasLength(2)); 131 unittest.expect(o, unittest.hasLength(2));
132 checkBigtableColumnFamily(o[0]); 132 checkBigtableColumnFamily(o[0]);
133 checkBigtableColumnFamily(o[1]); 133 checkBigtableColumnFamily(o[1]);
134 } 134 }
135 135
136 core.int buildCounterBigtableOptions = 0; 136 core.int buildCounterBigtableOptions = 0;
137 buildBigtableOptions() { 137 buildBigtableOptions() {
138 var o = new api.BigtableOptions(); 138 var o = new api.BigtableOptions();
139 buildCounterBigtableOptions++; 139 buildCounterBigtableOptions++;
140 if (buildCounterBigtableOptions < 3) { 140 if (buildCounterBigtableOptions < 3) {
141 o.columnFamilies = buildUnnamed2976(); 141 o.columnFamilies = buildUnnamed2975();
142 o.ignoreUnspecifiedColumnFamilies = true; 142 o.ignoreUnspecifiedColumnFamilies = true;
143 o.readRowkeyAsString = true; 143 o.readRowkeyAsString = true;
144 } 144 }
145 buildCounterBigtableOptions--; 145 buildCounterBigtableOptions--;
146 return o; 146 return o;
147 } 147 }
148 148
149 checkBigtableOptions(api.BigtableOptions o) { 149 checkBigtableOptions(api.BigtableOptions o) {
150 buildCounterBigtableOptions++; 150 buildCounterBigtableOptions++;
151 if (buildCounterBigtableOptions < 3) { 151 if (buildCounterBigtableOptions < 3) {
152 checkUnnamed2976(o.columnFamilies); 152 checkUnnamed2975(o.columnFamilies);
153 unittest.expect(o.ignoreUnspecifiedColumnFamilies, unittest.isTrue); 153 unittest.expect(o.ignoreUnspecifiedColumnFamilies, unittest.isTrue);
154 unittest.expect(o.readRowkeyAsString, unittest.isTrue); 154 unittest.expect(o.readRowkeyAsString, unittest.isTrue);
155 } 155 }
156 buildCounterBigtableOptions--; 156 buildCounterBigtableOptions--;
157 } 157 }
158 158
159 core.int buildCounterCsvOptions = 0; 159 core.int buildCounterCsvOptions = 0;
160 buildCsvOptions() { 160 buildCsvOptions() {
161 var o = new api.CsvOptions(); 161 var o = new api.CsvOptions();
162 buildCounterCsvOptions++; 162 buildCounterCsvOptions++;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 unittest.expect(o.domain, unittest.equals('foo')); 207 unittest.expect(o.domain, unittest.equals('foo'));
208 unittest.expect(o.groupByEmail, unittest.equals('foo')); 208 unittest.expect(o.groupByEmail, unittest.equals('foo'));
209 unittest.expect(o.role, unittest.equals('foo')); 209 unittest.expect(o.role, unittest.equals('foo'));
210 unittest.expect(o.specialGroup, unittest.equals('foo')); 210 unittest.expect(o.specialGroup, unittest.equals('foo'));
211 unittest.expect(o.userByEmail, unittest.equals('foo')); 211 unittest.expect(o.userByEmail, unittest.equals('foo'));
212 checkTableReference(o.view); 212 checkTableReference(o.view);
213 } 213 }
214 buildCounterDatasetAccess--; 214 buildCounterDatasetAccess--;
215 } 215 }
216 216
217 buildUnnamed2977() { 217 buildUnnamed2976() {
218 var o = new core.List<api.DatasetAccess>(); 218 var o = new core.List<api.DatasetAccess>();
219 o.add(buildDatasetAccess()); 219 o.add(buildDatasetAccess());
220 o.add(buildDatasetAccess()); 220 o.add(buildDatasetAccess());
221 return o; 221 return o;
222 } 222 }
223 223
224 checkUnnamed2977(core.List<api.DatasetAccess> o) { 224 checkUnnamed2976(core.List<api.DatasetAccess> o) {
225 unittest.expect(o, unittest.hasLength(2)); 225 unittest.expect(o, unittest.hasLength(2));
226 checkDatasetAccess(o[0]); 226 checkDatasetAccess(o[0]);
227 checkDatasetAccess(o[1]); 227 checkDatasetAccess(o[1]);
228 } 228 }
229 229
230 buildUnnamed2978() { 230 buildUnnamed2977() {
231 var o = new core.Map<core.String, core.String>(); 231 var o = new core.Map<core.String, core.String>();
232 o["x"] = "foo"; 232 o["x"] = "foo";
233 o["y"] = "foo"; 233 o["y"] = "foo";
234 return o; 234 return o;
235 } 235 }
236 236
237 checkUnnamed2978(core.Map<core.String, core.String> o) { 237 checkUnnamed2977(core.Map<core.String, core.String> o) {
238 unittest.expect(o, unittest.hasLength(2)); 238 unittest.expect(o, unittest.hasLength(2));
239 unittest.expect(o["x"], unittest.equals('foo')); 239 unittest.expect(o["x"], unittest.equals('foo'));
240 unittest.expect(o["y"], unittest.equals('foo')); 240 unittest.expect(o["y"], unittest.equals('foo'));
241 } 241 }
242 242
243 core.int buildCounterDataset = 0; 243 core.int buildCounterDataset = 0;
244 buildDataset() { 244 buildDataset() {
245 var o = new api.Dataset(); 245 var o = new api.Dataset();
246 buildCounterDataset++; 246 buildCounterDataset++;
247 if (buildCounterDataset < 3) { 247 if (buildCounterDataset < 3) {
248 o.access = buildUnnamed2977(); 248 o.access = buildUnnamed2976();
249 o.creationTime = "foo"; 249 o.creationTime = "foo";
250 o.datasetReference = buildDatasetReference(); 250 o.datasetReference = buildDatasetReference();
251 o.defaultTableExpirationMs = "foo"; 251 o.defaultTableExpirationMs = "foo";
252 o.description = "foo"; 252 o.description = "foo";
253 o.etag = "foo"; 253 o.etag = "foo";
254 o.friendlyName = "foo"; 254 o.friendlyName = "foo";
255 o.id = "foo"; 255 o.id = "foo";
256 o.kind = "foo"; 256 o.kind = "foo";
257 o.labels = buildUnnamed2978(); 257 o.labels = buildUnnamed2977();
258 o.lastModifiedTime = "foo"; 258 o.lastModifiedTime = "foo";
259 o.location = "foo"; 259 o.location = "foo";
260 o.selfLink = "foo"; 260 o.selfLink = "foo";
261 } 261 }
262 buildCounterDataset--; 262 buildCounterDataset--;
263 return o; 263 return o;
264 } 264 }
265 265
266 checkDataset(api.Dataset o) { 266 checkDataset(api.Dataset o) {
267 buildCounterDataset++; 267 buildCounterDataset++;
268 if (buildCounterDataset < 3) { 268 if (buildCounterDataset < 3) {
269 checkUnnamed2977(o.access); 269 checkUnnamed2976(o.access);
270 unittest.expect(o.creationTime, unittest.equals('foo')); 270 unittest.expect(o.creationTime, unittest.equals('foo'));
271 checkDatasetReference(o.datasetReference); 271 checkDatasetReference(o.datasetReference);
272 unittest.expect(o.defaultTableExpirationMs, unittest.equals('foo')); 272 unittest.expect(o.defaultTableExpirationMs, unittest.equals('foo'));
273 unittest.expect(o.description, unittest.equals('foo')); 273 unittest.expect(o.description, unittest.equals('foo'));
274 unittest.expect(o.etag, unittest.equals('foo')); 274 unittest.expect(o.etag, unittest.equals('foo'));
275 unittest.expect(o.friendlyName, unittest.equals('foo')); 275 unittest.expect(o.friendlyName, unittest.equals('foo'));
276 unittest.expect(o.id, unittest.equals('foo')); 276 unittest.expect(o.id, unittest.equals('foo'));
277 unittest.expect(o.kind, unittest.equals('foo')); 277 unittest.expect(o.kind, unittest.equals('foo'));
278 checkUnnamed2978(o.labels); 278 checkUnnamed2977(o.labels);
279 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); 279 unittest.expect(o.lastModifiedTime, unittest.equals('foo'));
280 unittest.expect(o.location, unittest.equals('foo')); 280 unittest.expect(o.location, unittest.equals('foo'));
281 unittest.expect(o.selfLink, unittest.equals('foo')); 281 unittest.expect(o.selfLink, unittest.equals('foo'));
282 } 282 }
283 buildCounterDataset--; 283 buildCounterDataset--;
284 } 284 }
285 285
286 buildUnnamed2979() { 286 buildUnnamed2978() {
287 var o = new core.Map<core.String, core.String>(); 287 var o = new core.Map<core.String, core.String>();
288 o["x"] = "foo"; 288 o["x"] = "foo";
289 o["y"] = "foo"; 289 o["y"] = "foo";
290 return o; 290 return o;
291 } 291 }
292 292
293 checkUnnamed2979(core.Map<core.String, core.String> o) { 293 checkUnnamed2978(core.Map<core.String, core.String> o) {
294 unittest.expect(o, unittest.hasLength(2)); 294 unittest.expect(o, unittest.hasLength(2));
295 unittest.expect(o["x"], unittest.equals('foo')); 295 unittest.expect(o["x"], unittest.equals('foo'));
296 unittest.expect(o["y"], unittest.equals('foo')); 296 unittest.expect(o["y"], unittest.equals('foo'));
297 } 297 }
298 298
299 core.int buildCounterDatasetListDatasets = 0; 299 core.int buildCounterDatasetListDatasets = 0;
300 buildDatasetListDatasets() { 300 buildDatasetListDatasets() {
301 var o = new api.DatasetListDatasets(); 301 var o = new api.DatasetListDatasets();
302 buildCounterDatasetListDatasets++; 302 buildCounterDatasetListDatasets++;
303 if (buildCounterDatasetListDatasets < 3) { 303 if (buildCounterDatasetListDatasets < 3) {
304 o.datasetReference = buildDatasetReference(); 304 o.datasetReference = buildDatasetReference();
305 o.friendlyName = "foo"; 305 o.friendlyName = "foo";
306 o.id = "foo"; 306 o.id = "foo";
307 o.kind = "foo"; 307 o.kind = "foo";
308 o.labels = buildUnnamed2979(); 308 o.labels = buildUnnamed2978();
309 } 309 }
310 buildCounterDatasetListDatasets--; 310 buildCounterDatasetListDatasets--;
311 return o; 311 return o;
312 } 312 }
313 313
314 checkDatasetListDatasets(api.DatasetListDatasets o) { 314 checkDatasetListDatasets(api.DatasetListDatasets o) {
315 buildCounterDatasetListDatasets++; 315 buildCounterDatasetListDatasets++;
316 if (buildCounterDatasetListDatasets < 3) { 316 if (buildCounterDatasetListDatasets < 3) {
317 checkDatasetReference(o.datasetReference); 317 checkDatasetReference(o.datasetReference);
318 unittest.expect(o.friendlyName, unittest.equals('foo')); 318 unittest.expect(o.friendlyName, unittest.equals('foo'));
319 unittest.expect(o.id, unittest.equals('foo')); 319 unittest.expect(o.id, unittest.equals('foo'));
320 unittest.expect(o.kind, unittest.equals('foo')); 320 unittest.expect(o.kind, unittest.equals('foo'));
321 checkUnnamed2979(o.labels); 321 checkUnnamed2978(o.labels);
322 } 322 }
323 buildCounterDatasetListDatasets--; 323 buildCounterDatasetListDatasets--;
324 } 324 }
325 325
326 buildUnnamed2980() { 326 buildUnnamed2979() {
327 var o = new core.List<api.DatasetListDatasets>(); 327 var o = new core.List<api.DatasetListDatasets>();
328 o.add(buildDatasetListDatasets()); 328 o.add(buildDatasetListDatasets());
329 o.add(buildDatasetListDatasets()); 329 o.add(buildDatasetListDatasets());
330 return o; 330 return o;
331 } 331 }
332 332
333 checkUnnamed2980(core.List<api.DatasetListDatasets> o) { 333 checkUnnamed2979(core.List<api.DatasetListDatasets> o) {
334 unittest.expect(o, unittest.hasLength(2)); 334 unittest.expect(o, unittest.hasLength(2));
335 checkDatasetListDatasets(o[0]); 335 checkDatasetListDatasets(o[0]);
336 checkDatasetListDatasets(o[1]); 336 checkDatasetListDatasets(o[1]);
337 } 337 }
338 338
339 core.int buildCounterDatasetList = 0; 339 core.int buildCounterDatasetList = 0;
340 buildDatasetList() { 340 buildDatasetList() {
341 var o = new api.DatasetList(); 341 var o = new api.DatasetList();
342 buildCounterDatasetList++; 342 buildCounterDatasetList++;
343 if (buildCounterDatasetList < 3) { 343 if (buildCounterDatasetList < 3) {
344 o.datasets = buildUnnamed2980(); 344 o.datasets = buildUnnamed2979();
345 o.etag = "foo"; 345 o.etag = "foo";
346 o.kind = "foo"; 346 o.kind = "foo";
347 o.nextPageToken = "foo"; 347 o.nextPageToken = "foo";
348 } 348 }
349 buildCounterDatasetList--; 349 buildCounterDatasetList--;
350 return o; 350 return o;
351 } 351 }
352 352
353 checkDatasetList(api.DatasetList o) { 353 checkDatasetList(api.DatasetList o) {
354 buildCounterDatasetList++; 354 buildCounterDatasetList++;
355 if (buildCounterDatasetList < 3) { 355 if (buildCounterDatasetList < 3) {
356 checkUnnamed2980(o.datasets); 356 checkUnnamed2979(o.datasets);
357 unittest.expect(o.etag, unittest.equals('foo')); 357 unittest.expect(o.etag, unittest.equals('foo'));
358 unittest.expect(o.kind, unittest.equals('foo')); 358 unittest.expect(o.kind, unittest.equals('foo'));
359 unittest.expect(o.nextPageToken, unittest.equals('foo')); 359 unittest.expect(o.nextPageToken, unittest.equals('foo'));
360 } 360 }
361 buildCounterDatasetList--; 361 buildCounterDatasetList--;
362 } 362 }
363 363
364 core.int buildCounterDatasetReference = 0; 364 core.int buildCounterDatasetReference = 0;
365 buildDatasetReference() { 365 buildDatasetReference() {
366 var o = new api.DatasetReference(); 366 var o = new api.DatasetReference();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 buildCounterErrorProto++; 400 buildCounterErrorProto++;
401 if (buildCounterErrorProto < 3) { 401 if (buildCounterErrorProto < 3) {
402 unittest.expect(o.debugInfo, unittest.equals('foo')); 402 unittest.expect(o.debugInfo, unittest.equals('foo'));
403 unittest.expect(o.location, unittest.equals('foo')); 403 unittest.expect(o.location, unittest.equals('foo'));
404 unittest.expect(o.message, unittest.equals('foo')); 404 unittest.expect(o.message, unittest.equals('foo'));
405 unittest.expect(o.reason, unittest.equals('foo')); 405 unittest.expect(o.reason, unittest.equals('foo'));
406 } 406 }
407 buildCounterErrorProto--; 407 buildCounterErrorProto--;
408 } 408 }
409 409
410 buildUnnamed2981() { 410 buildUnnamed2980() {
411 var o = new core.List<api.ExplainQueryStep>(); 411 var o = new core.List<api.ExplainQueryStep>();
412 o.add(buildExplainQueryStep()); 412 o.add(buildExplainQueryStep());
413 o.add(buildExplainQueryStep()); 413 o.add(buildExplainQueryStep());
414 return o; 414 return o;
415 } 415 }
416 416
417 checkUnnamed2981(core.List<api.ExplainQueryStep> o) { 417 checkUnnamed2980(core.List<api.ExplainQueryStep> o) {
418 unittest.expect(o, unittest.hasLength(2)); 418 unittest.expect(o, unittest.hasLength(2));
419 checkExplainQueryStep(o[0]); 419 checkExplainQueryStep(o[0]);
420 checkExplainQueryStep(o[1]); 420 checkExplainQueryStep(o[1]);
421 } 421 }
422 422
423 core.int buildCounterExplainQueryStage = 0; 423 core.int buildCounterExplainQueryStage = 0;
424 buildExplainQueryStage() { 424 buildExplainQueryStage() {
425 var o = new api.ExplainQueryStage(); 425 var o = new api.ExplainQueryStage();
426 buildCounterExplainQueryStage++; 426 buildCounterExplainQueryStage++;
427 if (buildCounterExplainQueryStage < 3) { 427 if (buildCounterExplainQueryStage < 3) {
428 o.computeRatioAvg = 42.0; 428 o.computeRatioAvg = 42.0;
429 o.computeRatioMax = 42.0; 429 o.computeRatioMax = 42.0;
430 o.id = "foo"; 430 o.id = "foo";
431 o.name = "foo"; 431 o.name = "foo";
432 o.readRatioAvg = 42.0; 432 o.readRatioAvg = 42.0;
433 o.readRatioMax = 42.0; 433 o.readRatioMax = 42.0;
434 o.recordsRead = "foo"; 434 o.recordsRead = "foo";
435 o.recordsWritten = "foo"; 435 o.recordsWritten = "foo";
436 o.steps = buildUnnamed2981(); 436 o.status = "foo";
437 o.steps = buildUnnamed2980();
437 o.waitRatioAvg = 42.0; 438 o.waitRatioAvg = 42.0;
438 o.waitRatioMax = 42.0; 439 o.waitRatioMax = 42.0;
439 o.writeRatioAvg = 42.0; 440 o.writeRatioAvg = 42.0;
440 o.writeRatioMax = 42.0; 441 o.writeRatioMax = 42.0;
441 } 442 }
442 buildCounterExplainQueryStage--; 443 buildCounterExplainQueryStage--;
443 return o; 444 return o;
444 } 445 }
445 446
446 checkExplainQueryStage(api.ExplainQueryStage o) { 447 checkExplainQueryStage(api.ExplainQueryStage o) {
447 buildCounterExplainQueryStage++; 448 buildCounterExplainQueryStage++;
448 if (buildCounterExplainQueryStage < 3) { 449 if (buildCounterExplainQueryStage < 3) {
449 unittest.expect(o.computeRatioAvg, unittest.equals(42.0)); 450 unittest.expect(o.computeRatioAvg, unittest.equals(42.0));
450 unittest.expect(o.computeRatioMax, unittest.equals(42.0)); 451 unittest.expect(o.computeRatioMax, unittest.equals(42.0));
451 unittest.expect(o.id, unittest.equals('foo')); 452 unittest.expect(o.id, unittest.equals('foo'));
452 unittest.expect(o.name, unittest.equals('foo')); 453 unittest.expect(o.name, unittest.equals('foo'));
453 unittest.expect(o.readRatioAvg, unittest.equals(42.0)); 454 unittest.expect(o.readRatioAvg, unittest.equals(42.0));
454 unittest.expect(o.readRatioMax, unittest.equals(42.0)); 455 unittest.expect(o.readRatioMax, unittest.equals(42.0));
455 unittest.expect(o.recordsRead, unittest.equals('foo')); 456 unittest.expect(o.recordsRead, unittest.equals('foo'));
456 unittest.expect(o.recordsWritten, unittest.equals('foo')); 457 unittest.expect(o.recordsWritten, unittest.equals('foo'));
457 checkUnnamed2981(o.steps); 458 unittest.expect(o.status, unittest.equals('foo'));
459 checkUnnamed2980(o.steps);
458 unittest.expect(o.waitRatioAvg, unittest.equals(42.0)); 460 unittest.expect(o.waitRatioAvg, unittest.equals(42.0));
459 unittest.expect(o.waitRatioMax, unittest.equals(42.0)); 461 unittest.expect(o.waitRatioMax, unittest.equals(42.0));
460 unittest.expect(o.writeRatioAvg, unittest.equals(42.0)); 462 unittest.expect(o.writeRatioAvg, unittest.equals(42.0));
461 unittest.expect(o.writeRatioMax, unittest.equals(42.0)); 463 unittest.expect(o.writeRatioMax, unittest.equals(42.0));
462 } 464 }
463 buildCounterExplainQueryStage--; 465 buildCounterExplainQueryStage--;
464 } 466 }
465 467
466 buildUnnamed2982() { 468 buildUnnamed2981() {
467 var o = new core.List<core.String>(); 469 var o = new core.List<core.String>();
468 o.add("foo"); 470 o.add("foo");
469 o.add("foo"); 471 o.add("foo");
470 return o; 472 return o;
471 } 473 }
472 474
473 checkUnnamed2982(core.List<core.String> o) { 475 checkUnnamed2981(core.List<core.String> o) {
474 unittest.expect(o, unittest.hasLength(2)); 476 unittest.expect(o, unittest.hasLength(2));
475 unittest.expect(o[0], unittest.equals('foo')); 477 unittest.expect(o[0], unittest.equals('foo'));
476 unittest.expect(o[1], unittest.equals('foo')); 478 unittest.expect(o[1], unittest.equals('foo'));
477 } 479 }
478 480
479 core.int buildCounterExplainQueryStep = 0; 481 core.int buildCounterExplainQueryStep = 0;
480 buildExplainQueryStep() { 482 buildExplainQueryStep() {
481 var o = new api.ExplainQueryStep(); 483 var o = new api.ExplainQueryStep();
482 buildCounterExplainQueryStep++; 484 buildCounterExplainQueryStep++;
483 if (buildCounterExplainQueryStep < 3) { 485 if (buildCounterExplainQueryStep < 3) {
484 o.kind = "foo"; 486 o.kind = "foo";
485 o.substeps = buildUnnamed2982(); 487 o.substeps = buildUnnamed2981();
486 } 488 }
487 buildCounterExplainQueryStep--; 489 buildCounterExplainQueryStep--;
488 return o; 490 return o;
489 } 491 }
490 492
491 checkExplainQueryStep(api.ExplainQueryStep o) { 493 checkExplainQueryStep(api.ExplainQueryStep o) {
492 buildCounterExplainQueryStep++; 494 buildCounterExplainQueryStep++;
493 if (buildCounterExplainQueryStep < 3) { 495 if (buildCounterExplainQueryStep < 3) {
494 unittest.expect(o.kind, unittest.equals('foo')); 496 unittest.expect(o.kind, unittest.equals('foo'));
495 checkUnnamed2982(o.substeps); 497 checkUnnamed2981(o.substeps);
496 } 498 }
497 buildCounterExplainQueryStep--; 499 buildCounterExplainQueryStep--;
498 } 500 }
499 501
500 buildUnnamed2983() { 502 buildUnnamed2982() {
501 var o = new core.List<core.String>(); 503 var o = new core.List<core.String>();
502 o.add("foo"); 504 o.add("foo");
503 o.add("foo"); 505 o.add("foo");
504 return o; 506 return o;
505 } 507 }
506 508
507 checkUnnamed2983(core.List<core.String> o) { 509 checkUnnamed2982(core.List<core.String> o) {
508 unittest.expect(o, unittest.hasLength(2)); 510 unittest.expect(o, unittest.hasLength(2));
509 unittest.expect(o[0], unittest.equals('foo')); 511 unittest.expect(o[0], unittest.equals('foo'));
510 unittest.expect(o[1], unittest.equals('foo')); 512 unittest.expect(o[1], unittest.equals('foo'));
511 } 513 }
512 514
513 core.int buildCounterExternalDataConfiguration = 0; 515 core.int buildCounterExternalDataConfiguration = 0;
514 buildExternalDataConfiguration() { 516 buildExternalDataConfiguration() {
515 var o = new api.ExternalDataConfiguration(); 517 var o = new api.ExternalDataConfiguration();
516 buildCounterExternalDataConfiguration++; 518 buildCounterExternalDataConfiguration++;
517 if (buildCounterExternalDataConfiguration < 3) { 519 if (buildCounterExternalDataConfiguration < 3) {
518 o.autodetect = true; 520 o.autodetect = true;
519 o.bigtableOptions = buildBigtableOptions(); 521 o.bigtableOptions = buildBigtableOptions();
520 o.compression = "foo"; 522 o.compression = "foo";
521 o.csvOptions = buildCsvOptions(); 523 o.csvOptions = buildCsvOptions();
522 o.googleSheetsOptions = buildGoogleSheetsOptions(); 524 o.googleSheetsOptions = buildGoogleSheetsOptions();
523 o.ignoreUnknownValues = true; 525 o.ignoreUnknownValues = true;
524 o.maxBadRecords = 42; 526 o.maxBadRecords = 42;
525 o.schema = buildTableSchema(); 527 o.schema = buildTableSchema();
526 o.sourceFormat = "foo"; 528 o.sourceFormat = "foo";
527 o.sourceUris = buildUnnamed2983(); 529 o.sourceUris = buildUnnamed2982();
528 } 530 }
529 buildCounterExternalDataConfiguration--; 531 buildCounterExternalDataConfiguration--;
530 return o; 532 return o;
531 } 533 }
532 534
533 checkExternalDataConfiguration(api.ExternalDataConfiguration o) { 535 checkExternalDataConfiguration(api.ExternalDataConfiguration o) {
534 buildCounterExternalDataConfiguration++; 536 buildCounterExternalDataConfiguration++;
535 if (buildCounterExternalDataConfiguration < 3) { 537 if (buildCounterExternalDataConfiguration < 3) {
536 unittest.expect(o.autodetect, unittest.isTrue); 538 unittest.expect(o.autodetect, unittest.isTrue);
537 checkBigtableOptions(o.bigtableOptions); 539 checkBigtableOptions(o.bigtableOptions);
538 unittest.expect(o.compression, unittest.equals('foo')); 540 unittest.expect(o.compression, unittest.equals('foo'));
539 checkCsvOptions(o.csvOptions); 541 checkCsvOptions(o.csvOptions);
540 checkGoogleSheetsOptions(o.googleSheetsOptions); 542 checkGoogleSheetsOptions(o.googleSheetsOptions);
541 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); 543 unittest.expect(o.ignoreUnknownValues, unittest.isTrue);
542 unittest.expect(o.maxBadRecords, unittest.equals(42)); 544 unittest.expect(o.maxBadRecords, unittest.equals(42));
543 checkTableSchema(o.schema); 545 checkTableSchema(o.schema);
544 unittest.expect(o.sourceFormat, unittest.equals('foo')); 546 unittest.expect(o.sourceFormat, unittest.equals('foo'));
545 checkUnnamed2983(o.sourceUris); 547 checkUnnamed2982(o.sourceUris);
546 } 548 }
547 buildCounterExternalDataConfiguration--; 549 buildCounterExternalDataConfiguration--;
548 } 550 }
549 551
550 buildUnnamed2984() { 552 buildUnnamed2983() {
551 var o = new core.List<api.ErrorProto>(); 553 var o = new core.List<api.ErrorProto>();
552 o.add(buildErrorProto()); 554 o.add(buildErrorProto());
553 o.add(buildErrorProto()); 555 o.add(buildErrorProto());
554 return o; 556 return o;
555 } 557 }
556 558
557 checkUnnamed2984(core.List<api.ErrorProto> o) { 559 checkUnnamed2983(core.List<api.ErrorProto> o) {
558 unittest.expect(o, unittest.hasLength(2)); 560 unittest.expect(o, unittest.hasLength(2));
559 checkErrorProto(o[0]); 561 checkErrorProto(o[0]);
560 checkErrorProto(o[1]); 562 checkErrorProto(o[1]);
561 } 563 }
562 564
563 buildUnnamed2985() { 565 buildUnnamed2984() {
564 var o = new core.List<api.TableRow>(); 566 var o = new core.List<api.TableRow>();
565 o.add(buildTableRow()); 567 o.add(buildTableRow());
566 o.add(buildTableRow()); 568 o.add(buildTableRow());
567 return o; 569 return o;
568 } 570 }
569 571
570 checkUnnamed2985(core.List<api.TableRow> o) { 572 checkUnnamed2984(core.List<api.TableRow> o) {
571 unittest.expect(o, unittest.hasLength(2)); 573 unittest.expect(o, unittest.hasLength(2));
572 checkTableRow(o[0]); 574 checkTableRow(o[0]);
573 checkTableRow(o[1]); 575 checkTableRow(o[1]);
574 } 576 }
575 577
576 core.int buildCounterGetQueryResultsResponse = 0; 578 core.int buildCounterGetQueryResultsResponse = 0;
577 buildGetQueryResultsResponse() { 579 buildGetQueryResultsResponse() {
578 var o = new api.GetQueryResultsResponse(); 580 var o = new api.GetQueryResultsResponse();
579 buildCounterGetQueryResultsResponse++; 581 buildCounterGetQueryResultsResponse++;
580 if (buildCounterGetQueryResultsResponse < 3) { 582 if (buildCounterGetQueryResultsResponse < 3) {
581 o.cacheHit = true; 583 o.cacheHit = true;
582 o.errors = buildUnnamed2984(); 584 o.errors = buildUnnamed2983();
583 o.etag = "foo"; 585 o.etag = "foo";
584 o.jobComplete = true; 586 o.jobComplete = true;
585 o.jobReference = buildJobReference(); 587 o.jobReference = buildJobReference();
586 o.kind = "foo"; 588 o.kind = "foo";
587 o.numDmlAffectedRows = "foo"; 589 o.numDmlAffectedRows = "foo";
588 o.pageToken = "foo"; 590 o.pageToken = "foo";
589 o.rows = buildUnnamed2985(); 591 o.rows = buildUnnamed2984();
590 o.schema = buildTableSchema(); 592 o.schema = buildTableSchema();
591 o.totalBytesProcessed = "foo"; 593 o.totalBytesProcessed = "foo";
592 o.totalRows = "foo"; 594 o.totalRows = "foo";
593 } 595 }
594 buildCounterGetQueryResultsResponse--; 596 buildCounterGetQueryResultsResponse--;
595 return o; 597 return o;
596 } 598 }
597 599
598 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { 600 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) {
599 buildCounterGetQueryResultsResponse++; 601 buildCounterGetQueryResultsResponse++;
600 if (buildCounterGetQueryResultsResponse < 3) { 602 if (buildCounterGetQueryResultsResponse < 3) {
601 unittest.expect(o.cacheHit, unittest.isTrue); 603 unittest.expect(o.cacheHit, unittest.isTrue);
602 checkUnnamed2984(o.errors); 604 checkUnnamed2983(o.errors);
603 unittest.expect(o.etag, unittest.equals('foo')); 605 unittest.expect(o.etag, unittest.equals('foo'));
604 unittest.expect(o.jobComplete, unittest.isTrue); 606 unittest.expect(o.jobComplete, unittest.isTrue);
605 checkJobReference(o.jobReference); 607 checkJobReference(o.jobReference);
606 unittest.expect(o.kind, unittest.equals('foo')); 608 unittest.expect(o.kind, unittest.equals('foo'));
607 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); 609 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo'));
608 unittest.expect(o.pageToken, unittest.equals('foo')); 610 unittest.expect(o.pageToken, unittest.equals('foo'));
609 checkUnnamed2985(o.rows); 611 checkUnnamed2984(o.rows);
610 checkTableSchema(o.schema); 612 checkTableSchema(o.schema);
611 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); 613 unittest.expect(o.totalBytesProcessed, unittest.equals('foo'));
612 unittest.expect(o.totalRows, unittest.equals('foo')); 614 unittest.expect(o.totalRows, unittest.equals('foo'));
613 } 615 }
614 buildCounterGetQueryResultsResponse--; 616 buildCounterGetQueryResultsResponse--;
615 } 617 }
616 618
617 core.int buildCounterGoogleSheetsOptions = 0; 619 core.int buildCounterGoogleSheetsOptions = 0;
618 buildGoogleSheetsOptions() { 620 buildGoogleSheetsOptions() {
619 var o = new api.GoogleSheetsOptions(); 621 var o = new api.GoogleSheetsOptions();
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 684
683 checkJobCancelResponse(api.JobCancelResponse o) { 685 checkJobCancelResponse(api.JobCancelResponse o) {
684 buildCounterJobCancelResponse++; 686 buildCounterJobCancelResponse++;
685 if (buildCounterJobCancelResponse < 3) { 687 if (buildCounterJobCancelResponse < 3) {
686 checkJob(o.job); 688 checkJob(o.job);
687 unittest.expect(o.kind, unittest.equals('foo')); 689 unittest.expect(o.kind, unittest.equals('foo'));
688 } 690 }
689 buildCounterJobCancelResponse--; 691 buildCounterJobCancelResponse--;
690 } 692 }
691 693
692 buildUnnamed2986() { 694 buildUnnamed2985() {
693 var o = new core.Map<core.String, core.String>(); 695 var o = new core.Map<core.String, core.String>();
694 o["x"] = "foo"; 696 o["x"] = "foo";
695 o["y"] = "foo"; 697 o["y"] = "foo";
696 return o; 698 return o;
697 } 699 }
698 700
699 checkUnnamed2986(core.Map<core.String, core.String> o) { 701 checkUnnamed2985(core.Map<core.String, core.String> o) {
700 unittest.expect(o, unittest.hasLength(2)); 702 unittest.expect(o, unittest.hasLength(2));
701 unittest.expect(o["x"], unittest.equals('foo')); 703 unittest.expect(o["x"], unittest.equals('foo'));
702 unittest.expect(o["y"], unittest.equals('foo')); 704 unittest.expect(o["y"], unittest.equals('foo'));
703 } 705 }
704 706
705 core.int buildCounterJobConfiguration = 0; 707 core.int buildCounterJobConfiguration = 0;
706 buildJobConfiguration() { 708 buildJobConfiguration() {
707 var o = new api.JobConfiguration(); 709 var o = new api.JobConfiguration();
708 buildCounterJobConfiguration++; 710 buildCounterJobConfiguration++;
709 if (buildCounterJobConfiguration < 3) { 711 if (buildCounterJobConfiguration < 3) {
710 o.copy = buildJobConfigurationTableCopy(); 712 o.copy = buildJobConfigurationTableCopy();
711 o.dryRun = true; 713 o.dryRun = true;
712 o.extract = buildJobConfigurationExtract(); 714 o.extract = buildJobConfigurationExtract();
713 o.labels = buildUnnamed2986(); 715 o.labels = buildUnnamed2985();
714 o.load = buildJobConfigurationLoad(); 716 o.load = buildJobConfigurationLoad();
715 o.query = buildJobConfigurationQuery(); 717 o.query = buildJobConfigurationQuery();
716 } 718 }
717 buildCounterJobConfiguration--; 719 buildCounterJobConfiguration--;
718 return o; 720 return o;
719 } 721 }
720 722
721 checkJobConfiguration(api.JobConfiguration o) { 723 checkJobConfiguration(api.JobConfiguration o) {
722 buildCounterJobConfiguration++; 724 buildCounterJobConfiguration++;
723 if (buildCounterJobConfiguration < 3) { 725 if (buildCounterJobConfiguration < 3) {
724 checkJobConfigurationTableCopy(o.copy); 726 checkJobConfigurationTableCopy(o.copy);
725 unittest.expect(o.dryRun, unittest.isTrue); 727 unittest.expect(o.dryRun, unittest.isTrue);
726 checkJobConfigurationExtract(o.extract); 728 checkJobConfigurationExtract(o.extract);
727 checkUnnamed2986(o.labels); 729 checkUnnamed2985(o.labels);
728 checkJobConfigurationLoad(o.load); 730 checkJobConfigurationLoad(o.load);
729 checkJobConfigurationQuery(o.query); 731 checkJobConfigurationQuery(o.query);
730 } 732 }
731 buildCounterJobConfiguration--; 733 buildCounterJobConfiguration--;
732 } 734 }
733 735
734 buildUnnamed2987() { 736 buildUnnamed2986() {
735 var o = new core.List<core.String>(); 737 var o = new core.List<core.String>();
736 o.add("foo"); 738 o.add("foo");
737 o.add("foo"); 739 o.add("foo");
738 return o; 740 return o;
739 } 741 }
740 742
741 checkUnnamed2987(core.List<core.String> o) { 743 checkUnnamed2986(core.List<core.String> o) {
742 unittest.expect(o, unittest.hasLength(2)); 744 unittest.expect(o, unittest.hasLength(2));
743 unittest.expect(o[0], unittest.equals('foo')); 745 unittest.expect(o[0], unittest.equals('foo'));
744 unittest.expect(o[1], unittest.equals('foo')); 746 unittest.expect(o[1], unittest.equals('foo'));
745 } 747 }
746 748
747 core.int buildCounterJobConfigurationExtract = 0; 749 core.int buildCounterJobConfigurationExtract = 0;
748 buildJobConfigurationExtract() { 750 buildJobConfigurationExtract() {
749 var o = new api.JobConfigurationExtract(); 751 var o = new api.JobConfigurationExtract();
750 buildCounterJobConfigurationExtract++; 752 buildCounterJobConfigurationExtract++;
751 if (buildCounterJobConfigurationExtract < 3) { 753 if (buildCounterJobConfigurationExtract < 3) {
752 o.compression = "foo"; 754 o.compression = "foo";
753 o.destinationFormat = "foo"; 755 o.destinationFormat = "foo";
754 o.destinationUri = "foo"; 756 o.destinationUri = "foo";
755 o.destinationUris = buildUnnamed2987(); 757 o.destinationUris = buildUnnamed2986();
756 o.fieldDelimiter = "foo"; 758 o.fieldDelimiter = "foo";
757 o.printHeader = true; 759 o.printHeader = true;
758 o.sourceTable = buildTableReference(); 760 o.sourceTable = buildTableReference();
759 } 761 }
760 buildCounterJobConfigurationExtract--; 762 buildCounterJobConfigurationExtract--;
761 return o; 763 return o;
762 } 764 }
763 765
764 checkJobConfigurationExtract(api.JobConfigurationExtract o) { 766 checkJobConfigurationExtract(api.JobConfigurationExtract o) {
765 buildCounterJobConfigurationExtract++; 767 buildCounterJobConfigurationExtract++;
766 if (buildCounterJobConfigurationExtract < 3) { 768 if (buildCounterJobConfigurationExtract < 3) {
767 unittest.expect(o.compression, unittest.equals('foo')); 769 unittest.expect(o.compression, unittest.equals('foo'));
768 unittest.expect(o.destinationFormat, unittest.equals('foo')); 770 unittest.expect(o.destinationFormat, unittest.equals('foo'));
769 unittest.expect(o.destinationUri, unittest.equals('foo')); 771 unittest.expect(o.destinationUri, unittest.equals('foo'));
770 checkUnnamed2987(o.destinationUris); 772 checkUnnamed2986(o.destinationUris);
771 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); 773 unittest.expect(o.fieldDelimiter, unittest.equals('foo'));
772 unittest.expect(o.printHeader, unittest.isTrue); 774 unittest.expect(o.printHeader, unittest.isTrue);
773 checkTableReference(o.sourceTable); 775 checkTableReference(o.sourceTable);
774 } 776 }
775 buildCounterJobConfigurationExtract--; 777 buildCounterJobConfigurationExtract--;
776 } 778 }
777 779
780 buildUnnamed2987() {
781 var o = new core.List<core.String>();
782 o.add("foo");
783 o.add("foo");
784 return o;
785 }
786
787 checkUnnamed2987(core.List<core.String> o) {
788 unittest.expect(o, unittest.hasLength(2));
789 unittest.expect(o[0], unittest.equals('foo'));
790 unittest.expect(o[1], unittest.equals('foo'));
791 }
792
778 buildUnnamed2988() { 793 buildUnnamed2988() {
779 var o = new core.List<core.String>(); 794 var o = new core.List<core.String>();
780 o.add("foo"); 795 o.add("foo");
781 o.add("foo"); 796 o.add("foo");
782 return o; 797 return o;
783 } 798 }
784 799
785 checkUnnamed2988(core.List<core.String> o) { 800 checkUnnamed2988(core.List<core.String> o) {
786 unittest.expect(o, unittest.hasLength(2)); 801 unittest.expect(o, unittest.hasLength(2));
787 unittest.expect(o[0], unittest.equals('foo')); 802 unittest.expect(o[0], unittest.equals('foo'));
788 unittest.expect(o[1], unittest.equals('foo')); 803 unittest.expect(o[1], unittest.equals('foo'));
789 } 804 }
790 805
791 buildUnnamed2989() { 806 buildUnnamed2989() {
792 var o = new core.List<core.String>(); 807 var o = new core.List<core.String>();
793 o.add("foo"); 808 o.add("foo");
794 o.add("foo"); 809 o.add("foo");
795 return o; 810 return o;
796 } 811 }
797 812
798 checkUnnamed2989(core.List<core.String> o) { 813 checkUnnamed2989(core.List<core.String> o) {
799 unittest.expect(o, unittest.hasLength(2)); 814 unittest.expect(o, unittest.hasLength(2));
800 unittest.expect(o[0], unittest.equals('foo')); 815 unittest.expect(o[0], unittest.equals('foo'));
801 unittest.expect(o[1], unittest.equals('foo')); 816 unittest.expect(o[1], unittest.equals('foo'));
802 }
803
804 buildUnnamed2990() {
805 var o = new core.List<core.String>();
806 o.add("foo");
807 o.add("foo");
808 return o;
809 }
810
811 checkUnnamed2990(core.List<core.String> o) {
812 unittest.expect(o, unittest.hasLength(2));
813 unittest.expect(o[0], unittest.equals('foo'));
814 unittest.expect(o[1], unittest.equals('foo'));
815 } 817 }
816 818
817 core.int buildCounterJobConfigurationLoad = 0; 819 core.int buildCounterJobConfigurationLoad = 0;
818 buildJobConfigurationLoad() { 820 buildJobConfigurationLoad() {
819 var o = new api.JobConfigurationLoad(); 821 var o = new api.JobConfigurationLoad();
820 buildCounterJobConfigurationLoad++; 822 buildCounterJobConfigurationLoad++;
821 if (buildCounterJobConfigurationLoad < 3) { 823 if (buildCounterJobConfigurationLoad < 3) {
822 o.allowJaggedRows = true; 824 o.allowJaggedRows = true;
823 o.allowQuotedNewlines = true; 825 o.allowQuotedNewlines = true;
824 o.autodetect = true; 826 o.autodetect = true;
825 o.createDisposition = "foo"; 827 o.createDisposition = "foo";
826 o.destinationTable = buildTableReference(); 828 o.destinationTable = buildTableReference();
827 o.encoding = "foo"; 829 o.encoding = "foo";
828 o.fieldDelimiter = "foo"; 830 o.fieldDelimiter = "foo";
829 o.ignoreUnknownValues = true; 831 o.ignoreUnknownValues = true;
830 o.maxBadRecords = 42; 832 o.maxBadRecords = 42;
831 o.projectionFields = buildUnnamed2988(); 833 o.nullMarker = "foo";
834 o.projectionFields = buildUnnamed2987();
832 o.quote = "foo"; 835 o.quote = "foo";
833 o.schema = buildTableSchema(); 836 o.schema = buildTableSchema();
834 o.schemaInline = "foo"; 837 o.schemaInline = "foo";
835 o.schemaInlineFormat = "foo"; 838 o.schemaInlineFormat = "foo";
836 o.schemaUpdateOptions = buildUnnamed2989(); 839 o.schemaUpdateOptions = buildUnnamed2988();
837 o.skipLeadingRows = 42; 840 o.skipLeadingRows = 42;
838 o.sourceFormat = "foo"; 841 o.sourceFormat = "foo";
839 o.sourceUris = buildUnnamed2990(); 842 o.sourceUris = buildUnnamed2989();
840 o.writeDisposition = "foo"; 843 o.writeDisposition = "foo";
841 } 844 }
842 buildCounterJobConfigurationLoad--; 845 buildCounterJobConfigurationLoad--;
843 return o; 846 return o;
844 } 847 }
845 848
846 checkJobConfigurationLoad(api.JobConfigurationLoad o) { 849 checkJobConfigurationLoad(api.JobConfigurationLoad o) {
847 buildCounterJobConfigurationLoad++; 850 buildCounterJobConfigurationLoad++;
848 if (buildCounterJobConfigurationLoad < 3) { 851 if (buildCounterJobConfigurationLoad < 3) {
849 unittest.expect(o.allowJaggedRows, unittest.isTrue); 852 unittest.expect(o.allowJaggedRows, unittest.isTrue);
850 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); 853 unittest.expect(o.allowQuotedNewlines, unittest.isTrue);
851 unittest.expect(o.autodetect, unittest.isTrue); 854 unittest.expect(o.autodetect, unittest.isTrue);
852 unittest.expect(o.createDisposition, unittest.equals('foo')); 855 unittest.expect(o.createDisposition, unittest.equals('foo'));
853 checkTableReference(o.destinationTable); 856 checkTableReference(o.destinationTable);
854 unittest.expect(o.encoding, unittest.equals('foo')); 857 unittest.expect(o.encoding, unittest.equals('foo'));
855 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); 858 unittest.expect(o.fieldDelimiter, unittest.equals('foo'));
856 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); 859 unittest.expect(o.ignoreUnknownValues, unittest.isTrue);
857 unittest.expect(o.maxBadRecords, unittest.equals(42)); 860 unittest.expect(o.maxBadRecords, unittest.equals(42));
858 checkUnnamed2988(o.projectionFields); 861 unittest.expect(o.nullMarker, unittest.equals('foo'));
862 checkUnnamed2987(o.projectionFields);
859 unittest.expect(o.quote, unittest.equals('foo')); 863 unittest.expect(o.quote, unittest.equals('foo'));
860 checkTableSchema(o.schema); 864 checkTableSchema(o.schema);
861 unittest.expect(o.schemaInline, unittest.equals('foo')); 865 unittest.expect(o.schemaInline, unittest.equals('foo'));
862 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); 866 unittest.expect(o.schemaInlineFormat, unittest.equals('foo'));
863 checkUnnamed2989(o.schemaUpdateOptions); 867 checkUnnamed2988(o.schemaUpdateOptions);
864 unittest.expect(o.skipLeadingRows, unittest.equals(42)); 868 unittest.expect(o.skipLeadingRows, unittest.equals(42));
865 unittest.expect(o.sourceFormat, unittest.equals('foo')); 869 unittest.expect(o.sourceFormat, unittest.equals('foo'));
866 checkUnnamed2990(o.sourceUris); 870 checkUnnamed2989(o.sourceUris);
867 unittest.expect(o.writeDisposition, unittest.equals('foo')); 871 unittest.expect(o.writeDisposition, unittest.equals('foo'));
868 } 872 }
869 buildCounterJobConfigurationLoad--; 873 buildCounterJobConfigurationLoad--;
870 } 874 }
871 875
872 buildUnnamed2991() { 876 buildUnnamed2990() {
873 var o = new core.List<api.QueryParameter>(); 877 var o = new core.List<api.QueryParameter>();
874 o.add(buildQueryParameter()); 878 o.add(buildQueryParameter());
875 o.add(buildQueryParameter()); 879 o.add(buildQueryParameter());
876 return o; 880 return o;
877 } 881 }
878 882
879 checkUnnamed2991(core.List<api.QueryParameter> o) { 883 checkUnnamed2990(core.List<api.QueryParameter> o) {
880 unittest.expect(o, unittest.hasLength(2)); 884 unittest.expect(o, unittest.hasLength(2));
881 checkQueryParameter(o[0]); 885 checkQueryParameter(o[0]);
882 checkQueryParameter(o[1]); 886 checkQueryParameter(o[1]);
883 } 887 }
884 888
885 buildUnnamed2992() { 889 buildUnnamed2991() {
886 var o = new core.List<core.String>(); 890 var o = new core.List<core.String>();
887 o.add("foo"); 891 o.add("foo");
888 o.add("foo"); 892 o.add("foo");
889 return o; 893 return o;
890 } 894 }
891 895
892 checkUnnamed2992(core.List<core.String> o) { 896 checkUnnamed2991(core.List<core.String> o) {
893 unittest.expect(o, unittest.hasLength(2)); 897 unittest.expect(o, unittest.hasLength(2));
894 unittest.expect(o[0], unittest.equals('foo')); 898 unittest.expect(o[0], unittest.equals('foo'));
895 unittest.expect(o[1], unittest.equals('foo')); 899 unittest.expect(o[1], unittest.equals('foo'));
896 } 900 }
897 901
898 buildUnnamed2993() { 902 buildUnnamed2992() {
899 var o = new core.Map<core.String, api.ExternalDataConfiguration>(); 903 var o = new core.Map<core.String, api.ExternalDataConfiguration>();
900 o["x"] = buildExternalDataConfiguration(); 904 o["x"] = buildExternalDataConfiguration();
901 o["y"] = buildExternalDataConfiguration(); 905 o["y"] = buildExternalDataConfiguration();
902 return o; 906 return o;
903 } 907 }
904 908
905 checkUnnamed2993(core.Map<core.String, api.ExternalDataConfiguration> o) { 909 checkUnnamed2992(core.Map<core.String, api.ExternalDataConfiguration> o) {
906 unittest.expect(o, unittest.hasLength(2)); 910 unittest.expect(o, unittest.hasLength(2));
907 checkExternalDataConfiguration(o["x"]); 911 checkExternalDataConfiguration(o["x"]);
908 checkExternalDataConfiguration(o["y"]); 912 checkExternalDataConfiguration(o["y"]);
909 } 913 }
910 914
911 buildUnnamed2994() { 915 buildUnnamed2993() {
912 var o = new core.List<api.UserDefinedFunctionResource>(); 916 var o = new core.List<api.UserDefinedFunctionResource>();
913 o.add(buildUserDefinedFunctionResource()); 917 o.add(buildUserDefinedFunctionResource());
914 o.add(buildUserDefinedFunctionResource()); 918 o.add(buildUserDefinedFunctionResource());
915 return o; 919 return o;
916 } 920 }
917 921
918 checkUnnamed2994(core.List<api.UserDefinedFunctionResource> o) { 922 checkUnnamed2993(core.List<api.UserDefinedFunctionResource> o) {
919 unittest.expect(o, unittest.hasLength(2)); 923 unittest.expect(o, unittest.hasLength(2));
920 checkUserDefinedFunctionResource(o[0]); 924 checkUserDefinedFunctionResource(o[0]);
921 checkUserDefinedFunctionResource(o[1]); 925 checkUserDefinedFunctionResource(o[1]);
922 } 926 }
923 927
924 core.int buildCounterJobConfigurationQuery = 0; 928 core.int buildCounterJobConfigurationQuery = 0;
925 buildJobConfigurationQuery() { 929 buildJobConfigurationQuery() {
926 var o = new api.JobConfigurationQuery(); 930 var o = new api.JobConfigurationQuery();
927 buildCounterJobConfigurationQuery++; 931 buildCounterJobConfigurationQuery++;
928 if (buildCounterJobConfigurationQuery < 3) { 932 if (buildCounterJobConfigurationQuery < 3) {
929 o.allowLargeResults = true; 933 o.allowLargeResults = true;
930 o.createDisposition = "foo"; 934 o.createDisposition = "foo";
931 o.defaultDataset = buildDatasetReference(); 935 o.defaultDataset = buildDatasetReference();
932 o.destinationTable = buildTableReference(); 936 o.destinationTable = buildTableReference();
933 o.flattenResults = true; 937 o.flattenResults = true;
934 o.maximumBillingTier = 42; 938 o.maximumBillingTier = 42;
935 o.maximumBytesBilled = "foo"; 939 o.maximumBytesBilled = "foo";
936 o.parameterMode = "foo"; 940 o.parameterMode = "foo";
937 o.preserveNulls = true; 941 o.preserveNulls = true;
938 o.priority = "foo"; 942 o.priority = "foo";
939 o.query = "foo"; 943 o.query = "foo";
940 o.queryParameters = buildUnnamed2991(); 944 o.queryParameters = buildUnnamed2990();
941 o.schemaUpdateOptions = buildUnnamed2992(); 945 o.schemaUpdateOptions = buildUnnamed2991();
942 o.tableDefinitions = buildUnnamed2993(); 946 o.tableDefinitions = buildUnnamed2992();
943 o.useLegacySql = true; 947 o.useLegacySql = true;
944 o.useQueryCache = true; 948 o.useQueryCache = true;
945 o.userDefinedFunctionResources = buildUnnamed2994(); 949 o.userDefinedFunctionResources = buildUnnamed2993();
946 o.writeDisposition = "foo"; 950 o.writeDisposition = "foo";
947 } 951 }
948 buildCounterJobConfigurationQuery--; 952 buildCounterJobConfigurationQuery--;
949 return o; 953 return o;
950 } 954 }
951 955
952 checkJobConfigurationQuery(api.JobConfigurationQuery o) { 956 checkJobConfigurationQuery(api.JobConfigurationQuery o) {
953 buildCounterJobConfigurationQuery++; 957 buildCounterJobConfigurationQuery++;
954 if (buildCounterJobConfigurationQuery < 3) { 958 if (buildCounterJobConfigurationQuery < 3) {
955 unittest.expect(o.allowLargeResults, unittest.isTrue); 959 unittest.expect(o.allowLargeResults, unittest.isTrue);
956 unittest.expect(o.createDisposition, unittest.equals('foo')); 960 unittest.expect(o.createDisposition, unittest.equals('foo'));
957 checkDatasetReference(o.defaultDataset); 961 checkDatasetReference(o.defaultDataset);
958 checkTableReference(o.destinationTable); 962 checkTableReference(o.destinationTable);
959 unittest.expect(o.flattenResults, unittest.isTrue); 963 unittest.expect(o.flattenResults, unittest.isTrue);
960 unittest.expect(o.maximumBillingTier, unittest.equals(42)); 964 unittest.expect(o.maximumBillingTier, unittest.equals(42));
961 unittest.expect(o.maximumBytesBilled, unittest.equals('foo')); 965 unittest.expect(o.maximumBytesBilled, unittest.equals('foo'));
962 unittest.expect(o.parameterMode, unittest.equals('foo')); 966 unittest.expect(o.parameterMode, unittest.equals('foo'));
963 unittest.expect(o.preserveNulls, unittest.isTrue); 967 unittest.expect(o.preserveNulls, unittest.isTrue);
964 unittest.expect(o.priority, unittest.equals('foo')); 968 unittest.expect(o.priority, unittest.equals('foo'));
965 unittest.expect(o.query, unittest.equals('foo')); 969 unittest.expect(o.query, unittest.equals('foo'));
966 checkUnnamed2991(o.queryParameters); 970 checkUnnamed2990(o.queryParameters);
967 checkUnnamed2992(o.schemaUpdateOptions); 971 checkUnnamed2991(o.schemaUpdateOptions);
968 checkUnnamed2993(o.tableDefinitions); 972 checkUnnamed2992(o.tableDefinitions);
969 unittest.expect(o.useLegacySql, unittest.isTrue); 973 unittest.expect(o.useLegacySql, unittest.isTrue);
970 unittest.expect(o.useQueryCache, unittest.isTrue); 974 unittest.expect(o.useQueryCache, unittest.isTrue);
971 checkUnnamed2994(o.userDefinedFunctionResources); 975 checkUnnamed2993(o.userDefinedFunctionResources);
972 unittest.expect(o.writeDisposition, unittest.equals('foo')); 976 unittest.expect(o.writeDisposition, unittest.equals('foo'));
973 } 977 }
974 buildCounterJobConfigurationQuery--; 978 buildCounterJobConfigurationQuery--;
975 } 979 }
976 980
977 buildUnnamed2995() { 981 buildUnnamed2994() {
978 var o = new core.List<api.TableReference>(); 982 var o = new core.List<api.TableReference>();
979 o.add(buildTableReference()); 983 o.add(buildTableReference());
980 o.add(buildTableReference()); 984 o.add(buildTableReference());
981 return o; 985 return o;
982 } 986 }
983 987
984 checkUnnamed2995(core.List<api.TableReference> o) { 988 checkUnnamed2994(core.List<api.TableReference> o) {
985 unittest.expect(o, unittest.hasLength(2)); 989 unittest.expect(o, unittest.hasLength(2));
986 checkTableReference(o[0]); 990 checkTableReference(o[0]);
987 checkTableReference(o[1]); 991 checkTableReference(o[1]);
988 } 992 }
989 993
990 core.int buildCounterJobConfigurationTableCopy = 0; 994 core.int buildCounterJobConfigurationTableCopy = 0;
991 buildJobConfigurationTableCopy() { 995 buildJobConfigurationTableCopy() {
992 var o = new api.JobConfigurationTableCopy(); 996 var o = new api.JobConfigurationTableCopy();
993 buildCounterJobConfigurationTableCopy++; 997 buildCounterJobConfigurationTableCopy++;
994 if (buildCounterJobConfigurationTableCopy < 3) { 998 if (buildCounterJobConfigurationTableCopy < 3) {
995 o.createDisposition = "foo"; 999 o.createDisposition = "foo";
996 o.destinationTable = buildTableReference(); 1000 o.destinationTable = buildTableReference();
997 o.sourceTable = buildTableReference(); 1001 o.sourceTable = buildTableReference();
998 o.sourceTables = buildUnnamed2995(); 1002 o.sourceTables = buildUnnamed2994();
999 o.writeDisposition = "foo"; 1003 o.writeDisposition = "foo";
1000 } 1004 }
1001 buildCounterJobConfigurationTableCopy--; 1005 buildCounterJobConfigurationTableCopy--;
1002 return o; 1006 return o;
1003 } 1007 }
1004 1008
1005 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { 1009 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) {
1006 buildCounterJobConfigurationTableCopy++; 1010 buildCounterJobConfigurationTableCopy++;
1007 if (buildCounterJobConfigurationTableCopy < 3) { 1011 if (buildCounterJobConfigurationTableCopy < 3) {
1008 unittest.expect(o.createDisposition, unittest.equals('foo')); 1012 unittest.expect(o.createDisposition, unittest.equals('foo'));
1009 checkTableReference(o.destinationTable); 1013 checkTableReference(o.destinationTable);
1010 checkTableReference(o.sourceTable); 1014 checkTableReference(o.sourceTable);
1011 checkUnnamed2995(o.sourceTables); 1015 checkUnnamed2994(o.sourceTables);
1012 unittest.expect(o.writeDisposition, unittest.equals('foo')); 1016 unittest.expect(o.writeDisposition, unittest.equals('foo'));
1013 } 1017 }
1014 buildCounterJobConfigurationTableCopy--; 1018 buildCounterJobConfigurationTableCopy--;
1015 } 1019 }
1016 1020
1017 core.int buildCounterJobListJobs = 0; 1021 core.int buildCounterJobListJobs = 0;
1018 buildJobListJobs() { 1022 buildJobListJobs() {
1019 var o = new api.JobListJobs(); 1023 var o = new api.JobListJobs();
1020 buildCounterJobListJobs++; 1024 buildCounterJobListJobs++;
1021 if (buildCounterJobListJobs < 3) { 1025 if (buildCounterJobListJobs < 3) {
(...skipping 20 matching lines...) Expand all
1042 checkJobReference(o.jobReference); 1046 checkJobReference(o.jobReference);
1043 unittest.expect(o.kind, unittest.equals('foo')); 1047 unittest.expect(o.kind, unittest.equals('foo'));
1044 unittest.expect(o.state, unittest.equals('foo')); 1048 unittest.expect(o.state, unittest.equals('foo'));
1045 checkJobStatistics(o.statistics); 1049 checkJobStatistics(o.statistics);
1046 checkJobStatus(o.status); 1050 checkJobStatus(o.status);
1047 unittest.expect(o.userEmail, unittest.equals('foo')); 1051 unittest.expect(o.userEmail, unittest.equals('foo'));
1048 } 1052 }
1049 buildCounterJobListJobs--; 1053 buildCounterJobListJobs--;
1050 } 1054 }
1051 1055
1052 buildUnnamed2996() { 1056 buildUnnamed2995() {
1053 var o = new core.List<api.JobListJobs>(); 1057 var o = new core.List<api.JobListJobs>();
1054 o.add(buildJobListJobs()); 1058 o.add(buildJobListJobs());
1055 o.add(buildJobListJobs()); 1059 o.add(buildJobListJobs());
1056 return o; 1060 return o;
1057 } 1061 }
1058 1062
1059 checkUnnamed2996(core.List<api.JobListJobs> o) { 1063 checkUnnamed2995(core.List<api.JobListJobs> o) {
1060 unittest.expect(o, unittest.hasLength(2)); 1064 unittest.expect(o, unittest.hasLength(2));
1061 checkJobListJobs(o[0]); 1065 checkJobListJobs(o[0]);
1062 checkJobListJobs(o[1]); 1066 checkJobListJobs(o[1]);
1063 } 1067 }
1064 1068
1065 core.int buildCounterJobList = 0; 1069 core.int buildCounterJobList = 0;
1066 buildJobList() { 1070 buildJobList() {
1067 var o = new api.JobList(); 1071 var o = new api.JobList();
1068 buildCounterJobList++; 1072 buildCounterJobList++;
1069 if (buildCounterJobList < 3) { 1073 if (buildCounterJobList < 3) {
1070 o.etag = "foo"; 1074 o.etag = "foo";
1071 o.jobs = buildUnnamed2996(); 1075 o.jobs = buildUnnamed2995();
1072 o.kind = "foo"; 1076 o.kind = "foo";
1073 o.nextPageToken = "foo"; 1077 o.nextPageToken = "foo";
1074 } 1078 }
1075 buildCounterJobList--; 1079 buildCounterJobList--;
1076 return o; 1080 return o;
1077 } 1081 }
1078 1082
1079 checkJobList(api.JobList o) { 1083 checkJobList(api.JobList o) {
1080 buildCounterJobList++; 1084 buildCounterJobList++;
1081 if (buildCounterJobList < 3) { 1085 if (buildCounterJobList < 3) {
1082 unittest.expect(o.etag, unittest.equals('foo')); 1086 unittest.expect(o.etag, unittest.equals('foo'));
1083 checkUnnamed2996(o.jobs); 1087 checkUnnamed2995(o.jobs);
1084 unittest.expect(o.kind, unittest.equals('foo')); 1088 unittest.expect(o.kind, unittest.equals('foo'));
1085 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1089 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1086 } 1090 }
1087 buildCounterJobList--; 1091 buildCounterJobList--;
1088 } 1092 }
1089 1093
1090 core.int buildCounterJobReference = 0; 1094 core.int buildCounterJobReference = 0;
1091 buildJobReference() { 1095 buildJobReference() {
1092 var o = new api.JobReference(); 1096 var o = new api.JobReference();
1093 buildCounterJobReference++; 1097 buildCounterJobReference++;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 unittest.expect(o.endTime, unittest.equals('foo')); 1136 unittest.expect(o.endTime, unittest.equals('foo'));
1133 checkJobStatistics4(o.extract); 1137 checkJobStatistics4(o.extract);
1134 checkJobStatistics3(o.load); 1138 checkJobStatistics3(o.load);
1135 checkJobStatistics2(o.query); 1139 checkJobStatistics2(o.query);
1136 unittest.expect(o.startTime, unittest.equals('foo')); 1140 unittest.expect(o.startTime, unittest.equals('foo'));
1137 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); 1141 unittest.expect(o.totalBytesProcessed, unittest.equals('foo'));
1138 } 1142 }
1139 buildCounterJobStatistics--; 1143 buildCounterJobStatistics--;
1140 } 1144 }
1141 1145
1142 buildUnnamed2997() { 1146 buildUnnamed2996() {
1143 var o = new core.List<api.ExplainQueryStage>(); 1147 var o = new core.List<api.ExplainQueryStage>();
1144 o.add(buildExplainQueryStage()); 1148 o.add(buildExplainQueryStage());
1145 o.add(buildExplainQueryStage()); 1149 o.add(buildExplainQueryStage());
1146 return o; 1150 return o;
1147 } 1151 }
1148 1152
1149 checkUnnamed2997(core.List<api.ExplainQueryStage> o) { 1153 checkUnnamed2996(core.List<api.ExplainQueryStage> o) {
1150 unittest.expect(o, unittest.hasLength(2)); 1154 unittest.expect(o, unittest.hasLength(2));
1151 checkExplainQueryStage(o[0]); 1155 checkExplainQueryStage(o[0]);
1152 checkExplainQueryStage(o[1]); 1156 checkExplainQueryStage(o[1]);
1153 } 1157 }
1154 1158
1155 buildUnnamed2998() { 1159 buildUnnamed2997() {
1156 var o = new core.List<api.TableReference>(); 1160 var o = new core.List<api.TableReference>();
1157 o.add(buildTableReference()); 1161 o.add(buildTableReference());
1158 o.add(buildTableReference()); 1162 o.add(buildTableReference());
1159 return o; 1163 return o;
1160 } 1164 }
1161 1165
1162 checkUnnamed2998(core.List<api.TableReference> o) { 1166 checkUnnamed2997(core.List<api.TableReference> o) {
1163 unittest.expect(o, unittest.hasLength(2)); 1167 unittest.expect(o, unittest.hasLength(2));
1164 checkTableReference(o[0]); 1168 checkTableReference(o[0]);
1165 checkTableReference(o[1]); 1169 checkTableReference(o[1]);
1166 } 1170 }
1167 1171
1168 buildUnnamed2999() { 1172 buildUnnamed2998() {
1169 var o = new core.List<api.QueryParameter>(); 1173 var o = new core.List<api.QueryParameter>();
1170 o.add(buildQueryParameter()); 1174 o.add(buildQueryParameter());
1171 o.add(buildQueryParameter()); 1175 o.add(buildQueryParameter());
1172 return o; 1176 return o;
1173 } 1177 }
1174 1178
1175 checkUnnamed2999(core.List<api.QueryParameter> o) { 1179 checkUnnamed2998(core.List<api.QueryParameter> o) {
1176 unittest.expect(o, unittest.hasLength(2)); 1180 unittest.expect(o, unittest.hasLength(2));
1177 checkQueryParameter(o[0]); 1181 checkQueryParameter(o[0]);
1178 checkQueryParameter(o[1]); 1182 checkQueryParameter(o[1]);
1179 } 1183 }
1180 1184
1181 core.int buildCounterJobStatistics2 = 0; 1185 core.int buildCounterJobStatistics2 = 0;
1182 buildJobStatistics2() { 1186 buildJobStatistics2() {
1183 var o = new api.JobStatistics2(); 1187 var o = new api.JobStatistics2();
1184 buildCounterJobStatistics2++; 1188 buildCounterJobStatistics2++;
1185 if (buildCounterJobStatistics2 < 3) { 1189 if (buildCounterJobStatistics2 < 3) {
1186 o.billingTier = 42; 1190 o.billingTier = 42;
1187 o.cacheHit = true; 1191 o.cacheHit = true;
1188 o.numDmlAffectedRows = "foo"; 1192 o.numDmlAffectedRows = "foo";
1189 o.queryPlan = buildUnnamed2997(); 1193 o.queryPlan = buildUnnamed2996();
1190 o.referencedTables = buildUnnamed2998(); 1194 o.referencedTables = buildUnnamed2997();
1191 o.schema = buildTableSchema(); 1195 o.schema = buildTableSchema();
1196 o.statementType = "foo";
1192 o.totalBytesBilled = "foo"; 1197 o.totalBytesBilled = "foo";
1193 o.totalBytesProcessed = "foo"; 1198 o.totalBytesProcessed = "foo";
1194 o.undeclaredQueryParameters = buildUnnamed2999(); 1199 o.undeclaredQueryParameters = buildUnnamed2998();
1195 } 1200 }
1196 buildCounterJobStatistics2--; 1201 buildCounterJobStatistics2--;
1197 return o; 1202 return o;
1198 } 1203 }
1199 1204
1200 checkJobStatistics2(api.JobStatistics2 o) { 1205 checkJobStatistics2(api.JobStatistics2 o) {
1201 buildCounterJobStatistics2++; 1206 buildCounterJobStatistics2++;
1202 if (buildCounterJobStatistics2 < 3) { 1207 if (buildCounterJobStatistics2 < 3) {
1203 unittest.expect(o.billingTier, unittest.equals(42)); 1208 unittest.expect(o.billingTier, unittest.equals(42));
1204 unittest.expect(o.cacheHit, unittest.isTrue); 1209 unittest.expect(o.cacheHit, unittest.isTrue);
1205 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); 1210 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo'));
1206 checkUnnamed2997(o.queryPlan); 1211 checkUnnamed2996(o.queryPlan);
1207 checkUnnamed2998(o.referencedTables); 1212 checkUnnamed2997(o.referencedTables);
1208 checkTableSchema(o.schema); 1213 checkTableSchema(o.schema);
1214 unittest.expect(o.statementType, unittest.equals('foo'));
1209 unittest.expect(o.totalBytesBilled, unittest.equals('foo')); 1215 unittest.expect(o.totalBytesBilled, unittest.equals('foo'));
1210 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); 1216 unittest.expect(o.totalBytesProcessed, unittest.equals('foo'));
1211 checkUnnamed2999(o.undeclaredQueryParameters); 1217 checkUnnamed2998(o.undeclaredQueryParameters);
1212 } 1218 }
1213 buildCounterJobStatistics2--; 1219 buildCounterJobStatistics2--;
1214 } 1220 }
1215 1221
1216 core.int buildCounterJobStatistics3 = 0; 1222 core.int buildCounterJobStatistics3 = 0;
1217 buildJobStatistics3() { 1223 buildJobStatistics3() {
1218 var o = new api.JobStatistics3(); 1224 var o = new api.JobStatistics3();
1219 buildCounterJobStatistics3++; 1225 buildCounterJobStatistics3++;
1220 if (buildCounterJobStatistics3 < 3) { 1226 if (buildCounterJobStatistics3 < 3) {
1221 o.inputFileBytes = "foo"; 1227 o.inputFileBytes = "foo";
1222 o.inputFiles = "foo"; 1228 o.inputFiles = "foo";
1223 o.outputBytes = "foo"; 1229 o.outputBytes = "foo";
1224 o.outputRows = "foo"; 1230 o.outputRows = "foo";
1225 } 1231 }
1226 buildCounterJobStatistics3--; 1232 buildCounterJobStatistics3--;
1227 return o; 1233 return o;
1228 } 1234 }
1229 1235
1230 checkJobStatistics3(api.JobStatistics3 o) { 1236 checkJobStatistics3(api.JobStatistics3 o) {
1231 buildCounterJobStatistics3++; 1237 buildCounterJobStatistics3++;
1232 if (buildCounterJobStatistics3 < 3) { 1238 if (buildCounterJobStatistics3 < 3) {
1233 unittest.expect(o.inputFileBytes, unittest.equals('foo')); 1239 unittest.expect(o.inputFileBytes, unittest.equals('foo'));
1234 unittest.expect(o.inputFiles, unittest.equals('foo')); 1240 unittest.expect(o.inputFiles, unittest.equals('foo'));
1235 unittest.expect(o.outputBytes, unittest.equals('foo')); 1241 unittest.expect(o.outputBytes, unittest.equals('foo'));
1236 unittest.expect(o.outputRows, unittest.equals('foo')); 1242 unittest.expect(o.outputRows, unittest.equals('foo'));
1237 } 1243 }
1238 buildCounterJobStatistics3--; 1244 buildCounterJobStatistics3--;
1239 } 1245 }
1240 1246
1241 buildUnnamed3000() { 1247 buildUnnamed2999() {
1242 var o = new core.List<core.String>(); 1248 var o = new core.List<core.String>();
1243 o.add("foo"); 1249 o.add("foo");
1244 o.add("foo"); 1250 o.add("foo");
1245 return o; 1251 return o;
1246 } 1252 }
1247 1253
1248 checkUnnamed3000(core.List<core.String> o) { 1254 checkUnnamed2999(core.List<core.String> o) {
1249 unittest.expect(o, unittest.hasLength(2)); 1255 unittest.expect(o, unittest.hasLength(2));
1250 unittest.expect(o[0], unittest.equals('foo')); 1256 unittest.expect(o[0], unittest.equals('foo'));
1251 unittest.expect(o[1], unittest.equals('foo')); 1257 unittest.expect(o[1], unittest.equals('foo'));
1252 } 1258 }
1253 1259
1254 core.int buildCounterJobStatistics4 = 0; 1260 core.int buildCounterJobStatistics4 = 0;
1255 buildJobStatistics4() { 1261 buildJobStatistics4() {
1256 var o = new api.JobStatistics4(); 1262 var o = new api.JobStatistics4();
1257 buildCounterJobStatistics4++; 1263 buildCounterJobStatistics4++;
1258 if (buildCounterJobStatistics4 < 3) { 1264 if (buildCounterJobStatistics4 < 3) {
1259 o.destinationUriFileCounts = buildUnnamed3000(); 1265 o.destinationUriFileCounts = buildUnnamed2999();
1260 } 1266 }
1261 buildCounterJobStatistics4--; 1267 buildCounterJobStatistics4--;
1262 return o; 1268 return o;
1263 } 1269 }
1264 1270
1265 checkJobStatistics4(api.JobStatistics4 o) { 1271 checkJobStatistics4(api.JobStatistics4 o) {
1266 buildCounterJobStatistics4++; 1272 buildCounterJobStatistics4++;
1267 if (buildCounterJobStatistics4 < 3) { 1273 if (buildCounterJobStatistics4 < 3) {
1268 checkUnnamed3000(o.destinationUriFileCounts); 1274 checkUnnamed2999(o.destinationUriFileCounts);
1269 } 1275 }
1270 buildCounterJobStatistics4--; 1276 buildCounterJobStatistics4--;
1271 } 1277 }
1272 1278
1273 buildUnnamed3001() { 1279 buildUnnamed3000() {
1274 var o = new core.List<api.ErrorProto>(); 1280 var o = new core.List<api.ErrorProto>();
1275 o.add(buildErrorProto()); 1281 o.add(buildErrorProto());
1276 o.add(buildErrorProto()); 1282 o.add(buildErrorProto());
1277 return o; 1283 return o;
1278 } 1284 }
1279 1285
1280 checkUnnamed3001(core.List<api.ErrorProto> o) { 1286 checkUnnamed3000(core.List<api.ErrorProto> o) {
1281 unittest.expect(o, unittest.hasLength(2)); 1287 unittest.expect(o, unittest.hasLength(2));
1282 checkErrorProto(o[0]); 1288 checkErrorProto(o[0]);
1283 checkErrorProto(o[1]); 1289 checkErrorProto(o[1]);
1284 } 1290 }
1285 1291
1286 core.int buildCounterJobStatus = 0; 1292 core.int buildCounterJobStatus = 0;
1287 buildJobStatus() { 1293 buildJobStatus() {
1288 var o = new api.JobStatus(); 1294 var o = new api.JobStatus();
1289 buildCounterJobStatus++; 1295 buildCounterJobStatus++;
1290 if (buildCounterJobStatus < 3) { 1296 if (buildCounterJobStatus < 3) {
1291 o.errorResult = buildErrorProto(); 1297 o.errorResult = buildErrorProto();
1292 o.errors = buildUnnamed3001(); 1298 o.errors = buildUnnamed3000();
1293 o.state = "foo"; 1299 o.state = "foo";
1294 } 1300 }
1295 buildCounterJobStatus--; 1301 buildCounterJobStatus--;
1296 return o; 1302 return o;
1297 } 1303 }
1298 1304
1299 checkJobStatus(api.JobStatus o) { 1305 checkJobStatus(api.JobStatus o) {
1300 buildCounterJobStatus++; 1306 buildCounterJobStatus++;
1301 if (buildCounterJobStatus < 3) { 1307 if (buildCounterJobStatus < 3) {
1302 checkErrorProto(o.errorResult); 1308 checkErrorProto(o.errorResult);
1303 checkUnnamed3001(o.errors); 1309 checkUnnamed3000(o.errors);
1304 unittest.expect(o.state, unittest.equals('foo')); 1310 unittest.expect(o.state, unittest.equals('foo'));
1305 } 1311 }
1306 buildCounterJobStatus--; 1312 buildCounterJobStatus--;
1307 } 1313 }
1308 1314
1309 buildJsonObject() { 1315 buildJsonObject() {
1310 var o = new api.JsonObject(); 1316 var o = new api.JsonObject();
1311 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1317 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1312 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1318 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1313 return o; 1319 return o;
(...skipping 25 matching lines...) Expand all
1339 if (buildCounterProjectListProjects < 3) { 1345 if (buildCounterProjectListProjects < 3) {
1340 unittest.expect(o.friendlyName, unittest.equals('foo')); 1346 unittest.expect(o.friendlyName, unittest.equals('foo'));
1341 unittest.expect(o.id, unittest.equals('foo')); 1347 unittest.expect(o.id, unittest.equals('foo'));
1342 unittest.expect(o.kind, unittest.equals('foo')); 1348 unittest.expect(o.kind, unittest.equals('foo'));
1343 unittest.expect(o.numericId, unittest.equals('foo')); 1349 unittest.expect(o.numericId, unittest.equals('foo'));
1344 checkProjectReference(o.projectReference); 1350 checkProjectReference(o.projectReference);
1345 } 1351 }
1346 buildCounterProjectListProjects--; 1352 buildCounterProjectListProjects--;
1347 } 1353 }
1348 1354
1349 buildUnnamed3002() { 1355 buildUnnamed3001() {
1350 var o = new core.List<api.ProjectListProjects>(); 1356 var o = new core.List<api.ProjectListProjects>();
1351 o.add(buildProjectListProjects()); 1357 o.add(buildProjectListProjects());
1352 o.add(buildProjectListProjects()); 1358 o.add(buildProjectListProjects());
1353 return o; 1359 return o;
1354 } 1360 }
1355 1361
1356 checkUnnamed3002(core.List<api.ProjectListProjects> o) { 1362 checkUnnamed3001(core.List<api.ProjectListProjects> o) {
1357 unittest.expect(o, unittest.hasLength(2)); 1363 unittest.expect(o, unittest.hasLength(2));
1358 checkProjectListProjects(o[0]); 1364 checkProjectListProjects(o[0]);
1359 checkProjectListProjects(o[1]); 1365 checkProjectListProjects(o[1]);
1360 } 1366 }
1361 1367
1362 core.int buildCounterProjectList = 0; 1368 core.int buildCounterProjectList = 0;
1363 buildProjectList() { 1369 buildProjectList() {
1364 var o = new api.ProjectList(); 1370 var o = new api.ProjectList();
1365 buildCounterProjectList++; 1371 buildCounterProjectList++;
1366 if (buildCounterProjectList < 3) { 1372 if (buildCounterProjectList < 3) {
1367 o.etag = "foo"; 1373 o.etag = "foo";
1368 o.kind = "foo"; 1374 o.kind = "foo";
1369 o.nextPageToken = "foo"; 1375 o.nextPageToken = "foo";
1370 o.projects = buildUnnamed3002(); 1376 o.projects = buildUnnamed3001();
1371 o.totalItems = 42; 1377 o.totalItems = 42;
1372 } 1378 }
1373 buildCounterProjectList--; 1379 buildCounterProjectList--;
1374 return o; 1380 return o;
1375 } 1381 }
1376 1382
1377 checkProjectList(api.ProjectList o) { 1383 checkProjectList(api.ProjectList o) {
1378 buildCounterProjectList++; 1384 buildCounterProjectList++;
1379 if (buildCounterProjectList < 3) { 1385 if (buildCounterProjectList < 3) {
1380 unittest.expect(o.etag, unittest.equals('foo')); 1386 unittest.expect(o.etag, unittest.equals('foo'));
1381 unittest.expect(o.kind, unittest.equals('foo')); 1387 unittest.expect(o.kind, unittest.equals('foo'));
1382 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1388 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1383 checkUnnamed3002(o.projects); 1389 checkUnnamed3001(o.projects);
1384 unittest.expect(o.totalItems, unittest.equals(42)); 1390 unittest.expect(o.totalItems, unittest.equals(42));
1385 } 1391 }
1386 buildCounterProjectList--; 1392 buildCounterProjectList--;
1387 } 1393 }
1388 1394
1389 core.int buildCounterProjectReference = 0; 1395 core.int buildCounterProjectReference = 0;
1390 buildProjectReference() { 1396 buildProjectReference() {
1391 var o = new api.ProjectReference(); 1397 var o = new api.ProjectReference();
1392 buildCounterProjectReference++; 1398 buildCounterProjectReference++;
1393 if (buildCounterProjectReference < 3) { 1399 if (buildCounterProjectReference < 3) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 checkQueryParameterTypeStructTypes(api.QueryParameterTypeStructTypes o) { 1450 checkQueryParameterTypeStructTypes(api.QueryParameterTypeStructTypes o) {
1445 buildCounterQueryParameterTypeStructTypes++; 1451 buildCounterQueryParameterTypeStructTypes++;
1446 if (buildCounterQueryParameterTypeStructTypes < 3) { 1452 if (buildCounterQueryParameterTypeStructTypes < 3) {
1447 unittest.expect(o.description, unittest.equals('foo')); 1453 unittest.expect(o.description, unittest.equals('foo'));
1448 unittest.expect(o.name, unittest.equals('foo')); 1454 unittest.expect(o.name, unittest.equals('foo'));
1449 checkQueryParameterType(o.type); 1455 checkQueryParameterType(o.type);
1450 } 1456 }
1451 buildCounterQueryParameterTypeStructTypes--; 1457 buildCounterQueryParameterTypeStructTypes--;
1452 } 1458 }
1453 1459
1454 buildUnnamed3003() { 1460 buildUnnamed3002() {
1455 var o = new core.List<api.QueryParameterTypeStructTypes>(); 1461 var o = new core.List<api.QueryParameterTypeStructTypes>();
1456 o.add(buildQueryParameterTypeStructTypes()); 1462 o.add(buildQueryParameterTypeStructTypes());
1457 o.add(buildQueryParameterTypeStructTypes()); 1463 o.add(buildQueryParameterTypeStructTypes());
1458 return o; 1464 return o;
1459 } 1465 }
1460 1466
1461 checkUnnamed3003(core.List<api.QueryParameterTypeStructTypes> o) { 1467 checkUnnamed3002(core.List<api.QueryParameterTypeStructTypes> o) {
1462 unittest.expect(o, unittest.hasLength(2)); 1468 unittest.expect(o, unittest.hasLength(2));
1463 checkQueryParameterTypeStructTypes(o[0]); 1469 checkQueryParameterTypeStructTypes(o[0]);
1464 checkQueryParameterTypeStructTypes(o[1]); 1470 checkQueryParameterTypeStructTypes(o[1]);
1465 } 1471 }
1466 1472
1467 core.int buildCounterQueryParameterType = 0; 1473 core.int buildCounterQueryParameterType = 0;
1468 buildQueryParameterType() { 1474 buildQueryParameterType() {
1469 var o = new api.QueryParameterType(); 1475 var o = new api.QueryParameterType();
1470 buildCounterQueryParameterType++; 1476 buildCounterQueryParameterType++;
1471 if (buildCounterQueryParameterType < 3) { 1477 if (buildCounterQueryParameterType < 3) {
1472 o.arrayType = buildQueryParameterType(); 1478 o.arrayType = buildQueryParameterType();
1473 o.structTypes = buildUnnamed3003(); 1479 o.structTypes = buildUnnamed3002();
1474 o.type = "foo"; 1480 o.type = "foo";
1475 } 1481 }
1476 buildCounterQueryParameterType--; 1482 buildCounterQueryParameterType--;
1477 return o; 1483 return o;
1478 } 1484 }
1479 1485
1480 checkQueryParameterType(api.QueryParameterType o) { 1486 checkQueryParameterType(api.QueryParameterType o) {
1481 buildCounterQueryParameterType++; 1487 buildCounterQueryParameterType++;
1482 if (buildCounterQueryParameterType < 3) { 1488 if (buildCounterQueryParameterType < 3) {
1483 checkQueryParameterType(o.arrayType); 1489 checkQueryParameterType(o.arrayType);
1484 checkUnnamed3003(o.structTypes); 1490 checkUnnamed3002(o.structTypes);
1485 unittest.expect(o.type, unittest.equals('foo')); 1491 unittest.expect(o.type, unittest.equals('foo'));
1486 } 1492 }
1487 buildCounterQueryParameterType--; 1493 buildCounterQueryParameterType--;
1488 } 1494 }
1489 1495
1490 buildUnnamed3004() { 1496 buildUnnamed3003() {
1491 var o = new core.List<api.QueryParameterValue>(); 1497 var o = new core.List<api.QueryParameterValue>();
1492 o.add(buildQueryParameterValue()); 1498 o.add(buildQueryParameterValue());
1493 o.add(buildQueryParameterValue()); 1499 o.add(buildQueryParameterValue());
1494 return o; 1500 return o;
1495 } 1501 }
1496 1502
1497 checkUnnamed3004(core.List<api.QueryParameterValue> o) { 1503 checkUnnamed3003(core.List<api.QueryParameterValue> o) {
1498 unittest.expect(o, unittest.hasLength(2)); 1504 unittest.expect(o, unittest.hasLength(2));
1499 checkQueryParameterValue(o[0]); 1505 checkQueryParameterValue(o[0]);
1500 checkQueryParameterValue(o[1]); 1506 checkQueryParameterValue(o[1]);
1501 } 1507 }
1502 1508
1503 buildUnnamed3005() { 1509 buildUnnamed3004() {
1504 var o = new core.Map<core.String, api.QueryParameterValue>(); 1510 var o = new core.Map<core.String, api.QueryParameterValue>();
1505 o["x"] = buildQueryParameterValue(); 1511 o["x"] = buildQueryParameterValue();
1506 o["y"] = buildQueryParameterValue(); 1512 o["y"] = buildQueryParameterValue();
1507 return o; 1513 return o;
1508 } 1514 }
1509 1515
1510 checkUnnamed3005(core.Map<core.String, api.QueryParameterValue> o) { 1516 checkUnnamed3004(core.Map<core.String, api.QueryParameterValue> o) {
1511 unittest.expect(o, unittest.hasLength(2)); 1517 unittest.expect(o, unittest.hasLength(2));
1512 checkQueryParameterValue(o["x"]); 1518 checkQueryParameterValue(o["x"]);
1513 checkQueryParameterValue(o["y"]); 1519 checkQueryParameterValue(o["y"]);
1514 } 1520 }
1515 1521
1516 core.int buildCounterQueryParameterValue = 0; 1522 core.int buildCounterQueryParameterValue = 0;
1517 buildQueryParameterValue() { 1523 buildQueryParameterValue() {
1518 var o = new api.QueryParameterValue(); 1524 var o = new api.QueryParameterValue();
1519 buildCounterQueryParameterValue++; 1525 buildCounterQueryParameterValue++;
1520 if (buildCounterQueryParameterValue < 3) { 1526 if (buildCounterQueryParameterValue < 3) {
1521 o.arrayValues = buildUnnamed3004(); 1527 o.arrayValues = buildUnnamed3003();
1522 o.structValues = buildUnnamed3005(); 1528 o.structValues = buildUnnamed3004();
1523 o.value = "foo"; 1529 o.value = "foo";
1524 } 1530 }
1525 buildCounterQueryParameterValue--; 1531 buildCounterQueryParameterValue--;
1526 return o; 1532 return o;
1527 } 1533 }
1528 1534
1529 checkQueryParameterValue(api.QueryParameterValue o) { 1535 checkQueryParameterValue(api.QueryParameterValue o) {
1530 buildCounterQueryParameterValue++; 1536 buildCounterQueryParameterValue++;
1531 if (buildCounterQueryParameterValue < 3) { 1537 if (buildCounterQueryParameterValue < 3) {
1532 checkUnnamed3004(o.arrayValues); 1538 checkUnnamed3003(o.arrayValues);
1533 checkUnnamed3005(o.structValues); 1539 checkUnnamed3004(o.structValues);
1534 unittest.expect(o.value, unittest.equals('foo')); 1540 unittest.expect(o.value, unittest.equals('foo'));
1535 } 1541 }
1536 buildCounterQueryParameterValue--; 1542 buildCounterQueryParameterValue--;
1537 } 1543 }
1538 1544
1539 buildUnnamed3006() { 1545 buildUnnamed3005() {
1540 var o = new core.List<api.QueryParameter>(); 1546 var o = new core.List<api.QueryParameter>();
1541 o.add(buildQueryParameter()); 1547 o.add(buildQueryParameter());
1542 o.add(buildQueryParameter()); 1548 o.add(buildQueryParameter());
1543 return o; 1549 return o;
1544 } 1550 }
1545 1551
1546 checkUnnamed3006(core.List<api.QueryParameter> o) { 1552 checkUnnamed3005(core.List<api.QueryParameter> o) {
1547 unittest.expect(o, unittest.hasLength(2)); 1553 unittest.expect(o, unittest.hasLength(2));
1548 checkQueryParameter(o[0]); 1554 checkQueryParameter(o[0]);
1549 checkQueryParameter(o[1]); 1555 checkQueryParameter(o[1]);
1550 } 1556 }
1551 1557
1552 core.int buildCounterQueryRequest = 0; 1558 core.int buildCounterQueryRequest = 0;
1553 buildQueryRequest() { 1559 buildQueryRequest() {
1554 var o = new api.QueryRequest(); 1560 var o = new api.QueryRequest();
1555 buildCounterQueryRequest++; 1561 buildCounterQueryRequest++;
1556 if (buildCounterQueryRequest < 3) { 1562 if (buildCounterQueryRequest < 3) {
1557 o.defaultDataset = buildDatasetReference(); 1563 o.defaultDataset = buildDatasetReference();
1558 o.dryRun = true; 1564 o.dryRun = true;
1559 o.kind = "foo"; 1565 o.kind = "foo";
1560 o.maxResults = 42; 1566 o.maxResults = 42;
1561 o.parameterMode = "foo"; 1567 o.parameterMode = "foo";
1562 o.preserveNulls = true; 1568 o.preserveNulls = true;
1563 o.query = "foo"; 1569 o.query = "foo";
1564 o.queryParameters = buildUnnamed3006(); 1570 o.queryParameters = buildUnnamed3005();
1565 o.timeoutMs = 42; 1571 o.timeoutMs = 42;
1566 o.useLegacySql = true; 1572 o.useLegacySql = true;
1567 o.useQueryCache = true; 1573 o.useQueryCache = true;
1568 } 1574 }
1569 buildCounterQueryRequest--; 1575 buildCounterQueryRequest--;
1570 return o; 1576 return o;
1571 } 1577 }
1572 1578
1573 checkQueryRequest(api.QueryRequest o) { 1579 checkQueryRequest(api.QueryRequest o) {
1574 buildCounterQueryRequest++; 1580 buildCounterQueryRequest++;
1575 if (buildCounterQueryRequest < 3) { 1581 if (buildCounterQueryRequest < 3) {
1576 checkDatasetReference(o.defaultDataset); 1582 checkDatasetReference(o.defaultDataset);
1577 unittest.expect(o.dryRun, unittest.isTrue); 1583 unittest.expect(o.dryRun, unittest.isTrue);
1578 unittest.expect(o.kind, unittest.equals('foo')); 1584 unittest.expect(o.kind, unittest.equals('foo'));
1579 unittest.expect(o.maxResults, unittest.equals(42)); 1585 unittest.expect(o.maxResults, unittest.equals(42));
1580 unittest.expect(o.parameterMode, unittest.equals('foo')); 1586 unittest.expect(o.parameterMode, unittest.equals('foo'));
1581 unittest.expect(o.preserveNulls, unittest.isTrue); 1587 unittest.expect(o.preserveNulls, unittest.isTrue);
1582 unittest.expect(o.query, unittest.equals('foo')); 1588 unittest.expect(o.query, unittest.equals('foo'));
1583 checkUnnamed3006(o.queryParameters); 1589 checkUnnamed3005(o.queryParameters);
1584 unittest.expect(o.timeoutMs, unittest.equals(42)); 1590 unittest.expect(o.timeoutMs, unittest.equals(42));
1585 unittest.expect(o.useLegacySql, unittest.isTrue); 1591 unittest.expect(o.useLegacySql, unittest.isTrue);
1586 unittest.expect(o.useQueryCache, unittest.isTrue); 1592 unittest.expect(o.useQueryCache, unittest.isTrue);
1587 } 1593 }
1588 buildCounterQueryRequest--; 1594 buildCounterQueryRequest--;
1589 } 1595 }
1590 1596
1591 buildUnnamed3007() { 1597 buildUnnamed3006() {
1592 var o = new core.List<api.ErrorProto>(); 1598 var o = new core.List<api.ErrorProto>();
1593 o.add(buildErrorProto()); 1599 o.add(buildErrorProto());
1594 o.add(buildErrorProto()); 1600 o.add(buildErrorProto());
1595 return o; 1601 return o;
1596 } 1602 }
1597 1603
1598 checkUnnamed3007(core.List<api.ErrorProto> o) { 1604 checkUnnamed3006(core.List<api.ErrorProto> o) {
1599 unittest.expect(o, unittest.hasLength(2)); 1605 unittest.expect(o, unittest.hasLength(2));
1600 checkErrorProto(o[0]); 1606 checkErrorProto(o[0]);
1601 checkErrorProto(o[1]); 1607 checkErrorProto(o[1]);
1602 } 1608 }
1603 1609
1604 buildUnnamed3008() { 1610 buildUnnamed3007() {
1605 var o = new core.List<api.TableRow>(); 1611 var o = new core.List<api.TableRow>();
1606 o.add(buildTableRow()); 1612 o.add(buildTableRow());
1607 o.add(buildTableRow()); 1613 o.add(buildTableRow());
1608 return o; 1614 return o;
1609 } 1615 }
1610 1616
1611 checkUnnamed3008(core.List<api.TableRow> o) { 1617 checkUnnamed3007(core.List<api.TableRow> o) {
1612 unittest.expect(o, unittest.hasLength(2)); 1618 unittest.expect(o, unittest.hasLength(2));
1613 checkTableRow(o[0]); 1619 checkTableRow(o[0]);
1614 checkTableRow(o[1]); 1620 checkTableRow(o[1]);
1615 } 1621 }
1616 1622
1617 core.int buildCounterQueryResponse = 0; 1623 core.int buildCounterQueryResponse = 0;
1618 buildQueryResponse() { 1624 buildQueryResponse() {
1619 var o = new api.QueryResponse(); 1625 var o = new api.QueryResponse();
1620 buildCounterQueryResponse++; 1626 buildCounterQueryResponse++;
1621 if (buildCounterQueryResponse < 3) { 1627 if (buildCounterQueryResponse < 3) {
1622 o.cacheHit = true; 1628 o.cacheHit = true;
1623 o.errors = buildUnnamed3007(); 1629 o.errors = buildUnnamed3006();
1624 o.jobComplete = true; 1630 o.jobComplete = true;
1625 o.jobReference = buildJobReference(); 1631 o.jobReference = buildJobReference();
1626 o.kind = "foo"; 1632 o.kind = "foo";
1627 o.numDmlAffectedRows = "foo"; 1633 o.numDmlAffectedRows = "foo";
1628 o.pageToken = "foo"; 1634 o.pageToken = "foo";
1629 o.rows = buildUnnamed3008(); 1635 o.rows = buildUnnamed3007();
1630 o.schema = buildTableSchema(); 1636 o.schema = buildTableSchema();
1631 o.totalBytesProcessed = "foo"; 1637 o.totalBytesProcessed = "foo";
1632 o.totalRows = "foo"; 1638 o.totalRows = "foo";
1633 } 1639 }
1634 buildCounterQueryResponse--; 1640 buildCounterQueryResponse--;
1635 return o; 1641 return o;
1636 } 1642 }
1637 1643
1638 checkQueryResponse(api.QueryResponse o) { 1644 checkQueryResponse(api.QueryResponse o) {
1639 buildCounterQueryResponse++; 1645 buildCounterQueryResponse++;
1640 if (buildCounterQueryResponse < 3) { 1646 if (buildCounterQueryResponse < 3) {
1641 unittest.expect(o.cacheHit, unittest.isTrue); 1647 unittest.expect(o.cacheHit, unittest.isTrue);
1642 checkUnnamed3007(o.errors); 1648 checkUnnamed3006(o.errors);
1643 unittest.expect(o.jobComplete, unittest.isTrue); 1649 unittest.expect(o.jobComplete, unittest.isTrue);
1644 checkJobReference(o.jobReference); 1650 checkJobReference(o.jobReference);
1645 unittest.expect(o.kind, unittest.equals('foo')); 1651 unittest.expect(o.kind, unittest.equals('foo'));
1646 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); 1652 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo'));
1647 unittest.expect(o.pageToken, unittest.equals('foo')); 1653 unittest.expect(o.pageToken, unittest.equals('foo'));
1648 checkUnnamed3008(o.rows); 1654 checkUnnamed3007(o.rows);
1649 checkTableSchema(o.schema); 1655 checkTableSchema(o.schema);
1650 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); 1656 unittest.expect(o.totalBytesProcessed, unittest.equals('foo'));
1651 unittest.expect(o.totalRows, unittest.equals('foo')); 1657 unittest.expect(o.totalRows, unittest.equals('foo'));
1652 } 1658 }
1653 buildCounterQueryResponse--; 1659 buildCounterQueryResponse--;
1654 } 1660 }
1655 1661
1656 core.int buildCounterStreamingbuffer = 0; 1662 core.int buildCounterStreamingbuffer = 0;
1657 buildStreamingbuffer() { 1663 buildStreamingbuffer() {
1658 var o = new api.Streamingbuffer(); 1664 var o = new api.Streamingbuffer();
(...skipping 10 matching lines...) Expand all
1669 checkStreamingbuffer(api.Streamingbuffer o) { 1675 checkStreamingbuffer(api.Streamingbuffer o) {
1670 buildCounterStreamingbuffer++; 1676 buildCounterStreamingbuffer++;
1671 if (buildCounterStreamingbuffer < 3) { 1677 if (buildCounterStreamingbuffer < 3) {
1672 unittest.expect(o.estimatedBytes, unittest.equals('foo')); 1678 unittest.expect(o.estimatedBytes, unittest.equals('foo'));
1673 unittest.expect(o.estimatedRows, unittest.equals('foo')); 1679 unittest.expect(o.estimatedRows, unittest.equals('foo'));
1674 unittest.expect(o.oldestEntryTime, unittest.equals('foo')); 1680 unittest.expect(o.oldestEntryTime, unittest.equals('foo'));
1675 } 1681 }
1676 buildCounterStreamingbuffer--; 1682 buildCounterStreamingbuffer--;
1677 } 1683 }
1678 1684
1685 buildUnnamed3008() {
1686 var o = new core.Map<core.String, core.String>();
1687 o["x"] = "foo";
1688 o["y"] = "foo";
1689 return o;
1690 }
1691
1692 checkUnnamed3008(core.Map<core.String, core.String> o) {
1693 unittest.expect(o, unittest.hasLength(2));
1694 unittest.expect(o["x"], unittest.equals('foo'));
1695 unittest.expect(o["y"], unittest.equals('foo'));
1696 }
1697
1679 core.int buildCounterTable = 0; 1698 core.int buildCounterTable = 0;
1680 buildTable() { 1699 buildTable() {
1681 var o = new api.Table(); 1700 var o = new api.Table();
1682 buildCounterTable++; 1701 buildCounterTable++;
1683 if (buildCounterTable < 3) { 1702 if (buildCounterTable < 3) {
1684 o.creationTime = "foo"; 1703 o.creationTime = "foo";
1685 o.description = "foo"; 1704 o.description = "foo";
1686 o.etag = "foo"; 1705 o.etag = "foo";
1687 o.expirationTime = "foo"; 1706 o.expirationTime = "foo";
1688 o.externalDataConfiguration = buildExternalDataConfiguration(); 1707 o.externalDataConfiguration = buildExternalDataConfiguration();
1689 o.friendlyName = "foo"; 1708 o.friendlyName = "foo";
1690 o.id = "foo"; 1709 o.id = "foo";
1691 o.kind = "foo"; 1710 o.kind = "foo";
1711 o.labels = buildUnnamed3008();
1692 o.lastModifiedTime = "foo"; 1712 o.lastModifiedTime = "foo";
1693 o.location = "foo"; 1713 o.location = "foo";
1694 o.numBytes = "foo"; 1714 o.numBytes = "foo";
1695 o.numLongTermBytes = "foo"; 1715 o.numLongTermBytes = "foo";
1696 o.numRows = "foo"; 1716 o.numRows = "foo";
1697 o.schema = buildTableSchema(); 1717 o.schema = buildTableSchema();
1698 o.selfLink = "foo"; 1718 o.selfLink = "foo";
1699 o.streamingBuffer = buildStreamingbuffer(); 1719 o.streamingBuffer = buildStreamingbuffer();
1700 o.tableReference = buildTableReference(); 1720 o.tableReference = buildTableReference();
1701 o.timePartitioning = buildTimePartitioning(); 1721 o.timePartitioning = buildTimePartitioning();
1702 o.type = "foo"; 1722 o.type = "foo";
1703 o.view = buildViewDefinition(); 1723 o.view = buildViewDefinition();
1704 } 1724 }
1705 buildCounterTable--; 1725 buildCounterTable--;
1706 return o; 1726 return o;
1707 } 1727 }
1708 1728
1709 checkTable(api.Table o) { 1729 checkTable(api.Table o) {
1710 buildCounterTable++; 1730 buildCounterTable++;
1711 if (buildCounterTable < 3) { 1731 if (buildCounterTable < 3) {
1712 unittest.expect(o.creationTime, unittest.equals('foo')); 1732 unittest.expect(o.creationTime, unittest.equals('foo'));
1713 unittest.expect(o.description, unittest.equals('foo')); 1733 unittest.expect(o.description, unittest.equals('foo'));
1714 unittest.expect(o.etag, unittest.equals('foo')); 1734 unittest.expect(o.etag, unittest.equals('foo'));
1715 unittest.expect(o.expirationTime, unittest.equals('foo')); 1735 unittest.expect(o.expirationTime, unittest.equals('foo'));
1716 checkExternalDataConfiguration(o.externalDataConfiguration); 1736 checkExternalDataConfiguration(o.externalDataConfiguration);
1717 unittest.expect(o.friendlyName, unittest.equals('foo')); 1737 unittest.expect(o.friendlyName, unittest.equals('foo'));
1718 unittest.expect(o.id, unittest.equals('foo')); 1738 unittest.expect(o.id, unittest.equals('foo'));
1719 unittest.expect(o.kind, unittest.equals('foo')); 1739 unittest.expect(o.kind, unittest.equals('foo'));
1740 checkUnnamed3008(o.labels);
1720 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); 1741 unittest.expect(o.lastModifiedTime, unittest.equals('foo'));
1721 unittest.expect(o.location, unittest.equals('foo')); 1742 unittest.expect(o.location, unittest.equals('foo'));
1722 unittest.expect(o.numBytes, unittest.equals('foo')); 1743 unittest.expect(o.numBytes, unittest.equals('foo'));
1723 unittest.expect(o.numLongTermBytes, unittest.equals('foo')); 1744 unittest.expect(o.numLongTermBytes, unittest.equals('foo'));
1724 unittest.expect(o.numRows, unittest.equals('foo')); 1745 unittest.expect(o.numRows, unittest.equals('foo'));
1725 checkTableSchema(o.schema); 1746 checkTableSchema(o.schema);
1726 unittest.expect(o.selfLink, unittest.equals('foo')); 1747 unittest.expect(o.selfLink, unittest.equals('foo'));
1727 checkStreamingbuffer(o.streamingBuffer); 1748 checkStreamingbuffer(o.streamingBuffer);
1728 checkTableReference(o.tableReference); 1749 checkTableReference(o.tableReference);
1729 checkTimePartitioning(o.timePartitioning); 1750 checkTimePartitioning(o.timePartitioning);
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
1954 if (buildCounterTableFieldSchema < 3) { 1975 if (buildCounterTableFieldSchema < 3) {
1955 unittest.expect(o.description, unittest.equals('foo')); 1976 unittest.expect(o.description, unittest.equals('foo'));
1956 checkUnnamed3013(o.fields); 1977 checkUnnamed3013(o.fields);
1957 unittest.expect(o.mode, unittest.equals('foo')); 1978 unittest.expect(o.mode, unittest.equals('foo'));
1958 unittest.expect(o.name, unittest.equals('foo')); 1979 unittest.expect(o.name, unittest.equals('foo'));
1959 unittest.expect(o.type, unittest.equals('foo')); 1980 unittest.expect(o.type, unittest.equals('foo'));
1960 } 1981 }
1961 buildCounterTableFieldSchema--; 1982 buildCounterTableFieldSchema--;
1962 } 1983 }
1963 1984
1985 buildUnnamed3014() {
1986 var o = new core.Map<core.String, core.String>();
1987 o["x"] = "foo";
1988 o["y"] = "foo";
1989 return o;
1990 }
1991
1992 checkUnnamed3014(core.Map<core.String, core.String> o) {
1993 unittest.expect(o, unittest.hasLength(2));
1994 unittest.expect(o["x"], unittest.equals('foo'));
1995 unittest.expect(o["y"], unittest.equals('foo'));
1996 }
1997
1964 core.int buildCounterTableListTables = 0; 1998 core.int buildCounterTableListTables = 0;
1965 buildTableListTables() { 1999 buildTableListTables() {
1966 var o = new api.TableListTables(); 2000 var o = new api.TableListTables();
1967 buildCounterTableListTables++; 2001 buildCounterTableListTables++;
1968 if (buildCounterTableListTables < 3) { 2002 if (buildCounterTableListTables < 3) {
1969 o.friendlyName = "foo"; 2003 o.friendlyName = "foo";
1970 o.id = "foo"; 2004 o.id = "foo";
1971 o.kind = "foo"; 2005 o.kind = "foo";
2006 o.labels = buildUnnamed3014();
1972 o.tableReference = buildTableReference(); 2007 o.tableReference = buildTableReference();
1973 o.type = "foo"; 2008 o.type = "foo";
1974 } 2009 }
1975 buildCounterTableListTables--; 2010 buildCounterTableListTables--;
1976 return o; 2011 return o;
1977 } 2012 }
1978 2013
1979 checkTableListTables(api.TableListTables o) { 2014 checkTableListTables(api.TableListTables o) {
1980 buildCounterTableListTables++; 2015 buildCounterTableListTables++;
1981 if (buildCounterTableListTables < 3) { 2016 if (buildCounterTableListTables < 3) {
1982 unittest.expect(o.friendlyName, unittest.equals('foo')); 2017 unittest.expect(o.friendlyName, unittest.equals('foo'));
1983 unittest.expect(o.id, unittest.equals('foo')); 2018 unittest.expect(o.id, unittest.equals('foo'));
1984 unittest.expect(o.kind, unittest.equals('foo')); 2019 unittest.expect(o.kind, unittest.equals('foo'));
2020 checkUnnamed3014(o.labels);
1985 checkTableReference(o.tableReference); 2021 checkTableReference(o.tableReference);
1986 unittest.expect(o.type, unittest.equals('foo')); 2022 unittest.expect(o.type, unittest.equals('foo'));
1987 } 2023 }
1988 buildCounterTableListTables--; 2024 buildCounterTableListTables--;
1989 } 2025 }
1990 2026
1991 buildUnnamed3014() { 2027 buildUnnamed3015() {
1992 var o = new core.List<api.TableListTables>(); 2028 var o = new core.List<api.TableListTables>();
1993 o.add(buildTableListTables()); 2029 o.add(buildTableListTables());
1994 o.add(buildTableListTables()); 2030 o.add(buildTableListTables());
1995 return o; 2031 return o;
1996 } 2032 }
1997 2033
1998 checkUnnamed3014(core.List<api.TableListTables> o) { 2034 checkUnnamed3015(core.List<api.TableListTables> o) {
1999 unittest.expect(o, unittest.hasLength(2)); 2035 unittest.expect(o, unittest.hasLength(2));
2000 checkTableListTables(o[0]); 2036 checkTableListTables(o[0]);
2001 checkTableListTables(o[1]); 2037 checkTableListTables(o[1]);
2002 } 2038 }
2003 2039
2004 core.int buildCounterTableList = 0; 2040 core.int buildCounterTableList = 0;
2005 buildTableList() { 2041 buildTableList() {
2006 var o = new api.TableList(); 2042 var o = new api.TableList();
2007 buildCounterTableList++; 2043 buildCounterTableList++;
2008 if (buildCounterTableList < 3) { 2044 if (buildCounterTableList < 3) {
2009 o.etag = "foo"; 2045 o.etag = "foo";
2010 o.kind = "foo"; 2046 o.kind = "foo";
2011 o.nextPageToken = "foo"; 2047 o.nextPageToken = "foo";
2012 o.tables = buildUnnamed3014(); 2048 o.tables = buildUnnamed3015();
2013 o.totalItems = 42; 2049 o.totalItems = 42;
2014 } 2050 }
2015 buildCounterTableList--; 2051 buildCounterTableList--;
2016 return o; 2052 return o;
2017 } 2053 }
2018 2054
2019 checkTableList(api.TableList o) { 2055 checkTableList(api.TableList o) {
2020 buildCounterTableList++; 2056 buildCounterTableList++;
2021 if (buildCounterTableList < 3) { 2057 if (buildCounterTableList < 3) {
2022 unittest.expect(o.etag, unittest.equals('foo')); 2058 unittest.expect(o.etag, unittest.equals('foo'));
2023 unittest.expect(o.kind, unittest.equals('foo')); 2059 unittest.expect(o.kind, unittest.equals('foo'));
2024 unittest.expect(o.nextPageToken, unittest.equals('foo')); 2060 unittest.expect(o.nextPageToken, unittest.equals('foo'));
2025 checkUnnamed3014(o.tables); 2061 checkUnnamed3015(o.tables);
2026 unittest.expect(o.totalItems, unittest.equals(42)); 2062 unittest.expect(o.totalItems, unittest.equals(42));
2027 } 2063 }
2028 buildCounterTableList--; 2064 buildCounterTableList--;
2029 } 2065 }
2030 2066
2031 core.int buildCounterTableReference = 0; 2067 core.int buildCounterTableReference = 0;
2032 buildTableReference() { 2068 buildTableReference() {
2033 var o = new api.TableReference(); 2069 var o = new api.TableReference();
2034 buildCounterTableReference++; 2070 buildCounterTableReference++;
2035 if (buildCounterTableReference < 3) { 2071 if (buildCounterTableReference < 3) {
2036 o.datasetId = "foo"; 2072 o.datasetId = "foo";
2037 o.projectId = "foo"; 2073 o.projectId = "foo";
2038 o.tableId = "foo"; 2074 o.tableId = "foo";
2039 } 2075 }
2040 buildCounterTableReference--; 2076 buildCounterTableReference--;
2041 return o; 2077 return o;
2042 } 2078 }
2043 2079
2044 checkTableReference(api.TableReference o) { 2080 checkTableReference(api.TableReference o) {
2045 buildCounterTableReference++; 2081 buildCounterTableReference++;
2046 if (buildCounterTableReference < 3) { 2082 if (buildCounterTableReference < 3) {
2047 unittest.expect(o.datasetId, unittest.equals('foo')); 2083 unittest.expect(o.datasetId, unittest.equals('foo'));
2048 unittest.expect(o.projectId, unittest.equals('foo')); 2084 unittest.expect(o.projectId, unittest.equals('foo'));
2049 unittest.expect(o.tableId, unittest.equals('foo')); 2085 unittest.expect(o.tableId, unittest.equals('foo'));
2050 } 2086 }
2051 buildCounterTableReference--; 2087 buildCounterTableReference--;
2052 } 2088 }
2053 2089
2054 buildUnnamed3015() { 2090 buildUnnamed3016() {
2055 var o = new core.List<api.TableCell>(); 2091 var o = new core.List<api.TableCell>();
2056 o.add(buildTableCell()); 2092 o.add(buildTableCell());
2057 o.add(buildTableCell()); 2093 o.add(buildTableCell());
2058 return o; 2094 return o;
2059 } 2095 }
2060 2096
2061 checkUnnamed3015(core.List<api.TableCell> o) { 2097 checkUnnamed3016(core.List<api.TableCell> o) {
2062 unittest.expect(o, unittest.hasLength(2)); 2098 unittest.expect(o, unittest.hasLength(2));
2063 checkTableCell(o[0]); 2099 checkTableCell(o[0]);
2064 checkTableCell(o[1]); 2100 checkTableCell(o[1]);
2065 } 2101 }
2066 2102
2067 core.int buildCounterTableRow = 0; 2103 core.int buildCounterTableRow = 0;
2068 buildTableRow() { 2104 buildTableRow() {
2069 var o = new api.TableRow(); 2105 var o = new api.TableRow();
2070 buildCounterTableRow++; 2106 buildCounterTableRow++;
2071 if (buildCounterTableRow < 3) { 2107 if (buildCounterTableRow < 3) {
2072 o.f = buildUnnamed3015(); 2108 o.f = buildUnnamed3016();
2073 } 2109 }
2074 buildCounterTableRow--; 2110 buildCounterTableRow--;
2075 return o; 2111 return o;
2076 } 2112 }
2077 2113
2078 checkTableRow(api.TableRow o) { 2114 checkTableRow(api.TableRow o) {
2079 buildCounterTableRow++; 2115 buildCounterTableRow++;
2080 if (buildCounterTableRow < 3) { 2116 if (buildCounterTableRow < 3) {
2081 checkUnnamed3015(o.f); 2117 checkUnnamed3016(o.f);
2082 } 2118 }
2083 buildCounterTableRow--; 2119 buildCounterTableRow--;
2084 } 2120 }
2085 2121
2086 buildUnnamed3016() { 2122 buildUnnamed3017() {
2087 var o = new core.List<api.TableFieldSchema>(); 2123 var o = new core.List<api.TableFieldSchema>();
2088 o.add(buildTableFieldSchema()); 2124 o.add(buildTableFieldSchema());
2089 o.add(buildTableFieldSchema()); 2125 o.add(buildTableFieldSchema());
2090 return o; 2126 return o;
2091 } 2127 }
2092 2128
2093 checkUnnamed3016(core.List<api.TableFieldSchema> o) { 2129 checkUnnamed3017(core.List<api.TableFieldSchema> o) {
2094 unittest.expect(o, unittest.hasLength(2)); 2130 unittest.expect(o, unittest.hasLength(2));
2095 checkTableFieldSchema(o[0]); 2131 checkTableFieldSchema(o[0]);
2096 checkTableFieldSchema(o[1]); 2132 checkTableFieldSchema(o[1]);
2097 } 2133 }
2098 2134
2099 core.int buildCounterTableSchema = 0; 2135 core.int buildCounterTableSchema = 0;
2100 buildTableSchema() { 2136 buildTableSchema() {
2101 var o = new api.TableSchema(); 2137 var o = new api.TableSchema();
2102 buildCounterTableSchema++; 2138 buildCounterTableSchema++;
2103 if (buildCounterTableSchema < 3) { 2139 if (buildCounterTableSchema < 3) {
2104 o.fields = buildUnnamed3016(); 2140 o.fields = buildUnnamed3017();
2105 } 2141 }
2106 buildCounterTableSchema--; 2142 buildCounterTableSchema--;
2107 return o; 2143 return o;
2108 } 2144 }
2109 2145
2110 checkTableSchema(api.TableSchema o) { 2146 checkTableSchema(api.TableSchema o) {
2111 buildCounterTableSchema++; 2147 buildCounterTableSchema++;
2112 if (buildCounterTableSchema < 3) { 2148 if (buildCounterTableSchema < 3) {
2113 checkUnnamed3016(o.fields); 2149 checkUnnamed3017(o.fields);
2114 } 2150 }
2115 buildCounterTableSchema--; 2151 buildCounterTableSchema--;
2116 } 2152 }
2117 2153
2118 core.int buildCounterTimePartitioning = 0; 2154 core.int buildCounterTimePartitioning = 0;
2119 buildTimePartitioning() { 2155 buildTimePartitioning() {
2120 var o = new api.TimePartitioning(); 2156 var o = new api.TimePartitioning();
2121 buildCounterTimePartitioning++; 2157 buildCounterTimePartitioning++;
2122 if (buildCounterTimePartitioning < 3) { 2158 if (buildCounterTimePartitioning < 3) {
2123 o.expirationMs = "foo"; 2159 o.expirationMs = "foo";
(...skipping 26 matching lines...) Expand all
2150 2186
2151 checkUserDefinedFunctionResource(api.UserDefinedFunctionResource o) { 2187 checkUserDefinedFunctionResource(api.UserDefinedFunctionResource o) {
2152 buildCounterUserDefinedFunctionResource++; 2188 buildCounterUserDefinedFunctionResource++;
2153 if (buildCounterUserDefinedFunctionResource < 3) { 2189 if (buildCounterUserDefinedFunctionResource < 3) {
2154 unittest.expect(o.inlineCode, unittest.equals('foo')); 2190 unittest.expect(o.inlineCode, unittest.equals('foo'));
2155 unittest.expect(o.resourceUri, unittest.equals('foo')); 2191 unittest.expect(o.resourceUri, unittest.equals('foo'));
2156 } 2192 }
2157 buildCounterUserDefinedFunctionResource--; 2193 buildCounterUserDefinedFunctionResource--;
2158 } 2194 }
2159 2195
2160 buildUnnamed3017() { 2196 buildUnnamed3018() {
2161 var o = new core.List<api.UserDefinedFunctionResource>(); 2197 var o = new core.List<api.UserDefinedFunctionResource>();
2162 o.add(buildUserDefinedFunctionResource()); 2198 o.add(buildUserDefinedFunctionResource());
2163 o.add(buildUserDefinedFunctionResource()); 2199 o.add(buildUserDefinedFunctionResource());
2164 return o; 2200 return o;
2165 } 2201 }
2166 2202
2167 checkUnnamed3017(core.List<api.UserDefinedFunctionResource> o) { 2203 checkUnnamed3018(core.List<api.UserDefinedFunctionResource> o) {
2168 unittest.expect(o, unittest.hasLength(2)); 2204 unittest.expect(o, unittest.hasLength(2));
2169 checkUserDefinedFunctionResource(o[0]); 2205 checkUserDefinedFunctionResource(o[0]);
2170 checkUserDefinedFunctionResource(o[1]); 2206 checkUserDefinedFunctionResource(o[1]);
2171 } 2207 }
2172 2208
2173 core.int buildCounterViewDefinition = 0; 2209 core.int buildCounterViewDefinition = 0;
2174 buildViewDefinition() { 2210 buildViewDefinition() {
2175 var o = new api.ViewDefinition(); 2211 var o = new api.ViewDefinition();
2176 buildCounterViewDefinition++; 2212 buildCounterViewDefinition++;
2177 if (buildCounterViewDefinition < 3) { 2213 if (buildCounterViewDefinition < 3) {
2178 o.query = "foo"; 2214 o.query = "foo";
2179 o.useLegacySql = true; 2215 o.useLegacySql = true;
2180 o.userDefinedFunctionResources = buildUnnamed3017(); 2216 o.userDefinedFunctionResources = buildUnnamed3018();
2181 } 2217 }
2182 buildCounterViewDefinition--; 2218 buildCounterViewDefinition--;
2183 return o; 2219 return o;
2184 } 2220 }
2185 2221
2186 checkViewDefinition(api.ViewDefinition o) { 2222 checkViewDefinition(api.ViewDefinition o) {
2187 buildCounterViewDefinition++; 2223 buildCounterViewDefinition++;
2188 if (buildCounterViewDefinition < 3) { 2224 if (buildCounterViewDefinition < 3) {
2189 unittest.expect(o.query, unittest.equals('foo')); 2225 unittest.expect(o.query, unittest.equals('foo'));
2190 unittest.expect(o.useLegacySql, unittest.isTrue); 2226 unittest.expect(o.useLegacySql, unittest.isTrue);
2191 checkUnnamed3017(o.userDefinedFunctionResources); 2227 checkUnnamed3018(o.userDefinedFunctionResources);
2192 } 2228 }
2193 buildCounterViewDefinition--; 2229 buildCounterViewDefinition--;
2194 } 2230 }
2195 2231
2196 buildUnnamed3018() { 2232 buildUnnamed3019() {
2197 var o = new core.List<core.String>(); 2233 var o = new core.List<core.String>();
2198 o.add("foo"); 2234 o.add("foo");
2199 o.add("foo"); 2235 o.add("foo");
2200 return o; 2236 return o;
2201 } 2237 }
2202 2238
2203 checkUnnamed3018(core.List<core.String> o) { 2239 checkUnnamed3019(core.List<core.String> o) {
2204 unittest.expect(o, unittest.hasLength(2)); 2240 unittest.expect(o, unittest.hasLength(2));
2205 unittest.expect(o[0], unittest.equals('foo')); 2241 unittest.expect(o[0], unittest.equals('foo'));
2206 unittest.expect(o[1], unittest.equals('foo')); 2242 unittest.expect(o[1], unittest.equals('foo'));
2207 } 2243 }
2208 2244
2209 2245
2210 main() { 2246 main() {
2211 unittest.group("obj-schema-BigtableColumn", () { 2247 unittest.group("obj-schema-BigtableColumn", () {
2212 unittest.test("to-json--from-json", () { 2248 unittest.test("to-json--from-json", () {
2213 var o = buildBigtableColumn(); 2249 var o = buildBigtableColumn();
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after
3324 3360
3325 unittest.test("method--list", () { 3361 unittest.test("method--list", () {
3326 3362
3327 var mock = new HttpServerMock(); 3363 var mock = new HttpServerMock();
3328 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; 3364 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs;
3329 var arg_projectId = "foo"; 3365 var arg_projectId = "foo";
3330 var arg_allUsers = true; 3366 var arg_allUsers = true;
3331 var arg_maxResults = 42; 3367 var arg_maxResults = 42;
3332 var arg_pageToken = "foo"; 3368 var arg_pageToken = "foo";
3333 var arg_projection = "foo"; 3369 var arg_projection = "foo";
3334 var arg_stateFilter = buildUnnamed3018(); 3370 var arg_stateFilter = buildUnnamed3019();
3335 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3371 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3336 var path = (req.url).path; 3372 var path = (req.url).path;
3337 var pathOffset = 0; 3373 var pathOffset = 0;
3338 var index; 3374 var index;
3339 var subPart; 3375 var subPart;
3340 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3376 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3341 pathOffset += 1; 3377 pathOffset += 1;
3342 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/")); 3378 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("bigquery/v2/"));
3343 pathOffset += 12; 3379 pathOffset += 12;
3344 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/")); 3380 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("projects/"));
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
4045 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un ittest.expectAsync(((api.Table response) { 4081 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un ittest.expectAsync(((api.Table response) {
4046 checkTable(response); 4082 checkTable(response);
4047 }))); 4083 })));
4048 }); 4084 });
4049 4085
4050 }); 4086 });
4051 4087
4052 4088
4053 } 4089 }
4054 4090
OLDNEW
« no previous file with comments | « generated/googleapis/test/appstate/v1_test.dart ('k') | generated/googleapis/test/civicinfo/v2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698