OLD | NEW |
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 Loading... |
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 buildUnnamed442() { | 83 buildUnnamed2897() { |
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 checkUnnamed442(core.List<api.BigtableColumn> o) { | 90 checkUnnamed2897(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 = buildUnnamed442(); | 101 o.columns = buildUnnamed2897(); |
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 checkUnnamed442(o.columns); | 114 checkUnnamed2897(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 buildUnnamed443() { | 123 buildUnnamed2898() { |
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 checkUnnamed443(core.List<api.BigtableColumnFamily> o) { | 130 checkUnnamed2898(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 = buildUnnamed443(); | 141 o.columnFamilies = buildUnnamed2898(); |
142 o.ignoreUnspecifiedColumnFamilies = true; | 142 o.ignoreUnspecifiedColumnFamilies = true; |
143 } | 143 } |
144 buildCounterBigtableOptions--; | 144 buildCounterBigtableOptions--; |
145 return o; | 145 return o; |
146 } | 146 } |
147 | 147 |
148 checkBigtableOptions(api.BigtableOptions o) { | 148 checkBigtableOptions(api.BigtableOptions o) { |
149 buildCounterBigtableOptions++; | 149 buildCounterBigtableOptions++; |
150 if (buildCounterBigtableOptions < 3) { | 150 if (buildCounterBigtableOptions < 3) { |
151 checkUnnamed443(o.columnFamilies); | 151 checkUnnamed2898(o.columnFamilies); |
152 unittest.expect(o.ignoreUnspecifiedColumnFamilies, unittest.isTrue); | 152 unittest.expect(o.ignoreUnspecifiedColumnFamilies, unittest.isTrue); |
153 } | 153 } |
154 buildCounterBigtableOptions--; | 154 buildCounterBigtableOptions--; |
155 } | 155 } |
156 | 156 |
157 core.int buildCounterCsvOptions = 0; | 157 core.int buildCounterCsvOptions = 0; |
158 buildCsvOptions() { | 158 buildCsvOptions() { |
159 var o = new api.CsvOptions(); | 159 var o = new api.CsvOptions(); |
160 buildCounterCsvOptions++; | 160 buildCounterCsvOptions++; |
161 if (buildCounterCsvOptions < 3) { | 161 if (buildCounterCsvOptions < 3) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 unittest.expect(o.domain, unittest.equals('foo')); | 205 unittest.expect(o.domain, unittest.equals('foo')); |
206 unittest.expect(o.groupByEmail, unittest.equals('foo')); | 206 unittest.expect(o.groupByEmail, unittest.equals('foo')); |
207 unittest.expect(o.role, unittest.equals('foo')); | 207 unittest.expect(o.role, unittest.equals('foo')); |
208 unittest.expect(o.specialGroup, unittest.equals('foo')); | 208 unittest.expect(o.specialGroup, unittest.equals('foo')); |
209 unittest.expect(o.userByEmail, unittest.equals('foo')); | 209 unittest.expect(o.userByEmail, unittest.equals('foo')); |
210 checkTableReference(o.view); | 210 checkTableReference(o.view); |
211 } | 211 } |
212 buildCounterDatasetAccess--; | 212 buildCounterDatasetAccess--; |
213 } | 213 } |
214 | 214 |
215 buildUnnamed444() { | 215 buildUnnamed2899() { |
216 var o = new core.List<api.DatasetAccess>(); | 216 var o = new core.List<api.DatasetAccess>(); |
217 o.add(buildDatasetAccess()); | 217 o.add(buildDatasetAccess()); |
218 o.add(buildDatasetAccess()); | 218 o.add(buildDatasetAccess()); |
219 return o; | 219 return o; |
220 } | 220 } |
221 | 221 |
222 checkUnnamed444(core.List<api.DatasetAccess> o) { | 222 checkUnnamed2899(core.List<api.DatasetAccess> o) { |
223 unittest.expect(o, unittest.hasLength(2)); | 223 unittest.expect(o, unittest.hasLength(2)); |
224 checkDatasetAccess(o[0]); | 224 checkDatasetAccess(o[0]); |
225 checkDatasetAccess(o[1]); | 225 checkDatasetAccess(o[1]); |
226 } | 226 } |
227 | 227 |
228 core.int buildCounterDataset = 0; | 228 core.int buildCounterDataset = 0; |
229 buildDataset() { | 229 buildDataset() { |
230 var o = new api.Dataset(); | 230 var o = new api.Dataset(); |
231 buildCounterDataset++; | 231 buildCounterDataset++; |
232 if (buildCounterDataset < 3) { | 232 if (buildCounterDataset < 3) { |
233 o.access = buildUnnamed444(); | 233 o.access = buildUnnamed2899(); |
234 o.creationTime = "foo"; | 234 o.creationTime = "foo"; |
235 o.datasetReference = buildDatasetReference(); | 235 o.datasetReference = buildDatasetReference(); |
236 o.defaultTableExpirationMs = "foo"; | 236 o.defaultTableExpirationMs = "foo"; |
237 o.description = "foo"; | 237 o.description = "foo"; |
238 o.etag = "foo"; | 238 o.etag = "foo"; |
239 o.friendlyName = "foo"; | 239 o.friendlyName = "foo"; |
240 o.id = "foo"; | 240 o.id = "foo"; |
241 o.kind = "foo"; | 241 o.kind = "foo"; |
242 o.lastModifiedTime = "foo"; | 242 o.lastModifiedTime = "foo"; |
243 o.location = "foo"; | 243 o.location = "foo"; |
244 o.selfLink = "foo"; | 244 o.selfLink = "foo"; |
245 } | 245 } |
246 buildCounterDataset--; | 246 buildCounterDataset--; |
247 return o; | 247 return o; |
248 } | 248 } |
249 | 249 |
250 checkDataset(api.Dataset o) { | 250 checkDataset(api.Dataset o) { |
251 buildCounterDataset++; | 251 buildCounterDataset++; |
252 if (buildCounterDataset < 3) { | 252 if (buildCounterDataset < 3) { |
253 checkUnnamed444(o.access); | 253 checkUnnamed2899(o.access); |
254 unittest.expect(o.creationTime, unittest.equals('foo')); | 254 unittest.expect(o.creationTime, unittest.equals('foo')); |
255 checkDatasetReference(o.datasetReference); | 255 checkDatasetReference(o.datasetReference); |
256 unittest.expect(o.defaultTableExpirationMs, unittest.equals('foo')); | 256 unittest.expect(o.defaultTableExpirationMs, unittest.equals('foo')); |
257 unittest.expect(o.description, unittest.equals('foo')); | 257 unittest.expect(o.description, unittest.equals('foo')); |
258 unittest.expect(o.etag, unittest.equals('foo')); | 258 unittest.expect(o.etag, unittest.equals('foo')); |
259 unittest.expect(o.friendlyName, unittest.equals('foo')); | 259 unittest.expect(o.friendlyName, unittest.equals('foo')); |
260 unittest.expect(o.id, unittest.equals('foo')); | 260 unittest.expect(o.id, unittest.equals('foo')); |
261 unittest.expect(o.kind, unittest.equals('foo')); | 261 unittest.expect(o.kind, unittest.equals('foo')); |
262 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); | 262 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); |
263 unittest.expect(o.location, unittest.equals('foo')); | 263 unittest.expect(o.location, unittest.equals('foo')); |
(...skipping 20 matching lines...) Expand all Loading... |
284 buildCounterDatasetListDatasets++; | 284 buildCounterDatasetListDatasets++; |
285 if (buildCounterDatasetListDatasets < 3) { | 285 if (buildCounterDatasetListDatasets < 3) { |
286 checkDatasetReference(o.datasetReference); | 286 checkDatasetReference(o.datasetReference); |
287 unittest.expect(o.friendlyName, unittest.equals('foo')); | 287 unittest.expect(o.friendlyName, unittest.equals('foo')); |
288 unittest.expect(o.id, unittest.equals('foo')); | 288 unittest.expect(o.id, unittest.equals('foo')); |
289 unittest.expect(o.kind, unittest.equals('foo')); | 289 unittest.expect(o.kind, unittest.equals('foo')); |
290 } | 290 } |
291 buildCounterDatasetListDatasets--; | 291 buildCounterDatasetListDatasets--; |
292 } | 292 } |
293 | 293 |
294 buildUnnamed445() { | 294 buildUnnamed2900() { |
295 var o = new core.List<api.DatasetListDatasets>(); | 295 var o = new core.List<api.DatasetListDatasets>(); |
296 o.add(buildDatasetListDatasets()); | 296 o.add(buildDatasetListDatasets()); |
297 o.add(buildDatasetListDatasets()); | 297 o.add(buildDatasetListDatasets()); |
298 return o; | 298 return o; |
299 } | 299 } |
300 | 300 |
301 checkUnnamed445(core.List<api.DatasetListDatasets> o) { | 301 checkUnnamed2900(core.List<api.DatasetListDatasets> o) { |
302 unittest.expect(o, unittest.hasLength(2)); | 302 unittest.expect(o, unittest.hasLength(2)); |
303 checkDatasetListDatasets(o[0]); | 303 checkDatasetListDatasets(o[0]); |
304 checkDatasetListDatasets(o[1]); | 304 checkDatasetListDatasets(o[1]); |
305 } | 305 } |
306 | 306 |
307 core.int buildCounterDatasetList = 0; | 307 core.int buildCounterDatasetList = 0; |
308 buildDatasetList() { | 308 buildDatasetList() { |
309 var o = new api.DatasetList(); | 309 var o = new api.DatasetList(); |
310 buildCounterDatasetList++; | 310 buildCounterDatasetList++; |
311 if (buildCounterDatasetList < 3) { | 311 if (buildCounterDatasetList < 3) { |
312 o.datasets = buildUnnamed445(); | 312 o.datasets = buildUnnamed2900(); |
313 o.etag = "foo"; | 313 o.etag = "foo"; |
314 o.kind = "foo"; | 314 o.kind = "foo"; |
315 o.nextPageToken = "foo"; | 315 o.nextPageToken = "foo"; |
316 } | 316 } |
317 buildCounterDatasetList--; | 317 buildCounterDatasetList--; |
318 return o; | 318 return o; |
319 } | 319 } |
320 | 320 |
321 checkDatasetList(api.DatasetList o) { | 321 checkDatasetList(api.DatasetList o) { |
322 buildCounterDatasetList++; | 322 buildCounterDatasetList++; |
323 if (buildCounterDatasetList < 3) { | 323 if (buildCounterDatasetList < 3) { |
324 checkUnnamed445(o.datasets); | 324 checkUnnamed2900(o.datasets); |
325 unittest.expect(o.etag, unittest.equals('foo')); | 325 unittest.expect(o.etag, unittest.equals('foo')); |
326 unittest.expect(o.kind, unittest.equals('foo')); | 326 unittest.expect(o.kind, unittest.equals('foo')); |
327 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 327 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
328 } | 328 } |
329 buildCounterDatasetList--; | 329 buildCounterDatasetList--; |
330 } | 330 } |
331 | 331 |
332 core.int buildCounterDatasetReference = 0; | 332 core.int buildCounterDatasetReference = 0; |
333 buildDatasetReference() { | 333 buildDatasetReference() { |
334 var o = new api.DatasetReference(); | 334 var o = new api.DatasetReference(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 buildCounterErrorProto++; | 368 buildCounterErrorProto++; |
369 if (buildCounterErrorProto < 3) { | 369 if (buildCounterErrorProto < 3) { |
370 unittest.expect(o.debugInfo, unittest.equals('foo')); | 370 unittest.expect(o.debugInfo, unittest.equals('foo')); |
371 unittest.expect(o.location, unittest.equals('foo')); | 371 unittest.expect(o.location, unittest.equals('foo')); |
372 unittest.expect(o.message, unittest.equals('foo')); | 372 unittest.expect(o.message, unittest.equals('foo')); |
373 unittest.expect(o.reason, unittest.equals('foo')); | 373 unittest.expect(o.reason, unittest.equals('foo')); |
374 } | 374 } |
375 buildCounterErrorProto--; | 375 buildCounterErrorProto--; |
376 } | 376 } |
377 | 377 |
378 buildUnnamed446() { | 378 buildUnnamed2901() { |
379 var o = new core.List<api.ExplainQueryStep>(); | 379 var o = new core.List<api.ExplainQueryStep>(); |
380 o.add(buildExplainQueryStep()); | 380 o.add(buildExplainQueryStep()); |
381 o.add(buildExplainQueryStep()); | 381 o.add(buildExplainQueryStep()); |
382 return o; | 382 return o; |
383 } | 383 } |
384 | 384 |
385 checkUnnamed446(core.List<api.ExplainQueryStep> o) { | 385 checkUnnamed2901(core.List<api.ExplainQueryStep> o) { |
386 unittest.expect(o, unittest.hasLength(2)); | 386 unittest.expect(o, unittest.hasLength(2)); |
387 checkExplainQueryStep(o[0]); | 387 checkExplainQueryStep(o[0]); |
388 checkExplainQueryStep(o[1]); | 388 checkExplainQueryStep(o[1]); |
389 } | 389 } |
390 | 390 |
391 core.int buildCounterExplainQueryStage = 0; | 391 core.int buildCounterExplainQueryStage = 0; |
392 buildExplainQueryStage() { | 392 buildExplainQueryStage() { |
393 var o = new api.ExplainQueryStage(); | 393 var o = new api.ExplainQueryStage(); |
394 buildCounterExplainQueryStage++; | 394 buildCounterExplainQueryStage++; |
395 if (buildCounterExplainQueryStage < 3) { | 395 if (buildCounterExplainQueryStage < 3) { |
396 o.computeRatioAvg = 42.0; | 396 o.computeRatioAvg = 42.0; |
397 o.computeRatioMax = 42.0; | 397 o.computeRatioMax = 42.0; |
398 o.id = "foo"; | 398 o.id = "foo"; |
399 o.name = "foo"; | 399 o.name = "foo"; |
400 o.readRatioAvg = 42.0; | 400 o.readRatioAvg = 42.0; |
401 o.readRatioMax = 42.0; | 401 o.readRatioMax = 42.0; |
402 o.recordsRead = "foo"; | 402 o.recordsRead = "foo"; |
403 o.recordsWritten = "foo"; | 403 o.recordsWritten = "foo"; |
404 o.steps = buildUnnamed446(); | 404 o.steps = buildUnnamed2901(); |
405 o.waitRatioAvg = 42.0; | 405 o.waitRatioAvg = 42.0; |
406 o.waitRatioMax = 42.0; | 406 o.waitRatioMax = 42.0; |
407 o.writeRatioAvg = 42.0; | 407 o.writeRatioAvg = 42.0; |
408 o.writeRatioMax = 42.0; | 408 o.writeRatioMax = 42.0; |
409 } | 409 } |
410 buildCounterExplainQueryStage--; | 410 buildCounterExplainQueryStage--; |
411 return o; | 411 return o; |
412 } | 412 } |
413 | 413 |
414 checkExplainQueryStage(api.ExplainQueryStage o) { | 414 checkExplainQueryStage(api.ExplainQueryStage o) { |
415 buildCounterExplainQueryStage++; | 415 buildCounterExplainQueryStage++; |
416 if (buildCounterExplainQueryStage < 3) { | 416 if (buildCounterExplainQueryStage < 3) { |
417 unittest.expect(o.computeRatioAvg, unittest.equals(42.0)); | 417 unittest.expect(o.computeRatioAvg, unittest.equals(42.0)); |
418 unittest.expect(o.computeRatioMax, unittest.equals(42.0)); | 418 unittest.expect(o.computeRatioMax, unittest.equals(42.0)); |
419 unittest.expect(o.id, unittest.equals('foo')); | 419 unittest.expect(o.id, unittest.equals('foo')); |
420 unittest.expect(o.name, unittest.equals('foo')); | 420 unittest.expect(o.name, unittest.equals('foo')); |
421 unittest.expect(o.readRatioAvg, unittest.equals(42.0)); | 421 unittest.expect(o.readRatioAvg, unittest.equals(42.0)); |
422 unittest.expect(o.readRatioMax, unittest.equals(42.0)); | 422 unittest.expect(o.readRatioMax, unittest.equals(42.0)); |
423 unittest.expect(o.recordsRead, unittest.equals('foo')); | 423 unittest.expect(o.recordsRead, unittest.equals('foo')); |
424 unittest.expect(o.recordsWritten, unittest.equals('foo')); | 424 unittest.expect(o.recordsWritten, unittest.equals('foo')); |
425 checkUnnamed446(o.steps); | 425 checkUnnamed2901(o.steps); |
426 unittest.expect(o.waitRatioAvg, unittest.equals(42.0)); | 426 unittest.expect(o.waitRatioAvg, unittest.equals(42.0)); |
427 unittest.expect(o.waitRatioMax, unittest.equals(42.0)); | 427 unittest.expect(o.waitRatioMax, unittest.equals(42.0)); |
428 unittest.expect(o.writeRatioAvg, unittest.equals(42.0)); | 428 unittest.expect(o.writeRatioAvg, unittest.equals(42.0)); |
429 unittest.expect(o.writeRatioMax, unittest.equals(42.0)); | 429 unittest.expect(o.writeRatioMax, unittest.equals(42.0)); |
430 } | 430 } |
431 buildCounterExplainQueryStage--; | 431 buildCounterExplainQueryStage--; |
432 } | 432 } |
433 | 433 |
434 buildUnnamed447() { | 434 buildUnnamed2902() { |
435 var o = new core.List<core.String>(); | 435 var o = new core.List<core.String>(); |
436 o.add("foo"); | 436 o.add("foo"); |
437 o.add("foo"); | 437 o.add("foo"); |
438 return o; | 438 return o; |
439 } | 439 } |
440 | 440 |
441 checkUnnamed447(core.List<core.String> o) { | 441 checkUnnamed2902(core.List<core.String> o) { |
442 unittest.expect(o, unittest.hasLength(2)); | 442 unittest.expect(o, unittest.hasLength(2)); |
443 unittest.expect(o[0], unittest.equals('foo')); | 443 unittest.expect(o[0], unittest.equals('foo')); |
444 unittest.expect(o[1], unittest.equals('foo')); | 444 unittest.expect(o[1], unittest.equals('foo')); |
445 } | 445 } |
446 | 446 |
447 core.int buildCounterExplainQueryStep = 0; | 447 core.int buildCounterExplainQueryStep = 0; |
448 buildExplainQueryStep() { | 448 buildExplainQueryStep() { |
449 var o = new api.ExplainQueryStep(); | 449 var o = new api.ExplainQueryStep(); |
450 buildCounterExplainQueryStep++; | 450 buildCounterExplainQueryStep++; |
451 if (buildCounterExplainQueryStep < 3) { | 451 if (buildCounterExplainQueryStep < 3) { |
452 o.kind = "foo"; | 452 o.kind = "foo"; |
453 o.substeps = buildUnnamed447(); | 453 o.substeps = buildUnnamed2902(); |
454 } | 454 } |
455 buildCounterExplainQueryStep--; | 455 buildCounterExplainQueryStep--; |
456 return o; | 456 return o; |
457 } | 457 } |
458 | 458 |
459 checkExplainQueryStep(api.ExplainQueryStep o) { | 459 checkExplainQueryStep(api.ExplainQueryStep o) { |
460 buildCounterExplainQueryStep++; | 460 buildCounterExplainQueryStep++; |
461 if (buildCounterExplainQueryStep < 3) { | 461 if (buildCounterExplainQueryStep < 3) { |
462 unittest.expect(o.kind, unittest.equals('foo')); | 462 unittest.expect(o.kind, unittest.equals('foo')); |
463 checkUnnamed447(o.substeps); | 463 checkUnnamed2902(o.substeps); |
464 } | 464 } |
465 buildCounterExplainQueryStep--; | 465 buildCounterExplainQueryStep--; |
466 } | 466 } |
467 | 467 |
468 buildUnnamed448() { | 468 buildUnnamed2903() { |
469 var o = new core.List<core.String>(); | 469 var o = new core.List<core.String>(); |
470 o.add("foo"); | 470 o.add("foo"); |
471 o.add("foo"); | 471 o.add("foo"); |
472 return o; | 472 return o; |
473 } | 473 } |
474 | 474 |
475 checkUnnamed448(core.List<core.String> o) { | 475 checkUnnamed2903(core.List<core.String> o) { |
476 unittest.expect(o, unittest.hasLength(2)); | 476 unittest.expect(o, unittest.hasLength(2)); |
477 unittest.expect(o[0], unittest.equals('foo')); | 477 unittest.expect(o[0], unittest.equals('foo')); |
478 unittest.expect(o[1], unittest.equals('foo')); | 478 unittest.expect(o[1], unittest.equals('foo')); |
479 } | 479 } |
480 | 480 |
481 core.int buildCounterExternalDataConfiguration = 0; | 481 core.int buildCounterExternalDataConfiguration = 0; |
482 buildExternalDataConfiguration() { | 482 buildExternalDataConfiguration() { |
483 var o = new api.ExternalDataConfiguration(); | 483 var o = new api.ExternalDataConfiguration(); |
484 buildCounterExternalDataConfiguration++; | 484 buildCounterExternalDataConfiguration++; |
485 if (buildCounterExternalDataConfiguration < 3) { | 485 if (buildCounterExternalDataConfiguration < 3) { |
486 o.autodetect = true; | 486 o.autodetect = true; |
487 o.bigtableOptions = buildBigtableOptions(); | 487 o.bigtableOptions = buildBigtableOptions(); |
488 o.compression = "foo"; | 488 o.compression = "foo"; |
489 o.csvOptions = buildCsvOptions(); | 489 o.csvOptions = buildCsvOptions(); |
490 o.googleSheetsOptions = buildGoogleSheetsOptions(); | 490 o.googleSheetsOptions = buildGoogleSheetsOptions(); |
491 o.ignoreUnknownValues = true; | 491 o.ignoreUnknownValues = true; |
492 o.maxBadRecords = 42; | 492 o.maxBadRecords = 42; |
493 o.schema = buildTableSchema(); | 493 o.schema = buildTableSchema(); |
494 o.sourceFormat = "foo"; | 494 o.sourceFormat = "foo"; |
495 o.sourceUris = buildUnnamed448(); | 495 o.sourceUris = buildUnnamed2903(); |
496 } | 496 } |
497 buildCounterExternalDataConfiguration--; | 497 buildCounterExternalDataConfiguration--; |
498 return o; | 498 return o; |
499 } | 499 } |
500 | 500 |
501 checkExternalDataConfiguration(api.ExternalDataConfiguration o) { | 501 checkExternalDataConfiguration(api.ExternalDataConfiguration o) { |
502 buildCounterExternalDataConfiguration++; | 502 buildCounterExternalDataConfiguration++; |
503 if (buildCounterExternalDataConfiguration < 3) { | 503 if (buildCounterExternalDataConfiguration < 3) { |
504 unittest.expect(o.autodetect, unittest.isTrue); | 504 unittest.expect(o.autodetect, unittest.isTrue); |
505 checkBigtableOptions(o.bigtableOptions); | 505 checkBigtableOptions(o.bigtableOptions); |
506 unittest.expect(o.compression, unittest.equals('foo')); | 506 unittest.expect(o.compression, unittest.equals('foo')); |
507 checkCsvOptions(o.csvOptions); | 507 checkCsvOptions(o.csvOptions); |
508 checkGoogleSheetsOptions(o.googleSheetsOptions); | 508 checkGoogleSheetsOptions(o.googleSheetsOptions); |
509 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 509 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
510 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 510 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
511 checkTableSchema(o.schema); | 511 checkTableSchema(o.schema); |
512 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 512 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
513 checkUnnamed448(o.sourceUris); | 513 checkUnnamed2903(o.sourceUris); |
514 } | 514 } |
515 buildCounterExternalDataConfiguration--; | 515 buildCounterExternalDataConfiguration--; |
516 } | 516 } |
517 | 517 |
518 buildUnnamed449() { | 518 buildUnnamed2904() { |
519 var o = new core.List<api.ErrorProto>(); | 519 var o = new core.List<api.ErrorProto>(); |
520 o.add(buildErrorProto()); | 520 o.add(buildErrorProto()); |
521 o.add(buildErrorProto()); | 521 o.add(buildErrorProto()); |
522 return o; | 522 return o; |
523 } | 523 } |
524 | 524 |
525 checkUnnamed449(core.List<api.ErrorProto> o) { | 525 checkUnnamed2904(core.List<api.ErrorProto> o) { |
526 unittest.expect(o, unittest.hasLength(2)); | 526 unittest.expect(o, unittest.hasLength(2)); |
527 checkErrorProto(o[0]); | 527 checkErrorProto(o[0]); |
528 checkErrorProto(o[1]); | 528 checkErrorProto(o[1]); |
529 } | 529 } |
530 | 530 |
531 buildUnnamed450() { | 531 buildUnnamed2905() { |
532 var o = new core.List<api.TableRow>(); | 532 var o = new core.List<api.TableRow>(); |
533 o.add(buildTableRow()); | 533 o.add(buildTableRow()); |
534 o.add(buildTableRow()); | 534 o.add(buildTableRow()); |
535 return o; | 535 return o; |
536 } | 536 } |
537 | 537 |
538 checkUnnamed450(core.List<api.TableRow> o) { | 538 checkUnnamed2905(core.List<api.TableRow> o) { |
539 unittest.expect(o, unittest.hasLength(2)); | 539 unittest.expect(o, unittest.hasLength(2)); |
540 checkTableRow(o[0]); | 540 checkTableRow(o[0]); |
541 checkTableRow(o[1]); | 541 checkTableRow(o[1]); |
542 } | 542 } |
543 | 543 |
544 core.int buildCounterGetQueryResultsResponse = 0; | 544 core.int buildCounterGetQueryResultsResponse = 0; |
545 buildGetQueryResultsResponse() { | 545 buildGetQueryResultsResponse() { |
546 var o = new api.GetQueryResultsResponse(); | 546 var o = new api.GetQueryResultsResponse(); |
547 buildCounterGetQueryResultsResponse++; | 547 buildCounterGetQueryResultsResponse++; |
548 if (buildCounterGetQueryResultsResponse < 3) { | 548 if (buildCounterGetQueryResultsResponse < 3) { |
549 o.cacheHit = true; | 549 o.cacheHit = true; |
550 o.errors = buildUnnamed449(); | 550 o.errors = buildUnnamed2904(); |
551 o.etag = "foo"; | 551 o.etag = "foo"; |
552 o.jobComplete = true; | 552 o.jobComplete = true; |
553 o.jobReference = buildJobReference(); | 553 o.jobReference = buildJobReference(); |
554 o.kind = "foo"; | 554 o.kind = "foo"; |
555 o.pageToken = "foo"; | 555 o.pageToken = "foo"; |
556 o.rows = buildUnnamed450(); | 556 o.rows = buildUnnamed2905(); |
557 o.schema = buildTableSchema(); | 557 o.schema = buildTableSchema(); |
558 o.totalBytesProcessed = "foo"; | 558 o.totalBytesProcessed = "foo"; |
559 o.totalRows = "foo"; | 559 o.totalRows = "foo"; |
560 } | 560 } |
561 buildCounterGetQueryResultsResponse--; | 561 buildCounterGetQueryResultsResponse--; |
562 return o; | 562 return o; |
563 } | 563 } |
564 | 564 |
565 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { | 565 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { |
566 buildCounterGetQueryResultsResponse++; | 566 buildCounterGetQueryResultsResponse++; |
567 if (buildCounterGetQueryResultsResponse < 3) { | 567 if (buildCounterGetQueryResultsResponse < 3) { |
568 unittest.expect(o.cacheHit, unittest.isTrue); | 568 unittest.expect(o.cacheHit, unittest.isTrue); |
569 checkUnnamed449(o.errors); | 569 checkUnnamed2904(o.errors); |
570 unittest.expect(o.etag, unittest.equals('foo')); | 570 unittest.expect(o.etag, unittest.equals('foo')); |
571 unittest.expect(o.jobComplete, unittest.isTrue); | 571 unittest.expect(o.jobComplete, unittest.isTrue); |
572 checkJobReference(o.jobReference); | 572 checkJobReference(o.jobReference); |
573 unittest.expect(o.kind, unittest.equals('foo')); | 573 unittest.expect(o.kind, unittest.equals('foo')); |
574 unittest.expect(o.pageToken, unittest.equals('foo')); | 574 unittest.expect(o.pageToken, unittest.equals('foo')); |
575 checkUnnamed450(o.rows); | 575 checkUnnamed2905(o.rows); |
576 checkTableSchema(o.schema); | 576 checkTableSchema(o.schema); |
577 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 577 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
578 unittest.expect(o.totalRows, unittest.equals('foo')); | 578 unittest.expect(o.totalRows, unittest.equals('foo')); |
579 } | 579 } |
580 buildCounterGetQueryResultsResponse--; | 580 buildCounterGetQueryResultsResponse--; |
581 } | 581 } |
582 | 582 |
583 core.int buildCounterGoogleSheetsOptions = 0; | 583 core.int buildCounterGoogleSheetsOptions = 0; |
584 buildGoogleSheetsOptions() { | 584 buildGoogleSheetsOptions() { |
585 var o = new api.GoogleSheetsOptions(); | 585 var o = new api.GoogleSheetsOptions(); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 if (buildCounterJobConfiguration < 3) { | 675 if (buildCounterJobConfiguration < 3) { |
676 checkJobConfigurationTableCopy(o.copy); | 676 checkJobConfigurationTableCopy(o.copy); |
677 unittest.expect(o.dryRun, unittest.isTrue); | 677 unittest.expect(o.dryRun, unittest.isTrue); |
678 checkJobConfigurationExtract(o.extract); | 678 checkJobConfigurationExtract(o.extract); |
679 checkJobConfigurationLoad(o.load); | 679 checkJobConfigurationLoad(o.load); |
680 checkJobConfigurationQuery(o.query); | 680 checkJobConfigurationQuery(o.query); |
681 } | 681 } |
682 buildCounterJobConfiguration--; | 682 buildCounterJobConfiguration--; |
683 } | 683 } |
684 | 684 |
685 buildUnnamed451() { | 685 buildUnnamed2906() { |
686 var o = new core.List<core.String>(); | 686 var o = new core.List<core.String>(); |
687 o.add("foo"); | 687 o.add("foo"); |
688 o.add("foo"); | 688 o.add("foo"); |
689 return o; | 689 return o; |
690 } | 690 } |
691 | 691 |
692 checkUnnamed451(core.List<core.String> o) { | 692 checkUnnamed2906(core.List<core.String> o) { |
693 unittest.expect(o, unittest.hasLength(2)); | 693 unittest.expect(o, unittest.hasLength(2)); |
694 unittest.expect(o[0], unittest.equals('foo')); | 694 unittest.expect(o[0], unittest.equals('foo')); |
695 unittest.expect(o[1], unittest.equals('foo')); | 695 unittest.expect(o[1], unittest.equals('foo')); |
696 } | 696 } |
697 | 697 |
698 core.int buildCounterJobConfigurationExtract = 0; | 698 core.int buildCounterJobConfigurationExtract = 0; |
699 buildJobConfigurationExtract() { | 699 buildJobConfigurationExtract() { |
700 var o = new api.JobConfigurationExtract(); | 700 var o = new api.JobConfigurationExtract(); |
701 buildCounterJobConfigurationExtract++; | 701 buildCounterJobConfigurationExtract++; |
702 if (buildCounterJobConfigurationExtract < 3) { | 702 if (buildCounterJobConfigurationExtract < 3) { |
703 o.compression = "foo"; | 703 o.compression = "foo"; |
704 o.destinationFormat = "foo"; | 704 o.destinationFormat = "foo"; |
705 o.destinationUri = "foo"; | 705 o.destinationUri = "foo"; |
706 o.destinationUris = buildUnnamed451(); | 706 o.destinationUris = buildUnnamed2906(); |
707 o.fieldDelimiter = "foo"; | 707 o.fieldDelimiter = "foo"; |
708 o.printHeader = true; | 708 o.printHeader = true; |
709 o.sourceTable = buildTableReference(); | 709 o.sourceTable = buildTableReference(); |
710 } | 710 } |
711 buildCounterJobConfigurationExtract--; | 711 buildCounterJobConfigurationExtract--; |
712 return o; | 712 return o; |
713 } | 713 } |
714 | 714 |
715 checkJobConfigurationExtract(api.JobConfigurationExtract o) { | 715 checkJobConfigurationExtract(api.JobConfigurationExtract o) { |
716 buildCounterJobConfigurationExtract++; | 716 buildCounterJobConfigurationExtract++; |
717 if (buildCounterJobConfigurationExtract < 3) { | 717 if (buildCounterJobConfigurationExtract < 3) { |
718 unittest.expect(o.compression, unittest.equals('foo')); | 718 unittest.expect(o.compression, unittest.equals('foo')); |
719 unittest.expect(o.destinationFormat, unittest.equals('foo')); | 719 unittest.expect(o.destinationFormat, unittest.equals('foo')); |
720 unittest.expect(o.destinationUri, unittest.equals('foo')); | 720 unittest.expect(o.destinationUri, unittest.equals('foo')); |
721 checkUnnamed451(o.destinationUris); | 721 checkUnnamed2906(o.destinationUris); |
722 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 722 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
723 unittest.expect(o.printHeader, unittest.isTrue); | 723 unittest.expect(o.printHeader, unittest.isTrue); |
724 checkTableReference(o.sourceTable); | 724 checkTableReference(o.sourceTable); |
725 } | 725 } |
726 buildCounterJobConfigurationExtract--; | 726 buildCounterJobConfigurationExtract--; |
727 } | 727 } |
728 | 728 |
729 buildUnnamed452() { | 729 buildUnnamed2907() { |
730 var o = new core.List<core.String>(); | 730 var o = new core.List<core.String>(); |
731 o.add("foo"); | 731 o.add("foo"); |
732 o.add("foo"); | 732 o.add("foo"); |
733 return o; | 733 return o; |
734 } | 734 } |
735 | 735 |
736 checkUnnamed452(core.List<core.String> o) { | 736 checkUnnamed2907(core.List<core.String> o) { |
737 unittest.expect(o, unittest.hasLength(2)); | 737 unittest.expect(o, unittest.hasLength(2)); |
738 unittest.expect(o[0], unittest.equals('foo')); | 738 unittest.expect(o[0], unittest.equals('foo')); |
739 unittest.expect(o[1], unittest.equals('foo')); | 739 unittest.expect(o[1], unittest.equals('foo')); |
740 } | 740 } |
741 | 741 |
742 buildUnnamed453() { | 742 buildUnnamed2908() { |
743 var o = new core.List<core.String>(); | 743 var o = new core.List<core.String>(); |
744 o.add("foo"); | 744 o.add("foo"); |
745 o.add("foo"); | 745 o.add("foo"); |
746 return o; | 746 return o; |
747 } | 747 } |
748 | 748 |
749 checkUnnamed453(core.List<core.String> o) { | 749 checkUnnamed2908(core.List<core.String> o) { |
750 unittest.expect(o, unittest.hasLength(2)); | 750 unittest.expect(o, unittest.hasLength(2)); |
751 unittest.expect(o[0], unittest.equals('foo')); | 751 unittest.expect(o[0], unittest.equals('foo')); |
752 unittest.expect(o[1], unittest.equals('foo')); | 752 unittest.expect(o[1], unittest.equals('foo')); |
753 } | 753 } |
754 | 754 |
755 core.int buildCounterJobConfigurationLoad = 0; | 755 core.int buildCounterJobConfigurationLoad = 0; |
756 buildJobConfigurationLoad() { | 756 buildJobConfigurationLoad() { |
757 var o = new api.JobConfigurationLoad(); | 757 var o = new api.JobConfigurationLoad(); |
758 buildCounterJobConfigurationLoad++; | 758 buildCounterJobConfigurationLoad++; |
759 if (buildCounterJobConfigurationLoad < 3) { | 759 if (buildCounterJobConfigurationLoad < 3) { |
760 o.allowJaggedRows = true; | 760 o.allowJaggedRows = true; |
761 o.allowQuotedNewlines = true; | 761 o.allowQuotedNewlines = true; |
762 o.autodetect = true; | 762 o.autodetect = true; |
763 o.createDisposition = "foo"; | 763 o.createDisposition = "foo"; |
764 o.destinationTable = buildTableReference(); | 764 o.destinationTable = buildTableReference(); |
765 o.encoding = "foo"; | 765 o.encoding = "foo"; |
766 o.fieldDelimiter = "foo"; | 766 o.fieldDelimiter = "foo"; |
767 o.ignoreUnknownValues = true; | 767 o.ignoreUnknownValues = true; |
768 o.maxBadRecords = 42; | 768 o.maxBadRecords = 42; |
769 o.projectionFields = buildUnnamed452(); | 769 o.projectionFields = buildUnnamed2907(); |
770 o.quote = "foo"; | 770 o.quote = "foo"; |
771 o.schema = buildTableSchema(); | 771 o.schema = buildTableSchema(); |
772 o.schemaInline = "foo"; | 772 o.schemaInline = "foo"; |
773 o.schemaInlineFormat = "foo"; | 773 o.schemaInlineFormat = "foo"; |
774 o.skipLeadingRows = 42; | 774 o.skipLeadingRows = 42; |
775 o.sourceFormat = "foo"; | 775 o.sourceFormat = "foo"; |
776 o.sourceUris = buildUnnamed453(); | 776 o.sourceUris = buildUnnamed2908(); |
777 o.writeDisposition = "foo"; | 777 o.writeDisposition = "foo"; |
778 } | 778 } |
779 buildCounterJobConfigurationLoad--; | 779 buildCounterJobConfigurationLoad--; |
780 return o; | 780 return o; |
781 } | 781 } |
782 | 782 |
783 checkJobConfigurationLoad(api.JobConfigurationLoad o) { | 783 checkJobConfigurationLoad(api.JobConfigurationLoad o) { |
784 buildCounterJobConfigurationLoad++; | 784 buildCounterJobConfigurationLoad++; |
785 if (buildCounterJobConfigurationLoad < 3) { | 785 if (buildCounterJobConfigurationLoad < 3) { |
786 unittest.expect(o.allowJaggedRows, unittest.isTrue); | 786 unittest.expect(o.allowJaggedRows, unittest.isTrue); |
787 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); | 787 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); |
788 unittest.expect(o.autodetect, unittest.isTrue); | 788 unittest.expect(o.autodetect, unittest.isTrue); |
789 unittest.expect(o.createDisposition, unittest.equals('foo')); | 789 unittest.expect(o.createDisposition, unittest.equals('foo')); |
790 checkTableReference(o.destinationTable); | 790 checkTableReference(o.destinationTable); |
791 unittest.expect(o.encoding, unittest.equals('foo')); | 791 unittest.expect(o.encoding, unittest.equals('foo')); |
792 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 792 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
793 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 793 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
794 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 794 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
795 checkUnnamed452(o.projectionFields); | 795 checkUnnamed2907(o.projectionFields); |
796 unittest.expect(o.quote, unittest.equals('foo')); | 796 unittest.expect(o.quote, unittest.equals('foo')); |
797 checkTableSchema(o.schema); | 797 checkTableSchema(o.schema); |
798 unittest.expect(o.schemaInline, unittest.equals('foo')); | 798 unittest.expect(o.schemaInline, unittest.equals('foo')); |
799 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); | 799 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); |
800 unittest.expect(o.skipLeadingRows, unittest.equals(42)); | 800 unittest.expect(o.skipLeadingRows, unittest.equals(42)); |
801 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 801 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
802 checkUnnamed453(o.sourceUris); | 802 checkUnnamed2908(o.sourceUris); |
803 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 803 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
804 } | 804 } |
805 buildCounterJobConfigurationLoad--; | 805 buildCounterJobConfigurationLoad--; |
806 } | 806 } |
807 | 807 |
808 buildUnnamed454() { | 808 buildUnnamed2909() { |
809 var o = new core.Map<core.String, api.ExternalDataConfiguration>(); | 809 var o = new core.Map<core.String, api.ExternalDataConfiguration>(); |
810 o["x"] = buildExternalDataConfiguration(); | 810 o["x"] = buildExternalDataConfiguration(); |
811 o["y"] = buildExternalDataConfiguration(); | 811 o["y"] = buildExternalDataConfiguration(); |
812 return o; | 812 return o; |
813 } | 813 } |
814 | 814 |
815 checkUnnamed454(core.Map<core.String, api.ExternalDataConfiguration> o) { | 815 checkUnnamed2909(core.Map<core.String, api.ExternalDataConfiguration> o) { |
816 unittest.expect(o, unittest.hasLength(2)); | 816 unittest.expect(o, unittest.hasLength(2)); |
817 checkExternalDataConfiguration(o["x"]); | 817 checkExternalDataConfiguration(o["x"]); |
818 checkExternalDataConfiguration(o["y"]); | 818 checkExternalDataConfiguration(o["y"]); |
819 } | 819 } |
820 | 820 |
821 buildUnnamed455() { | 821 buildUnnamed2910() { |
822 var o = new core.List<api.UserDefinedFunctionResource>(); | 822 var o = new core.List<api.UserDefinedFunctionResource>(); |
823 o.add(buildUserDefinedFunctionResource()); | 823 o.add(buildUserDefinedFunctionResource()); |
824 o.add(buildUserDefinedFunctionResource()); | 824 o.add(buildUserDefinedFunctionResource()); |
825 return o; | 825 return o; |
826 } | 826 } |
827 | 827 |
828 checkUnnamed455(core.List<api.UserDefinedFunctionResource> o) { | 828 checkUnnamed2910(core.List<api.UserDefinedFunctionResource> o) { |
829 unittest.expect(o, unittest.hasLength(2)); | 829 unittest.expect(o, unittest.hasLength(2)); |
830 checkUserDefinedFunctionResource(o[0]); | 830 checkUserDefinedFunctionResource(o[0]); |
831 checkUserDefinedFunctionResource(o[1]); | 831 checkUserDefinedFunctionResource(o[1]); |
832 } | 832 } |
833 | 833 |
834 core.int buildCounterJobConfigurationQuery = 0; | 834 core.int buildCounterJobConfigurationQuery = 0; |
835 buildJobConfigurationQuery() { | 835 buildJobConfigurationQuery() { |
836 var o = new api.JobConfigurationQuery(); | 836 var o = new api.JobConfigurationQuery(); |
837 buildCounterJobConfigurationQuery++; | 837 buildCounterJobConfigurationQuery++; |
838 if (buildCounterJobConfigurationQuery < 3) { | 838 if (buildCounterJobConfigurationQuery < 3) { |
839 o.allowLargeResults = true; | 839 o.allowLargeResults = true; |
840 o.createDisposition = "foo"; | 840 o.createDisposition = "foo"; |
841 o.defaultDataset = buildDatasetReference(); | 841 o.defaultDataset = buildDatasetReference(); |
842 o.destinationTable = buildTableReference(); | 842 o.destinationTable = buildTableReference(); |
843 o.flattenResults = true; | 843 o.flattenResults = true; |
844 o.maximumBillingTier = 42; | 844 o.maximumBillingTier = 42; |
845 o.preserveNulls = true; | 845 o.preserveNulls = true; |
846 o.priority = "foo"; | 846 o.priority = "foo"; |
847 o.query = "foo"; | 847 o.query = "foo"; |
848 o.tableDefinitions = buildUnnamed454(); | 848 o.tableDefinitions = buildUnnamed2909(); |
849 o.useLegacySql = true; | 849 o.useLegacySql = true; |
850 o.useQueryCache = true; | 850 o.useQueryCache = true; |
851 o.userDefinedFunctionResources = buildUnnamed455(); | 851 o.userDefinedFunctionResources = buildUnnamed2910(); |
852 o.writeDisposition = "foo"; | 852 o.writeDisposition = "foo"; |
853 } | 853 } |
854 buildCounterJobConfigurationQuery--; | 854 buildCounterJobConfigurationQuery--; |
855 return o; | 855 return o; |
856 } | 856 } |
857 | 857 |
858 checkJobConfigurationQuery(api.JobConfigurationQuery o) { | 858 checkJobConfigurationQuery(api.JobConfigurationQuery o) { |
859 buildCounterJobConfigurationQuery++; | 859 buildCounterJobConfigurationQuery++; |
860 if (buildCounterJobConfigurationQuery < 3) { | 860 if (buildCounterJobConfigurationQuery < 3) { |
861 unittest.expect(o.allowLargeResults, unittest.isTrue); | 861 unittest.expect(o.allowLargeResults, unittest.isTrue); |
862 unittest.expect(o.createDisposition, unittest.equals('foo')); | 862 unittest.expect(o.createDisposition, unittest.equals('foo')); |
863 checkDatasetReference(o.defaultDataset); | 863 checkDatasetReference(o.defaultDataset); |
864 checkTableReference(o.destinationTable); | 864 checkTableReference(o.destinationTable); |
865 unittest.expect(o.flattenResults, unittest.isTrue); | 865 unittest.expect(o.flattenResults, unittest.isTrue); |
866 unittest.expect(o.maximumBillingTier, unittest.equals(42)); | 866 unittest.expect(o.maximumBillingTier, unittest.equals(42)); |
867 unittest.expect(o.preserveNulls, unittest.isTrue); | 867 unittest.expect(o.preserveNulls, unittest.isTrue); |
868 unittest.expect(o.priority, unittest.equals('foo')); | 868 unittest.expect(o.priority, unittest.equals('foo')); |
869 unittest.expect(o.query, unittest.equals('foo')); | 869 unittest.expect(o.query, unittest.equals('foo')); |
870 checkUnnamed454(o.tableDefinitions); | 870 checkUnnamed2909(o.tableDefinitions); |
871 unittest.expect(o.useLegacySql, unittest.isTrue); | 871 unittest.expect(o.useLegacySql, unittest.isTrue); |
872 unittest.expect(o.useQueryCache, unittest.isTrue); | 872 unittest.expect(o.useQueryCache, unittest.isTrue); |
873 checkUnnamed455(o.userDefinedFunctionResources); | 873 checkUnnamed2910(o.userDefinedFunctionResources); |
874 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 874 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
875 } | 875 } |
876 buildCounterJobConfigurationQuery--; | 876 buildCounterJobConfigurationQuery--; |
877 } | 877 } |
878 | 878 |
879 buildUnnamed456() { | 879 buildUnnamed2911() { |
880 var o = new core.List<api.TableReference>(); | 880 var o = new core.List<api.TableReference>(); |
881 o.add(buildTableReference()); | 881 o.add(buildTableReference()); |
882 o.add(buildTableReference()); | 882 o.add(buildTableReference()); |
883 return o; | 883 return o; |
884 } | 884 } |
885 | 885 |
886 checkUnnamed456(core.List<api.TableReference> o) { | 886 checkUnnamed2911(core.List<api.TableReference> o) { |
887 unittest.expect(o, unittest.hasLength(2)); | 887 unittest.expect(o, unittest.hasLength(2)); |
888 checkTableReference(o[0]); | 888 checkTableReference(o[0]); |
889 checkTableReference(o[1]); | 889 checkTableReference(o[1]); |
890 } | 890 } |
891 | 891 |
892 core.int buildCounterJobConfigurationTableCopy = 0; | 892 core.int buildCounterJobConfigurationTableCopy = 0; |
893 buildJobConfigurationTableCopy() { | 893 buildJobConfigurationTableCopy() { |
894 var o = new api.JobConfigurationTableCopy(); | 894 var o = new api.JobConfigurationTableCopy(); |
895 buildCounterJobConfigurationTableCopy++; | 895 buildCounterJobConfigurationTableCopy++; |
896 if (buildCounterJobConfigurationTableCopy < 3) { | 896 if (buildCounterJobConfigurationTableCopy < 3) { |
897 o.createDisposition = "foo"; | 897 o.createDisposition = "foo"; |
898 o.destinationTable = buildTableReference(); | 898 o.destinationTable = buildTableReference(); |
899 o.sourceTable = buildTableReference(); | 899 o.sourceTable = buildTableReference(); |
900 o.sourceTables = buildUnnamed456(); | 900 o.sourceTables = buildUnnamed2911(); |
901 o.writeDisposition = "foo"; | 901 o.writeDisposition = "foo"; |
902 } | 902 } |
903 buildCounterJobConfigurationTableCopy--; | 903 buildCounterJobConfigurationTableCopy--; |
904 return o; | 904 return o; |
905 } | 905 } |
906 | 906 |
907 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { | 907 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { |
908 buildCounterJobConfigurationTableCopy++; | 908 buildCounterJobConfigurationTableCopy++; |
909 if (buildCounterJobConfigurationTableCopy < 3) { | 909 if (buildCounterJobConfigurationTableCopy < 3) { |
910 unittest.expect(o.createDisposition, unittest.equals('foo')); | 910 unittest.expect(o.createDisposition, unittest.equals('foo')); |
911 checkTableReference(o.destinationTable); | 911 checkTableReference(o.destinationTable); |
912 checkTableReference(o.sourceTable); | 912 checkTableReference(o.sourceTable); |
913 checkUnnamed456(o.sourceTables); | 913 checkUnnamed2911(o.sourceTables); |
914 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 914 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
915 } | 915 } |
916 buildCounterJobConfigurationTableCopy--; | 916 buildCounterJobConfigurationTableCopy--; |
917 } | 917 } |
918 | 918 |
919 core.int buildCounterJobListJobs = 0; | 919 core.int buildCounterJobListJobs = 0; |
920 buildJobListJobs() { | 920 buildJobListJobs() { |
921 var o = new api.JobListJobs(); | 921 var o = new api.JobListJobs(); |
922 buildCounterJobListJobs++; | 922 buildCounterJobListJobs++; |
923 if (buildCounterJobListJobs < 3) { | 923 if (buildCounterJobListJobs < 3) { |
(...skipping 20 matching lines...) Expand all Loading... |
944 checkJobReference(o.jobReference); | 944 checkJobReference(o.jobReference); |
945 unittest.expect(o.kind, unittest.equals('foo')); | 945 unittest.expect(o.kind, unittest.equals('foo')); |
946 unittest.expect(o.state, unittest.equals('foo')); | 946 unittest.expect(o.state, unittest.equals('foo')); |
947 checkJobStatistics(o.statistics); | 947 checkJobStatistics(o.statistics); |
948 checkJobStatus(o.status); | 948 checkJobStatus(o.status); |
949 unittest.expect(o.userEmail, unittest.equals('foo')); | 949 unittest.expect(o.userEmail, unittest.equals('foo')); |
950 } | 950 } |
951 buildCounterJobListJobs--; | 951 buildCounterJobListJobs--; |
952 } | 952 } |
953 | 953 |
954 buildUnnamed457() { | 954 buildUnnamed2912() { |
955 var o = new core.List<api.JobListJobs>(); | 955 var o = new core.List<api.JobListJobs>(); |
956 o.add(buildJobListJobs()); | 956 o.add(buildJobListJobs()); |
957 o.add(buildJobListJobs()); | 957 o.add(buildJobListJobs()); |
958 return o; | 958 return o; |
959 } | 959 } |
960 | 960 |
961 checkUnnamed457(core.List<api.JobListJobs> o) { | 961 checkUnnamed2912(core.List<api.JobListJobs> o) { |
962 unittest.expect(o, unittest.hasLength(2)); | 962 unittest.expect(o, unittest.hasLength(2)); |
963 checkJobListJobs(o[0]); | 963 checkJobListJobs(o[0]); |
964 checkJobListJobs(o[1]); | 964 checkJobListJobs(o[1]); |
965 } | 965 } |
966 | 966 |
967 core.int buildCounterJobList = 0; | 967 core.int buildCounterJobList = 0; |
968 buildJobList() { | 968 buildJobList() { |
969 var o = new api.JobList(); | 969 var o = new api.JobList(); |
970 buildCounterJobList++; | 970 buildCounterJobList++; |
971 if (buildCounterJobList < 3) { | 971 if (buildCounterJobList < 3) { |
972 o.etag = "foo"; | 972 o.etag = "foo"; |
973 o.jobs = buildUnnamed457(); | 973 o.jobs = buildUnnamed2912(); |
974 o.kind = "foo"; | 974 o.kind = "foo"; |
975 o.nextPageToken = "foo"; | 975 o.nextPageToken = "foo"; |
976 } | 976 } |
977 buildCounterJobList--; | 977 buildCounterJobList--; |
978 return o; | 978 return o; |
979 } | 979 } |
980 | 980 |
981 checkJobList(api.JobList o) { | 981 checkJobList(api.JobList o) { |
982 buildCounterJobList++; | 982 buildCounterJobList++; |
983 if (buildCounterJobList < 3) { | 983 if (buildCounterJobList < 3) { |
984 unittest.expect(o.etag, unittest.equals('foo')); | 984 unittest.expect(o.etag, unittest.equals('foo')); |
985 checkUnnamed457(o.jobs); | 985 checkUnnamed2912(o.jobs); |
986 unittest.expect(o.kind, unittest.equals('foo')); | 986 unittest.expect(o.kind, unittest.equals('foo')); |
987 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 987 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
988 } | 988 } |
989 buildCounterJobList--; | 989 buildCounterJobList--; |
990 } | 990 } |
991 | 991 |
992 core.int buildCounterJobReference = 0; | 992 core.int buildCounterJobReference = 0; |
993 buildJobReference() { | 993 buildJobReference() { |
994 var o = new api.JobReference(); | 994 var o = new api.JobReference(); |
995 buildCounterJobReference++; | 995 buildCounterJobReference++; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1034 unittest.expect(o.endTime, unittest.equals('foo')); | 1034 unittest.expect(o.endTime, unittest.equals('foo')); |
1035 checkJobStatistics4(o.extract); | 1035 checkJobStatistics4(o.extract); |
1036 checkJobStatistics3(o.load); | 1036 checkJobStatistics3(o.load); |
1037 checkJobStatistics2(o.query); | 1037 checkJobStatistics2(o.query); |
1038 unittest.expect(o.startTime, unittest.equals('foo')); | 1038 unittest.expect(o.startTime, unittest.equals('foo')); |
1039 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1039 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
1040 } | 1040 } |
1041 buildCounterJobStatistics--; | 1041 buildCounterJobStatistics--; |
1042 } | 1042 } |
1043 | 1043 |
1044 buildUnnamed458() { | 1044 buildUnnamed2913() { |
1045 var o = new core.List<api.ExplainQueryStage>(); | 1045 var o = new core.List<api.ExplainQueryStage>(); |
1046 o.add(buildExplainQueryStage()); | 1046 o.add(buildExplainQueryStage()); |
1047 o.add(buildExplainQueryStage()); | 1047 o.add(buildExplainQueryStage()); |
1048 return o; | 1048 return o; |
1049 } | 1049 } |
1050 | 1050 |
1051 checkUnnamed458(core.List<api.ExplainQueryStage> o) { | 1051 checkUnnamed2913(core.List<api.ExplainQueryStage> o) { |
1052 unittest.expect(o, unittest.hasLength(2)); | 1052 unittest.expect(o, unittest.hasLength(2)); |
1053 checkExplainQueryStage(o[0]); | 1053 checkExplainQueryStage(o[0]); |
1054 checkExplainQueryStage(o[1]); | 1054 checkExplainQueryStage(o[1]); |
1055 } | 1055 } |
1056 | 1056 |
1057 buildUnnamed459() { | 1057 buildUnnamed2914() { |
1058 var o = new core.List<api.TableReference>(); | 1058 var o = new core.List<api.TableReference>(); |
1059 o.add(buildTableReference()); | 1059 o.add(buildTableReference()); |
1060 o.add(buildTableReference()); | 1060 o.add(buildTableReference()); |
1061 return o; | 1061 return o; |
1062 } | 1062 } |
1063 | 1063 |
1064 checkUnnamed459(core.List<api.TableReference> o) { | 1064 checkUnnamed2914(core.List<api.TableReference> o) { |
1065 unittest.expect(o, unittest.hasLength(2)); | 1065 unittest.expect(o, unittest.hasLength(2)); |
1066 checkTableReference(o[0]); | 1066 checkTableReference(o[0]); |
1067 checkTableReference(o[1]); | 1067 checkTableReference(o[1]); |
1068 } | 1068 } |
1069 | 1069 |
1070 core.int buildCounterJobStatistics2 = 0; | 1070 core.int buildCounterJobStatistics2 = 0; |
1071 buildJobStatistics2() { | 1071 buildJobStatistics2() { |
1072 var o = new api.JobStatistics2(); | 1072 var o = new api.JobStatistics2(); |
1073 buildCounterJobStatistics2++; | 1073 buildCounterJobStatistics2++; |
1074 if (buildCounterJobStatistics2 < 3) { | 1074 if (buildCounterJobStatistics2 < 3) { |
1075 o.billingTier = 42; | 1075 o.billingTier = 42; |
1076 o.cacheHit = true; | 1076 o.cacheHit = true; |
1077 o.queryPlan = buildUnnamed458(); | 1077 o.queryPlan = buildUnnamed2913(); |
1078 o.referencedTables = buildUnnamed459(); | 1078 o.referencedTables = buildUnnamed2914(); |
1079 o.schema = buildTableSchema(); | 1079 o.schema = buildTableSchema(); |
1080 o.totalBytesBilled = "foo"; | 1080 o.totalBytesBilled = "foo"; |
1081 o.totalBytesProcessed = "foo"; | 1081 o.totalBytesProcessed = "foo"; |
1082 } | 1082 } |
1083 buildCounterJobStatistics2--; | 1083 buildCounterJobStatistics2--; |
1084 return o; | 1084 return o; |
1085 } | 1085 } |
1086 | 1086 |
1087 checkJobStatistics2(api.JobStatistics2 o) { | 1087 checkJobStatistics2(api.JobStatistics2 o) { |
1088 buildCounterJobStatistics2++; | 1088 buildCounterJobStatistics2++; |
1089 if (buildCounterJobStatistics2 < 3) { | 1089 if (buildCounterJobStatistics2 < 3) { |
1090 unittest.expect(o.billingTier, unittest.equals(42)); | 1090 unittest.expect(o.billingTier, unittest.equals(42)); |
1091 unittest.expect(o.cacheHit, unittest.isTrue); | 1091 unittest.expect(o.cacheHit, unittest.isTrue); |
1092 checkUnnamed458(o.queryPlan); | 1092 checkUnnamed2913(o.queryPlan); |
1093 checkUnnamed459(o.referencedTables); | 1093 checkUnnamed2914(o.referencedTables); |
1094 checkTableSchema(o.schema); | 1094 checkTableSchema(o.schema); |
1095 unittest.expect(o.totalBytesBilled, unittest.equals('foo')); | 1095 unittest.expect(o.totalBytesBilled, unittest.equals('foo')); |
1096 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1096 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
1097 } | 1097 } |
1098 buildCounterJobStatistics2--; | 1098 buildCounterJobStatistics2--; |
1099 } | 1099 } |
1100 | 1100 |
1101 core.int buildCounterJobStatistics3 = 0; | 1101 core.int buildCounterJobStatistics3 = 0; |
1102 buildJobStatistics3() { | 1102 buildJobStatistics3() { |
1103 var o = new api.JobStatistics3(); | 1103 var o = new api.JobStatistics3(); |
(...skipping 12 matching lines...) Expand all Loading... |
1116 buildCounterJobStatistics3++; | 1116 buildCounterJobStatistics3++; |
1117 if (buildCounterJobStatistics3 < 3) { | 1117 if (buildCounterJobStatistics3 < 3) { |
1118 unittest.expect(o.inputFileBytes, unittest.equals('foo')); | 1118 unittest.expect(o.inputFileBytes, unittest.equals('foo')); |
1119 unittest.expect(o.inputFiles, unittest.equals('foo')); | 1119 unittest.expect(o.inputFiles, unittest.equals('foo')); |
1120 unittest.expect(o.outputBytes, unittest.equals('foo')); | 1120 unittest.expect(o.outputBytes, unittest.equals('foo')); |
1121 unittest.expect(o.outputRows, unittest.equals('foo')); | 1121 unittest.expect(o.outputRows, unittest.equals('foo')); |
1122 } | 1122 } |
1123 buildCounterJobStatistics3--; | 1123 buildCounterJobStatistics3--; |
1124 } | 1124 } |
1125 | 1125 |
1126 buildUnnamed460() { | 1126 buildUnnamed2915() { |
1127 var o = new core.List<core.String>(); | 1127 var o = new core.List<core.String>(); |
1128 o.add("foo"); | 1128 o.add("foo"); |
1129 o.add("foo"); | 1129 o.add("foo"); |
1130 return o; | 1130 return o; |
1131 } | 1131 } |
1132 | 1132 |
1133 checkUnnamed460(core.List<core.String> o) { | 1133 checkUnnamed2915(core.List<core.String> o) { |
1134 unittest.expect(o, unittest.hasLength(2)); | 1134 unittest.expect(o, unittest.hasLength(2)); |
1135 unittest.expect(o[0], unittest.equals('foo')); | 1135 unittest.expect(o[0], unittest.equals('foo')); |
1136 unittest.expect(o[1], unittest.equals('foo')); | 1136 unittest.expect(o[1], unittest.equals('foo')); |
1137 } | 1137 } |
1138 | 1138 |
1139 core.int buildCounterJobStatistics4 = 0; | 1139 core.int buildCounterJobStatistics4 = 0; |
1140 buildJobStatistics4() { | 1140 buildJobStatistics4() { |
1141 var o = new api.JobStatistics4(); | 1141 var o = new api.JobStatistics4(); |
1142 buildCounterJobStatistics4++; | 1142 buildCounterJobStatistics4++; |
1143 if (buildCounterJobStatistics4 < 3) { | 1143 if (buildCounterJobStatistics4 < 3) { |
1144 o.destinationUriFileCounts = buildUnnamed460(); | 1144 o.destinationUriFileCounts = buildUnnamed2915(); |
1145 } | 1145 } |
1146 buildCounterJobStatistics4--; | 1146 buildCounterJobStatistics4--; |
1147 return o; | 1147 return o; |
1148 } | 1148 } |
1149 | 1149 |
1150 checkJobStatistics4(api.JobStatistics4 o) { | 1150 checkJobStatistics4(api.JobStatistics4 o) { |
1151 buildCounterJobStatistics4++; | 1151 buildCounterJobStatistics4++; |
1152 if (buildCounterJobStatistics4 < 3) { | 1152 if (buildCounterJobStatistics4 < 3) { |
1153 checkUnnamed460(o.destinationUriFileCounts); | 1153 checkUnnamed2915(o.destinationUriFileCounts); |
1154 } | 1154 } |
1155 buildCounterJobStatistics4--; | 1155 buildCounterJobStatistics4--; |
1156 } | 1156 } |
1157 | 1157 |
1158 buildUnnamed461() { | 1158 buildUnnamed2916() { |
1159 var o = new core.List<api.ErrorProto>(); | 1159 var o = new core.List<api.ErrorProto>(); |
1160 o.add(buildErrorProto()); | 1160 o.add(buildErrorProto()); |
1161 o.add(buildErrorProto()); | 1161 o.add(buildErrorProto()); |
1162 return o; | 1162 return o; |
1163 } | 1163 } |
1164 | 1164 |
1165 checkUnnamed461(core.List<api.ErrorProto> o) { | 1165 checkUnnamed2916(core.List<api.ErrorProto> o) { |
1166 unittest.expect(o, unittest.hasLength(2)); | 1166 unittest.expect(o, unittest.hasLength(2)); |
1167 checkErrorProto(o[0]); | 1167 checkErrorProto(o[0]); |
1168 checkErrorProto(o[1]); | 1168 checkErrorProto(o[1]); |
1169 } | 1169 } |
1170 | 1170 |
1171 core.int buildCounterJobStatus = 0; | 1171 core.int buildCounterJobStatus = 0; |
1172 buildJobStatus() { | 1172 buildJobStatus() { |
1173 var o = new api.JobStatus(); | 1173 var o = new api.JobStatus(); |
1174 buildCounterJobStatus++; | 1174 buildCounterJobStatus++; |
1175 if (buildCounterJobStatus < 3) { | 1175 if (buildCounterJobStatus < 3) { |
1176 o.errorResult = buildErrorProto(); | 1176 o.errorResult = buildErrorProto(); |
1177 o.errors = buildUnnamed461(); | 1177 o.errors = buildUnnamed2916(); |
1178 o.state = "foo"; | 1178 o.state = "foo"; |
1179 } | 1179 } |
1180 buildCounterJobStatus--; | 1180 buildCounterJobStatus--; |
1181 return o; | 1181 return o; |
1182 } | 1182 } |
1183 | 1183 |
1184 checkJobStatus(api.JobStatus o) { | 1184 checkJobStatus(api.JobStatus o) { |
1185 buildCounterJobStatus++; | 1185 buildCounterJobStatus++; |
1186 if (buildCounterJobStatus < 3) { | 1186 if (buildCounterJobStatus < 3) { |
1187 checkErrorProto(o.errorResult); | 1187 checkErrorProto(o.errorResult); |
1188 checkUnnamed461(o.errors); | 1188 checkUnnamed2916(o.errors); |
1189 unittest.expect(o.state, unittest.equals('foo')); | 1189 unittest.expect(o.state, unittest.equals('foo')); |
1190 } | 1190 } |
1191 buildCounterJobStatus--; | 1191 buildCounterJobStatus--; |
1192 } | 1192 } |
1193 | 1193 |
1194 buildJsonObject() { | 1194 buildJsonObject() { |
1195 var o = new api.JsonObject(); | 1195 var o = new api.JsonObject(); |
1196 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1196 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1197 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1197 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1198 return o; | 1198 return o; |
(...skipping 25 matching lines...) Expand all Loading... |
1224 if (buildCounterProjectListProjects < 3) { | 1224 if (buildCounterProjectListProjects < 3) { |
1225 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1225 unittest.expect(o.friendlyName, unittest.equals('foo')); |
1226 unittest.expect(o.id, unittest.equals('foo')); | 1226 unittest.expect(o.id, unittest.equals('foo')); |
1227 unittest.expect(o.kind, unittest.equals('foo')); | 1227 unittest.expect(o.kind, unittest.equals('foo')); |
1228 unittest.expect(o.numericId, unittest.equals('foo')); | 1228 unittest.expect(o.numericId, unittest.equals('foo')); |
1229 checkProjectReference(o.projectReference); | 1229 checkProjectReference(o.projectReference); |
1230 } | 1230 } |
1231 buildCounterProjectListProjects--; | 1231 buildCounterProjectListProjects--; |
1232 } | 1232 } |
1233 | 1233 |
1234 buildUnnamed462() { | 1234 buildUnnamed2917() { |
1235 var o = new core.List<api.ProjectListProjects>(); | 1235 var o = new core.List<api.ProjectListProjects>(); |
1236 o.add(buildProjectListProjects()); | 1236 o.add(buildProjectListProjects()); |
1237 o.add(buildProjectListProjects()); | 1237 o.add(buildProjectListProjects()); |
1238 return o; | 1238 return o; |
1239 } | 1239 } |
1240 | 1240 |
1241 checkUnnamed462(core.List<api.ProjectListProjects> o) { | 1241 checkUnnamed2917(core.List<api.ProjectListProjects> o) { |
1242 unittest.expect(o, unittest.hasLength(2)); | 1242 unittest.expect(o, unittest.hasLength(2)); |
1243 checkProjectListProjects(o[0]); | 1243 checkProjectListProjects(o[0]); |
1244 checkProjectListProjects(o[1]); | 1244 checkProjectListProjects(o[1]); |
1245 } | 1245 } |
1246 | 1246 |
1247 core.int buildCounterProjectList = 0; | 1247 core.int buildCounterProjectList = 0; |
1248 buildProjectList() { | 1248 buildProjectList() { |
1249 var o = new api.ProjectList(); | 1249 var o = new api.ProjectList(); |
1250 buildCounterProjectList++; | 1250 buildCounterProjectList++; |
1251 if (buildCounterProjectList < 3) { | 1251 if (buildCounterProjectList < 3) { |
1252 o.etag = "foo"; | 1252 o.etag = "foo"; |
1253 o.kind = "foo"; | 1253 o.kind = "foo"; |
1254 o.nextPageToken = "foo"; | 1254 o.nextPageToken = "foo"; |
1255 o.projects = buildUnnamed462(); | 1255 o.projects = buildUnnamed2917(); |
1256 o.totalItems = 42; | 1256 o.totalItems = 42; |
1257 } | 1257 } |
1258 buildCounterProjectList--; | 1258 buildCounterProjectList--; |
1259 return o; | 1259 return o; |
1260 } | 1260 } |
1261 | 1261 |
1262 checkProjectList(api.ProjectList o) { | 1262 checkProjectList(api.ProjectList o) { |
1263 buildCounterProjectList++; | 1263 buildCounterProjectList++; |
1264 if (buildCounterProjectList < 3) { | 1264 if (buildCounterProjectList < 3) { |
1265 unittest.expect(o.etag, unittest.equals('foo')); | 1265 unittest.expect(o.etag, unittest.equals('foo')); |
1266 unittest.expect(o.kind, unittest.equals('foo')); | 1266 unittest.expect(o.kind, unittest.equals('foo')); |
1267 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1267 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1268 checkUnnamed462(o.projects); | 1268 checkUnnamed2917(o.projects); |
1269 unittest.expect(o.totalItems, unittest.equals(42)); | 1269 unittest.expect(o.totalItems, unittest.equals(42)); |
1270 } | 1270 } |
1271 buildCounterProjectList--; | 1271 buildCounterProjectList--; |
1272 } | 1272 } |
1273 | 1273 |
1274 core.int buildCounterProjectReference = 0; | 1274 core.int buildCounterProjectReference = 0; |
1275 buildProjectReference() { | 1275 buildProjectReference() { |
1276 var o = new api.ProjectReference(); | 1276 var o = new api.ProjectReference(); |
1277 buildCounterProjectReference++; | 1277 buildCounterProjectReference++; |
1278 if (buildCounterProjectReference < 3) { | 1278 if (buildCounterProjectReference < 3) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1318 unittest.expect(o.maxResults, unittest.equals(42)); | 1318 unittest.expect(o.maxResults, unittest.equals(42)); |
1319 unittest.expect(o.preserveNulls, unittest.isTrue); | 1319 unittest.expect(o.preserveNulls, unittest.isTrue); |
1320 unittest.expect(o.query, unittest.equals('foo')); | 1320 unittest.expect(o.query, unittest.equals('foo')); |
1321 unittest.expect(o.timeoutMs, unittest.equals(42)); | 1321 unittest.expect(o.timeoutMs, unittest.equals(42)); |
1322 unittest.expect(o.useLegacySql, unittest.isTrue); | 1322 unittest.expect(o.useLegacySql, unittest.isTrue); |
1323 unittest.expect(o.useQueryCache, unittest.isTrue); | 1323 unittest.expect(o.useQueryCache, unittest.isTrue); |
1324 } | 1324 } |
1325 buildCounterQueryRequest--; | 1325 buildCounterQueryRequest--; |
1326 } | 1326 } |
1327 | 1327 |
1328 buildUnnamed463() { | 1328 buildUnnamed2918() { |
1329 var o = new core.List<api.ErrorProto>(); | 1329 var o = new core.List<api.ErrorProto>(); |
1330 o.add(buildErrorProto()); | 1330 o.add(buildErrorProto()); |
1331 o.add(buildErrorProto()); | 1331 o.add(buildErrorProto()); |
1332 return o; | 1332 return o; |
1333 } | 1333 } |
1334 | 1334 |
1335 checkUnnamed463(core.List<api.ErrorProto> o) { | 1335 checkUnnamed2918(core.List<api.ErrorProto> o) { |
1336 unittest.expect(o, unittest.hasLength(2)); | 1336 unittest.expect(o, unittest.hasLength(2)); |
1337 checkErrorProto(o[0]); | 1337 checkErrorProto(o[0]); |
1338 checkErrorProto(o[1]); | 1338 checkErrorProto(o[1]); |
1339 } | 1339 } |
1340 | 1340 |
1341 buildUnnamed464() { | 1341 buildUnnamed2919() { |
1342 var o = new core.List<api.TableRow>(); | 1342 var o = new core.List<api.TableRow>(); |
1343 o.add(buildTableRow()); | 1343 o.add(buildTableRow()); |
1344 o.add(buildTableRow()); | 1344 o.add(buildTableRow()); |
1345 return o; | 1345 return o; |
1346 } | 1346 } |
1347 | 1347 |
1348 checkUnnamed464(core.List<api.TableRow> o) { | 1348 checkUnnamed2919(core.List<api.TableRow> o) { |
1349 unittest.expect(o, unittest.hasLength(2)); | 1349 unittest.expect(o, unittest.hasLength(2)); |
1350 checkTableRow(o[0]); | 1350 checkTableRow(o[0]); |
1351 checkTableRow(o[1]); | 1351 checkTableRow(o[1]); |
1352 } | 1352 } |
1353 | 1353 |
1354 core.int buildCounterQueryResponse = 0; | 1354 core.int buildCounterQueryResponse = 0; |
1355 buildQueryResponse() { | 1355 buildQueryResponse() { |
1356 var o = new api.QueryResponse(); | 1356 var o = new api.QueryResponse(); |
1357 buildCounterQueryResponse++; | 1357 buildCounterQueryResponse++; |
1358 if (buildCounterQueryResponse < 3) { | 1358 if (buildCounterQueryResponse < 3) { |
1359 o.cacheHit = true; | 1359 o.cacheHit = true; |
1360 o.errors = buildUnnamed463(); | 1360 o.errors = buildUnnamed2918(); |
1361 o.jobComplete = true; | 1361 o.jobComplete = true; |
1362 o.jobReference = buildJobReference(); | 1362 o.jobReference = buildJobReference(); |
1363 o.kind = "foo"; | 1363 o.kind = "foo"; |
1364 o.pageToken = "foo"; | 1364 o.pageToken = "foo"; |
1365 o.rows = buildUnnamed464(); | 1365 o.rows = buildUnnamed2919(); |
1366 o.schema = buildTableSchema(); | 1366 o.schema = buildTableSchema(); |
1367 o.totalBytesProcessed = "foo"; | 1367 o.totalBytesProcessed = "foo"; |
1368 o.totalRows = "foo"; | 1368 o.totalRows = "foo"; |
1369 } | 1369 } |
1370 buildCounterQueryResponse--; | 1370 buildCounterQueryResponse--; |
1371 return o; | 1371 return o; |
1372 } | 1372 } |
1373 | 1373 |
1374 checkQueryResponse(api.QueryResponse o) { | 1374 checkQueryResponse(api.QueryResponse o) { |
1375 buildCounterQueryResponse++; | 1375 buildCounterQueryResponse++; |
1376 if (buildCounterQueryResponse < 3) { | 1376 if (buildCounterQueryResponse < 3) { |
1377 unittest.expect(o.cacheHit, unittest.isTrue); | 1377 unittest.expect(o.cacheHit, unittest.isTrue); |
1378 checkUnnamed463(o.errors); | 1378 checkUnnamed2918(o.errors); |
1379 unittest.expect(o.jobComplete, unittest.isTrue); | 1379 unittest.expect(o.jobComplete, unittest.isTrue); |
1380 checkJobReference(o.jobReference); | 1380 checkJobReference(o.jobReference); |
1381 unittest.expect(o.kind, unittest.equals('foo')); | 1381 unittest.expect(o.kind, unittest.equals('foo')); |
1382 unittest.expect(o.pageToken, unittest.equals('foo')); | 1382 unittest.expect(o.pageToken, unittest.equals('foo')); |
1383 checkUnnamed464(o.rows); | 1383 checkUnnamed2919(o.rows); |
1384 checkTableSchema(o.schema); | 1384 checkTableSchema(o.schema); |
1385 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1385 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
1386 unittest.expect(o.totalRows, unittest.equals('foo')); | 1386 unittest.expect(o.totalRows, unittest.equals('foo')); |
1387 } | 1387 } |
1388 buildCounterQueryResponse--; | 1388 buildCounterQueryResponse--; |
1389 } | 1389 } |
1390 | 1390 |
1391 core.int buildCounterStreamingbuffer = 0; | 1391 core.int buildCounterStreamingbuffer = 0; |
1392 buildStreamingbuffer() { | 1392 buildStreamingbuffer() { |
1393 var o = new api.Streamingbuffer(); | 1393 var o = new api.Streamingbuffer(); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1501 | 1501 |
1502 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { | 1502 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { |
1503 buildCounterTableDataInsertAllRequestRows++; | 1503 buildCounterTableDataInsertAllRequestRows++; |
1504 if (buildCounterTableDataInsertAllRequestRows < 3) { | 1504 if (buildCounterTableDataInsertAllRequestRows < 3) { |
1505 unittest.expect(o.insertId, unittest.equals('foo')); | 1505 unittest.expect(o.insertId, unittest.equals('foo')); |
1506 checkJsonObject(o.json); | 1506 checkJsonObject(o.json); |
1507 } | 1507 } |
1508 buildCounterTableDataInsertAllRequestRows--; | 1508 buildCounterTableDataInsertAllRequestRows--; |
1509 } | 1509 } |
1510 | 1510 |
1511 buildUnnamed465() { | 1511 buildUnnamed2920() { |
1512 var o = new core.List<api.TableDataInsertAllRequestRows>(); | 1512 var o = new core.List<api.TableDataInsertAllRequestRows>(); |
1513 o.add(buildTableDataInsertAllRequestRows()); | 1513 o.add(buildTableDataInsertAllRequestRows()); |
1514 o.add(buildTableDataInsertAllRequestRows()); | 1514 o.add(buildTableDataInsertAllRequestRows()); |
1515 return o; | 1515 return o; |
1516 } | 1516 } |
1517 | 1517 |
1518 checkUnnamed465(core.List<api.TableDataInsertAllRequestRows> o) { | 1518 checkUnnamed2920(core.List<api.TableDataInsertAllRequestRows> o) { |
1519 unittest.expect(o, unittest.hasLength(2)); | 1519 unittest.expect(o, unittest.hasLength(2)); |
1520 checkTableDataInsertAllRequestRows(o[0]); | 1520 checkTableDataInsertAllRequestRows(o[0]); |
1521 checkTableDataInsertAllRequestRows(o[1]); | 1521 checkTableDataInsertAllRequestRows(o[1]); |
1522 } | 1522 } |
1523 | 1523 |
1524 core.int buildCounterTableDataInsertAllRequest = 0; | 1524 core.int buildCounterTableDataInsertAllRequest = 0; |
1525 buildTableDataInsertAllRequest() { | 1525 buildTableDataInsertAllRequest() { |
1526 var o = new api.TableDataInsertAllRequest(); | 1526 var o = new api.TableDataInsertAllRequest(); |
1527 buildCounterTableDataInsertAllRequest++; | 1527 buildCounterTableDataInsertAllRequest++; |
1528 if (buildCounterTableDataInsertAllRequest < 3) { | 1528 if (buildCounterTableDataInsertAllRequest < 3) { |
1529 o.ignoreUnknownValues = true; | 1529 o.ignoreUnknownValues = true; |
1530 o.kind = "foo"; | 1530 o.kind = "foo"; |
1531 o.rows = buildUnnamed465(); | 1531 o.rows = buildUnnamed2920(); |
1532 o.skipInvalidRows = true; | 1532 o.skipInvalidRows = true; |
1533 o.templateSuffix = "foo"; | 1533 o.templateSuffix = "foo"; |
1534 } | 1534 } |
1535 buildCounterTableDataInsertAllRequest--; | 1535 buildCounterTableDataInsertAllRequest--; |
1536 return o; | 1536 return o; |
1537 } | 1537 } |
1538 | 1538 |
1539 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { | 1539 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { |
1540 buildCounterTableDataInsertAllRequest++; | 1540 buildCounterTableDataInsertAllRequest++; |
1541 if (buildCounterTableDataInsertAllRequest < 3) { | 1541 if (buildCounterTableDataInsertAllRequest < 3) { |
1542 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 1542 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
1543 unittest.expect(o.kind, unittest.equals('foo')); | 1543 unittest.expect(o.kind, unittest.equals('foo')); |
1544 checkUnnamed465(o.rows); | 1544 checkUnnamed2920(o.rows); |
1545 unittest.expect(o.skipInvalidRows, unittest.isTrue); | 1545 unittest.expect(o.skipInvalidRows, unittest.isTrue); |
1546 unittest.expect(o.templateSuffix, unittest.equals('foo')); | 1546 unittest.expect(o.templateSuffix, unittest.equals('foo')); |
1547 } | 1547 } |
1548 buildCounterTableDataInsertAllRequest--; | 1548 buildCounterTableDataInsertAllRequest--; |
1549 } | 1549 } |
1550 | 1550 |
1551 buildUnnamed466() { | 1551 buildUnnamed2921() { |
1552 var o = new core.List<api.ErrorProto>(); | 1552 var o = new core.List<api.ErrorProto>(); |
1553 o.add(buildErrorProto()); | 1553 o.add(buildErrorProto()); |
1554 o.add(buildErrorProto()); | 1554 o.add(buildErrorProto()); |
1555 return o; | 1555 return o; |
1556 } | 1556 } |
1557 | 1557 |
1558 checkUnnamed466(core.List<api.ErrorProto> o) { | 1558 checkUnnamed2921(core.List<api.ErrorProto> o) { |
1559 unittest.expect(o, unittest.hasLength(2)); | 1559 unittest.expect(o, unittest.hasLength(2)); |
1560 checkErrorProto(o[0]); | 1560 checkErrorProto(o[0]); |
1561 checkErrorProto(o[1]); | 1561 checkErrorProto(o[1]); |
1562 } | 1562 } |
1563 | 1563 |
1564 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; | 1564 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; |
1565 buildTableDataInsertAllResponseInsertErrors() { | 1565 buildTableDataInsertAllResponseInsertErrors() { |
1566 var o = new api.TableDataInsertAllResponseInsertErrors(); | 1566 var o = new api.TableDataInsertAllResponseInsertErrors(); |
1567 buildCounterTableDataInsertAllResponseInsertErrors++; | 1567 buildCounterTableDataInsertAllResponseInsertErrors++; |
1568 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1568 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
1569 o.errors = buildUnnamed466(); | 1569 o.errors = buildUnnamed2921(); |
1570 o.index = 42; | 1570 o.index = 42; |
1571 } | 1571 } |
1572 buildCounterTableDataInsertAllResponseInsertErrors--; | 1572 buildCounterTableDataInsertAllResponseInsertErrors--; |
1573 return o; | 1573 return o; |
1574 } | 1574 } |
1575 | 1575 |
1576 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { | 1576 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { |
1577 buildCounterTableDataInsertAllResponseInsertErrors++; | 1577 buildCounterTableDataInsertAllResponseInsertErrors++; |
1578 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1578 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
1579 checkUnnamed466(o.errors); | 1579 checkUnnamed2921(o.errors); |
1580 unittest.expect(o.index, unittest.equals(42)); | 1580 unittest.expect(o.index, unittest.equals(42)); |
1581 } | 1581 } |
1582 buildCounterTableDataInsertAllResponseInsertErrors--; | 1582 buildCounterTableDataInsertAllResponseInsertErrors--; |
1583 } | 1583 } |
1584 | 1584 |
1585 buildUnnamed467() { | 1585 buildUnnamed2922() { |
1586 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); | 1586 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); |
1587 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1587 o.add(buildTableDataInsertAllResponseInsertErrors()); |
1588 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1588 o.add(buildTableDataInsertAllResponseInsertErrors()); |
1589 return o; | 1589 return o; |
1590 } | 1590 } |
1591 | 1591 |
1592 checkUnnamed467(core.List<api.TableDataInsertAllResponseInsertErrors> o) { | 1592 checkUnnamed2922(core.List<api.TableDataInsertAllResponseInsertErrors> o) { |
1593 unittest.expect(o, unittest.hasLength(2)); | 1593 unittest.expect(o, unittest.hasLength(2)); |
1594 checkTableDataInsertAllResponseInsertErrors(o[0]); | 1594 checkTableDataInsertAllResponseInsertErrors(o[0]); |
1595 checkTableDataInsertAllResponseInsertErrors(o[1]); | 1595 checkTableDataInsertAllResponseInsertErrors(o[1]); |
1596 } | 1596 } |
1597 | 1597 |
1598 core.int buildCounterTableDataInsertAllResponse = 0; | 1598 core.int buildCounterTableDataInsertAllResponse = 0; |
1599 buildTableDataInsertAllResponse() { | 1599 buildTableDataInsertAllResponse() { |
1600 var o = new api.TableDataInsertAllResponse(); | 1600 var o = new api.TableDataInsertAllResponse(); |
1601 buildCounterTableDataInsertAllResponse++; | 1601 buildCounterTableDataInsertAllResponse++; |
1602 if (buildCounterTableDataInsertAllResponse < 3) { | 1602 if (buildCounterTableDataInsertAllResponse < 3) { |
1603 o.insertErrors = buildUnnamed467(); | 1603 o.insertErrors = buildUnnamed2922(); |
1604 o.kind = "foo"; | 1604 o.kind = "foo"; |
1605 } | 1605 } |
1606 buildCounterTableDataInsertAllResponse--; | 1606 buildCounterTableDataInsertAllResponse--; |
1607 return o; | 1607 return o; |
1608 } | 1608 } |
1609 | 1609 |
1610 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { | 1610 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { |
1611 buildCounterTableDataInsertAllResponse++; | 1611 buildCounterTableDataInsertAllResponse++; |
1612 if (buildCounterTableDataInsertAllResponse < 3) { | 1612 if (buildCounterTableDataInsertAllResponse < 3) { |
1613 checkUnnamed467(o.insertErrors); | 1613 checkUnnamed2922(o.insertErrors); |
1614 unittest.expect(o.kind, unittest.equals('foo')); | 1614 unittest.expect(o.kind, unittest.equals('foo')); |
1615 } | 1615 } |
1616 buildCounterTableDataInsertAllResponse--; | 1616 buildCounterTableDataInsertAllResponse--; |
1617 } | 1617 } |
1618 | 1618 |
1619 buildUnnamed468() { | 1619 buildUnnamed2923() { |
1620 var o = new core.List<api.TableRow>(); | 1620 var o = new core.List<api.TableRow>(); |
1621 o.add(buildTableRow()); | 1621 o.add(buildTableRow()); |
1622 o.add(buildTableRow()); | 1622 o.add(buildTableRow()); |
1623 return o; | 1623 return o; |
1624 } | 1624 } |
1625 | 1625 |
1626 checkUnnamed468(core.List<api.TableRow> o) { | 1626 checkUnnamed2923(core.List<api.TableRow> o) { |
1627 unittest.expect(o, unittest.hasLength(2)); | 1627 unittest.expect(o, unittest.hasLength(2)); |
1628 checkTableRow(o[0]); | 1628 checkTableRow(o[0]); |
1629 checkTableRow(o[1]); | 1629 checkTableRow(o[1]); |
1630 } | 1630 } |
1631 | 1631 |
1632 core.int buildCounterTableDataList = 0; | 1632 core.int buildCounterTableDataList = 0; |
1633 buildTableDataList() { | 1633 buildTableDataList() { |
1634 var o = new api.TableDataList(); | 1634 var o = new api.TableDataList(); |
1635 buildCounterTableDataList++; | 1635 buildCounterTableDataList++; |
1636 if (buildCounterTableDataList < 3) { | 1636 if (buildCounterTableDataList < 3) { |
1637 o.etag = "foo"; | 1637 o.etag = "foo"; |
1638 o.kind = "foo"; | 1638 o.kind = "foo"; |
1639 o.pageToken = "foo"; | 1639 o.pageToken = "foo"; |
1640 o.rows = buildUnnamed468(); | 1640 o.rows = buildUnnamed2923(); |
1641 o.totalRows = "foo"; | 1641 o.totalRows = "foo"; |
1642 } | 1642 } |
1643 buildCounterTableDataList--; | 1643 buildCounterTableDataList--; |
1644 return o; | 1644 return o; |
1645 } | 1645 } |
1646 | 1646 |
1647 checkTableDataList(api.TableDataList o) { | 1647 checkTableDataList(api.TableDataList o) { |
1648 buildCounterTableDataList++; | 1648 buildCounterTableDataList++; |
1649 if (buildCounterTableDataList < 3) { | 1649 if (buildCounterTableDataList < 3) { |
1650 unittest.expect(o.etag, unittest.equals('foo')); | 1650 unittest.expect(o.etag, unittest.equals('foo')); |
1651 unittest.expect(o.kind, unittest.equals('foo')); | 1651 unittest.expect(o.kind, unittest.equals('foo')); |
1652 unittest.expect(o.pageToken, unittest.equals('foo')); | 1652 unittest.expect(o.pageToken, unittest.equals('foo')); |
1653 checkUnnamed468(o.rows); | 1653 checkUnnamed2923(o.rows); |
1654 unittest.expect(o.totalRows, unittest.equals('foo')); | 1654 unittest.expect(o.totalRows, unittest.equals('foo')); |
1655 } | 1655 } |
1656 buildCounterTableDataList--; | 1656 buildCounterTableDataList--; |
1657 } | 1657 } |
1658 | 1658 |
1659 buildUnnamed469() { | 1659 buildUnnamed2924() { |
1660 var o = new core.List<api.TableFieldSchema>(); | 1660 var o = new core.List<api.TableFieldSchema>(); |
1661 o.add(buildTableFieldSchema()); | 1661 o.add(buildTableFieldSchema()); |
1662 o.add(buildTableFieldSchema()); | 1662 o.add(buildTableFieldSchema()); |
1663 return o; | 1663 return o; |
1664 } | 1664 } |
1665 | 1665 |
1666 checkUnnamed469(core.List<api.TableFieldSchema> o) { | 1666 checkUnnamed2924(core.List<api.TableFieldSchema> o) { |
1667 unittest.expect(o, unittest.hasLength(2)); | 1667 unittest.expect(o, unittest.hasLength(2)); |
1668 checkTableFieldSchema(o[0]); | 1668 checkTableFieldSchema(o[0]); |
1669 checkTableFieldSchema(o[1]); | 1669 checkTableFieldSchema(o[1]); |
1670 } | 1670 } |
1671 | 1671 |
1672 core.int buildCounterTableFieldSchema = 0; | 1672 core.int buildCounterTableFieldSchema = 0; |
1673 buildTableFieldSchema() { | 1673 buildTableFieldSchema() { |
1674 var o = new api.TableFieldSchema(); | 1674 var o = new api.TableFieldSchema(); |
1675 buildCounterTableFieldSchema++; | 1675 buildCounterTableFieldSchema++; |
1676 if (buildCounterTableFieldSchema < 3) { | 1676 if (buildCounterTableFieldSchema < 3) { |
1677 o.description = "foo"; | 1677 o.description = "foo"; |
1678 o.fields = buildUnnamed469(); | 1678 o.fields = buildUnnamed2924(); |
1679 o.mode = "foo"; | 1679 o.mode = "foo"; |
1680 o.name = "foo"; | 1680 o.name = "foo"; |
1681 o.type = "foo"; | 1681 o.type = "foo"; |
1682 } | 1682 } |
1683 buildCounterTableFieldSchema--; | 1683 buildCounterTableFieldSchema--; |
1684 return o; | 1684 return o; |
1685 } | 1685 } |
1686 | 1686 |
1687 checkTableFieldSchema(api.TableFieldSchema o) { | 1687 checkTableFieldSchema(api.TableFieldSchema o) { |
1688 buildCounterTableFieldSchema++; | 1688 buildCounterTableFieldSchema++; |
1689 if (buildCounterTableFieldSchema < 3) { | 1689 if (buildCounterTableFieldSchema < 3) { |
1690 unittest.expect(o.description, unittest.equals('foo')); | 1690 unittest.expect(o.description, unittest.equals('foo')); |
1691 checkUnnamed469(o.fields); | 1691 checkUnnamed2924(o.fields); |
1692 unittest.expect(o.mode, unittest.equals('foo')); | 1692 unittest.expect(o.mode, unittest.equals('foo')); |
1693 unittest.expect(o.name, unittest.equals('foo')); | 1693 unittest.expect(o.name, unittest.equals('foo')); |
1694 unittest.expect(o.type, unittest.equals('foo')); | 1694 unittest.expect(o.type, unittest.equals('foo')); |
1695 } | 1695 } |
1696 buildCounterTableFieldSchema--; | 1696 buildCounterTableFieldSchema--; |
1697 } | 1697 } |
1698 | 1698 |
1699 core.int buildCounterTableListTables = 0; | 1699 core.int buildCounterTableListTables = 0; |
1700 buildTableListTables() { | 1700 buildTableListTables() { |
1701 var o = new api.TableListTables(); | 1701 var o = new api.TableListTables(); |
(...skipping 14 matching lines...) Expand all Loading... |
1716 if (buildCounterTableListTables < 3) { | 1716 if (buildCounterTableListTables < 3) { |
1717 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1717 unittest.expect(o.friendlyName, unittest.equals('foo')); |
1718 unittest.expect(o.id, unittest.equals('foo')); | 1718 unittest.expect(o.id, unittest.equals('foo')); |
1719 unittest.expect(o.kind, unittest.equals('foo')); | 1719 unittest.expect(o.kind, unittest.equals('foo')); |
1720 checkTableReference(o.tableReference); | 1720 checkTableReference(o.tableReference); |
1721 unittest.expect(o.type, unittest.equals('foo')); | 1721 unittest.expect(o.type, unittest.equals('foo')); |
1722 } | 1722 } |
1723 buildCounterTableListTables--; | 1723 buildCounterTableListTables--; |
1724 } | 1724 } |
1725 | 1725 |
1726 buildUnnamed470() { | 1726 buildUnnamed2925() { |
1727 var o = new core.List<api.TableListTables>(); | 1727 var o = new core.List<api.TableListTables>(); |
1728 o.add(buildTableListTables()); | 1728 o.add(buildTableListTables()); |
1729 o.add(buildTableListTables()); | 1729 o.add(buildTableListTables()); |
1730 return o; | 1730 return o; |
1731 } | 1731 } |
1732 | 1732 |
1733 checkUnnamed470(core.List<api.TableListTables> o) { | 1733 checkUnnamed2925(core.List<api.TableListTables> o) { |
1734 unittest.expect(o, unittest.hasLength(2)); | 1734 unittest.expect(o, unittest.hasLength(2)); |
1735 checkTableListTables(o[0]); | 1735 checkTableListTables(o[0]); |
1736 checkTableListTables(o[1]); | 1736 checkTableListTables(o[1]); |
1737 } | 1737 } |
1738 | 1738 |
1739 core.int buildCounterTableList = 0; | 1739 core.int buildCounterTableList = 0; |
1740 buildTableList() { | 1740 buildTableList() { |
1741 var o = new api.TableList(); | 1741 var o = new api.TableList(); |
1742 buildCounterTableList++; | 1742 buildCounterTableList++; |
1743 if (buildCounterTableList < 3) { | 1743 if (buildCounterTableList < 3) { |
1744 o.etag = "foo"; | 1744 o.etag = "foo"; |
1745 o.kind = "foo"; | 1745 o.kind = "foo"; |
1746 o.nextPageToken = "foo"; | 1746 o.nextPageToken = "foo"; |
1747 o.tables = buildUnnamed470(); | 1747 o.tables = buildUnnamed2925(); |
1748 o.totalItems = 42; | 1748 o.totalItems = 42; |
1749 } | 1749 } |
1750 buildCounterTableList--; | 1750 buildCounterTableList--; |
1751 return o; | 1751 return o; |
1752 } | 1752 } |
1753 | 1753 |
1754 checkTableList(api.TableList o) { | 1754 checkTableList(api.TableList o) { |
1755 buildCounterTableList++; | 1755 buildCounterTableList++; |
1756 if (buildCounterTableList < 3) { | 1756 if (buildCounterTableList < 3) { |
1757 unittest.expect(o.etag, unittest.equals('foo')); | 1757 unittest.expect(o.etag, unittest.equals('foo')); |
1758 unittest.expect(o.kind, unittest.equals('foo')); | 1758 unittest.expect(o.kind, unittest.equals('foo')); |
1759 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1759 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1760 checkUnnamed470(o.tables); | 1760 checkUnnamed2925(o.tables); |
1761 unittest.expect(o.totalItems, unittest.equals(42)); | 1761 unittest.expect(o.totalItems, unittest.equals(42)); |
1762 } | 1762 } |
1763 buildCounterTableList--; | 1763 buildCounterTableList--; |
1764 } | 1764 } |
1765 | 1765 |
1766 core.int buildCounterTableReference = 0; | 1766 core.int buildCounterTableReference = 0; |
1767 buildTableReference() { | 1767 buildTableReference() { |
1768 var o = new api.TableReference(); | 1768 var o = new api.TableReference(); |
1769 buildCounterTableReference++; | 1769 buildCounterTableReference++; |
1770 if (buildCounterTableReference < 3) { | 1770 if (buildCounterTableReference < 3) { |
1771 o.datasetId = "foo"; | 1771 o.datasetId = "foo"; |
1772 o.projectId = "foo"; | 1772 o.projectId = "foo"; |
1773 o.tableId = "foo"; | 1773 o.tableId = "foo"; |
1774 } | 1774 } |
1775 buildCounterTableReference--; | 1775 buildCounterTableReference--; |
1776 return o; | 1776 return o; |
1777 } | 1777 } |
1778 | 1778 |
1779 checkTableReference(api.TableReference o) { | 1779 checkTableReference(api.TableReference o) { |
1780 buildCounterTableReference++; | 1780 buildCounterTableReference++; |
1781 if (buildCounterTableReference < 3) { | 1781 if (buildCounterTableReference < 3) { |
1782 unittest.expect(o.datasetId, unittest.equals('foo')); | 1782 unittest.expect(o.datasetId, unittest.equals('foo')); |
1783 unittest.expect(o.projectId, unittest.equals('foo')); | 1783 unittest.expect(o.projectId, unittest.equals('foo')); |
1784 unittest.expect(o.tableId, unittest.equals('foo')); | 1784 unittest.expect(o.tableId, unittest.equals('foo')); |
1785 } | 1785 } |
1786 buildCounterTableReference--; | 1786 buildCounterTableReference--; |
1787 } | 1787 } |
1788 | 1788 |
1789 buildUnnamed471() { | 1789 buildUnnamed2926() { |
1790 var o = new core.List<api.TableCell>(); | 1790 var o = new core.List<api.TableCell>(); |
1791 o.add(buildTableCell()); | 1791 o.add(buildTableCell()); |
1792 o.add(buildTableCell()); | 1792 o.add(buildTableCell()); |
1793 return o; | 1793 return o; |
1794 } | 1794 } |
1795 | 1795 |
1796 checkUnnamed471(core.List<api.TableCell> o) { | 1796 checkUnnamed2926(core.List<api.TableCell> o) { |
1797 unittest.expect(o, unittest.hasLength(2)); | 1797 unittest.expect(o, unittest.hasLength(2)); |
1798 checkTableCell(o[0]); | 1798 checkTableCell(o[0]); |
1799 checkTableCell(o[1]); | 1799 checkTableCell(o[1]); |
1800 } | 1800 } |
1801 | 1801 |
1802 core.int buildCounterTableRow = 0; | 1802 core.int buildCounterTableRow = 0; |
1803 buildTableRow() { | 1803 buildTableRow() { |
1804 var o = new api.TableRow(); | 1804 var o = new api.TableRow(); |
1805 buildCounterTableRow++; | 1805 buildCounterTableRow++; |
1806 if (buildCounterTableRow < 3) { | 1806 if (buildCounterTableRow < 3) { |
1807 o.f = buildUnnamed471(); | 1807 o.f = buildUnnamed2926(); |
1808 } | 1808 } |
1809 buildCounterTableRow--; | 1809 buildCounterTableRow--; |
1810 return o; | 1810 return o; |
1811 } | 1811 } |
1812 | 1812 |
1813 checkTableRow(api.TableRow o) { | 1813 checkTableRow(api.TableRow o) { |
1814 buildCounterTableRow++; | 1814 buildCounterTableRow++; |
1815 if (buildCounterTableRow < 3) { | 1815 if (buildCounterTableRow < 3) { |
1816 checkUnnamed471(o.f); | 1816 checkUnnamed2926(o.f); |
1817 } | 1817 } |
1818 buildCounterTableRow--; | 1818 buildCounterTableRow--; |
1819 } | 1819 } |
1820 | 1820 |
1821 buildUnnamed472() { | 1821 buildUnnamed2927() { |
1822 var o = new core.List<api.TableFieldSchema>(); | 1822 var o = new core.List<api.TableFieldSchema>(); |
1823 o.add(buildTableFieldSchema()); | 1823 o.add(buildTableFieldSchema()); |
1824 o.add(buildTableFieldSchema()); | 1824 o.add(buildTableFieldSchema()); |
1825 return o; | 1825 return o; |
1826 } | 1826 } |
1827 | 1827 |
1828 checkUnnamed472(core.List<api.TableFieldSchema> o) { | 1828 checkUnnamed2927(core.List<api.TableFieldSchema> o) { |
1829 unittest.expect(o, unittest.hasLength(2)); | 1829 unittest.expect(o, unittest.hasLength(2)); |
1830 checkTableFieldSchema(o[0]); | 1830 checkTableFieldSchema(o[0]); |
1831 checkTableFieldSchema(o[1]); | 1831 checkTableFieldSchema(o[1]); |
1832 } | 1832 } |
1833 | 1833 |
1834 core.int buildCounterTableSchema = 0; | 1834 core.int buildCounterTableSchema = 0; |
1835 buildTableSchema() { | 1835 buildTableSchema() { |
1836 var o = new api.TableSchema(); | 1836 var o = new api.TableSchema(); |
1837 buildCounterTableSchema++; | 1837 buildCounterTableSchema++; |
1838 if (buildCounterTableSchema < 3) { | 1838 if (buildCounterTableSchema < 3) { |
1839 o.fields = buildUnnamed472(); | 1839 o.fields = buildUnnamed2927(); |
1840 } | 1840 } |
1841 buildCounterTableSchema--; | 1841 buildCounterTableSchema--; |
1842 return o; | 1842 return o; |
1843 } | 1843 } |
1844 | 1844 |
1845 checkTableSchema(api.TableSchema o) { | 1845 checkTableSchema(api.TableSchema o) { |
1846 buildCounterTableSchema++; | 1846 buildCounterTableSchema++; |
1847 if (buildCounterTableSchema < 3) { | 1847 if (buildCounterTableSchema < 3) { |
1848 checkUnnamed472(o.fields); | 1848 checkUnnamed2927(o.fields); |
1849 } | 1849 } |
1850 buildCounterTableSchema--; | 1850 buildCounterTableSchema--; |
1851 } | 1851 } |
1852 | 1852 |
1853 core.int buildCounterTimePartitioning = 0; | 1853 core.int buildCounterTimePartitioning = 0; |
1854 buildTimePartitioning() { | 1854 buildTimePartitioning() { |
1855 var o = new api.TimePartitioning(); | 1855 var o = new api.TimePartitioning(); |
1856 buildCounterTimePartitioning++; | 1856 buildCounterTimePartitioning++; |
1857 if (buildCounterTimePartitioning < 3) { | 1857 if (buildCounterTimePartitioning < 3) { |
1858 o.expirationMs = "foo"; | 1858 o.expirationMs = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
1885 | 1885 |
1886 checkUserDefinedFunctionResource(api.UserDefinedFunctionResource o) { | 1886 checkUserDefinedFunctionResource(api.UserDefinedFunctionResource o) { |
1887 buildCounterUserDefinedFunctionResource++; | 1887 buildCounterUserDefinedFunctionResource++; |
1888 if (buildCounterUserDefinedFunctionResource < 3) { | 1888 if (buildCounterUserDefinedFunctionResource < 3) { |
1889 unittest.expect(o.inlineCode, unittest.equals('foo')); | 1889 unittest.expect(o.inlineCode, unittest.equals('foo')); |
1890 unittest.expect(o.resourceUri, unittest.equals('foo')); | 1890 unittest.expect(o.resourceUri, unittest.equals('foo')); |
1891 } | 1891 } |
1892 buildCounterUserDefinedFunctionResource--; | 1892 buildCounterUserDefinedFunctionResource--; |
1893 } | 1893 } |
1894 | 1894 |
1895 buildUnnamed473() { | 1895 buildUnnamed2928() { |
1896 var o = new core.List<api.UserDefinedFunctionResource>(); | 1896 var o = new core.List<api.UserDefinedFunctionResource>(); |
1897 o.add(buildUserDefinedFunctionResource()); | 1897 o.add(buildUserDefinedFunctionResource()); |
1898 o.add(buildUserDefinedFunctionResource()); | 1898 o.add(buildUserDefinedFunctionResource()); |
1899 return o; | 1899 return o; |
1900 } | 1900 } |
1901 | 1901 |
1902 checkUnnamed473(core.List<api.UserDefinedFunctionResource> o) { | 1902 checkUnnamed2928(core.List<api.UserDefinedFunctionResource> o) { |
1903 unittest.expect(o, unittest.hasLength(2)); | 1903 unittest.expect(o, unittest.hasLength(2)); |
1904 checkUserDefinedFunctionResource(o[0]); | 1904 checkUserDefinedFunctionResource(o[0]); |
1905 checkUserDefinedFunctionResource(o[1]); | 1905 checkUserDefinedFunctionResource(o[1]); |
1906 } | 1906 } |
1907 | 1907 |
1908 core.int buildCounterViewDefinition = 0; | 1908 core.int buildCounterViewDefinition = 0; |
1909 buildViewDefinition() { | 1909 buildViewDefinition() { |
1910 var o = new api.ViewDefinition(); | 1910 var o = new api.ViewDefinition(); |
1911 buildCounterViewDefinition++; | 1911 buildCounterViewDefinition++; |
1912 if (buildCounterViewDefinition < 3) { | 1912 if (buildCounterViewDefinition < 3) { |
1913 o.query = "foo"; | 1913 o.query = "foo"; |
1914 o.userDefinedFunctionResources = buildUnnamed473(); | 1914 o.useLegacySql = true; |
| 1915 o.userDefinedFunctionResources = buildUnnamed2928(); |
1915 } | 1916 } |
1916 buildCounterViewDefinition--; | 1917 buildCounterViewDefinition--; |
1917 return o; | 1918 return o; |
1918 } | 1919 } |
1919 | 1920 |
1920 checkViewDefinition(api.ViewDefinition o) { | 1921 checkViewDefinition(api.ViewDefinition o) { |
1921 buildCounterViewDefinition++; | 1922 buildCounterViewDefinition++; |
1922 if (buildCounterViewDefinition < 3) { | 1923 if (buildCounterViewDefinition < 3) { |
1923 unittest.expect(o.query, unittest.equals('foo')); | 1924 unittest.expect(o.query, unittest.equals('foo')); |
1924 checkUnnamed473(o.userDefinedFunctionResources); | 1925 unittest.expect(o.useLegacySql, unittest.isTrue); |
| 1926 checkUnnamed2928(o.userDefinedFunctionResources); |
1925 } | 1927 } |
1926 buildCounterViewDefinition--; | 1928 buildCounterViewDefinition--; |
1927 } | 1929 } |
1928 | 1930 |
1929 buildUnnamed474() { | 1931 buildUnnamed2929() { |
1930 var o = new core.List<core.String>(); | 1932 var o = new core.List<core.String>(); |
1931 o.add("foo"); | 1933 o.add("foo"); |
1932 o.add("foo"); | 1934 o.add("foo"); |
1933 return o; | 1935 return o; |
1934 } | 1936 } |
1935 | 1937 |
1936 checkUnnamed474(core.List<core.String> o) { | 1938 checkUnnamed2929(core.List<core.String> o) { |
1937 unittest.expect(o, unittest.hasLength(2)); | 1939 unittest.expect(o, unittest.hasLength(2)); |
1938 unittest.expect(o[0], unittest.equals('foo')); | 1940 unittest.expect(o[0], unittest.equals('foo')); |
1939 unittest.expect(o[1], unittest.equals('foo')); | 1941 unittest.expect(o[1], unittest.equals('foo')); |
1940 } | 1942 } |
1941 | 1943 |
1942 | 1944 |
1943 main() { | 1945 main() { |
1944 unittest.group("obj-schema-BigtableColumn", () { | 1946 unittest.group("obj-schema-BigtableColumn", () { |
1945 unittest.test("to-json--from-json", () { | 1947 unittest.test("to-json--from-json", () { |
1946 var o = buildBigtableColumn(); | 1948 var o = buildBigtableColumn(); |
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3019 | 3021 |
3020 unittest.test("method--list", () { | 3022 unittest.test("method--list", () { |
3021 | 3023 |
3022 var mock = new HttpServerMock(); | 3024 var mock = new HttpServerMock(); |
3023 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; | 3025 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; |
3024 var arg_projectId = "foo"; | 3026 var arg_projectId = "foo"; |
3025 var arg_allUsers = true; | 3027 var arg_allUsers = true; |
3026 var arg_maxResults = 42; | 3028 var arg_maxResults = 42; |
3027 var arg_pageToken = "foo"; | 3029 var arg_pageToken = "foo"; |
3028 var arg_projection = "foo"; | 3030 var arg_projection = "foo"; |
3029 var arg_stateFilter = buildUnnamed474(); | 3031 var arg_stateFilter = buildUnnamed2929(); |
3030 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3032 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3031 var path = (req.url).path; | 3033 var path = (req.url).path; |
3032 var pathOffset = 0; | 3034 var pathOffset = 0; |
3033 var index; | 3035 var index; |
3034 var subPart; | 3036 var subPart; |
3035 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3037 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3036 pathOffset += 1; | 3038 pathOffset += 1; |
3037 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); | 3039 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); |
3038 pathOffset += 12; | 3040 pathOffset += 12; |
3039 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 3041 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3740 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { | 3742 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { |
3741 checkTable(response); | 3743 checkTable(response); |
3742 }))); | 3744 }))); |
3743 }); | 3745 }); |
3744 | 3746 |
3745 }); | 3747 }); |
3746 | 3748 |
3747 | 3749 |
3748 } | 3750 } |
3749 | 3751 |
OLD | NEW |