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

Side by Side Diff: generated/googleapis/lib/datastore/v1.dart

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.datastore.v1; 3 library googleapis.datastore.v1;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 core.List<Key> keys; 320 core.List<Key> keys;
321 321
322 AllocateIdsRequest(); 322 AllocateIdsRequest();
323 323
324 AllocateIdsRequest.fromJson(core.Map _json) { 324 AllocateIdsRequest.fromJson(core.Map _json) {
325 if (_json.containsKey("keys")) { 325 if (_json.containsKey("keys")) {
326 keys = _json["keys"].map((value) => new Key.fromJson(value)).toList(); 326 keys = _json["keys"].map((value) => new Key.fromJson(value)).toList();
327 } 327 }
328 } 328 }
329 329
330 core.Map toJson() { 330 core.Map<core.String, core.Object> toJson() {
331 var _json = new core.Map(); 331 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
332 if (keys != null) { 332 if (keys != null) {
333 _json["keys"] = keys.map((value) => (value).toJson()).toList(); 333 _json["keys"] = keys.map((value) => (value).toJson()).toList();
334 } 334 }
335 return _json; 335 return _json;
336 } 336 }
337 } 337 }
338 338
339 /** The response for Datastore.AllocateIds. */ 339 /** The response for Datastore.AllocateIds. */
340 class AllocateIdsResponse { 340 class AllocateIdsResponse {
341 /** 341 /**
342 * The keys specified in the request (in the same order), each with 342 * The keys specified in the request (in the same order), each with
343 * its key path completed with a newly allocated ID. 343 * its key path completed with a newly allocated ID.
344 */ 344 */
345 core.List<Key> keys; 345 core.List<Key> keys;
346 346
347 AllocateIdsResponse(); 347 AllocateIdsResponse();
348 348
349 AllocateIdsResponse.fromJson(core.Map _json) { 349 AllocateIdsResponse.fromJson(core.Map _json) {
350 if (_json.containsKey("keys")) { 350 if (_json.containsKey("keys")) {
351 keys = _json["keys"].map((value) => new Key.fromJson(value)).toList(); 351 keys = _json["keys"].map((value) => new Key.fromJson(value)).toList();
352 } 352 }
353 } 353 }
354 354
355 core.Map toJson() { 355 core.Map<core.String, core.Object> toJson() {
356 var _json = new core.Map(); 356 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
357 if (keys != null) { 357 if (keys != null) {
358 _json["keys"] = keys.map((value) => (value).toJson()).toList(); 358 _json["keys"] = keys.map((value) => (value).toJson()).toList();
359 } 359 }
360 return _json; 360 return _json;
361 } 361 }
362 } 362 }
363 363
364 /** An array value. */ 364 /** An array value. */
365 class ArrayValue { 365 class ArrayValue {
366 /** 366 /**
367 * Values in the array. 367 * Values in the array.
368 * The order of this array may not be preserved if it contains a mix of 368 * The order of this array may not be preserved if it contains a mix of
369 * indexed and unindexed values. 369 * indexed and unindexed values.
370 */ 370 */
371 core.List<Value> values; 371 core.List<Value> values;
372 372
373 ArrayValue(); 373 ArrayValue();
374 374
375 ArrayValue.fromJson(core.Map _json) { 375 ArrayValue.fromJson(core.Map _json) {
376 if (_json.containsKey("values")) { 376 if (_json.containsKey("values")) {
377 values = _json["values"].map((value) => new Value.fromJson(value)).toList( ); 377 values = _json["values"].map((value) => new Value.fromJson(value)).toList( );
378 } 378 }
379 } 379 }
380 380
381 core.Map toJson() { 381 core.Map<core.String, core.Object> toJson() {
382 var _json = new core.Map(); 382 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
383 if (values != null) { 383 if (values != null) {
384 _json["values"] = values.map((value) => (value).toJson()).toList(); 384 _json["values"] = values.map((value) => (value).toJson()).toList();
385 } 385 }
386 return _json; 386 return _json;
387 } 387 }
388 } 388 }
389 389
390 /** The request for Datastore.BeginTransaction. */ 390 /** The request for Datastore.BeginTransaction. */
391 class BeginTransactionRequest { 391 class BeginTransactionRequest {
392 392
393 BeginTransactionRequest(); 393 BeginTransactionRequest();
394 394
395 BeginTransactionRequest.fromJson(core.Map _json) { 395 BeginTransactionRequest.fromJson(core.Map _json) {
396 } 396 }
397 397
398 core.Map toJson() { 398 core.Map<core.String, core.Object> toJson() {
399 var _json = new core.Map(); 399 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
400 return _json; 400 return _json;
401 } 401 }
402 } 402 }
403 403
404 /** The response for Datastore.BeginTransaction. */ 404 /** The response for Datastore.BeginTransaction. */
405 class BeginTransactionResponse { 405 class BeginTransactionResponse {
406 /** The transaction identifier (always present). */ 406 /** The transaction identifier (always present). */
407 core.String transaction; 407 core.String transaction;
408 core.List<core.int> get transactionAsBytes { 408 core.List<core.int> get transactionAsBytes {
409 return convert.BASE64.decode(transaction); 409 return convert.BASE64.decode(transaction);
410 } 410 }
411 411
412 void set transactionAsBytes(core.List<core.int> _bytes) { 412 void set transactionAsBytes(core.List<core.int> _bytes) {
413 transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-"); 413 transaction = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll( "+", "-");
414 } 414 }
415 415
416 BeginTransactionResponse(); 416 BeginTransactionResponse();
417 417
418 BeginTransactionResponse.fromJson(core.Map _json) { 418 BeginTransactionResponse.fromJson(core.Map _json) {
419 if (_json.containsKey("transaction")) { 419 if (_json.containsKey("transaction")) {
420 transaction = _json["transaction"]; 420 transaction = _json["transaction"];
421 } 421 }
422 } 422 }
423 423
424 core.Map toJson() { 424 core.Map<core.String, core.Object> toJson() {
425 var _json = new core.Map(); 425 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
426 if (transaction != null) { 426 if (transaction != null) {
427 _json["transaction"] = transaction; 427 _json["transaction"] = transaction;
428 } 428 }
429 return _json; 429 return _json;
430 } 430 }
431 } 431 }
432 432
433 /** The request for Datastore.Commit. */ 433 /** The request for Datastore.Commit. */
434 class CommitRequest { 434 class CommitRequest {
435 /** 435 /**
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 mode = _json["mode"]; 481 mode = _json["mode"];
482 } 482 }
483 if (_json.containsKey("mutations")) { 483 if (_json.containsKey("mutations")) {
484 mutations = _json["mutations"].map((value) => new Mutation.fromJson(value) ).toList(); 484 mutations = _json["mutations"].map((value) => new Mutation.fromJson(value) ).toList();
485 } 485 }
486 if (_json.containsKey("transaction")) { 486 if (_json.containsKey("transaction")) {
487 transaction = _json["transaction"]; 487 transaction = _json["transaction"];
488 } 488 }
489 } 489 }
490 490
491 core.Map toJson() { 491 core.Map<core.String, core.Object> toJson() {
492 var _json = new core.Map(); 492 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
493 if (mode != null) { 493 if (mode != null) {
494 _json["mode"] = mode; 494 _json["mode"] = mode;
495 } 495 }
496 if (mutations != null) { 496 if (mutations != null) {
497 _json["mutations"] = mutations.map((value) => (value).toJson()).toList(); 497 _json["mutations"] = mutations.map((value) => (value).toJson()).toList();
498 } 498 }
499 if (transaction != null) { 499 if (transaction != null) {
500 _json["transaction"] = transaction; 500 _json["transaction"] = transaction;
501 } 501 }
502 return _json; 502 return _json;
(...skipping 17 matching lines...) Expand all
520 520
521 CommitResponse.fromJson(core.Map _json) { 521 CommitResponse.fromJson(core.Map _json) {
522 if (_json.containsKey("indexUpdates")) { 522 if (_json.containsKey("indexUpdates")) {
523 indexUpdates = _json["indexUpdates"]; 523 indexUpdates = _json["indexUpdates"];
524 } 524 }
525 if (_json.containsKey("mutationResults")) { 525 if (_json.containsKey("mutationResults")) {
526 mutationResults = _json["mutationResults"].map((value) => new MutationResu lt.fromJson(value)).toList(); 526 mutationResults = _json["mutationResults"].map((value) => new MutationResu lt.fromJson(value)).toList();
527 } 527 }
528 } 528 }
529 529
530 core.Map toJson() { 530 core.Map<core.String, core.Object> toJson() {
531 var _json = new core.Map(); 531 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
532 if (indexUpdates != null) { 532 if (indexUpdates != null) {
533 _json["indexUpdates"] = indexUpdates; 533 _json["indexUpdates"] = indexUpdates;
534 } 534 }
535 if (mutationResults != null) { 535 if (mutationResults != null) {
536 _json["mutationResults"] = mutationResults.map((value) => (value).toJson() ).toList(); 536 _json["mutationResults"] = mutationResults.map((value) => (value).toJson() ).toList();
537 } 537 }
538 return _json; 538 return _json;
539 } 539 }
540 } 540 }
541 541
(...skipping 16 matching lines...) Expand all
558 558
559 CompositeFilter.fromJson(core.Map _json) { 559 CompositeFilter.fromJson(core.Map _json) {
560 if (_json.containsKey("filters")) { 560 if (_json.containsKey("filters")) {
561 filters = _json["filters"].map((value) => new Filter.fromJson(value)).toLi st(); 561 filters = _json["filters"].map((value) => new Filter.fromJson(value)).toLi st();
562 } 562 }
563 if (_json.containsKey("op")) { 563 if (_json.containsKey("op")) {
564 op = _json["op"]; 564 op = _json["op"];
565 } 565 }
566 } 566 }
567 567
568 core.Map toJson() { 568 core.Map<core.String, core.Object> toJson() {
569 var _json = new core.Map(); 569 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
570 if (filters != null) { 570 if (filters != null) {
571 _json["filters"] = filters.map((value) => (value).toJson()).toList(); 571 _json["filters"] = filters.map((value) => (value).toJson()).toList();
572 } 572 }
573 if (op != null) { 573 if (op != null) {
574 _json["op"] = op; 574 _json["op"] = op;
575 } 575 }
576 return _json; 576 return _json;
577 } 577 }
578 } 578 }
579 579
(...skipping 24 matching lines...) Expand all
604 */ 604 */
605 core.Map<core.String, Value> properties; 605 core.Map<core.String, Value> properties;
606 606
607 Entity(); 607 Entity();
608 608
609 Entity.fromJson(core.Map _json) { 609 Entity.fromJson(core.Map _json) {
610 if (_json.containsKey("key")) { 610 if (_json.containsKey("key")) {
611 key = new Key.fromJson(_json["key"]); 611 key = new Key.fromJson(_json["key"]);
612 } 612 }
613 if (_json.containsKey("properties")) { 613 if (_json.containsKey("properties")) {
614 properties = commons.mapMap(_json["properties"], (item) => new Value.fromJ son(item)); 614 properties = commons.mapMap<core.Map<core.String, core.Object>, Value>(_js on["properties"], (core.Map<core.String, core.Object> item) => new Value.fromJso n(item));
615 } 615 }
616 } 616 }
617 617
618 core.Map toJson() { 618 core.Map<core.String, core.Object> toJson() {
619 var _json = new core.Map(); 619 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
620 if (key != null) { 620 if (key != null) {
621 _json["key"] = (key).toJson(); 621 _json["key"] = (key).toJson();
622 } 622 }
623 if (properties != null) { 623 if (properties != null) {
624 _json["properties"] = commons.mapMap(properties, (item) => (item).toJson() ); 624 _json["properties"] = commons.mapMap<Value, core.Map<core.String, core.Obj ect>>(properties, (Value item) => (item).toJson());
625 } 625 }
626 return _json; 626 return _json;
627 } 627 }
628 } 628 }
629 629
630 /** The result of fetching an entity from Datastore. */ 630 /** The result of fetching an entity from Datastore. */
631 class EntityResult { 631 class EntityResult {
632 /** 632 /**
633 * A cursor that points to the position after the result entity. 633 * A cursor that points to the position after the result entity.
634 * Set only when the `EntityResult` is part of a `QueryResultBatch` message. 634 * Set only when the `EntityResult` is part of a `QueryResultBatch` message.
(...skipping 28 matching lines...) Expand all
663 cursor = _json["cursor"]; 663 cursor = _json["cursor"];
664 } 664 }
665 if (_json.containsKey("entity")) { 665 if (_json.containsKey("entity")) {
666 entity = new Entity.fromJson(_json["entity"]); 666 entity = new Entity.fromJson(_json["entity"]);
667 } 667 }
668 if (_json.containsKey("version")) { 668 if (_json.containsKey("version")) {
669 version = _json["version"]; 669 version = _json["version"];
670 } 670 }
671 } 671 }
672 672
673 core.Map toJson() { 673 core.Map<core.String, core.Object> toJson() {
674 var _json = new core.Map(); 674 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
675 if (cursor != null) { 675 if (cursor != null) {
676 _json["cursor"] = cursor; 676 _json["cursor"] = cursor;
677 } 677 }
678 if (entity != null) { 678 if (entity != null) {
679 _json["entity"] = (entity).toJson(); 679 _json["entity"] = (entity).toJson();
680 } 680 }
681 if (version != null) { 681 if (version != null) {
682 _json["version"] = version; 682 _json["version"] = version;
683 } 683 }
684 return _json; 684 return _json;
(...skipping 11 matching lines...) Expand all
696 696
697 Filter.fromJson(core.Map _json) { 697 Filter.fromJson(core.Map _json) {
698 if (_json.containsKey("compositeFilter")) { 698 if (_json.containsKey("compositeFilter")) {
699 compositeFilter = new CompositeFilter.fromJson(_json["compositeFilter"]); 699 compositeFilter = new CompositeFilter.fromJson(_json["compositeFilter"]);
700 } 700 }
701 if (_json.containsKey("propertyFilter")) { 701 if (_json.containsKey("propertyFilter")) {
702 propertyFilter = new PropertyFilter.fromJson(_json["propertyFilter"]); 702 propertyFilter = new PropertyFilter.fromJson(_json["propertyFilter"]);
703 } 703 }
704 } 704 }
705 705
706 core.Map toJson() { 706 core.Map<core.String, core.Object> toJson() {
707 var _json = new core.Map(); 707 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
708 if (compositeFilter != null) { 708 if (compositeFilter != null) {
709 _json["compositeFilter"] = (compositeFilter).toJson(); 709 _json["compositeFilter"] = (compositeFilter).toJson();
710 } 710 }
711 if (propertyFilter != null) { 711 if (propertyFilter != null) {
712 _json["propertyFilter"] = (propertyFilter).toJson(); 712 _json["propertyFilter"] = (propertyFilter).toJson();
713 } 713 }
714 return _json; 714 return _json;
715 } 715 }
716 } 716 }
717 717
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 */ 749 */
750 core.String queryString; 750 core.String queryString;
751 751
752 GqlQuery(); 752 GqlQuery();
753 753
754 GqlQuery.fromJson(core.Map _json) { 754 GqlQuery.fromJson(core.Map _json) {
755 if (_json.containsKey("allowLiterals")) { 755 if (_json.containsKey("allowLiterals")) {
756 allowLiterals = _json["allowLiterals"]; 756 allowLiterals = _json["allowLiterals"];
757 } 757 }
758 if (_json.containsKey("namedBindings")) { 758 if (_json.containsKey("namedBindings")) {
759 namedBindings = commons.mapMap(_json["namedBindings"], (item) => new GqlQu eryParameter.fromJson(item)); 759 namedBindings = commons.mapMap<core.Map<core.String, core.Object>, GqlQuer yParameter>(_json["namedBindings"], (core.Map<core.String, core.Object> item) => new GqlQueryParameter.fromJson(item));
760 } 760 }
761 if (_json.containsKey("positionalBindings")) { 761 if (_json.containsKey("positionalBindings")) {
762 positionalBindings = _json["positionalBindings"].map((value) => new GqlQue ryParameter.fromJson(value)).toList(); 762 positionalBindings = _json["positionalBindings"].map((value) => new GqlQue ryParameter.fromJson(value)).toList();
763 } 763 }
764 if (_json.containsKey("queryString")) { 764 if (_json.containsKey("queryString")) {
765 queryString = _json["queryString"]; 765 queryString = _json["queryString"];
766 } 766 }
767 } 767 }
768 768
769 core.Map toJson() { 769 core.Map<core.String, core.Object> toJson() {
770 var _json = new core.Map(); 770 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
771 if (allowLiterals != null) { 771 if (allowLiterals != null) {
772 _json["allowLiterals"] = allowLiterals; 772 _json["allowLiterals"] = allowLiterals;
773 } 773 }
774 if (namedBindings != null) { 774 if (namedBindings != null) {
775 _json["namedBindings"] = commons.mapMap(namedBindings, (item) => (item).to Json()); 775 _json["namedBindings"] = commons.mapMap<GqlQueryParameter, core.Map<core.S tring, core.Object>>(namedBindings, (GqlQueryParameter item) => (item).toJson()) ;
776 } 776 }
777 if (positionalBindings != null) { 777 if (positionalBindings != null) {
778 _json["positionalBindings"] = positionalBindings.map((value) => (value).to Json()).toList(); 778 _json["positionalBindings"] = positionalBindings.map((value) => (value).to Json()).toList();
779 } 779 }
780 if (queryString != null) { 780 if (queryString != null) {
781 _json["queryString"] = queryString; 781 _json["queryString"] = queryString;
782 } 782 }
783 return _json; 783 return _json;
784 } 784 }
785 } 785 }
(...skipping 19 matching lines...) Expand all
805 805
806 GqlQueryParameter.fromJson(core.Map _json) { 806 GqlQueryParameter.fromJson(core.Map _json) {
807 if (_json.containsKey("cursor")) { 807 if (_json.containsKey("cursor")) {
808 cursor = _json["cursor"]; 808 cursor = _json["cursor"];
809 } 809 }
810 if (_json.containsKey("value")) { 810 if (_json.containsKey("value")) {
811 value = new Value.fromJson(_json["value"]); 811 value = new Value.fromJson(_json["value"]);
812 } 812 }
813 } 813 }
814 814
815 core.Map toJson() { 815 core.Map<core.String, core.Object> toJson() {
816 var _json = new core.Map(); 816 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
817 if (cursor != null) { 817 if (cursor != null) {
818 _json["cursor"] = cursor; 818 _json["cursor"] = cursor;
819 } 819 }
820 if (value != null) { 820 if (value != null) {
821 _json["value"] = (value).toJson(); 821 _json["value"] = (value).toJson();
822 } 822 }
823 return _json; 823 return _json;
824 } 824 }
825 } 825 }
826 826
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 861
862 Key.fromJson(core.Map _json) { 862 Key.fromJson(core.Map _json) {
863 if (_json.containsKey("partitionId")) { 863 if (_json.containsKey("partitionId")) {
864 partitionId = new PartitionId.fromJson(_json["partitionId"]); 864 partitionId = new PartitionId.fromJson(_json["partitionId"]);
865 } 865 }
866 if (_json.containsKey("path")) { 866 if (_json.containsKey("path")) {
867 path = _json["path"].map((value) => new PathElement.fromJson(value)).toLis t(); 867 path = _json["path"].map((value) => new PathElement.fromJson(value)).toLis t();
868 } 868 }
869 } 869 }
870 870
871 core.Map toJson() { 871 core.Map<core.String, core.Object> toJson() {
872 var _json = new core.Map(); 872 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
873 if (partitionId != null) { 873 if (partitionId != null) {
874 _json["partitionId"] = (partitionId).toJson(); 874 _json["partitionId"] = (partitionId).toJson();
875 } 875 }
876 if (path != null) { 876 if (path != null) {
877 _json["path"] = path.map((value) => (value).toJson()).toList(); 877 _json["path"] = path.map((value) => (value).toJson()).toList();
878 } 878 }
879 return _json; 879 return _json;
880 } 880 }
881 } 881 }
882 882
883 /** A representation of a kind. */ 883 /** A representation of a kind. */
884 class KindExpression { 884 class KindExpression {
885 /** The name of the kind. */ 885 /** The name of the kind. */
886 core.String name; 886 core.String name;
887 887
888 KindExpression(); 888 KindExpression();
889 889
890 KindExpression.fromJson(core.Map _json) { 890 KindExpression.fromJson(core.Map _json) {
891 if (_json.containsKey("name")) { 891 if (_json.containsKey("name")) {
892 name = _json["name"]; 892 name = _json["name"];
893 } 893 }
894 } 894 }
895 895
896 core.Map toJson() { 896 core.Map<core.String, core.Object> toJson() {
897 var _json = new core.Map(); 897 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
898 if (name != null) { 898 if (name != null) {
899 _json["name"] = name; 899 _json["name"] = name;
900 } 900 }
901 return _json; 901 return _json;
902 } 902 }
903 } 903 }
904 904
905 /** 905 /**
906 * An object representing a latitude/longitude pair. This is expressed as a pair 906 * An object representing a latitude/longitude pair. This is expressed as a pair
907 * of doubles representing degrees latitude and degrees longitude. Unless 907 * of doubles representing degrees latitude and degrees longitude. Unless
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 953
954 LatLng.fromJson(core.Map _json) { 954 LatLng.fromJson(core.Map _json) {
955 if (_json.containsKey("latitude")) { 955 if (_json.containsKey("latitude")) {
956 latitude = _json["latitude"]; 956 latitude = _json["latitude"];
957 } 957 }
958 if (_json.containsKey("longitude")) { 958 if (_json.containsKey("longitude")) {
959 longitude = _json["longitude"]; 959 longitude = _json["longitude"];
960 } 960 }
961 } 961 }
962 962
963 core.Map toJson() { 963 core.Map<core.String, core.Object> toJson() {
964 var _json = new core.Map(); 964 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
965 if (latitude != null) { 965 if (latitude != null) {
966 _json["latitude"] = latitude; 966 _json["latitude"] = latitude;
967 } 967 }
968 if (longitude != null) { 968 if (longitude != null) {
969 _json["longitude"] = longitude; 969 _json["longitude"] = longitude;
970 } 970 }
971 return _json; 971 return _json;
972 } 972 }
973 } 973 }
974 974
975 /** The request for Datastore.Lookup. */ 975 /** The request for Datastore.Lookup. */
976 class LookupRequest { 976 class LookupRequest {
977 /** Keys of entities to look up. */ 977 /** Keys of entities to look up. */
978 core.List<Key> keys; 978 core.List<Key> keys;
979 /** The options for this lookup request. */ 979 /** The options for this lookup request. */
980 ReadOptions readOptions; 980 ReadOptions readOptions;
981 981
982 LookupRequest(); 982 LookupRequest();
983 983
984 LookupRequest.fromJson(core.Map _json) { 984 LookupRequest.fromJson(core.Map _json) {
985 if (_json.containsKey("keys")) { 985 if (_json.containsKey("keys")) {
986 keys = _json["keys"].map((value) => new Key.fromJson(value)).toList(); 986 keys = _json["keys"].map((value) => new Key.fromJson(value)).toList();
987 } 987 }
988 if (_json.containsKey("readOptions")) { 988 if (_json.containsKey("readOptions")) {
989 readOptions = new ReadOptions.fromJson(_json["readOptions"]); 989 readOptions = new ReadOptions.fromJson(_json["readOptions"]);
990 } 990 }
991 } 991 }
992 992
993 core.Map toJson() { 993 core.Map<core.String, core.Object> toJson() {
994 var _json = new core.Map(); 994 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
995 if (keys != null) { 995 if (keys != null) {
996 _json["keys"] = keys.map((value) => (value).toJson()).toList(); 996 _json["keys"] = keys.map((value) => (value).toJson()).toList();
997 } 997 }
998 if (readOptions != null) { 998 if (readOptions != null) {
999 _json["readOptions"] = (readOptions).toJson(); 999 _json["readOptions"] = (readOptions).toJson();
1000 } 1000 }
1001 return _json; 1001 return _json;
1002 } 1002 }
1003 } 1003 }
1004 1004
(...skipping 25 matching lines...) Expand all
1030 deferred = _json["deferred"].map((value) => new Key.fromJson(value)).toLis t(); 1030 deferred = _json["deferred"].map((value) => new Key.fromJson(value)).toLis t();
1031 } 1031 }
1032 if (_json.containsKey("found")) { 1032 if (_json.containsKey("found")) {
1033 found = _json["found"].map((value) => new EntityResult.fromJson(value)).to List(); 1033 found = _json["found"].map((value) => new EntityResult.fromJson(value)).to List();
1034 } 1034 }
1035 if (_json.containsKey("missing")) { 1035 if (_json.containsKey("missing")) {
1036 missing = _json["missing"].map((value) => new EntityResult.fromJson(value) ).toList(); 1036 missing = _json["missing"].map((value) => new EntityResult.fromJson(value) ).toList();
1037 } 1037 }
1038 } 1038 }
1039 1039
1040 core.Map toJson() { 1040 core.Map<core.String, core.Object> toJson() {
1041 var _json = new core.Map(); 1041 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1042 if (deferred != null) { 1042 if (deferred != null) {
1043 _json["deferred"] = deferred.map((value) => (value).toJson()).toList(); 1043 _json["deferred"] = deferred.map((value) => (value).toJson()).toList();
1044 } 1044 }
1045 if (found != null) { 1045 if (found != null) {
1046 _json["found"] = found.map((value) => (value).toJson()).toList(); 1046 _json["found"] = found.map((value) => (value).toJson()).toList();
1047 } 1047 }
1048 if (missing != null) { 1048 if (missing != null) {
1049 _json["missing"] = missing.map((value) => (value).toJson()).toList(); 1049 _json["missing"] = missing.map((value) => (value).toJson()).toList();
1050 } 1050 }
1051 return _json; 1051 return _json;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 insert = new Entity.fromJson(_json["insert"]); 1093 insert = new Entity.fromJson(_json["insert"]);
1094 } 1094 }
1095 if (_json.containsKey("update")) { 1095 if (_json.containsKey("update")) {
1096 update = new Entity.fromJson(_json["update"]); 1096 update = new Entity.fromJson(_json["update"]);
1097 } 1097 }
1098 if (_json.containsKey("upsert")) { 1098 if (_json.containsKey("upsert")) {
1099 upsert = new Entity.fromJson(_json["upsert"]); 1099 upsert = new Entity.fromJson(_json["upsert"]);
1100 } 1100 }
1101 } 1101 }
1102 1102
1103 core.Map toJson() { 1103 core.Map<core.String, core.Object> toJson() {
1104 var _json = new core.Map(); 1104 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1105 if (baseVersion != null) { 1105 if (baseVersion != null) {
1106 _json["baseVersion"] = baseVersion; 1106 _json["baseVersion"] = baseVersion;
1107 } 1107 }
1108 if (delete != null) { 1108 if (delete != null) {
1109 _json["delete"] = (delete).toJson(); 1109 _json["delete"] = (delete).toJson();
1110 } 1110 }
1111 if (insert != null) { 1111 if (insert != null) {
1112 _json["insert"] = (insert).toJson(); 1112 _json["insert"] = (insert).toJson();
1113 } 1113 }
1114 if (update != null) { 1114 if (update != null) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 conflictDetected = _json["conflictDetected"]; 1149 conflictDetected = _json["conflictDetected"];
1150 } 1150 }
1151 if (_json.containsKey("key")) { 1151 if (_json.containsKey("key")) {
1152 key = new Key.fromJson(_json["key"]); 1152 key = new Key.fromJson(_json["key"]);
1153 } 1153 }
1154 if (_json.containsKey("version")) { 1154 if (_json.containsKey("version")) {
1155 version = _json["version"]; 1155 version = _json["version"];
1156 } 1156 }
1157 } 1157 }
1158 1158
1159 core.Map toJson() { 1159 core.Map<core.String, core.Object> toJson() {
1160 var _json = new core.Map(); 1160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1161 if (conflictDetected != null) { 1161 if (conflictDetected != null) {
1162 _json["conflictDetected"] = conflictDetected; 1162 _json["conflictDetected"] = conflictDetected;
1163 } 1163 }
1164 if (key != null) { 1164 if (key != null) {
1165 _json["key"] = (key).toJson(); 1165 _json["key"] = (key).toJson();
1166 } 1166 }
1167 if (version != null) { 1167 if (version != null) {
1168 _json["version"] = version; 1168 _json["version"] = version;
1169 } 1169 }
1170 return _json; 1170 return _json;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 1203
1204 PartitionId.fromJson(core.Map _json) { 1204 PartitionId.fromJson(core.Map _json) {
1205 if (_json.containsKey("namespaceId")) { 1205 if (_json.containsKey("namespaceId")) {
1206 namespaceId = _json["namespaceId"]; 1206 namespaceId = _json["namespaceId"];
1207 } 1207 }
1208 if (_json.containsKey("projectId")) { 1208 if (_json.containsKey("projectId")) {
1209 projectId = _json["projectId"]; 1209 projectId = _json["projectId"];
1210 } 1210 }
1211 } 1211 }
1212 1212
1213 core.Map toJson() { 1213 core.Map<core.String, core.Object> toJson() {
1214 var _json = new core.Map(); 1214 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1215 if (namespaceId != null) { 1215 if (namespaceId != null) {
1216 _json["namespaceId"] = namespaceId; 1216 _json["namespaceId"] = namespaceId;
1217 } 1217 }
1218 if (projectId != null) { 1218 if (projectId != null) {
1219 _json["projectId"] = projectId; 1219 _json["projectId"] = projectId;
1220 } 1220 }
1221 return _json; 1221 return _json;
1222 } 1222 }
1223 } 1223 }
1224 1224
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1257 id = _json["id"]; 1257 id = _json["id"];
1258 } 1258 }
1259 if (_json.containsKey("kind")) { 1259 if (_json.containsKey("kind")) {
1260 kind = _json["kind"]; 1260 kind = _json["kind"];
1261 } 1261 }
1262 if (_json.containsKey("name")) { 1262 if (_json.containsKey("name")) {
1263 name = _json["name"]; 1263 name = _json["name"];
1264 } 1264 }
1265 } 1265 }
1266 1266
1267 core.Map toJson() { 1267 core.Map<core.String, core.Object> toJson() {
1268 var _json = new core.Map(); 1268 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1269 if (id != null) { 1269 if (id != null) {
1270 _json["id"] = id; 1270 _json["id"] = id;
1271 } 1271 }
1272 if (kind != null) { 1272 if (kind != null) {
1273 _json["kind"] = kind; 1273 _json["kind"] = kind;
1274 } 1274 }
1275 if (name != null) { 1275 if (name != null) {
1276 _json["name"] = name; 1276 _json["name"] = name;
1277 } 1277 }
1278 return _json; 1278 return _json;
1279 } 1279 }
1280 } 1280 }
1281 1281
1282 /** A representation of a property in a projection. */ 1282 /** A representation of a property in a projection. */
1283 class Projection { 1283 class Projection {
1284 /** The property to project. */ 1284 /** The property to project. */
1285 PropertyReference property; 1285 PropertyReference property;
1286 1286
1287 Projection(); 1287 Projection();
1288 1288
1289 Projection.fromJson(core.Map _json) { 1289 Projection.fromJson(core.Map _json) {
1290 if (_json.containsKey("property")) { 1290 if (_json.containsKey("property")) {
1291 property = new PropertyReference.fromJson(_json["property"]); 1291 property = new PropertyReference.fromJson(_json["property"]);
1292 } 1292 }
1293 } 1293 }
1294 1294
1295 core.Map toJson() { 1295 core.Map<core.String, core.Object> toJson() {
1296 var _json = new core.Map(); 1296 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1297 if (property != null) { 1297 if (property != null) {
1298 _json["property"] = (property).toJson(); 1298 _json["property"] = (property).toJson();
1299 } 1299 }
1300 return _json; 1300 return _json;
1301 } 1301 }
1302 } 1302 }
1303 1303
1304 /** A filter on a specific property. */ 1304 /** A filter on a specific property. */
1305 class PropertyFilter { 1305 class PropertyFilter {
1306 /** 1306 /**
(...skipping 20 matching lines...) Expand all
1327 op = _json["op"]; 1327 op = _json["op"];
1328 } 1328 }
1329 if (_json.containsKey("property")) { 1329 if (_json.containsKey("property")) {
1330 property = new PropertyReference.fromJson(_json["property"]); 1330 property = new PropertyReference.fromJson(_json["property"]);
1331 } 1331 }
1332 if (_json.containsKey("value")) { 1332 if (_json.containsKey("value")) {
1333 value = new Value.fromJson(_json["value"]); 1333 value = new Value.fromJson(_json["value"]);
1334 } 1334 }
1335 } 1335 }
1336 1336
1337 core.Map toJson() { 1337 core.Map<core.String, core.Object> toJson() {
1338 var _json = new core.Map(); 1338 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1339 if (op != null) { 1339 if (op != null) {
1340 _json["op"] = op; 1340 _json["op"] = op;
1341 } 1341 }
1342 if (property != null) { 1342 if (property != null) {
1343 _json["property"] = (property).toJson(); 1343 _json["property"] = (property).toJson();
1344 } 1344 }
1345 if (value != null) { 1345 if (value != null) {
1346 _json["value"] = (value).toJson(); 1346 _json["value"] = (value).toJson();
1347 } 1347 }
1348 return _json; 1348 return _json;
(...skipping 17 matching lines...) Expand all
1366 1366
1367 PropertyOrder.fromJson(core.Map _json) { 1367 PropertyOrder.fromJson(core.Map _json) {
1368 if (_json.containsKey("direction")) { 1368 if (_json.containsKey("direction")) {
1369 direction = _json["direction"]; 1369 direction = _json["direction"];
1370 } 1370 }
1371 if (_json.containsKey("property")) { 1371 if (_json.containsKey("property")) {
1372 property = new PropertyReference.fromJson(_json["property"]); 1372 property = new PropertyReference.fromJson(_json["property"]);
1373 } 1373 }
1374 } 1374 }
1375 1375
1376 core.Map toJson() { 1376 core.Map<core.String, core.Object> toJson() {
1377 var _json = new core.Map(); 1377 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1378 if (direction != null) { 1378 if (direction != null) {
1379 _json["direction"] = direction; 1379 _json["direction"] = direction;
1380 } 1380 }
1381 if (property != null) { 1381 if (property != null) {
1382 _json["property"] = (property).toJson(); 1382 _json["property"] = (property).toJson();
1383 } 1383 }
1384 return _json; 1384 return _json;
1385 } 1385 }
1386 } 1386 }
1387 1387
1388 /** A reference to a property relative to the kind expressions. */ 1388 /** A reference to a property relative to the kind expressions. */
1389 class PropertyReference { 1389 class PropertyReference {
1390 /** 1390 /**
1391 * The name of the property. 1391 * The name of the property.
1392 * If name includes "."s, it may be interpreted as a property name path. 1392 * If name includes "."s, it may be interpreted as a property name path.
1393 */ 1393 */
1394 core.String name; 1394 core.String name;
1395 1395
1396 PropertyReference(); 1396 PropertyReference();
1397 1397
1398 PropertyReference.fromJson(core.Map _json) { 1398 PropertyReference.fromJson(core.Map _json) {
1399 if (_json.containsKey("name")) { 1399 if (_json.containsKey("name")) {
1400 name = _json["name"]; 1400 name = _json["name"];
1401 } 1401 }
1402 } 1402 }
1403 1403
1404 core.Map toJson() { 1404 core.Map<core.String, core.Object> toJson() {
1405 var _json = new core.Map(); 1405 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1406 if (name != null) { 1406 if (name != null) {
1407 _json["name"] = name; 1407 _json["name"] = name;
1408 } 1408 }
1409 return _json; 1409 return _json;
1410 } 1410 }
1411 } 1411 }
1412 1412
1413 /** A query for entities. */ 1413 /** A query for entities. */
1414 class Query { 1414 class Query {
1415 /** 1415 /**
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 order = _json["order"].map((value) => new PropertyOrder.fromJson(value)).t oList(); 1497 order = _json["order"].map((value) => new PropertyOrder.fromJson(value)).t oList();
1498 } 1498 }
1499 if (_json.containsKey("projection")) { 1499 if (_json.containsKey("projection")) {
1500 projection = _json["projection"].map((value) => new Projection.fromJson(va lue)).toList(); 1500 projection = _json["projection"].map((value) => new Projection.fromJson(va lue)).toList();
1501 } 1501 }
1502 if (_json.containsKey("startCursor")) { 1502 if (_json.containsKey("startCursor")) {
1503 startCursor = _json["startCursor"]; 1503 startCursor = _json["startCursor"];
1504 } 1504 }
1505 } 1505 }
1506 1506
1507 core.Map toJson() { 1507 core.Map<core.String, core.Object> toJson() {
1508 var _json = new core.Map(); 1508 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1509 if (distinctOn != null) { 1509 if (distinctOn != null) {
1510 _json["distinctOn"] = distinctOn.map((value) => (value).toJson()).toList() ; 1510 _json["distinctOn"] = distinctOn.map((value) => (value).toJson()).toList() ;
1511 } 1511 }
1512 if (endCursor != null) { 1512 if (endCursor != null) {
1513 _json["endCursor"] = endCursor; 1513 _json["endCursor"] = endCursor;
1514 } 1514 }
1515 if (filter != null) { 1515 if (filter != null) {
1516 _json["filter"] = (filter).toJson(); 1516 _json["filter"] = (filter).toJson();
1517 } 1517 }
1518 if (kind != null) { 1518 if (kind != null) {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1622 skippedCursor = _json["skippedCursor"]; 1622 skippedCursor = _json["skippedCursor"];
1623 } 1623 }
1624 if (_json.containsKey("skippedResults")) { 1624 if (_json.containsKey("skippedResults")) {
1625 skippedResults = _json["skippedResults"]; 1625 skippedResults = _json["skippedResults"];
1626 } 1626 }
1627 if (_json.containsKey("snapshotVersion")) { 1627 if (_json.containsKey("snapshotVersion")) {
1628 snapshotVersion = _json["snapshotVersion"]; 1628 snapshotVersion = _json["snapshotVersion"];
1629 } 1629 }
1630 } 1630 }
1631 1631
1632 core.Map toJson() { 1632 core.Map<core.String, core.Object> toJson() {
1633 var _json = new core.Map(); 1633 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1634 if (endCursor != null) { 1634 if (endCursor != null) {
1635 _json["endCursor"] = endCursor; 1635 _json["endCursor"] = endCursor;
1636 } 1636 }
1637 if (entityResultType != null) { 1637 if (entityResultType != null) {
1638 _json["entityResultType"] = entityResultType; 1638 _json["entityResultType"] = entityResultType;
1639 } 1639 }
1640 if (entityResults != null) { 1640 if (entityResults != null) {
1641 _json["entityResults"] = entityResults.map((value) => (value).toJson()).to List(); 1641 _json["entityResults"] = entityResults.map((value) => (value).toJson()).to List();
1642 } 1642 }
1643 if (moreResults != null) { 1643 if (moreResults != null) {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1686 1686
1687 ReadOptions.fromJson(core.Map _json) { 1687 ReadOptions.fromJson(core.Map _json) {
1688 if (_json.containsKey("readConsistency")) { 1688 if (_json.containsKey("readConsistency")) {
1689 readConsistency = _json["readConsistency"]; 1689 readConsistency = _json["readConsistency"];
1690 } 1690 }
1691 if (_json.containsKey("transaction")) { 1691 if (_json.containsKey("transaction")) {
1692 transaction = _json["transaction"]; 1692 transaction = _json["transaction"];
1693 } 1693 }
1694 } 1694 }
1695 1695
1696 core.Map toJson() { 1696 core.Map<core.String, core.Object> toJson() {
1697 var _json = new core.Map(); 1697 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1698 if (readConsistency != null) { 1698 if (readConsistency != null) {
1699 _json["readConsistency"] = readConsistency; 1699 _json["readConsistency"] = readConsistency;
1700 } 1700 }
1701 if (transaction != null) { 1701 if (transaction != null) {
1702 _json["transaction"] = transaction; 1702 _json["transaction"] = transaction;
1703 } 1703 }
1704 return _json; 1704 return _json;
1705 } 1705 }
1706 } 1706 }
1707 1707
(...skipping 13 matching lines...) Expand all
1721 } 1721 }
1722 1722
1723 RollbackRequest(); 1723 RollbackRequest();
1724 1724
1725 RollbackRequest.fromJson(core.Map _json) { 1725 RollbackRequest.fromJson(core.Map _json) {
1726 if (_json.containsKey("transaction")) { 1726 if (_json.containsKey("transaction")) {
1727 transaction = _json["transaction"]; 1727 transaction = _json["transaction"];
1728 } 1728 }
1729 } 1729 }
1730 1730
1731 core.Map toJson() { 1731 core.Map<core.String, core.Object> toJson() {
1732 var _json = new core.Map(); 1732 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1733 if (transaction != null) { 1733 if (transaction != null) {
1734 _json["transaction"] = transaction; 1734 _json["transaction"] = transaction;
1735 } 1735 }
1736 return _json; 1736 return _json;
1737 } 1737 }
1738 } 1738 }
1739 1739
1740 /** 1740 /**
1741 * The response for Datastore.Rollback. 1741 * The response for Datastore.Rollback.
1742 * (an empty message). 1742 * (an empty message).
1743 */ 1743 */
1744 class RollbackResponse { 1744 class RollbackResponse {
1745 1745
1746 RollbackResponse(); 1746 RollbackResponse();
1747 1747
1748 RollbackResponse.fromJson(core.Map _json) { 1748 RollbackResponse.fromJson(core.Map _json) {
1749 } 1749 }
1750 1750
1751 core.Map toJson() { 1751 core.Map<core.String, core.Object> toJson() {
1752 var _json = new core.Map(); 1752 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1753 return _json; 1753 return _json;
1754 } 1754 }
1755 } 1755 }
1756 1756
1757 /** The request for Datastore.RunQuery. */ 1757 /** The request for Datastore.RunQuery. */
1758 class RunQueryRequest { 1758 class RunQueryRequest {
1759 /** The GQL query to run. */ 1759 /** The GQL query to run. */
1760 GqlQuery gqlQuery; 1760 GqlQuery gqlQuery;
1761 /** 1761 /**
1762 * Entities are partitioned into subsets, identified by a partition ID. 1762 * Entities are partitioned into subsets, identified by a partition ID.
(...skipping 17 matching lines...) Expand all
1780 partitionId = new PartitionId.fromJson(_json["partitionId"]); 1780 partitionId = new PartitionId.fromJson(_json["partitionId"]);
1781 } 1781 }
1782 if (_json.containsKey("query")) { 1782 if (_json.containsKey("query")) {
1783 query = new Query.fromJson(_json["query"]); 1783 query = new Query.fromJson(_json["query"]);
1784 } 1784 }
1785 if (_json.containsKey("readOptions")) { 1785 if (_json.containsKey("readOptions")) {
1786 readOptions = new ReadOptions.fromJson(_json["readOptions"]); 1786 readOptions = new ReadOptions.fromJson(_json["readOptions"]);
1787 } 1787 }
1788 } 1788 }
1789 1789
1790 core.Map toJson() { 1790 core.Map<core.String, core.Object> toJson() {
1791 var _json = new core.Map(); 1791 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1792 if (gqlQuery != null) { 1792 if (gqlQuery != null) {
1793 _json["gqlQuery"] = (gqlQuery).toJson(); 1793 _json["gqlQuery"] = (gqlQuery).toJson();
1794 } 1794 }
1795 if (partitionId != null) { 1795 if (partitionId != null) {
1796 _json["partitionId"] = (partitionId).toJson(); 1796 _json["partitionId"] = (partitionId).toJson();
1797 } 1797 }
1798 if (query != null) { 1798 if (query != null) {
1799 _json["query"] = (query).toJson(); 1799 _json["query"] = (query).toJson();
1800 } 1800 }
1801 if (readOptions != null) { 1801 if (readOptions != null) {
(...skipping 14 matching lines...) Expand all
1816 1816
1817 RunQueryResponse.fromJson(core.Map _json) { 1817 RunQueryResponse.fromJson(core.Map _json) {
1818 if (_json.containsKey("batch")) { 1818 if (_json.containsKey("batch")) {
1819 batch = new QueryResultBatch.fromJson(_json["batch"]); 1819 batch = new QueryResultBatch.fromJson(_json["batch"]);
1820 } 1820 }
1821 if (_json.containsKey("query")) { 1821 if (_json.containsKey("query")) {
1822 query = new Query.fromJson(_json["query"]); 1822 query = new Query.fromJson(_json["query"]);
1823 } 1823 }
1824 } 1824 }
1825 1825
1826 core.Map toJson() { 1826 core.Map<core.String, core.Object> toJson() {
1827 var _json = new core.Map(); 1827 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1828 if (batch != null) { 1828 if (batch != null) {
1829 _json["batch"] = (batch).toJson(); 1829 _json["batch"] = (batch).toJson();
1830 } 1830 }
1831 if (query != null) { 1831 if (query != null) {
1832 _json["query"] = (query).toJson(); 1832 _json["query"] = (query).toJson();
1833 } 1833 }
1834 return _json; 1834 return _json;
1835 } 1835 }
1836 } 1836 }
1837 1837
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1945 nullValue = _json["nullValue"]; 1945 nullValue = _json["nullValue"];
1946 } 1946 }
1947 if (_json.containsKey("stringValue")) { 1947 if (_json.containsKey("stringValue")) {
1948 stringValue = _json["stringValue"]; 1948 stringValue = _json["stringValue"];
1949 } 1949 }
1950 if (_json.containsKey("timestampValue")) { 1950 if (_json.containsKey("timestampValue")) {
1951 timestampValue = _json["timestampValue"]; 1951 timestampValue = _json["timestampValue"];
1952 } 1952 }
1953 } 1953 }
1954 1954
1955 core.Map toJson() { 1955 core.Map<core.String, core.Object> toJson() {
1956 var _json = new core.Map(); 1956 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1957 if (arrayValue != null) { 1957 if (arrayValue != null) {
1958 _json["arrayValue"] = (arrayValue).toJson(); 1958 _json["arrayValue"] = (arrayValue).toJson();
1959 } 1959 }
1960 if (blobValue != null) { 1960 if (blobValue != null) {
1961 _json["blobValue"] = blobValue; 1961 _json["blobValue"] = blobValue;
1962 } 1962 }
1963 if (booleanValue != null) { 1963 if (booleanValue != null) {
1964 _json["booleanValue"] = booleanValue; 1964 _json["booleanValue"] = booleanValue;
1965 } 1965 }
1966 if (doubleValue != null) { 1966 if (doubleValue != null) {
(...skipping 22 matching lines...) Expand all
1989 } 1989 }
1990 if (stringValue != null) { 1990 if (stringValue != null) {
1991 _json["stringValue"] = stringValue; 1991 _json["stringValue"] = stringValue;
1992 } 1992 }
1993 if (timestampValue != null) { 1993 if (timestampValue != null) {
1994 _json["timestampValue"] = timestampValue; 1994 _json["timestampValue"] = timestampValue;
1995 } 1995 }
1996 return _json; 1996 return _json;
1997 } 1997 }
1998 } 1998 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/dataproc/v1.dart ('k') | generated/googleapis/lib/deploymentmanager/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698