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

Side by Side Diff: generated/googleapis_beta/test/datastore/v1beta2_test.dart

Issue 770773002: Api roll 7: 2014-12-01 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis_beta.datastore.v1beta2.test; 1 library googleapis_beta.datastore.v1beta2.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
11 import 'package:googleapis_beta/common/common.dart' as common; 11 import 'package:googleapis_beta/common/common.dart' as common;
12 import 'package:googleapis_beta/src/common_internal.dart' as common_internal; 12 import 'package:googleapis_beta/src/common_internal.dart' as common_internal;
13 import '../common/common_internal_test.dart' as common_test; 13 import '../common/common_internal_test.dart' as common_test;
14 14
15 import 'package:googleapis_beta/datastore/v1beta2.dart' as api; 15 import 'package:googleapis_beta/datastore/v1beta2.dart' as api;
16 16
17 17
18 18
19 buildUnnamed1406() { 19 buildUnnamed1207() {
20 var o = new core.List<api.Key>(); 20 var o = new core.List<api.Key>();
21 o.add(buildKey()); 21 o.add(buildKey());
22 o.add(buildKey()); 22 o.add(buildKey());
23 return o; 23 return o;
24 } 24 }
25 25
26 checkUnnamed1406(core.List<api.Key> o) { 26 checkUnnamed1207(core.List<api.Key> o) {
27 unittest.expect(o, unittest.hasLength(2)); 27 unittest.expect(o, unittest.hasLength(2));
28 checkKey(o[0]); 28 checkKey(o[0]);
29 checkKey(o[1]); 29 checkKey(o[1]);
30 } 30 }
31 31
32 core.int buildCounterAllocateIdsRequest = 0; 32 core.int buildCounterAllocateIdsRequest = 0;
33 buildAllocateIdsRequest() { 33 buildAllocateIdsRequest() {
34 var o = new api.AllocateIdsRequest(); 34 var o = new api.AllocateIdsRequest();
35 buildCounterAllocateIdsRequest++; 35 buildCounterAllocateIdsRequest++;
36 if (buildCounterAllocateIdsRequest < 3) { 36 if (buildCounterAllocateIdsRequest < 3) {
37 o.keys = buildUnnamed1406(); 37 o.keys = buildUnnamed1207();
38 } 38 }
39 buildCounterAllocateIdsRequest--; 39 buildCounterAllocateIdsRequest--;
40 return o; 40 return o;
41 } 41 }
42 42
43 checkAllocateIdsRequest(api.AllocateIdsRequest o) { 43 checkAllocateIdsRequest(api.AllocateIdsRequest o) {
44 buildCounterAllocateIdsRequest++; 44 buildCounterAllocateIdsRequest++;
45 if (buildCounterAllocateIdsRequest < 3) { 45 if (buildCounterAllocateIdsRequest < 3) {
46 checkUnnamed1406(o.keys); 46 checkUnnamed1207(o.keys);
47 } 47 }
48 buildCounterAllocateIdsRequest--; 48 buildCounterAllocateIdsRequest--;
49 } 49 }
50 50
51 buildUnnamed1407() { 51 buildUnnamed1208() {
52 var o = new core.List<api.Key>(); 52 var o = new core.List<api.Key>();
53 o.add(buildKey()); 53 o.add(buildKey());
54 o.add(buildKey()); 54 o.add(buildKey());
55 return o; 55 return o;
56 } 56 }
57 57
58 checkUnnamed1407(core.List<api.Key> o) { 58 checkUnnamed1208(core.List<api.Key> o) {
59 unittest.expect(o, unittest.hasLength(2)); 59 unittest.expect(o, unittest.hasLength(2));
60 checkKey(o[0]); 60 checkKey(o[0]);
61 checkKey(o[1]); 61 checkKey(o[1]);
62 } 62 }
63 63
64 core.int buildCounterAllocateIdsResponse = 0; 64 core.int buildCounterAllocateIdsResponse = 0;
65 buildAllocateIdsResponse() { 65 buildAllocateIdsResponse() {
66 var o = new api.AllocateIdsResponse(); 66 var o = new api.AllocateIdsResponse();
67 buildCounterAllocateIdsResponse++; 67 buildCounterAllocateIdsResponse++;
68 if (buildCounterAllocateIdsResponse < 3) { 68 if (buildCounterAllocateIdsResponse < 3) {
69 o.header = buildResponseHeader(); 69 o.header = buildResponseHeader();
70 o.keys = buildUnnamed1407(); 70 o.keys = buildUnnamed1208();
71 } 71 }
72 buildCounterAllocateIdsResponse--; 72 buildCounterAllocateIdsResponse--;
73 return o; 73 return o;
74 } 74 }
75 75
76 checkAllocateIdsResponse(api.AllocateIdsResponse o) { 76 checkAllocateIdsResponse(api.AllocateIdsResponse o) {
77 buildCounterAllocateIdsResponse++; 77 buildCounterAllocateIdsResponse++;
78 if (buildCounterAllocateIdsResponse < 3) { 78 if (buildCounterAllocateIdsResponse < 3) {
79 checkResponseHeader(o.header); 79 checkResponseHeader(o.header);
80 checkUnnamed1407(o.keys); 80 checkUnnamed1208(o.keys);
81 } 81 }
82 buildCounterAllocateIdsResponse--; 82 buildCounterAllocateIdsResponse--;
83 } 83 }
84 84
85 core.int buildCounterBeginTransactionRequest = 0; 85 core.int buildCounterBeginTransactionRequest = 0;
86 buildBeginTransactionRequest() { 86 buildBeginTransactionRequest() {
87 var o = new api.BeginTransactionRequest(); 87 var o = new api.BeginTransactionRequest();
88 buildCounterBeginTransactionRequest++; 88 buildCounterBeginTransactionRequest++;
89 if (buildCounterBeginTransactionRequest < 3) { 89 if (buildCounterBeginTransactionRequest < 3) {
90 o.isolationLevel = "foo"; 90 o.isolationLevel = "foo";
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 checkCommitResponse(api.CommitResponse o) { 162 checkCommitResponse(api.CommitResponse o) {
163 buildCounterCommitResponse++; 163 buildCounterCommitResponse++;
164 if (buildCounterCommitResponse < 3) { 164 if (buildCounterCommitResponse < 3) {
165 checkResponseHeader(o.header); 165 checkResponseHeader(o.header);
166 checkMutationResult(o.mutationResult); 166 checkMutationResult(o.mutationResult);
167 } 167 }
168 buildCounterCommitResponse--; 168 buildCounterCommitResponse--;
169 } 169 }
170 170
171 buildUnnamed1408() { 171 buildUnnamed1209() {
172 var o = new core.List<api.Filter>(); 172 var o = new core.List<api.Filter>();
173 o.add(buildFilter()); 173 o.add(buildFilter());
174 o.add(buildFilter()); 174 o.add(buildFilter());
175 return o; 175 return o;
176 } 176 }
177 177
178 checkUnnamed1408(core.List<api.Filter> o) { 178 checkUnnamed1209(core.List<api.Filter> o) {
179 unittest.expect(o, unittest.hasLength(2)); 179 unittest.expect(o, unittest.hasLength(2));
180 checkFilter(o[0]); 180 checkFilter(o[0]);
181 checkFilter(o[1]); 181 checkFilter(o[1]);
182 } 182 }
183 183
184 core.int buildCounterCompositeFilter = 0; 184 core.int buildCounterCompositeFilter = 0;
185 buildCompositeFilter() { 185 buildCompositeFilter() {
186 var o = new api.CompositeFilter(); 186 var o = new api.CompositeFilter();
187 buildCounterCompositeFilter++; 187 buildCounterCompositeFilter++;
188 if (buildCounterCompositeFilter < 3) { 188 if (buildCounterCompositeFilter < 3) {
189 o.filters = buildUnnamed1408(); 189 o.filters = buildUnnamed1209();
190 o.operator = "foo"; 190 o.operator = "foo";
191 } 191 }
192 buildCounterCompositeFilter--; 192 buildCounterCompositeFilter--;
193 return o; 193 return o;
194 } 194 }
195 195
196 checkCompositeFilter(api.CompositeFilter o) { 196 checkCompositeFilter(api.CompositeFilter o) {
197 buildCounterCompositeFilter++; 197 buildCounterCompositeFilter++;
198 if (buildCounterCompositeFilter < 3) { 198 if (buildCounterCompositeFilter < 3) {
199 checkUnnamed1408(o.filters); 199 checkUnnamed1209(o.filters);
200 unittest.expect(o.operator, unittest.equals('foo')); 200 unittest.expect(o.operator, unittest.equals('foo'));
201 } 201 }
202 buildCounterCompositeFilter--; 202 buildCounterCompositeFilter--;
203 } 203 }
204 204
205 buildUnnamed1409() { 205 buildUnnamed1210() {
206 var o = new core.Map<core.String, api.Property>(); 206 var o = new core.Map<core.String, api.Property>();
207 o["x"] = buildProperty(); 207 o["x"] = buildProperty();
208 o["y"] = buildProperty(); 208 o["y"] = buildProperty();
209 return o; 209 return o;
210 } 210 }
211 211
212 checkUnnamed1409(core.Map<core.String, api.Property> o) { 212 checkUnnamed1210(core.Map<core.String, api.Property> o) {
213 unittest.expect(o, unittest.hasLength(2)); 213 unittest.expect(o, unittest.hasLength(2));
214 checkProperty(o["x"]); 214 checkProperty(o["x"]);
215 checkProperty(o["y"]); 215 checkProperty(o["y"]);
216 } 216 }
217 217
218 core.int buildCounterEntity = 0; 218 core.int buildCounterEntity = 0;
219 buildEntity() { 219 buildEntity() {
220 var o = new api.Entity(); 220 var o = new api.Entity();
221 buildCounterEntity++; 221 buildCounterEntity++;
222 if (buildCounterEntity < 3) { 222 if (buildCounterEntity < 3) {
223 o.key = buildKey(); 223 o.key = buildKey();
224 o.properties = buildUnnamed1409(); 224 o.properties = buildUnnamed1210();
225 } 225 }
226 buildCounterEntity--; 226 buildCounterEntity--;
227 return o; 227 return o;
228 } 228 }
229 229
230 checkEntity(api.Entity o) { 230 checkEntity(api.Entity o) {
231 buildCounterEntity++; 231 buildCounterEntity++;
232 if (buildCounterEntity < 3) { 232 if (buildCounterEntity < 3) {
233 checkKey(o.key); 233 checkKey(o.key);
234 checkUnnamed1409(o.properties); 234 checkUnnamed1210(o.properties);
235 } 235 }
236 buildCounterEntity--; 236 buildCounterEntity--;
237 } 237 }
238 238
239 core.int buildCounterEntityResult = 0; 239 core.int buildCounterEntityResult = 0;
240 buildEntityResult() { 240 buildEntityResult() {
241 var o = new api.EntityResult(); 241 var o = new api.EntityResult();
242 buildCounterEntityResult++; 242 buildCounterEntityResult++;
243 if (buildCounterEntityResult < 3) { 243 if (buildCounterEntityResult < 3) {
244 o.entity = buildEntity(); 244 o.entity = buildEntity();
(...skipping 24 matching lines...) Expand all
269 269
270 checkFilter(api.Filter o) { 270 checkFilter(api.Filter o) {
271 buildCounterFilter++; 271 buildCounterFilter++;
272 if (buildCounterFilter < 3) { 272 if (buildCounterFilter < 3) {
273 checkCompositeFilter(o.compositeFilter); 273 checkCompositeFilter(o.compositeFilter);
274 checkPropertyFilter(o.propertyFilter); 274 checkPropertyFilter(o.propertyFilter);
275 } 275 }
276 buildCounterFilter--; 276 buildCounterFilter--;
277 } 277 }
278 278
279 buildUnnamed1410() { 279 buildUnnamed1211() {
280 var o = new core.List<api.GqlQueryArg>(); 280 var o = new core.List<api.GqlQueryArg>();
281 o.add(buildGqlQueryArg()); 281 o.add(buildGqlQueryArg());
282 o.add(buildGqlQueryArg()); 282 o.add(buildGqlQueryArg());
283 return o; 283 return o;
284 } 284 }
285 285
286 checkUnnamed1410(core.List<api.GqlQueryArg> o) { 286 checkUnnamed1211(core.List<api.GqlQueryArg> o) {
287 unittest.expect(o, unittest.hasLength(2)); 287 unittest.expect(o, unittest.hasLength(2));
288 checkGqlQueryArg(o[0]); 288 checkGqlQueryArg(o[0]);
289 checkGqlQueryArg(o[1]); 289 checkGqlQueryArg(o[1]);
290 } 290 }
291 291
292 buildUnnamed1411() { 292 buildUnnamed1212() {
293 var o = new core.List<api.GqlQueryArg>(); 293 var o = new core.List<api.GqlQueryArg>();
294 o.add(buildGqlQueryArg()); 294 o.add(buildGqlQueryArg());
295 o.add(buildGqlQueryArg()); 295 o.add(buildGqlQueryArg());
296 return o; 296 return o;
297 } 297 }
298 298
299 checkUnnamed1411(core.List<api.GqlQueryArg> o) { 299 checkUnnamed1212(core.List<api.GqlQueryArg> o) {
300 unittest.expect(o, unittest.hasLength(2)); 300 unittest.expect(o, unittest.hasLength(2));
301 checkGqlQueryArg(o[0]); 301 checkGqlQueryArg(o[0]);
302 checkGqlQueryArg(o[1]); 302 checkGqlQueryArg(o[1]);
303 } 303 }
304 304
305 core.int buildCounterGqlQuery = 0; 305 core.int buildCounterGqlQuery = 0;
306 buildGqlQuery() { 306 buildGqlQuery() {
307 var o = new api.GqlQuery(); 307 var o = new api.GqlQuery();
308 buildCounterGqlQuery++; 308 buildCounterGqlQuery++;
309 if (buildCounterGqlQuery < 3) { 309 if (buildCounterGqlQuery < 3) {
310 o.allowLiteral = true; 310 o.allowLiteral = true;
311 o.nameArgs = buildUnnamed1410(); 311 o.nameArgs = buildUnnamed1211();
312 o.numberArgs = buildUnnamed1411(); 312 o.numberArgs = buildUnnamed1212();
313 o.queryString = "foo"; 313 o.queryString = "foo";
314 } 314 }
315 buildCounterGqlQuery--; 315 buildCounterGqlQuery--;
316 return o; 316 return o;
317 } 317 }
318 318
319 checkGqlQuery(api.GqlQuery o) { 319 checkGqlQuery(api.GqlQuery o) {
320 buildCounterGqlQuery++; 320 buildCounterGqlQuery++;
321 if (buildCounterGqlQuery < 3) { 321 if (buildCounterGqlQuery < 3) {
322 unittest.expect(o.allowLiteral, unittest.isTrue); 322 unittest.expect(o.allowLiteral, unittest.isTrue);
323 checkUnnamed1410(o.nameArgs); 323 checkUnnamed1211(o.nameArgs);
324 checkUnnamed1411(o.numberArgs); 324 checkUnnamed1212(o.numberArgs);
325 unittest.expect(o.queryString, unittest.equals('foo')); 325 unittest.expect(o.queryString, unittest.equals('foo'));
326 } 326 }
327 buildCounterGqlQuery--; 327 buildCounterGqlQuery--;
328 } 328 }
329 329
330 core.int buildCounterGqlQueryArg = 0; 330 core.int buildCounterGqlQueryArg = 0;
331 buildGqlQueryArg() { 331 buildGqlQueryArg() {
332 var o = new api.GqlQueryArg(); 332 var o = new api.GqlQueryArg();
333 buildCounterGqlQueryArg++; 333 buildCounterGqlQueryArg++;
334 if (buildCounterGqlQueryArg < 3) { 334 if (buildCounterGqlQueryArg < 3) {
335 o.cursor = "foo"; 335 o.cursor = "foo";
336 o.name = "foo"; 336 o.name = "foo";
337 o.value = buildValue(); 337 o.value = buildValue();
338 } 338 }
339 buildCounterGqlQueryArg--; 339 buildCounterGqlQueryArg--;
340 return o; 340 return o;
341 } 341 }
342 342
343 checkGqlQueryArg(api.GqlQueryArg o) { 343 checkGqlQueryArg(api.GqlQueryArg o) {
344 buildCounterGqlQueryArg++; 344 buildCounterGqlQueryArg++;
345 if (buildCounterGqlQueryArg < 3) { 345 if (buildCounterGqlQueryArg < 3) {
346 unittest.expect(o.cursor, unittest.equals('foo')); 346 unittest.expect(o.cursor, unittest.equals('foo'));
347 unittest.expect(o.name, unittest.equals('foo')); 347 unittest.expect(o.name, unittest.equals('foo'));
348 checkValue(o.value); 348 checkValue(o.value);
349 } 349 }
350 buildCounterGqlQueryArg--; 350 buildCounterGqlQueryArg--;
351 } 351 }
352 352
353 buildUnnamed1412() { 353 buildUnnamed1213() {
354 var o = new core.List<api.KeyPathElement>(); 354 var o = new core.List<api.KeyPathElement>();
355 o.add(buildKeyPathElement()); 355 o.add(buildKeyPathElement());
356 o.add(buildKeyPathElement()); 356 o.add(buildKeyPathElement());
357 return o; 357 return o;
358 } 358 }
359 359
360 checkUnnamed1412(core.List<api.KeyPathElement> o) { 360 checkUnnamed1213(core.List<api.KeyPathElement> o) {
361 unittest.expect(o, unittest.hasLength(2)); 361 unittest.expect(o, unittest.hasLength(2));
362 checkKeyPathElement(o[0]); 362 checkKeyPathElement(o[0]);
363 checkKeyPathElement(o[1]); 363 checkKeyPathElement(o[1]);
364 } 364 }
365 365
366 core.int buildCounterKey = 0; 366 core.int buildCounterKey = 0;
367 buildKey() { 367 buildKey() {
368 var o = new api.Key(); 368 var o = new api.Key();
369 buildCounterKey++; 369 buildCounterKey++;
370 if (buildCounterKey < 3) { 370 if (buildCounterKey < 3) {
371 o.partitionId = buildPartitionId(); 371 o.partitionId = buildPartitionId();
372 o.path = buildUnnamed1412(); 372 o.path = buildUnnamed1213();
373 } 373 }
374 buildCounterKey--; 374 buildCounterKey--;
375 return o; 375 return o;
376 } 376 }
377 377
378 checkKey(api.Key o) { 378 checkKey(api.Key o) {
379 buildCounterKey++; 379 buildCounterKey++;
380 if (buildCounterKey < 3) { 380 if (buildCounterKey < 3) {
381 checkPartitionId(o.partitionId); 381 checkPartitionId(o.partitionId);
382 checkUnnamed1412(o.path); 382 checkUnnamed1213(o.path);
383 } 383 }
384 buildCounterKey--; 384 buildCounterKey--;
385 } 385 }
386 386
387 core.int buildCounterKeyPathElement = 0; 387 core.int buildCounterKeyPathElement = 0;
388 buildKeyPathElement() { 388 buildKeyPathElement() {
389 var o = new api.KeyPathElement(); 389 var o = new api.KeyPathElement();
390 buildCounterKeyPathElement++; 390 buildCounterKeyPathElement++;
391 if (buildCounterKeyPathElement < 3) { 391 if (buildCounterKeyPathElement < 3) {
392 o.id = "foo"; 392 o.id = "foo";
(...skipping 26 matching lines...) Expand all
419 } 419 }
420 420
421 checkKindExpression(api.KindExpression o) { 421 checkKindExpression(api.KindExpression o) {
422 buildCounterKindExpression++; 422 buildCounterKindExpression++;
423 if (buildCounterKindExpression < 3) { 423 if (buildCounterKindExpression < 3) {
424 unittest.expect(o.name, unittest.equals('foo')); 424 unittest.expect(o.name, unittest.equals('foo'));
425 } 425 }
426 buildCounterKindExpression--; 426 buildCounterKindExpression--;
427 } 427 }
428 428
429 buildUnnamed1413() { 429 buildUnnamed1214() {
430 var o = new core.List<api.Key>(); 430 var o = new core.List<api.Key>();
431 o.add(buildKey()); 431 o.add(buildKey());
432 o.add(buildKey()); 432 o.add(buildKey());
433 return o; 433 return o;
434 } 434 }
435 435
436 checkUnnamed1413(core.List<api.Key> o) { 436 checkUnnamed1214(core.List<api.Key> o) {
437 unittest.expect(o, unittest.hasLength(2)); 437 unittest.expect(o, unittest.hasLength(2));
438 checkKey(o[0]); 438 checkKey(o[0]);
439 checkKey(o[1]); 439 checkKey(o[1]);
440 } 440 }
441 441
442 core.int buildCounterLookupRequest = 0; 442 core.int buildCounterLookupRequest = 0;
443 buildLookupRequest() { 443 buildLookupRequest() {
444 var o = new api.LookupRequest(); 444 var o = new api.LookupRequest();
445 buildCounterLookupRequest++; 445 buildCounterLookupRequest++;
446 if (buildCounterLookupRequest < 3) { 446 if (buildCounterLookupRequest < 3) {
447 o.keys = buildUnnamed1413(); 447 o.keys = buildUnnamed1214();
448 o.readOptions = buildReadOptions(); 448 o.readOptions = buildReadOptions();
449 } 449 }
450 buildCounterLookupRequest--; 450 buildCounterLookupRequest--;
451 return o; 451 return o;
452 } 452 }
453 453
454 checkLookupRequest(api.LookupRequest o) { 454 checkLookupRequest(api.LookupRequest o) {
455 buildCounterLookupRequest++; 455 buildCounterLookupRequest++;
456 if (buildCounterLookupRequest < 3) { 456 if (buildCounterLookupRequest < 3) {
457 checkUnnamed1413(o.keys); 457 checkUnnamed1214(o.keys);
458 checkReadOptions(o.readOptions); 458 checkReadOptions(o.readOptions);
459 } 459 }
460 buildCounterLookupRequest--; 460 buildCounterLookupRequest--;
461 } 461 }
462 462
463 buildUnnamed1414() { 463 buildUnnamed1215() {
464 var o = new core.List<api.Key>(); 464 var o = new core.List<api.Key>();
465 o.add(buildKey()); 465 o.add(buildKey());
466 o.add(buildKey()); 466 o.add(buildKey());
467 return o; 467 return o;
468 } 468 }
469 469
470 checkUnnamed1414(core.List<api.Key> o) { 470 checkUnnamed1215(core.List<api.Key> o) {
471 unittest.expect(o, unittest.hasLength(2)); 471 unittest.expect(o, unittest.hasLength(2));
472 checkKey(o[0]); 472 checkKey(o[0]);
473 checkKey(o[1]); 473 checkKey(o[1]);
474 } 474 }
475 475
476 buildUnnamed1415() { 476 buildUnnamed1216() {
477 var o = new core.List<api.EntityResult>(); 477 var o = new core.List<api.EntityResult>();
478 o.add(buildEntityResult()); 478 o.add(buildEntityResult());
479 o.add(buildEntityResult()); 479 o.add(buildEntityResult());
480 return o; 480 return o;
481 } 481 }
482 482
483 checkUnnamed1415(core.List<api.EntityResult> o) { 483 checkUnnamed1216(core.List<api.EntityResult> o) {
484 unittest.expect(o, unittest.hasLength(2)); 484 unittest.expect(o, unittest.hasLength(2));
485 checkEntityResult(o[0]); 485 checkEntityResult(o[0]);
486 checkEntityResult(o[1]); 486 checkEntityResult(o[1]);
487 } 487 }
488 488
489 buildUnnamed1416() { 489 buildUnnamed1217() {
490 var o = new core.List<api.EntityResult>(); 490 var o = new core.List<api.EntityResult>();
491 o.add(buildEntityResult()); 491 o.add(buildEntityResult());
492 o.add(buildEntityResult()); 492 o.add(buildEntityResult());
493 return o; 493 return o;
494 } 494 }
495 495
496 checkUnnamed1416(core.List<api.EntityResult> o) { 496 checkUnnamed1217(core.List<api.EntityResult> o) {
497 unittest.expect(o, unittest.hasLength(2)); 497 unittest.expect(o, unittest.hasLength(2));
498 checkEntityResult(o[0]); 498 checkEntityResult(o[0]);
499 checkEntityResult(o[1]); 499 checkEntityResult(o[1]);
500 } 500 }
501 501
502 core.int buildCounterLookupResponse = 0; 502 core.int buildCounterLookupResponse = 0;
503 buildLookupResponse() { 503 buildLookupResponse() {
504 var o = new api.LookupResponse(); 504 var o = new api.LookupResponse();
505 buildCounterLookupResponse++; 505 buildCounterLookupResponse++;
506 if (buildCounterLookupResponse < 3) { 506 if (buildCounterLookupResponse < 3) {
507 o.deferred = buildUnnamed1414(); 507 o.deferred = buildUnnamed1215();
508 o.found = buildUnnamed1415(); 508 o.found = buildUnnamed1216();
509 o.header = buildResponseHeader(); 509 o.header = buildResponseHeader();
510 o.missing = buildUnnamed1416(); 510 o.missing = buildUnnamed1217();
511 } 511 }
512 buildCounterLookupResponse--; 512 buildCounterLookupResponse--;
513 return o; 513 return o;
514 } 514 }
515 515
516 checkLookupResponse(api.LookupResponse o) { 516 checkLookupResponse(api.LookupResponse o) {
517 buildCounterLookupResponse++; 517 buildCounterLookupResponse++;
518 if (buildCounterLookupResponse < 3) { 518 if (buildCounterLookupResponse < 3) {
519 checkUnnamed1414(o.deferred); 519 checkUnnamed1215(o.deferred);
520 checkUnnamed1415(o.found); 520 checkUnnamed1216(o.found);
521 checkResponseHeader(o.header); 521 checkResponseHeader(o.header);
522 checkUnnamed1416(o.missing); 522 checkUnnamed1217(o.missing);
523 } 523 }
524 buildCounterLookupResponse--; 524 buildCounterLookupResponse--;
525 } 525 }
526 526
527 buildUnnamed1417() { 527 buildUnnamed1218() {
528 var o = new core.List<api.Key>(); 528 var o = new core.List<api.Key>();
529 o.add(buildKey()); 529 o.add(buildKey());
530 o.add(buildKey()); 530 o.add(buildKey());
531 return o; 531 return o;
532 } 532 }
533 533
534 checkUnnamed1417(core.List<api.Key> o) { 534 checkUnnamed1218(core.List<api.Key> o) {
535 unittest.expect(o, unittest.hasLength(2)); 535 unittest.expect(o, unittest.hasLength(2));
536 checkKey(o[0]); 536 checkKey(o[0]);
537 checkKey(o[1]); 537 checkKey(o[1]);
538 } 538 }
539 539
540 buildUnnamed1418() { 540 buildUnnamed1219() {
541 var o = new core.List<api.Entity>(); 541 var o = new core.List<api.Entity>();
542 o.add(buildEntity()); 542 o.add(buildEntity());
543 o.add(buildEntity()); 543 o.add(buildEntity());
544 return o; 544 return o;
545 } 545 }
546 546
547 checkUnnamed1418(core.List<api.Entity> o) { 547 checkUnnamed1219(core.List<api.Entity> o) {
548 unittest.expect(o, unittest.hasLength(2)); 548 unittest.expect(o, unittest.hasLength(2));
549 checkEntity(o[0]); 549 checkEntity(o[0]);
550 checkEntity(o[1]); 550 checkEntity(o[1]);
551 } 551 }
552 552
553 buildUnnamed1419() { 553 buildUnnamed1220() {
554 var o = new core.List<api.Entity>(); 554 var o = new core.List<api.Entity>();
555 o.add(buildEntity()); 555 o.add(buildEntity());
556 o.add(buildEntity()); 556 o.add(buildEntity());
557 return o; 557 return o;
558 } 558 }
559 559
560 checkUnnamed1419(core.List<api.Entity> o) { 560 checkUnnamed1220(core.List<api.Entity> o) {
561 unittest.expect(o, unittest.hasLength(2)); 561 unittest.expect(o, unittest.hasLength(2));
562 checkEntity(o[0]); 562 checkEntity(o[0]);
563 checkEntity(o[1]); 563 checkEntity(o[1]);
564 } 564 }
565 565
566 buildUnnamed1420() { 566 buildUnnamed1221() {
567 var o = new core.List<api.Entity>(); 567 var o = new core.List<api.Entity>();
568 o.add(buildEntity()); 568 o.add(buildEntity());
569 o.add(buildEntity()); 569 o.add(buildEntity());
570 return o; 570 return o;
571 } 571 }
572 572
573 checkUnnamed1420(core.List<api.Entity> o) { 573 checkUnnamed1221(core.List<api.Entity> o) {
574 unittest.expect(o, unittest.hasLength(2)); 574 unittest.expect(o, unittest.hasLength(2));
575 checkEntity(o[0]); 575 checkEntity(o[0]);
576 checkEntity(o[1]); 576 checkEntity(o[1]);
577 } 577 }
578 578
579 buildUnnamed1421() { 579 buildUnnamed1222() {
580 var o = new core.List<api.Entity>(); 580 var o = new core.List<api.Entity>();
581 o.add(buildEntity()); 581 o.add(buildEntity());
582 o.add(buildEntity()); 582 o.add(buildEntity());
583 return o; 583 return o;
584 } 584 }
585 585
586 checkUnnamed1421(core.List<api.Entity> o) { 586 checkUnnamed1222(core.List<api.Entity> o) {
587 unittest.expect(o, unittest.hasLength(2)); 587 unittest.expect(o, unittest.hasLength(2));
588 checkEntity(o[0]); 588 checkEntity(o[0]);
589 checkEntity(o[1]); 589 checkEntity(o[1]);
590 } 590 }
591 591
592 core.int buildCounterMutation = 0; 592 core.int buildCounterMutation = 0;
593 buildMutation() { 593 buildMutation() {
594 var o = new api.Mutation(); 594 var o = new api.Mutation();
595 buildCounterMutation++; 595 buildCounterMutation++;
596 if (buildCounterMutation < 3) { 596 if (buildCounterMutation < 3) {
597 o.delete = buildUnnamed1417(); 597 o.delete = buildUnnamed1218();
598 o.force = true; 598 o.force = true;
599 o.insert = buildUnnamed1418(); 599 o.insert = buildUnnamed1219();
600 o.insertAutoId = buildUnnamed1419(); 600 o.insertAutoId = buildUnnamed1220();
601 o.update = buildUnnamed1420(); 601 o.update = buildUnnamed1221();
602 o.upsert = buildUnnamed1421(); 602 o.upsert = buildUnnamed1222();
603 } 603 }
604 buildCounterMutation--; 604 buildCounterMutation--;
605 return o; 605 return o;
606 } 606 }
607 607
608 checkMutation(api.Mutation o) { 608 checkMutation(api.Mutation o) {
609 buildCounterMutation++; 609 buildCounterMutation++;
610 if (buildCounterMutation < 3) { 610 if (buildCounterMutation < 3) {
611 checkUnnamed1417(o.delete); 611 checkUnnamed1218(o.delete);
612 unittest.expect(o.force, unittest.isTrue); 612 unittest.expect(o.force, unittest.isTrue);
613 checkUnnamed1418(o.insert); 613 checkUnnamed1219(o.insert);
614 checkUnnamed1419(o.insertAutoId); 614 checkUnnamed1220(o.insertAutoId);
615 checkUnnamed1420(o.update); 615 checkUnnamed1221(o.update);
616 checkUnnamed1421(o.upsert); 616 checkUnnamed1222(o.upsert);
617 } 617 }
618 buildCounterMutation--; 618 buildCounterMutation--;
619 } 619 }
620 620
621 buildUnnamed1422() { 621 buildUnnamed1223() {
622 var o = new core.List<api.Key>(); 622 var o = new core.List<api.Key>();
623 o.add(buildKey()); 623 o.add(buildKey());
624 o.add(buildKey()); 624 o.add(buildKey());
625 return o; 625 return o;
626 } 626 }
627 627
628 checkUnnamed1422(core.List<api.Key> o) { 628 checkUnnamed1223(core.List<api.Key> o) {
629 unittest.expect(o, unittest.hasLength(2)); 629 unittest.expect(o, unittest.hasLength(2));
630 checkKey(o[0]); 630 checkKey(o[0]);
631 checkKey(o[1]); 631 checkKey(o[1]);
632 } 632 }
633 633
634 core.int buildCounterMutationResult = 0; 634 core.int buildCounterMutationResult = 0;
635 buildMutationResult() { 635 buildMutationResult() {
636 var o = new api.MutationResult(); 636 var o = new api.MutationResult();
637 buildCounterMutationResult++; 637 buildCounterMutationResult++;
638 if (buildCounterMutationResult < 3) { 638 if (buildCounterMutationResult < 3) {
639 o.indexUpdates = 42; 639 o.indexUpdates = 42;
640 o.insertAutoIdKeys = buildUnnamed1422(); 640 o.insertAutoIdKeys = buildUnnamed1223();
641 } 641 }
642 buildCounterMutationResult--; 642 buildCounterMutationResult--;
643 return o; 643 return o;
644 } 644 }
645 645
646 checkMutationResult(api.MutationResult o) { 646 checkMutationResult(api.MutationResult o) {
647 buildCounterMutationResult++; 647 buildCounterMutationResult++;
648 if (buildCounterMutationResult < 3) { 648 if (buildCounterMutationResult < 3) {
649 unittest.expect(o.indexUpdates, unittest.equals(42)); 649 unittest.expect(o.indexUpdates, unittest.equals(42));
650 checkUnnamed1422(o.insertAutoIdKeys); 650 checkUnnamed1223(o.insertAutoIdKeys);
651 } 651 }
652 buildCounterMutationResult--; 652 buildCounterMutationResult--;
653 } 653 }
654 654
655 core.int buildCounterPartitionId = 0; 655 core.int buildCounterPartitionId = 0;
656 buildPartitionId() { 656 buildPartitionId() {
657 var o = new api.PartitionId(); 657 var o = new api.PartitionId();
658 buildCounterPartitionId++; 658 buildCounterPartitionId++;
659 if (buildCounterPartitionId < 3) { 659 if (buildCounterPartitionId < 3) {
660 o.datasetId = "foo"; 660 o.datasetId = "foo";
661 o.namespace = "foo"; 661 o.namespace = "foo";
662 } 662 }
663 buildCounterPartitionId--; 663 buildCounterPartitionId--;
664 return o; 664 return o;
665 } 665 }
666 666
667 checkPartitionId(api.PartitionId o) { 667 checkPartitionId(api.PartitionId o) {
668 buildCounterPartitionId++; 668 buildCounterPartitionId++;
669 if (buildCounterPartitionId < 3) { 669 if (buildCounterPartitionId < 3) {
670 unittest.expect(o.datasetId, unittest.equals('foo')); 670 unittest.expect(o.datasetId, unittest.equals('foo'));
671 unittest.expect(o.namespace, unittest.equals('foo')); 671 unittest.expect(o.namespace, unittest.equals('foo'));
672 } 672 }
673 buildCounterPartitionId--; 673 buildCounterPartitionId--;
674 } 674 }
675 675
676 buildUnnamed1423() { 676 buildUnnamed1224() {
677 var o = new core.List<api.Value>(); 677 var o = new core.List<api.Value>();
678 o.add(buildValue()); 678 o.add(buildValue());
679 o.add(buildValue()); 679 o.add(buildValue());
680 return o; 680 return o;
681 } 681 }
682 682
683 checkUnnamed1423(core.List<api.Value> o) { 683 checkUnnamed1224(core.List<api.Value> o) {
684 unittest.expect(o, unittest.hasLength(2)); 684 unittest.expect(o, unittest.hasLength(2));
685 checkValue(o[0]); 685 checkValue(o[0]);
686 checkValue(o[1]); 686 checkValue(o[1]);
687 } 687 }
688 688
689 core.int buildCounterProperty = 0; 689 core.int buildCounterProperty = 0;
690 buildProperty() { 690 buildProperty() {
691 var o = new api.Property(); 691 var o = new api.Property();
692 buildCounterProperty++; 692 buildCounterProperty++;
693 if (buildCounterProperty < 3) { 693 if (buildCounterProperty < 3) {
694 o.blobKeyValue = "foo"; 694 o.blobKeyValue = "foo";
695 o.blobValue = "foo"; 695 o.blobValue = "foo";
696 o.booleanValue = true; 696 o.booleanValue = true;
697 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02"); 697 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02");
698 o.doubleValue = 42.0; 698 o.doubleValue = 42.0;
699 o.entityValue = buildEntity(); 699 o.entityValue = buildEntity();
700 o.indexed = true; 700 o.indexed = true;
701 o.integerValue = "foo"; 701 o.integerValue = "foo";
702 o.keyValue = buildKey(); 702 o.keyValue = buildKey();
703 o.listValue = buildUnnamed1423(); 703 o.listValue = buildUnnamed1224();
704 o.meaning = 42; 704 o.meaning = 42;
705 o.stringValue = "foo"; 705 o.stringValue = "foo";
706 } 706 }
707 buildCounterProperty--; 707 buildCounterProperty--;
708 return o; 708 return o;
709 } 709 }
710 710
711 checkProperty(api.Property o) { 711 checkProperty(api.Property o) {
712 buildCounterProperty++; 712 buildCounterProperty++;
713 if (buildCounterProperty < 3) { 713 if (buildCounterProperty < 3) {
714 unittest.expect(o.blobKeyValue, unittest.equals('foo')); 714 unittest.expect(o.blobKeyValue, unittest.equals('foo'));
715 unittest.expect(o.blobValue, unittest.equals('foo')); 715 unittest.expect(o.blobValue, unittest.equals('foo'));
716 unittest.expect(o.booleanValue, unittest.isTrue); 716 unittest.expect(o.booleanValue, unittest.isTrue);
717 unittest.expect(o.dateTimeValue, unittest.equals(core.DateTime.parse("2002-0 2-27T14:01:02"))); 717 unittest.expect(o.dateTimeValue, unittest.equals(core.DateTime.parse("2002-0 2-27T14:01:02")));
718 unittest.expect(o.doubleValue, unittest.equals(42.0)); 718 unittest.expect(o.doubleValue, unittest.equals(42.0));
719 checkEntity(o.entityValue); 719 checkEntity(o.entityValue);
720 unittest.expect(o.indexed, unittest.isTrue); 720 unittest.expect(o.indexed, unittest.isTrue);
721 unittest.expect(o.integerValue, unittest.equals('foo')); 721 unittest.expect(o.integerValue, unittest.equals('foo'));
722 checkKey(o.keyValue); 722 checkKey(o.keyValue);
723 checkUnnamed1423(o.listValue); 723 checkUnnamed1224(o.listValue);
724 unittest.expect(o.meaning, unittest.equals(42)); 724 unittest.expect(o.meaning, unittest.equals(42));
725 unittest.expect(o.stringValue, unittest.equals('foo')); 725 unittest.expect(o.stringValue, unittest.equals('foo'));
726 } 726 }
727 buildCounterProperty--; 727 buildCounterProperty--;
728 } 728 }
729 729
730 core.int buildCounterPropertyExpression = 0; 730 core.int buildCounterPropertyExpression = 0;
731 buildPropertyExpression() { 731 buildPropertyExpression() {
732 var o = new api.PropertyExpression(); 732 var o = new api.PropertyExpression();
733 buildCounterPropertyExpression++; 733 buildCounterPropertyExpression++;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 } 804 }
805 805
806 checkPropertyReference(api.PropertyReference o) { 806 checkPropertyReference(api.PropertyReference o) {
807 buildCounterPropertyReference++; 807 buildCounterPropertyReference++;
808 if (buildCounterPropertyReference < 3) { 808 if (buildCounterPropertyReference < 3) {
809 unittest.expect(o.name, unittest.equals('foo')); 809 unittest.expect(o.name, unittest.equals('foo'));
810 } 810 }
811 buildCounterPropertyReference--; 811 buildCounterPropertyReference--;
812 } 812 }
813 813
814 buildUnnamed1424() { 814 buildUnnamed1225() {
815 var o = new core.List<api.PropertyReference>(); 815 var o = new core.List<api.PropertyReference>();
816 o.add(buildPropertyReference()); 816 o.add(buildPropertyReference());
817 o.add(buildPropertyReference()); 817 o.add(buildPropertyReference());
818 return o; 818 return o;
819 } 819 }
820 820
821 checkUnnamed1424(core.List<api.PropertyReference> o) { 821 checkUnnamed1225(core.List<api.PropertyReference> o) {
822 unittest.expect(o, unittest.hasLength(2)); 822 unittest.expect(o, unittest.hasLength(2));
823 checkPropertyReference(o[0]); 823 checkPropertyReference(o[0]);
824 checkPropertyReference(o[1]); 824 checkPropertyReference(o[1]);
825 } 825 }
826 826
827 buildUnnamed1425() { 827 buildUnnamed1226() {
828 var o = new core.List<api.KindExpression>(); 828 var o = new core.List<api.KindExpression>();
829 o.add(buildKindExpression()); 829 o.add(buildKindExpression());
830 o.add(buildKindExpression()); 830 o.add(buildKindExpression());
831 return o; 831 return o;
832 } 832 }
833 833
834 checkUnnamed1425(core.List<api.KindExpression> o) { 834 checkUnnamed1226(core.List<api.KindExpression> o) {
835 unittest.expect(o, unittest.hasLength(2)); 835 unittest.expect(o, unittest.hasLength(2));
836 checkKindExpression(o[0]); 836 checkKindExpression(o[0]);
837 checkKindExpression(o[1]); 837 checkKindExpression(o[1]);
838 } 838 }
839 839
840 buildUnnamed1426() { 840 buildUnnamed1227() {
841 var o = new core.List<api.PropertyOrder>(); 841 var o = new core.List<api.PropertyOrder>();
842 o.add(buildPropertyOrder()); 842 o.add(buildPropertyOrder());
843 o.add(buildPropertyOrder()); 843 o.add(buildPropertyOrder());
844 return o; 844 return o;
845 } 845 }
846 846
847 checkUnnamed1426(core.List<api.PropertyOrder> o) { 847 checkUnnamed1227(core.List<api.PropertyOrder> o) {
848 unittest.expect(o, unittest.hasLength(2)); 848 unittest.expect(o, unittest.hasLength(2));
849 checkPropertyOrder(o[0]); 849 checkPropertyOrder(o[0]);
850 checkPropertyOrder(o[1]); 850 checkPropertyOrder(o[1]);
851 } 851 }
852 852
853 buildUnnamed1427() { 853 buildUnnamed1228() {
854 var o = new core.List<api.PropertyExpression>(); 854 var o = new core.List<api.PropertyExpression>();
855 o.add(buildPropertyExpression()); 855 o.add(buildPropertyExpression());
856 o.add(buildPropertyExpression()); 856 o.add(buildPropertyExpression());
857 return o; 857 return o;
858 } 858 }
859 859
860 checkUnnamed1427(core.List<api.PropertyExpression> o) { 860 checkUnnamed1228(core.List<api.PropertyExpression> o) {
861 unittest.expect(o, unittest.hasLength(2)); 861 unittest.expect(o, unittest.hasLength(2));
862 checkPropertyExpression(o[0]); 862 checkPropertyExpression(o[0]);
863 checkPropertyExpression(o[1]); 863 checkPropertyExpression(o[1]);
864 } 864 }
865 865
866 core.int buildCounterQuery = 0; 866 core.int buildCounterQuery = 0;
867 buildQuery() { 867 buildQuery() {
868 var o = new api.Query(); 868 var o = new api.Query();
869 buildCounterQuery++; 869 buildCounterQuery++;
870 if (buildCounterQuery < 3) { 870 if (buildCounterQuery < 3) {
871 o.endCursor = "foo"; 871 o.endCursor = "foo";
872 o.filter = buildFilter(); 872 o.filter = buildFilter();
873 o.groupBy = buildUnnamed1424(); 873 o.groupBy = buildUnnamed1225();
874 o.kinds = buildUnnamed1425(); 874 o.kinds = buildUnnamed1226();
875 o.limit = 42; 875 o.limit = 42;
876 o.offset = 42; 876 o.offset = 42;
877 o.order = buildUnnamed1426(); 877 o.order = buildUnnamed1227();
878 o.projection = buildUnnamed1427(); 878 o.projection = buildUnnamed1228();
879 o.startCursor = "foo"; 879 o.startCursor = "foo";
880 } 880 }
881 buildCounterQuery--; 881 buildCounterQuery--;
882 return o; 882 return o;
883 } 883 }
884 884
885 checkQuery(api.Query o) { 885 checkQuery(api.Query o) {
886 buildCounterQuery++; 886 buildCounterQuery++;
887 if (buildCounterQuery < 3) { 887 if (buildCounterQuery < 3) {
888 unittest.expect(o.endCursor, unittest.equals('foo')); 888 unittest.expect(o.endCursor, unittest.equals('foo'));
889 checkFilter(o.filter); 889 checkFilter(o.filter);
890 checkUnnamed1424(o.groupBy); 890 checkUnnamed1225(o.groupBy);
891 checkUnnamed1425(o.kinds); 891 checkUnnamed1226(o.kinds);
892 unittest.expect(o.limit, unittest.equals(42)); 892 unittest.expect(o.limit, unittest.equals(42));
893 unittest.expect(o.offset, unittest.equals(42)); 893 unittest.expect(o.offset, unittest.equals(42));
894 checkUnnamed1426(o.order); 894 checkUnnamed1227(o.order);
895 checkUnnamed1427(o.projection); 895 checkUnnamed1228(o.projection);
896 unittest.expect(o.startCursor, unittest.equals('foo')); 896 unittest.expect(o.startCursor, unittest.equals('foo'));
897 } 897 }
898 buildCounterQuery--; 898 buildCounterQuery--;
899 } 899 }
900 900
901 buildUnnamed1428() { 901 buildUnnamed1229() {
902 var o = new core.List<api.EntityResult>(); 902 var o = new core.List<api.EntityResult>();
903 o.add(buildEntityResult()); 903 o.add(buildEntityResult());
904 o.add(buildEntityResult()); 904 o.add(buildEntityResult());
905 return o; 905 return o;
906 } 906 }
907 907
908 checkUnnamed1428(core.List<api.EntityResult> o) { 908 checkUnnamed1229(core.List<api.EntityResult> o) {
909 unittest.expect(o, unittest.hasLength(2)); 909 unittest.expect(o, unittest.hasLength(2));
910 checkEntityResult(o[0]); 910 checkEntityResult(o[0]);
911 checkEntityResult(o[1]); 911 checkEntityResult(o[1]);
912 } 912 }
913 913
914 core.int buildCounterQueryResultBatch = 0; 914 core.int buildCounterQueryResultBatch = 0;
915 buildQueryResultBatch() { 915 buildQueryResultBatch() {
916 var o = new api.QueryResultBatch(); 916 var o = new api.QueryResultBatch();
917 buildCounterQueryResultBatch++; 917 buildCounterQueryResultBatch++;
918 if (buildCounterQueryResultBatch < 3) { 918 if (buildCounterQueryResultBatch < 3) {
919 o.endCursor = "foo"; 919 o.endCursor = "foo";
920 o.entityResultType = "foo"; 920 o.entityResultType = "foo";
921 o.entityResults = buildUnnamed1428(); 921 o.entityResults = buildUnnamed1229();
922 o.moreResults = "foo"; 922 o.moreResults = "foo";
923 o.skippedResults = 42; 923 o.skippedResults = 42;
924 } 924 }
925 buildCounterQueryResultBatch--; 925 buildCounterQueryResultBatch--;
926 return o; 926 return o;
927 } 927 }
928 928
929 checkQueryResultBatch(api.QueryResultBatch o) { 929 checkQueryResultBatch(api.QueryResultBatch o) {
930 buildCounterQueryResultBatch++; 930 buildCounterQueryResultBatch++;
931 if (buildCounterQueryResultBatch < 3) { 931 if (buildCounterQueryResultBatch < 3) {
932 unittest.expect(o.endCursor, unittest.equals('foo')); 932 unittest.expect(o.endCursor, unittest.equals('foo'));
933 unittest.expect(o.entityResultType, unittest.equals('foo')); 933 unittest.expect(o.entityResultType, unittest.equals('foo'));
934 checkUnnamed1428(o.entityResults); 934 checkUnnamed1229(o.entityResults);
935 unittest.expect(o.moreResults, unittest.equals('foo')); 935 unittest.expect(o.moreResults, unittest.equals('foo'));
936 unittest.expect(o.skippedResults, unittest.equals(42)); 936 unittest.expect(o.skippedResults, unittest.equals(42));
937 } 937 }
938 buildCounterQueryResultBatch--; 938 buildCounterQueryResultBatch--;
939 } 939 }
940 940
941 core.int buildCounterReadOptions = 0; 941 core.int buildCounterReadOptions = 0;
942 buildReadOptions() { 942 buildReadOptions() {
943 var o = new api.ReadOptions(); 943 var o = new api.ReadOptions();
944 buildCounterReadOptions++; 944 buildCounterReadOptions++;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 1055
1056 checkRunQueryResponse(api.RunQueryResponse o) { 1056 checkRunQueryResponse(api.RunQueryResponse o) {
1057 buildCounterRunQueryResponse++; 1057 buildCounterRunQueryResponse++;
1058 if (buildCounterRunQueryResponse < 3) { 1058 if (buildCounterRunQueryResponse < 3) {
1059 checkQueryResultBatch(o.batch); 1059 checkQueryResultBatch(o.batch);
1060 checkResponseHeader(o.header); 1060 checkResponseHeader(o.header);
1061 } 1061 }
1062 buildCounterRunQueryResponse--; 1062 buildCounterRunQueryResponse--;
1063 } 1063 }
1064 1064
1065 buildUnnamed1429() { 1065 buildUnnamed1230() {
1066 var o = new core.List<api.Value>(); 1066 var o = new core.List<api.Value>();
1067 o.add(buildValue()); 1067 o.add(buildValue());
1068 o.add(buildValue()); 1068 o.add(buildValue());
1069 return o; 1069 return o;
1070 } 1070 }
1071 1071
1072 checkUnnamed1429(core.List<api.Value> o) { 1072 checkUnnamed1230(core.List<api.Value> o) {
1073 unittest.expect(o, unittest.hasLength(2)); 1073 unittest.expect(o, unittest.hasLength(2));
1074 checkValue(o[0]); 1074 checkValue(o[0]);
1075 checkValue(o[1]); 1075 checkValue(o[1]);
1076 } 1076 }
1077 1077
1078 core.int buildCounterValue = 0; 1078 core.int buildCounterValue = 0;
1079 buildValue() { 1079 buildValue() {
1080 var o = new api.Value(); 1080 var o = new api.Value();
1081 buildCounterValue++; 1081 buildCounterValue++;
1082 if (buildCounterValue < 3) { 1082 if (buildCounterValue < 3) {
1083 o.blobKeyValue = "foo"; 1083 o.blobKeyValue = "foo";
1084 o.blobValue = "foo"; 1084 o.blobValue = "foo";
1085 o.booleanValue = true; 1085 o.booleanValue = true;
1086 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02"); 1086 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02");
1087 o.doubleValue = 42.0; 1087 o.doubleValue = 42.0;
1088 o.entityValue = buildEntity(); 1088 o.entityValue = buildEntity();
1089 o.indexed = true; 1089 o.indexed = true;
1090 o.integerValue = "foo"; 1090 o.integerValue = "foo";
1091 o.keyValue = buildKey(); 1091 o.keyValue = buildKey();
1092 o.listValue = buildUnnamed1429(); 1092 o.listValue = buildUnnamed1230();
1093 o.meaning = 42; 1093 o.meaning = 42;
1094 o.stringValue = "foo"; 1094 o.stringValue = "foo";
1095 } 1095 }
1096 buildCounterValue--; 1096 buildCounterValue--;
1097 return o; 1097 return o;
1098 } 1098 }
1099 1099
1100 checkValue(api.Value o) { 1100 checkValue(api.Value o) {
1101 buildCounterValue++; 1101 buildCounterValue++;
1102 if (buildCounterValue < 3) { 1102 if (buildCounterValue < 3) {
1103 unittest.expect(o.blobKeyValue, unittest.equals('foo')); 1103 unittest.expect(o.blobKeyValue, unittest.equals('foo'));
1104 unittest.expect(o.blobValue, unittest.equals('foo')); 1104 unittest.expect(o.blobValue, unittest.equals('foo'));
1105 unittest.expect(o.booleanValue, unittest.isTrue); 1105 unittest.expect(o.booleanValue, unittest.isTrue);
1106 unittest.expect(o.dateTimeValue, unittest.equals(core.DateTime.parse("2002-0 2-27T14:01:02"))); 1106 unittest.expect(o.dateTimeValue, unittest.equals(core.DateTime.parse("2002-0 2-27T14:01:02")));
1107 unittest.expect(o.doubleValue, unittest.equals(42.0)); 1107 unittest.expect(o.doubleValue, unittest.equals(42.0));
1108 checkEntity(o.entityValue); 1108 checkEntity(o.entityValue);
1109 unittest.expect(o.indexed, unittest.isTrue); 1109 unittest.expect(o.indexed, unittest.isTrue);
1110 unittest.expect(o.integerValue, unittest.equals('foo')); 1110 unittest.expect(o.integerValue, unittest.equals('foo'));
1111 checkKey(o.keyValue); 1111 checkKey(o.keyValue);
1112 checkUnnamed1429(o.listValue); 1112 checkUnnamed1230(o.listValue);
1113 unittest.expect(o.meaning, unittest.equals(42)); 1113 unittest.expect(o.meaning, unittest.equals(42));
1114 unittest.expect(o.stringValue, unittest.equals('foo')); 1114 unittest.expect(o.stringValue, unittest.equals('foo'));
1115 } 1115 }
1116 buildCounterValue--; 1116 buildCounterValue--;
1117 } 1117 }
1118 1118
1119 1119
1120 main() { 1120 main() {
1121 unittest.group("obj-schema-AllocateIdsRequest", () { 1121 unittest.group("obj-schema-AllocateIdsRequest", () {
1122 unittest.test("to-json--from-json", () { 1122 unittest.test("to-json--from-json", () {
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 res.runQuery(arg_request, arg_datasetId).then(unittest.expectAsync(((api.R unQueryResponse response) { 1699 res.runQuery(arg_request, arg_datasetId).then(unittest.expectAsync(((api.R unQueryResponse response) {
1700 checkRunQueryResponse(response); 1700 checkRunQueryResponse(response);
1701 }))); 1701 })));
1702 }); 1702 });
1703 1703
1704 }); 1704 });
1705 1705
1706 1706
1707 } 1707 }
1708 1708
OLDNEW
« no previous file with comments | « generated/googleapis_beta/test/container/v1beta1_test.dart ('k') | generated/googleapis_beta/test/dns/v1beta1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698