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

Side by Side Diff: generated/googleapis/lib/consumersurveys/v2.dart

Issue 2485703002: Api-roll 42: 2016-11-08 (Closed)
Patch Set: Created 4 years, 1 month 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/compute/v1.dart ('k') | generated/googleapis/lib/content/v2.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.consumersurveys.v2; 3 library googleapis.consumersurveys.v2;
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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 186
187 class ResultsResourceApi { 187 class ResultsResourceApi {
188 final commons.ApiRequester _requester; 188 final commons.ApiRequester _requester;
189 189
190 ResultsResourceApi(commons.ApiRequester client) : 190 ResultsResourceApi(commons.ApiRequester client) :
191 _requester = client; 191 _requester = client;
192 192
193 /** 193 /**
194 * Retrieves any survey results that have been produced so far. Results are 194 * Retrieves any survey results that have been produced so far. Results are
195 * formatted as an Excel file. 195 * formatted as an Excel file. You must add "?alt=media" to the URL as an
196 * argument to get results.
196 * 197 *
197 * [request] - The metadata request object. 198 * [request] - The metadata request object.
198 * 199 *
199 * Request parameters: 200 * Request parameters:
200 * 201 *
201 * [surveyUrlId] - External URL ID for the survey. 202 * [surveyUrlId] - External URL ID for the survey.
202 * 203 *
203 * [downloadOptions] - Options for downloading. A download can be either a 204 * [downloadOptions] - Options for downloading. A download can be either a
204 * Metadata (default) or Media download. Partial Media downloads are possible 205 * Metadata (default) or Media download. Partial Media downloads are possible
205 * as well. 206 * as well.
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 if (fields != null) { 578 if (fields != null) {
578 _json["fields"] = fields.map((value) => (value).toJson()).toList(); 579 _json["fields"] = fields.map((value) => (value).toJson()).toList();
579 } 580 }
580 if (id != null) { 581 if (id != null) {
581 _json["id"] = id; 582 _json["id"] = id;
582 } 583 }
583 return _json; 584 return _json;
584 } 585 }
585 } 586 }
586 587
587 /**
588 * Representation of an individual pre-defined panel object defining a targeted
589 * audience of opinion rewards mobile app users.
590 */
591 class MobileAppPanel { 588 class MobileAppPanel {
592 /**
593 * Country code for the country of the users that the panel contains. Uses
594 * standard ISO 3166-1 2-character language codes. For instance, 'US' for the
595 * United States, and 'GB' for the United Kingdom. Any survey created
596 * targeting this panel must also target the corresponding country.
597 */
598 core.String country; 589 core.String country;
599 /** Whether or not the panel is accessible to all API users. */
600 core.bool isPublicPanel; 590 core.bool isPublicPanel;
601 /**
602 * Language code that the panel can target. For instance, 'en-US'. Uses
603 * standard BCP47 language codes. See specification. Any survey created
604 * targeting this panel must also target the corresponding language.
605 */
606 core.String language; 591 core.String language;
607 /**
608 * Unique panel ID string. This corresponds to the mobile_app_panel_id used in
609 * Survey Insert requests.
610 */
611 core.String mobileAppPanelId; 592 core.String mobileAppPanelId;
612 /** Human readable name of the audience panel. */
613 core.String name; 593 core.String name;
614 /**
615 * List of email addresses for users who can target members of this panel.
616 * Must contain at least the address of the user making the API call for
617 * panels that are not public. This field will be empty for public panels.
618 */
619 core.List<core.String> owners; 594 core.List<core.String> owners;
620 595
621 MobileAppPanel(); 596 MobileAppPanel();
622 597
623 MobileAppPanel.fromJson(core.Map _json) { 598 MobileAppPanel.fromJson(core.Map _json) {
624 if (_json.containsKey("country")) { 599 if (_json.containsKey("country")) {
625 country = _json["country"]; 600 country = _json["country"];
626 } 601 }
627 if (_json.containsKey("isPublicPanel")) { 602 if (_json.containsKey("isPublicPanel")) {
628 isPublicPanel = _json["isPublicPanel"]; 603 isPublicPanel = _json["isPublicPanel"];
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 if (fields != null) { 760 if (fields != null) {
786 _json["fields"] = fields.map((value) => (value).toJson()).toList(); 761 _json["fields"] = fields.map((value) => (value).toJson()).toList();
787 } 762 }
788 if (projection != null) { 763 if (projection != null) {
789 _json["projection"] = projection; 764 _json["projection"] = projection;
790 } 765 }
791 return _json; 766 return _json;
792 } 767 }
793 } 768 }
794 769
795 /** Representation of an individual survey object. */
796 class Survey { 770 class Survey {
797 /** Targeting-criteria message containing demographic information */
798 SurveyAudience audience; 771 SurveyAudience audience;
799 /** Cost to run the survey and collect the necessary number of responses. */
800 SurveyCost cost; 772 SurveyCost cost;
801 /**
802 * Additional information to store on behalf of the API consumer and associate
803 * with this question. This binary blob is treated as opaque. This field is
804 * limited to 64K bytes.
805 */
806 core.String customerData; 773 core.String customerData;
807 core.List<core.int> get customerDataAsBytes { 774 core.List<core.int> get customerDataAsBytes {
808 return convert.BASE64.decode(customerData); 775 return convert.BASE64.decode(customerData);
809 } 776 }
810 777
811 void set customerDataAsBytes(core.List<core.int> _bytes) { 778 void set customerDataAsBytes(core.List<core.int> _bytes) {
812 customerData = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll ("+", "-"); 779 customerData = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll ("+", "-");
813 } 780 }
814 /** Text description of the survey. */
815 core.String description; 781 core.String description;
816 /**
817 * List of email addresses for survey owners. Must contain at least the
818 * address of the user making the API call.
819 */
820 core.List<core.String> owners; 782 core.List<core.String> owners;
821 /** List of questions defining the survey. */
822 core.List<SurveyQuestion> questions; 783 core.List<SurveyQuestion> questions;
823 /** State that the survey is in. */ 784 SurveyRejection rejectionReason;
824 core.String state; 785 core.String state;
825 /** Unique survey ID, that is viewable in the URL of the Survey Creator UI */
826 core.String surveyUrlId; 786 core.String surveyUrlId;
827 /** Optional name that will be given to the survey. */
828 core.String title; 787 core.String title;
829 /** Number of responses desired for the survey. */
830 core.int wantedResponseCount; 788 core.int wantedResponseCount;
831 789
832 Survey(); 790 Survey();
833 791
834 Survey.fromJson(core.Map _json) { 792 Survey.fromJson(core.Map _json) {
835 if (_json.containsKey("audience")) { 793 if (_json.containsKey("audience")) {
836 audience = new SurveyAudience.fromJson(_json["audience"]); 794 audience = new SurveyAudience.fromJson(_json["audience"]);
837 } 795 }
838 if (_json.containsKey("cost")) { 796 if (_json.containsKey("cost")) {
839 cost = new SurveyCost.fromJson(_json["cost"]); 797 cost = new SurveyCost.fromJson(_json["cost"]);
840 } 798 }
841 if (_json.containsKey("customerData")) { 799 if (_json.containsKey("customerData")) {
842 customerData = _json["customerData"]; 800 customerData = _json["customerData"];
843 } 801 }
844 if (_json.containsKey("description")) { 802 if (_json.containsKey("description")) {
845 description = _json["description"]; 803 description = _json["description"];
846 } 804 }
847 if (_json.containsKey("owners")) { 805 if (_json.containsKey("owners")) {
848 owners = _json["owners"]; 806 owners = _json["owners"];
849 } 807 }
850 if (_json.containsKey("questions")) { 808 if (_json.containsKey("questions")) {
851 questions = _json["questions"].map((value) => new SurveyQuestion.fromJson( value)).toList(); 809 questions = _json["questions"].map((value) => new SurveyQuestion.fromJson( value)).toList();
852 } 810 }
811 if (_json.containsKey("rejectionReason")) {
812 rejectionReason = new SurveyRejection.fromJson(_json["rejectionReason"]);
813 }
853 if (_json.containsKey("state")) { 814 if (_json.containsKey("state")) {
854 state = _json["state"]; 815 state = _json["state"];
855 } 816 }
856 if (_json.containsKey("surveyUrlId")) { 817 if (_json.containsKey("surveyUrlId")) {
857 surveyUrlId = _json["surveyUrlId"]; 818 surveyUrlId = _json["surveyUrlId"];
858 } 819 }
859 if (_json.containsKey("title")) { 820 if (_json.containsKey("title")) {
860 title = _json["title"]; 821 title = _json["title"];
861 } 822 }
862 if (_json.containsKey("wantedResponseCount")) { 823 if (_json.containsKey("wantedResponseCount")) {
(...skipping 14 matching lines...) Expand all
877 } 838 }
878 if (description != null) { 839 if (description != null) {
879 _json["description"] = description; 840 _json["description"] = description;
880 } 841 }
881 if (owners != null) { 842 if (owners != null) {
882 _json["owners"] = owners; 843 _json["owners"] = owners;
883 } 844 }
884 if (questions != null) { 845 if (questions != null) {
885 _json["questions"] = questions.map((value) => (value).toJson()).toList(); 846 _json["questions"] = questions.map((value) => (value).toJson()).toList();
886 } 847 }
848 if (rejectionReason != null) {
849 _json["rejectionReason"] = (rejectionReason).toJson();
850 }
887 if (state != null) { 851 if (state != null) {
888 _json["state"] = state; 852 _json["state"] = state;
889 } 853 }
890 if (surveyUrlId != null) { 854 if (surveyUrlId != null) {
891 _json["surveyUrlId"] = surveyUrlId; 855 _json["surveyUrlId"] = surveyUrlId;
892 } 856 }
893 if (title != null) { 857 if (title != null) {
894 _json["title"] = title; 858 _json["title"] = title;
895 } 859 }
896 if (wantedResponseCount != null) { 860 if (wantedResponseCount != null) {
897 _json["wantedResponseCount"] = wantedResponseCount; 861 _json["wantedResponseCount"] = wantedResponseCount;
898 } 862 }
899 return _json; 863 return _json;
900 } 864 }
901 } 865 }
902 866
903 /** Specifications for the target audience of a survey run through the API. */
904 class SurveyAudience { 867 class SurveyAudience {
905 /**
906 * Optional list of age buckets to target. Supported age buckets are:
907 * ['18-24', '25-34', '35-44', '45-54', '55-64', '65+']
908 */
909 core.List<core.String> ages; 868 core.List<core.String> ages;
910 /**
911 * Required country code that surveys should be targeted to. Accepts standard
912 * ISO 3166-1 2 character language codes. For instance, 'US' for the United
913 * States, and 'GB' for the United Kingdom.
914 */
915 core.String country; 869 core.String country;
916 /**
917 * Country subdivision (states/provinces/etc) that surveys should be targeted
918 * to. For all countries except GB, ISO-3166-2 subdivision code is required
919 * (eg. 'US-OH' for Ohio, United States). For GB, NUTS 1 statistical region
920 * codes for the United Kingdom is required (eg. 'UK-UKC' for North East
921 * England).
922 */
923 core.String countrySubdivision; 870 core.String countrySubdivision;
924 /** Optional gender to target. */
925 core.String gender; 871 core.String gender;
926 /**
927 * Language code that surveys should be targeted to. For instance, 'en-US'.
928 * Surveys may target bilingual users by specifying a list of language codes
929 * (for example, 'de' and 'en-US'). In that case, all languages will be used
930 * for targeting users but the survey content (which is displayed) must match
931 * the first language listed. Accepts standard BCP47 language codes. See
932 * specification.
933 */
934 core.List<core.String> languages; 872 core.List<core.String> languages;
935 /**
936 * Key for predefined panel that causes survey to be sent to a predefined set
937 * of Opinion Rewards App users. You must set PopulationSource to
938 * ANDROID_APP_PANEL to use this field.
939 */
940 core.String mobileAppPanelId; 873 core.String mobileAppPanelId;
941 /** Online population source where the respondents are sampled from. */
942 core.String populationSource; 874 core.String populationSource;
943 875
944 SurveyAudience(); 876 SurveyAudience();
945 877
946 SurveyAudience.fromJson(core.Map _json) { 878 SurveyAudience.fromJson(core.Map _json) {
947 if (_json.containsKey("ages")) { 879 if (_json.containsKey("ages")) {
948 ages = _json["ages"]; 880 ages = _json["ages"];
949 } 881 }
950 if (_json.containsKey("country")) { 882 if (_json.containsKey("country")) {
951 country = _json["country"]; 883 country = _json["country"];
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 if (mobileAppPanelId != null) { 919 if (mobileAppPanelId != null) {
988 _json["mobileAppPanelId"] = mobileAppPanelId; 920 _json["mobileAppPanelId"] = mobileAppPanelId;
989 } 921 }
990 if (populationSource != null) { 922 if (populationSource != null) {
991 _json["populationSource"] = populationSource; 923 _json["populationSource"] = populationSource;
992 } 924 }
993 return _json; 925 return _json;
994 } 926 }
995 } 927 }
996 928
997 /** Message defining the cost to run a given survey through API. */
998 class SurveyCost { 929 class SurveyCost {
999 /**
1000 * Cost per survey response in nano units of the given currency. To get the
1001 * total cost for a survey, multiply this value by wanted_response_count.
1002 */
1003 core.String costPerResponseNanos; 930 core.String costPerResponseNanos;
1004 /** Currency code that the cost is given in. */
1005 core.String currencyCode; 931 core.String currencyCode;
1006 /**
1007 * Threshold to start a survey automatically if the quoted price is at most
1008 * this value. When a survey has a Screener (threshold) question, it must go
1009 * through an incidence pricing test to determine the final cost per response.
1010 * Typically you will have to make a followup call to start the survey giving
1011 * the final computed cost per response. If the survey has no
1012 * threshold_answers, setting this property will return an error. By
1013 * specifying this property, you indicate the max price per response you are
1014 * willing to pay in advance of the incidence test. If the price turns out to
1015 * be lower than the specified value, the survey will begin immediately and
1016 * you will be charged at the rate determined by the incidence pricing test.
1017 * If the price turns out to be greater than the specified value the survey
1018 * will not be started and you will instead be notified what price was
1019 * determined by the incidence test. At that point, you must raise the value
1020 * of this property to be greater than or equal to that cost before attempting
1021 * to start the survey again. This will immediately start the survey as long
1022 * the incidence test was run within the last 21 days.
1023 */
1024 core.String maxCostPerResponseNanos; 932 core.String maxCostPerResponseNanos;
1025 /**
1026 * Cost of survey in nano units of the given currency. DEPRECATED in favor of
1027 * cost_per_response_nanos
1028 */
1029 core.String nanos; 933 core.String nanos;
1030 934
1031 SurveyCost(); 935 SurveyCost();
1032 936
1033 SurveyCost.fromJson(core.Map _json) { 937 SurveyCost.fromJson(core.Map _json) {
1034 if (_json.containsKey("costPerResponseNanos")) { 938 if (_json.containsKey("costPerResponseNanos")) {
1035 costPerResponseNanos = _json["costPerResponseNanos"]; 939 costPerResponseNanos = _json["costPerResponseNanos"];
1036 } 940 }
1037 if (_json.containsKey("currencyCode")) { 941 if (_json.containsKey("currencyCode")) {
1038 currencyCode = _json["currencyCode"]; 942 currencyCode = _json["currencyCode"];
(...skipping 17 matching lines...) Expand all
1056 if (maxCostPerResponseNanos != null) { 960 if (maxCostPerResponseNanos != null) {
1057 _json["maxCostPerResponseNanos"] = maxCostPerResponseNanos; 961 _json["maxCostPerResponseNanos"] = maxCostPerResponseNanos;
1058 } 962 }
1059 if (nanos != null) { 963 if (nanos != null) {
1060 _json["nanos"] = nanos; 964 _json["nanos"] = nanos;
1061 } 965 }
1062 return _json; 966 return _json;
1063 } 967 }
1064 } 968 }
1065 969
1066 /** Message defining the question specifications. */
1067 class SurveyQuestion { 970 class SurveyQuestion {
1068 /**
1069 * The randomization option for multiple choice and multi-select questions. If
1070 * not specified, this option defaults to randomize.
1071 */
1072 core.String answerOrder; 971 core.String answerOrder;
1073 /** Required list of answer options for a question. */
1074 core.List<core.String> answers; 972 core.List<core.String> answers;
1075 /**
1076 * Option to allow open-ended text box for Single Answer and Multiple Answer
1077 * question types. This can be used with SINGLE_ANSWER,
1078 * SINGLE_ANSWER_WITH_IMAGE, MULTIPLE_ANSWERS, and MULTIPLE_ANSWERS_WITH_IMAGE
1079 * question types.
1080 */
1081 core.bool hasOther; 973 core.bool hasOther;
1082 /**
1083 * For rating questions, the text for the higher end of the scale, such as
1084 * 'Best'. For numeric questions, a string representing a floating-point that
1085 * is the maximum allowed number for a response.
1086 */
1087 core.String highValueLabel; 974 core.String highValueLabel;
1088 core.List<SurveyQuestionImage> images; 975 core.List<SurveyQuestionImage> images;
1089 /** Currently only support pinning an answer option to the last position. */
1090 core.bool lastAnswerPositionPinned; 976 core.bool lastAnswerPositionPinned;
1091 /**
1092 * For rating questions, the text for the lower end of the scale, such as
1093 * 'Worst'. For numeric questions, a string representing a floating-point that
1094 * is the minimum allowed number for a response.
1095 */
1096 core.String lowValueLabel; 977 core.String lowValueLabel;
1097 /**
1098 * Option to force the user to pick one of the open text suggestions. This
1099 * requires that suggestions are provided for this question.
1100 */
1101 core.bool mustPickSuggestion; 978 core.bool mustPickSuggestion;
1102 /** Number of stars to use for ratings questions. */
1103 core.String numStars; 979 core.String numStars;
1104 /** Placeholder text for an open text question. */
1105 core.String openTextPlaceholder; 980 core.String openTextPlaceholder;
1106 /**
1107 * A list of suggested answers for open text question auto-complete. This is
1108 * only valid if single_line_response is true.
1109 */
1110 core.List<core.String> openTextSuggestions; 981 core.List<core.String> openTextSuggestions;
1111 /** Required question text shown to the respondent. */
1112 core.String question; 982 core.String question;
1113 /**
1114 * Used by the Rating Scale with Text question type. This text goes along with
1115 * the question field that is presented to the respondent, and is the actual
1116 * text that the respondent is asked to rate.
1117 */
1118 core.String sentimentText; 983 core.String sentimentText;
1119 /**
1120 * Option to allow multiple line open text responses instead of a single line
1121 * response. Note that we don't show auto-complete suggestions with multiple
1122 * line responses.
1123 */
1124 core.bool singleLineResponse; 984 core.bool singleLineResponse;
1125 /**
1126 * The threshold/screener answer options, which will screen a user into the
1127 * rest of the survey. These will be a subset of the answer option strings.
1128 */
1129 core.List<core.String> thresholdAnswers; 985 core.List<core.String> thresholdAnswers;
1130 /**
1131 * Required field defining the question type. For details about configuring
1132 * different type of questions, consult the question configuration guide.
1133 */
1134 core.String type; 986 core.String type;
1135 /**
1136 * Optional unit of measurement for display (for example: hours, people,
1137 * miles).
1138 */
1139 core.String unitOfMeasurementLabel; 987 core.String unitOfMeasurementLabel;
1140 /** The YouTube video ID to be show in video questions. */
1141 core.String videoId; 988 core.String videoId;
1142 989
1143 SurveyQuestion(); 990 SurveyQuestion();
1144 991
1145 SurveyQuestion.fromJson(core.Map _json) { 992 SurveyQuestion.fromJson(core.Map _json) {
1146 if (_json.containsKey("answerOrder")) { 993 if (_json.containsKey("answerOrder")) {
1147 answerOrder = _json["answerOrder"]; 994 answerOrder = _json["answerOrder"];
1148 } 995 }
1149 if (_json.containsKey("answers")) { 996 if (_json.containsKey("answers")) {
1150 answers = _json["answers"]; 997 answers = _json["answers"];
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 if (unitOfMeasurementLabel != null) { 1099 if (unitOfMeasurementLabel != null) {
1253 _json["unitOfMeasurementLabel"] = unitOfMeasurementLabel; 1100 _json["unitOfMeasurementLabel"] = unitOfMeasurementLabel;
1254 } 1101 }
1255 if (videoId != null) { 1102 if (videoId != null) {
1256 _json["videoId"] = videoId; 1103 _json["videoId"] = videoId;
1257 } 1104 }
1258 return _json; 1105 return _json;
1259 } 1106 }
1260 } 1107 }
1261 1108
1262 /** Container object for image data and alt_text. */
1263 class SurveyQuestionImage { 1109 class SurveyQuestionImage {
1264 /** The alt text property used in image tags is required for all images. */
1265 core.String altText; 1110 core.String altText;
1266 /**
1267 * Inline jpeg, gif, tiff, bmp, or png image raw bytes for an image question
1268 * types.
1269 */
1270 core.String data; 1111 core.String data;
1271 core.List<core.int> get dataAsBytes { 1112 core.List<core.int> get dataAsBytes {
1272 return convert.BASE64.decode(data); 1113 return convert.BASE64.decode(data);
1273 } 1114 }
1274 1115
1275 void set dataAsBytes(core.List<core.int> _bytes) { 1116 void set dataAsBytes(core.List<core.int> _bytes) {
1276 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 1117 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- ");
1277 } 1118 }
1278 /** The read-only URL for the hosted images. */
1279 core.String url; 1119 core.String url;
1280 1120
1281 SurveyQuestionImage(); 1121 SurveyQuestionImage();
1282 1122
1283 SurveyQuestionImage.fromJson(core.Map _json) { 1123 SurveyQuestionImage.fromJson(core.Map _json) {
1284 if (_json.containsKey("altText")) { 1124 if (_json.containsKey("altText")) {
1285 altText = _json["altText"]; 1125 altText = _json["altText"];
1286 } 1126 }
1287 if (_json.containsKey("data")) { 1127 if (_json.containsKey("data")) {
1288 data = _json["data"]; 1128 data = _json["data"];
(...skipping 11 matching lines...) Expand all
1300 if (data != null) { 1140 if (data != null) {
1301 _json["data"] = data; 1141 _json["data"] = data;
1302 } 1142 }
1303 if (url != null) { 1143 if (url != null) {
1304 _json["url"] = url; 1144 _json["url"] = url;
1305 } 1145 }
1306 return _json; 1146 return _json;
1307 } 1147 }
1308 } 1148 }
1309 1149
1310 /** Reference to the current results for a given survey. */ 1150 class SurveyRejection {
1151 core.String explanation;
1152 core.String type;
1153
1154 SurveyRejection();
1155
1156 SurveyRejection.fromJson(core.Map _json) {
1157 if (_json.containsKey("explanation")) {
1158 explanation = _json["explanation"];
1159 }
1160 if (_json.containsKey("type")) {
1161 type = _json["type"];
1162 }
1163 }
1164
1165 core.Map toJson() {
1166 var _json = new core.Map();
1167 if (explanation != null) {
1168 _json["explanation"] = explanation;
1169 }
1170 if (type != null) {
1171 _json["type"] = type;
1172 }
1173 return _json;
1174 }
1175 }
1176
1311 class SurveyResults { 1177 class SurveyResults {
1312 /** Human readable string describing the status of the request. */
1313 core.String status; 1178 core.String status;
1314 /** External survey ID as viewable by survey owners in the editor view. */
1315 core.String surveyUrlId; 1179 core.String surveyUrlId;
1316 1180
1317 SurveyResults(); 1181 SurveyResults();
1318 1182
1319 SurveyResults.fromJson(core.Map _json) { 1183 SurveyResults.fromJson(core.Map _json) {
1320 if (_json.containsKey("status")) { 1184 if (_json.containsKey("status")) {
1321 status = _json["status"]; 1185 status = _json["status"];
1322 } 1186 }
1323 if (_json.containsKey("surveyUrlId")) { 1187 if (_json.containsKey("surveyUrlId")) {
1324 surveyUrlId = _json["surveyUrlId"]; 1188 surveyUrlId = _json["surveyUrlId"];
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1514 var _json = new core.Map(); 1378 var _json = new core.Map();
1515 if (nextPageToken != null) { 1379 if (nextPageToken != null) {
1516 _json["nextPageToken"] = nextPageToken; 1380 _json["nextPageToken"] = nextPageToken;
1517 } 1381 }
1518 if (previousPageToken != null) { 1382 if (previousPageToken != null) {
1519 _json["previousPageToken"] = previousPageToken; 1383 _json["previousPageToken"] = previousPageToken;
1520 } 1384 }
1521 return _json; 1385 return _json;
1522 } 1386 }
1523 } 1387 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/compute/v1.dart ('k') | generated/googleapis/lib/content/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698