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

Side by Side Diff: generated/googleapis/lib/prediction/v1_6.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
« no previous file with comments | « generated/googleapis/lib/plusdomains/v1.dart ('k') | generated/googleapis/lib/pubsub/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.prediction.v1_6; 3 library googleapis.prediction.v1_6;
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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 446
447 AnalyzeDataDescriptionFeaturesCategoricalValues.fromJson(core.Map _json) { 447 AnalyzeDataDescriptionFeaturesCategoricalValues.fromJson(core.Map _json) {
448 if (_json.containsKey("count")) { 448 if (_json.containsKey("count")) {
449 count = _json["count"]; 449 count = _json["count"];
450 } 450 }
451 if (_json.containsKey("value")) { 451 if (_json.containsKey("value")) {
452 value = _json["value"]; 452 value = _json["value"];
453 } 453 }
454 } 454 }
455 455
456 core.Map toJson() { 456 core.Map<core.String, core.Object> toJson() {
457 var _json = new core.Map(); 457 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
458 if (count != null) { 458 if (count != null) {
459 _json["count"] = count; 459 _json["count"] = count;
460 } 460 }
461 if (value != null) { 461 if (value != null) {
462 _json["value"] = value; 462 _json["value"] = value;
463 } 463 }
464 return _json; 464 return _json;
465 } 465 }
466 } 466 }
467 467
468 /** Description of the categorical values of this feature. */ 468 /** Description of the categorical values of this feature. */
469 class AnalyzeDataDescriptionFeaturesCategorical { 469 class AnalyzeDataDescriptionFeaturesCategorical {
470 /** Number of categorical values for this feature in the data. */ 470 /** Number of categorical values for this feature in the data. */
471 core.String count; 471 core.String count;
472 /** List of all the categories for this feature in the data set. */ 472 /** List of all the categories for this feature in the data set. */
473 core.List<AnalyzeDataDescriptionFeaturesCategoricalValues> values; 473 core.List<AnalyzeDataDescriptionFeaturesCategoricalValues> values;
474 474
475 AnalyzeDataDescriptionFeaturesCategorical(); 475 AnalyzeDataDescriptionFeaturesCategorical();
476 476
477 AnalyzeDataDescriptionFeaturesCategorical.fromJson(core.Map _json) { 477 AnalyzeDataDescriptionFeaturesCategorical.fromJson(core.Map _json) {
478 if (_json.containsKey("count")) { 478 if (_json.containsKey("count")) {
479 count = _json["count"]; 479 count = _json["count"];
480 } 480 }
481 if (_json.containsKey("values")) { 481 if (_json.containsKey("values")) {
482 values = _json["values"].map((value) => new AnalyzeDataDescriptionFeatures CategoricalValues.fromJson(value)).toList(); 482 values = _json["values"].map((value) => new AnalyzeDataDescriptionFeatures CategoricalValues.fromJson(value)).toList();
483 } 483 }
484 } 484 }
485 485
486 core.Map toJson() { 486 core.Map<core.String, core.Object> toJson() {
487 var _json = new core.Map(); 487 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
488 if (count != null) { 488 if (count != null) {
489 _json["count"] = count; 489 _json["count"] = count;
490 } 490 }
491 if (values != null) { 491 if (values != null) {
492 _json["values"] = values.map((value) => (value).toJson()).toList(); 492 _json["values"] = values.map((value) => (value).toJson()).toList();
493 } 493 }
494 return _json; 494 return _json;
495 } 495 }
496 } 496 }
497 497
(...skipping 13 matching lines...) Expand all
511 count = _json["count"]; 511 count = _json["count"];
512 } 512 }
513 if (_json.containsKey("mean")) { 513 if (_json.containsKey("mean")) {
514 mean = _json["mean"]; 514 mean = _json["mean"];
515 } 515 }
516 if (_json.containsKey("variance")) { 516 if (_json.containsKey("variance")) {
517 variance = _json["variance"]; 517 variance = _json["variance"];
518 } 518 }
519 } 519 }
520 520
521 core.Map toJson() { 521 core.Map<core.String, core.Object> toJson() {
522 var _json = new core.Map(); 522 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
523 if (count != null) { 523 if (count != null) {
524 _json["count"] = count; 524 _json["count"] = count;
525 } 525 }
526 if (mean != null) { 526 if (mean != null) {
527 _json["mean"] = mean; 527 _json["mean"] = mean;
528 } 528 }
529 if (variance != null) { 529 if (variance != null) {
530 _json["variance"] = variance; 530 _json["variance"] = variance;
531 } 531 }
532 return _json; 532 return _json;
533 } 533 }
534 } 534 }
535 535
536 /** Description of multiple-word text values of this feature. */ 536 /** Description of multiple-word text values of this feature. */
537 class AnalyzeDataDescriptionFeaturesText { 537 class AnalyzeDataDescriptionFeaturesText {
538 /** Number of multiple-word text values for this feature. */ 538 /** Number of multiple-word text values for this feature. */
539 core.String count; 539 core.String count;
540 540
541 AnalyzeDataDescriptionFeaturesText(); 541 AnalyzeDataDescriptionFeaturesText();
542 542
543 AnalyzeDataDescriptionFeaturesText.fromJson(core.Map _json) { 543 AnalyzeDataDescriptionFeaturesText.fromJson(core.Map _json) {
544 if (_json.containsKey("count")) { 544 if (_json.containsKey("count")) {
545 count = _json["count"]; 545 count = _json["count"];
546 } 546 }
547 } 547 }
548 548
549 core.Map toJson() { 549 core.Map<core.String, core.Object> toJson() {
550 var _json = new core.Map(); 550 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
551 if (count != null) { 551 if (count != null) {
552 _json["count"] = count; 552 _json["count"] = count;
553 } 553 }
554 return _json; 554 return _json;
555 } 555 }
556 } 556 }
557 557
558 class AnalyzeDataDescriptionFeatures { 558 class AnalyzeDataDescriptionFeatures {
559 /** Description of the categorical values of this feature. */ 559 /** Description of the categorical values of this feature. */
560 AnalyzeDataDescriptionFeaturesCategorical categorical; 560 AnalyzeDataDescriptionFeaturesCategorical categorical;
(...skipping 14 matching lines...) Expand all
575 index = _json["index"]; 575 index = _json["index"];
576 } 576 }
577 if (_json.containsKey("numeric")) { 577 if (_json.containsKey("numeric")) {
578 numeric = new AnalyzeDataDescriptionFeaturesNumeric.fromJson(_json["numeri c"]); 578 numeric = new AnalyzeDataDescriptionFeaturesNumeric.fromJson(_json["numeri c"]);
579 } 579 }
580 if (_json.containsKey("text")) { 580 if (_json.containsKey("text")) {
581 text = new AnalyzeDataDescriptionFeaturesText.fromJson(_json["text"]); 581 text = new AnalyzeDataDescriptionFeaturesText.fromJson(_json["text"]);
582 } 582 }
583 } 583 }
584 584
585 core.Map toJson() { 585 core.Map<core.String, core.Object> toJson() {
586 var _json = new core.Map(); 586 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
587 if (categorical != null) { 587 if (categorical != null) {
588 _json["categorical"] = (categorical).toJson(); 588 _json["categorical"] = (categorical).toJson();
589 } 589 }
590 if (index != null) { 590 if (index != null) {
591 _json["index"] = index; 591 _json["index"] = index;
592 } 592 }
593 if (numeric != null) { 593 if (numeric != null) {
594 _json["numeric"] = (numeric).toJson(); 594 _json["numeric"] = (numeric).toJson();
595 } 595 }
596 if (text != null) { 596 if (text != null) {
(...skipping 19 matching lines...) Expand all
616 count = _json["count"]; 616 count = _json["count"];
617 } 617 }
618 if (_json.containsKey("mean")) { 618 if (_json.containsKey("mean")) {
619 mean = _json["mean"]; 619 mean = _json["mean"];
620 } 620 }
621 if (_json.containsKey("variance")) { 621 if (_json.containsKey("variance")) {
622 variance = _json["variance"]; 622 variance = _json["variance"];
623 } 623 }
624 } 624 }
625 625
626 core.Map toJson() { 626 core.Map<core.String, core.Object> toJson() {
627 var _json = new core.Map(); 627 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
628 if (count != null) { 628 if (count != null) {
629 _json["count"] = count; 629 _json["count"] = count;
630 } 630 }
631 if (mean != null) { 631 if (mean != null) {
632 _json["mean"] = mean; 632 _json["mean"] = mean;
633 } 633 }
634 if (variance != null) { 634 if (variance != null) {
635 _json["variance"] = variance; 635 _json["variance"] = variance;
636 } 636 }
637 return _json; 637 return _json;
(...skipping 10 matching lines...) Expand all
648 648
649 AnalyzeDataDescriptionOutputFeatureText.fromJson(core.Map _json) { 649 AnalyzeDataDescriptionOutputFeatureText.fromJson(core.Map _json) {
650 if (_json.containsKey("count")) { 650 if (_json.containsKey("count")) {
651 count = _json["count"]; 651 count = _json["count"];
652 } 652 }
653 if (_json.containsKey("value")) { 653 if (_json.containsKey("value")) {
654 value = _json["value"]; 654 value = _json["value"];
655 } 655 }
656 } 656 }
657 657
658 core.Map toJson() { 658 core.Map<core.String, core.Object> toJson() {
659 var _json = new core.Map(); 659 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
660 if (count != null) { 660 if (count != null) {
661 _json["count"] = count; 661 _json["count"] = count;
662 } 662 }
663 if (value != null) { 663 if (value != null) {
664 _json["value"] = value; 664 _json["value"] = value;
665 } 665 }
666 return _json; 666 return _json;
667 } 667 }
668 } 668 }
669 669
670 /** Description of the output value or label. */ 670 /** Description of the output value or label. */
671 class AnalyzeDataDescriptionOutputFeature { 671 class AnalyzeDataDescriptionOutputFeature {
672 /** Description of the output values in the data set. */ 672 /** Description of the output values in the data set. */
673 AnalyzeDataDescriptionOutputFeatureNumeric numeric; 673 AnalyzeDataDescriptionOutputFeatureNumeric numeric;
674 /** Description of the output labels in the data set. */ 674 /** Description of the output labels in the data set. */
675 core.List<AnalyzeDataDescriptionOutputFeatureText> text; 675 core.List<AnalyzeDataDescriptionOutputFeatureText> text;
676 676
677 AnalyzeDataDescriptionOutputFeature(); 677 AnalyzeDataDescriptionOutputFeature();
678 678
679 AnalyzeDataDescriptionOutputFeature.fromJson(core.Map _json) { 679 AnalyzeDataDescriptionOutputFeature.fromJson(core.Map _json) {
680 if (_json.containsKey("numeric")) { 680 if (_json.containsKey("numeric")) {
681 numeric = new AnalyzeDataDescriptionOutputFeatureNumeric.fromJson(_json["n umeric"]); 681 numeric = new AnalyzeDataDescriptionOutputFeatureNumeric.fromJson(_json["n umeric"]);
682 } 682 }
683 if (_json.containsKey("text")) { 683 if (_json.containsKey("text")) {
684 text = _json["text"].map((value) => new AnalyzeDataDescriptionOutputFeatur eText.fromJson(value)).toList(); 684 text = _json["text"].map((value) => new AnalyzeDataDescriptionOutputFeatur eText.fromJson(value)).toList();
685 } 685 }
686 } 686 }
687 687
688 core.Map toJson() { 688 core.Map<core.String, core.Object> toJson() {
689 var _json = new core.Map(); 689 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
690 if (numeric != null) { 690 if (numeric != null) {
691 _json["numeric"] = (numeric).toJson(); 691 _json["numeric"] = (numeric).toJson();
692 } 692 }
693 if (text != null) { 693 if (text != null) {
694 _json["text"] = text.map((value) => (value).toJson()).toList(); 694 _json["text"] = text.map((value) => (value).toJson()).toList();
695 } 695 }
696 return _json; 696 return _json;
697 } 697 }
698 } 698 }
699 699
700 /** Description of the data the model was trained on. */ 700 /** Description of the data the model was trained on. */
701 class AnalyzeDataDescription { 701 class AnalyzeDataDescription {
702 /** Description of the input features in the data set. */ 702 /** Description of the input features in the data set. */
703 core.List<AnalyzeDataDescriptionFeatures> features; 703 core.List<AnalyzeDataDescriptionFeatures> features;
704 /** Description of the output value or label. */ 704 /** Description of the output value or label. */
705 AnalyzeDataDescriptionOutputFeature outputFeature; 705 AnalyzeDataDescriptionOutputFeature outputFeature;
706 706
707 AnalyzeDataDescription(); 707 AnalyzeDataDescription();
708 708
709 AnalyzeDataDescription.fromJson(core.Map _json) { 709 AnalyzeDataDescription.fromJson(core.Map _json) {
710 if (_json.containsKey("features")) { 710 if (_json.containsKey("features")) {
711 features = _json["features"].map((value) => new AnalyzeDataDescriptionFeat ures.fromJson(value)).toList(); 711 features = _json["features"].map((value) => new AnalyzeDataDescriptionFeat ures.fromJson(value)).toList();
712 } 712 }
713 if (_json.containsKey("outputFeature")) { 713 if (_json.containsKey("outputFeature")) {
714 outputFeature = new AnalyzeDataDescriptionOutputFeature.fromJson(_json["ou tputFeature"]); 714 outputFeature = new AnalyzeDataDescriptionOutputFeature.fromJson(_json["ou tputFeature"]);
715 } 715 }
716 } 716 }
717 717
718 core.Map toJson() { 718 core.Map<core.String, core.Object> toJson() {
719 var _json = new core.Map(); 719 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
720 if (features != null) { 720 if (features != null) {
721 _json["features"] = features.map((value) => (value).toJson()).toList(); 721 _json["features"] = features.map((value) => (value).toJson()).toList();
722 } 722 }
723 if (outputFeature != null) { 723 if (outputFeature != null) {
724 _json["outputFeature"] = (outputFeature).toJson(); 724 _json["outputFeature"] = (outputFeature).toJson();
725 } 725 }
726 return _json; 726 return _json;
727 } 727 }
728 } 728 }
729 729
(...skipping 20 matching lines...) Expand all
750 confusionMatrix = _json["confusionMatrix"]; 750 confusionMatrix = _json["confusionMatrix"];
751 } 751 }
752 if (_json.containsKey("confusionMatrixRowTotals")) { 752 if (_json.containsKey("confusionMatrixRowTotals")) {
753 confusionMatrixRowTotals = _json["confusionMatrixRowTotals"]; 753 confusionMatrixRowTotals = _json["confusionMatrixRowTotals"];
754 } 754 }
755 if (_json.containsKey("modelinfo")) { 755 if (_json.containsKey("modelinfo")) {
756 modelinfo = new Insert2.fromJson(_json["modelinfo"]); 756 modelinfo = new Insert2.fromJson(_json["modelinfo"]);
757 } 757 }
758 } 758 }
759 759
760 core.Map toJson() { 760 core.Map<core.String, core.Object> toJson() {
761 var _json = new core.Map(); 761 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
762 if (confusionMatrix != null) { 762 if (confusionMatrix != null) {
763 _json["confusionMatrix"] = confusionMatrix; 763 _json["confusionMatrix"] = confusionMatrix;
764 } 764 }
765 if (confusionMatrixRowTotals != null) { 765 if (confusionMatrixRowTotals != null) {
766 _json["confusionMatrixRowTotals"] = confusionMatrixRowTotals; 766 _json["confusionMatrixRowTotals"] = confusionMatrixRowTotals;
767 } 767 }
768 if (modelinfo != null) { 768 if (modelinfo != null) {
769 _json["modelinfo"] = (modelinfo).toJson(); 769 _json["modelinfo"] = (modelinfo).toJson();
770 } 770 }
771 return _json; 771 return _json;
(...skipping 30 matching lines...) Expand all
802 kind = _json["kind"]; 802 kind = _json["kind"];
803 } 803 }
804 if (_json.containsKey("modelDescription")) { 804 if (_json.containsKey("modelDescription")) {
805 modelDescription = new AnalyzeModelDescription.fromJson(_json["modelDescri ption"]); 805 modelDescription = new AnalyzeModelDescription.fromJson(_json["modelDescri ption"]);
806 } 806 }
807 if (_json.containsKey("selfLink")) { 807 if (_json.containsKey("selfLink")) {
808 selfLink = _json["selfLink"]; 808 selfLink = _json["selfLink"];
809 } 809 }
810 } 810 }
811 811
812 core.Map toJson() { 812 core.Map<core.String, core.Object> toJson() {
813 var _json = new core.Map(); 813 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
814 if (dataDescription != null) { 814 if (dataDescription != null) {
815 _json["dataDescription"] = (dataDescription).toJson(); 815 _json["dataDescription"] = (dataDescription).toJson();
816 } 816 }
817 if (errors != null) { 817 if (errors != null) {
818 _json["errors"] = errors; 818 _json["errors"] = errors;
819 } 819 }
820 if (id != null) { 820 if (id != null) {
821 _json["id"] = id; 821 _json["id"] = id;
822 } 822 }
823 if (kind != null) { 823 if (kind != null) {
(...skipping 20 matching lines...) Expand all
844 core.List<core.Object> csvInstance; 844 core.List<core.Object> csvInstance;
845 845
846 InputInput(); 846 InputInput();
847 847
848 InputInput.fromJson(core.Map _json) { 848 InputInput.fromJson(core.Map _json) {
849 if (_json.containsKey("csvInstance")) { 849 if (_json.containsKey("csvInstance")) {
850 csvInstance = _json["csvInstance"]; 850 csvInstance = _json["csvInstance"];
851 } 851 }
852 } 852 }
853 853
854 core.Map toJson() { 854 core.Map<core.String, core.Object> toJson() {
855 var _json = new core.Map(); 855 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
856 if (csvInstance != null) { 856 if (csvInstance != null) {
857 _json["csvInstance"] = csvInstance; 857 _json["csvInstance"] = csvInstance;
858 } 858 }
859 return _json; 859 return _json;
860 } 860 }
861 } 861 }
862 862
863 class Input { 863 class Input {
864 /** Input to the model for a prediction. */ 864 /** Input to the model for a prediction. */
865 InputInput input; 865 InputInput input;
866 866
867 Input(); 867 Input();
868 868
869 Input.fromJson(core.Map _json) { 869 Input.fromJson(core.Map _json) {
870 if (_json.containsKey("input")) { 870 if (_json.containsKey("input")) {
871 input = new InputInput.fromJson(_json["input"]); 871 input = new InputInput.fromJson(_json["input"]);
872 } 872 }
873 } 873 }
874 874
875 core.Map toJson() { 875 core.Map<core.String, core.Object> toJson() {
876 var _json = new core.Map(); 876 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
877 if (input != null) { 877 if (input != null) {
878 _json["input"] = (input).toJson(); 878 _json["input"] = (input).toJson();
879 } 879 }
880 return _json; 880 return _json;
881 } 881 }
882 } 882 }
883 883
884 class InsertTrainingInstances { 884 class InsertTrainingInstances {
885 /** 885 /**
886 * The input features for this instance. 886 * The input features for this instance.
887 * 887 *
888 * The values for Object must be JSON objects. It can consist of `num`, 888 * The values for Object must be JSON objects. It can consist of `num`,
889 * `String`, `bool` and `null` as well as `Map` and `List` values. 889 * `String`, `bool` and `null` as well as `Map` and `List` values.
890 */ 890 */
891 core.List<core.Object> csvInstance; 891 core.List<core.Object> csvInstance;
892 /** The generic output value - could be regression or class label. */ 892 /** The generic output value - could be regression or class label. */
893 core.String output; 893 core.String output;
894 894
895 InsertTrainingInstances(); 895 InsertTrainingInstances();
896 896
897 InsertTrainingInstances.fromJson(core.Map _json) { 897 InsertTrainingInstances.fromJson(core.Map _json) {
898 if (_json.containsKey("csvInstance")) { 898 if (_json.containsKey("csvInstance")) {
899 csvInstance = _json["csvInstance"]; 899 csvInstance = _json["csvInstance"];
900 } 900 }
901 if (_json.containsKey("output")) { 901 if (_json.containsKey("output")) {
902 output = _json["output"]; 902 output = _json["output"];
903 } 903 }
904 } 904 }
905 905
906 core.Map toJson() { 906 core.Map<core.String, core.Object> toJson() {
907 var _json = new core.Map(); 907 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
908 if (csvInstance != null) { 908 if (csvInstance != null) {
909 _json["csvInstance"] = csvInstance; 909 _json["csvInstance"] = csvInstance;
910 } 910 }
911 if (output != null) { 911 if (output != null) {
912 _json["output"] = output; 912 _json["output"] = output;
913 } 913 }
914 return _json; 914 return _json;
915 } 915 }
916 } 916 }
917 917
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 storagePMMLModelLocation = _json["storagePMMLModelLocation"]; 958 storagePMMLModelLocation = _json["storagePMMLModelLocation"];
959 } 959 }
960 if (_json.containsKey("trainingInstances")) { 960 if (_json.containsKey("trainingInstances")) {
961 trainingInstances = _json["trainingInstances"].map((value) => new InsertTr ainingInstances.fromJson(value)).toList(); 961 trainingInstances = _json["trainingInstances"].map((value) => new InsertTr ainingInstances.fromJson(value)).toList();
962 } 962 }
963 if (_json.containsKey("utility")) { 963 if (_json.containsKey("utility")) {
964 utility = _json["utility"]; 964 utility = _json["utility"];
965 } 965 }
966 } 966 }
967 967
968 core.Map toJson() { 968 core.Map<core.String, core.Object> toJson() {
969 var _json = new core.Map(); 969 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
970 if (id != null) { 970 if (id != null) {
971 _json["id"] = id; 971 _json["id"] = id;
972 } 972 }
973 if (modelType != null) { 973 if (modelType != null) {
974 _json["modelType"] = modelType; 974 _json["modelType"] = modelType;
975 } 975 }
976 if (sourceModel != null) { 976 if (sourceModel != null) {
977 _json["sourceModel"] = sourceModel; 977 _json["sourceModel"] = sourceModel;
978 } 978 }
979 if (storageDataLocation != null) { 979 if (storageDataLocation != null) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 modelType = _json["modelType"]; 1039 modelType = _json["modelType"];
1040 } 1040 }
1041 if (_json.containsKey("numberInstances")) { 1041 if (_json.containsKey("numberInstances")) {
1042 numberInstances = _json["numberInstances"]; 1042 numberInstances = _json["numberInstances"];
1043 } 1043 }
1044 if (_json.containsKey("numberLabels")) { 1044 if (_json.containsKey("numberLabels")) {
1045 numberLabels = _json["numberLabels"]; 1045 numberLabels = _json["numberLabels"];
1046 } 1046 }
1047 } 1047 }
1048 1048
1049 core.Map toJson() { 1049 core.Map<core.String, core.Object> toJson() {
1050 var _json = new core.Map(); 1050 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1051 if (classWeightedAccuracy != null) { 1051 if (classWeightedAccuracy != null) {
1052 _json["classWeightedAccuracy"] = classWeightedAccuracy; 1052 _json["classWeightedAccuracy"] = classWeightedAccuracy;
1053 } 1053 }
1054 if (classificationAccuracy != null) { 1054 if (classificationAccuracy != null) {
1055 _json["classificationAccuracy"] = classificationAccuracy; 1055 _json["classificationAccuracy"] = classificationAccuracy;
1056 } 1056 }
1057 if (meanSquaredError != null) { 1057 if (meanSquaredError != null) {
1058 _json["meanSquaredError"] = meanSquaredError; 1058 _json["meanSquaredError"] = meanSquaredError;
1059 } 1059 }
1060 if (modelType != null) { 1060 if (modelType != null) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 storagePMMLModelLocation = _json["storagePMMLModelLocation"]; 1128 storagePMMLModelLocation = _json["storagePMMLModelLocation"];
1129 } 1129 }
1130 if (_json.containsKey("trainingComplete")) { 1130 if (_json.containsKey("trainingComplete")) {
1131 trainingComplete = core.DateTime.parse(_json["trainingComplete"]); 1131 trainingComplete = core.DateTime.parse(_json["trainingComplete"]);
1132 } 1132 }
1133 if (_json.containsKey("trainingStatus")) { 1133 if (_json.containsKey("trainingStatus")) {
1134 trainingStatus = _json["trainingStatus"]; 1134 trainingStatus = _json["trainingStatus"];
1135 } 1135 }
1136 } 1136 }
1137 1137
1138 core.Map toJson() { 1138 core.Map<core.String, core.Object> toJson() {
1139 var _json = new core.Map(); 1139 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1140 if (created != null) { 1140 if (created != null) {
1141 _json["created"] = (created).toIso8601String(); 1141 _json["created"] = (created).toIso8601String();
1142 } 1142 }
1143 if (id != null) { 1143 if (id != null) {
1144 _json["id"] = id; 1144 _json["id"] = id;
1145 } 1145 }
1146 if (kind != null) { 1146 if (kind != null) {
1147 _json["kind"] = kind; 1147 _json["kind"] = kind;
1148 } 1148 }
1149 if (modelInfo != null) { 1149 if (modelInfo != null) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 kind = _json["kind"]; 1194 kind = _json["kind"];
1195 } 1195 }
1196 if (_json.containsKey("nextPageToken")) { 1196 if (_json.containsKey("nextPageToken")) {
1197 nextPageToken = _json["nextPageToken"]; 1197 nextPageToken = _json["nextPageToken"];
1198 } 1198 }
1199 if (_json.containsKey("selfLink")) { 1199 if (_json.containsKey("selfLink")) {
1200 selfLink = _json["selfLink"]; 1200 selfLink = _json["selfLink"];
1201 } 1201 }
1202 } 1202 }
1203 1203
1204 core.Map toJson() { 1204 core.Map<core.String, core.Object> toJson() {
1205 var _json = new core.Map(); 1205 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1206 if (items != null) { 1206 if (items != null) {
1207 _json["items"] = items.map((value) => (value).toJson()).toList(); 1207 _json["items"] = items.map((value) => (value).toJson()).toList();
1208 } 1208 }
1209 if (kind != null) { 1209 if (kind != null) {
1210 _json["kind"] = kind; 1210 _json["kind"] = kind;
1211 } 1211 }
1212 if (nextPageToken != null) { 1212 if (nextPageToken != null) {
1213 _json["nextPageToken"] = nextPageToken; 1213 _json["nextPageToken"] = nextPageToken;
1214 } 1214 }
1215 if (selfLink != null) { 1215 if (selfLink != null) {
(...skipping 13 matching lines...) Expand all
1229 1229
1230 OutputOutputMulti.fromJson(core.Map _json) { 1230 OutputOutputMulti.fromJson(core.Map _json) {
1231 if (_json.containsKey("label")) { 1231 if (_json.containsKey("label")) {
1232 label = _json["label"]; 1232 label = _json["label"];
1233 } 1233 }
1234 if (_json.containsKey("score")) { 1234 if (_json.containsKey("score")) {
1235 score = _json["score"]; 1235 score = _json["score"];
1236 } 1236 }
1237 } 1237 }
1238 1238
1239 core.Map toJson() { 1239 core.Map<core.String, core.Object> toJson() {
1240 var _json = new core.Map(); 1240 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1241 if (label != null) { 1241 if (label != null) {
1242 _json["label"] = label; 1242 _json["label"] = label;
1243 } 1243 }
1244 if (score != null) { 1244 if (score != null) {
1245 _json["score"] = score; 1245 _json["score"] = score;
1246 } 1246 }
1247 return _json; 1247 return _json;
1248 } 1248 }
1249 } 1249 }
1250 1250
(...skipping 30 matching lines...) Expand all
1281 outputMulti = _json["outputMulti"].map((value) => new OutputOutputMulti.fr omJson(value)).toList(); 1281 outputMulti = _json["outputMulti"].map((value) => new OutputOutputMulti.fr omJson(value)).toList();
1282 } 1282 }
1283 if (_json.containsKey("outputValue")) { 1283 if (_json.containsKey("outputValue")) {
1284 outputValue = _json["outputValue"]; 1284 outputValue = _json["outputValue"];
1285 } 1285 }
1286 if (_json.containsKey("selfLink")) { 1286 if (_json.containsKey("selfLink")) {
1287 selfLink = _json["selfLink"]; 1287 selfLink = _json["selfLink"];
1288 } 1288 }
1289 } 1289 }
1290 1290
1291 core.Map toJson() { 1291 core.Map<core.String, core.Object> toJson() {
1292 var _json = new core.Map(); 1292 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1293 if (id != null) { 1293 if (id != null) {
1294 _json["id"] = id; 1294 _json["id"] = id;
1295 } 1295 }
1296 if (kind != null) { 1296 if (kind != null) {
1297 _json["kind"] = kind; 1297 _json["kind"] = kind;
1298 } 1298 }
1299 if (outputLabel != null) { 1299 if (outputLabel != null) {
1300 _json["outputLabel"] = outputLabel; 1300 _json["outputLabel"] = outputLabel;
1301 } 1301 }
1302 if (outputMulti != null) { 1302 if (outputMulti != null) {
(...skipping 24 matching lines...) Expand all
1327 1327
1328 Update.fromJson(core.Map _json) { 1328 Update.fromJson(core.Map _json) {
1329 if (_json.containsKey("csvInstance")) { 1329 if (_json.containsKey("csvInstance")) {
1330 csvInstance = _json["csvInstance"]; 1330 csvInstance = _json["csvInstance"];
1331 } 1331 }
1332 if (_json.containsKey("output")) { 1332 if (_json.containsKey("output")) {
1333 output = _json["output"]; 1333 output = _json["output"];
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 (csvInstance != null) { 1339 if (csvInstance != null) {
1340 _json["csvInstance"] = csvInstance; 1340 _json["csvInstance"] = csvInstance;
1341 } 1341 }
1342 if (output != null) { 1342 if (output != null) {
1343 _json["output"] = output; 1343 _json["output"] = output;
1344 } 1344 }
1345 return _json; 1345 return _json;
1346 } 1346 }
1347 } 1347 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/plusdomains/v1.dart ('k') | generated/googleapis/lib/pubsub/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698