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

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

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 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.firebasedynamiclinks.v1; 3 library googleapis.firebasedynamiclinks.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;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
13 ApiRequestError, DetailedApiRequestError; 13 show ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client firebasedynamiclinks/v1'; 15 const core.String USER_AGENT = 'dart-api-client firebasedynamiclinks/v1';
16 16
17 /** Programmatically creates and manages Firebase Dynamic Links. */ 17 /// Programmatically creates and manages Firebase Dynamic Links.
18 class FirebasedynamiclinksApi { 18 class FirebasedynamiclinksApi {
19 /** View and administer all your Firebase data and settings */ 19 /// View and administer all your Firebase data and settings
20 static const FirebaseScope = "https://www.googleapis.com/auth/firebase"; 20 static const FirebaseScope = "https://www.googleapis.com/auth/firebase";
21 21
22
23 final commons.ApiRequester _requester; 22 final commons.ApiRequester _requester;
24 23
25 ShortLinksResourceApi get shortLinks => new ShortLinksResourceApi(_requester); 24 ShortLinksResourceApi get shortLinks => new ShortLinksResourceApi(_requester);
26 V1ResourceApi get v1 => new V1ResourceApi(_requester); 25 V1ResourceApi get v1 => new V1ResourceApi(_requester);
27 26
28 FirebasedynamiclinksApi(http.Client client, {core.String rootUrl: "https://fir ebasedynamiclinks-ipv6.googleapis.com/", core.String servicePath: ""}) : 27 FirebasedynamiclinksApi(http.Client client,
29 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 28 {core.String rootUrl: "https://firebasedynamiclinks-ipv6.googleapis.com/",
29 core.String servicePath: ""})
30 : _requester =
31 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
30 } 32 }
31 33
32
33 class ShortLinksResourceApi { 34 class ShortLinksResourceApi {
34 final commons.ApiRequester _requester; 35 final commons.ApiRequester _requester;
35 36
36 ShortLinksResourceApi(commons.ApiRequester client) : 37 ShortLinksResourceApi(commons.ApiRequester client) : _requester = client;
37 _requester = client;
38 38
39 /** 39 /// Creates a short Dynamic Link given either a valid long Dynamic Link or
40 * Creates a short Dynamic Link given either a valid long Dynamic Link or 40 /// details such as Dynamic Link domain, Android and iOS app information.
41 * details such as Dynamic Link domain, Android and iOS app information. 41 /// The created short Dynamic Link will not expire.
42 * The created short Dynamic Link will not expire. 42 ///
43 * 43 /// Repeated calls with the same long Dynamic Link or Dynamic Link
44 * Repeated calls with the same long Dynamic Link or Dynamic Link information 44 /// information
45 * will produce the same short Dynamic Link. 45 /// will produce the same short Dynamic Link.
46 * 46 ///
47 * The Dynamic Link domain in the request must be owned by requester's 47 /// The Dynamic Link domain in the request must be owned by requester's
48 * Firebase project. 48 /// Firebase project.
49 * 49 ///
50 * [request] - The metadata request object. 50 /// [request] - The metadata request object.
51 * 51 ///
52 * Request parameters: 52 /// Request parameters:
53 * 53 ///
54 * Completes with a [CreateShortDynamicLinkResponse]. 54 /// Completes with a [CreateShortDynamicLinkResponse].
55 * 55 ///
56 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 56 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
57 * error. 57 /// an error.
58 * 58 ///
59 * If the used [http.Client] completes with an error when making a REST call, 59 /// If the used [http.Client] completes with an error when making a REST
60 * this method will complete with the same error. 60 /// call, this method will complete with the same error.
61 */ 61 async.Future<CreateShortDynamicLinkResponse> create(
62 async.Future<CreateShortDynamicLinkResponse> create(CreateShortDynamicLinkRequ est request) { 62 CreateShortDynamicLinkRequest request) {
63 var _url = null; 63 var _url = null;
64 var _queryParams = new core.Map(); 64 var _queryParams = new core.Map();
65 var _uploadMedia = null; 65 var _uploadMedia = null;
66 var _uploadOptions = null; 66 var _uploadOptions = null;
67 var _downloadOptions = commons.DownloadOptions.Metadata; 67 var _downloadOptions = commons.DownloadOptions.Metadata;
68 var _body = null; 68 var _body = null;
69 69
70 if (request != null) { 70 if (request != null) {
71 _body = convert.JSON.encode((request).toJson()); 71 _body = convert.JSON.encode((request).toJson());
72 } 72 }
73 73
74 _url = 'v1/shortLinks'; 74 _url = 'v1/shortLinks';
75 75
76 var _response = _requester.request(_url, 76 var _response = _requester.request(_url, "POST",
77 "POST", 77 body: _body,
78 body: _body, 78 queryParams: _queryParams,
79 queryParams: _queryParams, 79 uploadOptions: _uploadOptions,
80 uploadOptions: _uploadOptions, 80 uploadMedia: _uploadMedia,
81 uploadMedia: _uploadMedia, 81 downloadOptions: _downloadOptions);
82 downloadOptions: _downloadOptions); 82 return _response
83 return _response.then((data) => new CreateShortDynamicLinkResponse.fromJson( data)); 83 .then((data) => new CreateShortDynamicLinkResponse.fromJson(data));
84 } 84 }
85
86 } 85 }
87 86
88
89 class V1ResourceApi { 87 class V1ResourceApi {
90 final commons.ApiRequester _requester; 88 final commons.ApiRequester _requester;
91 89
92 V1ResourceApi(commons.ApiRequester client) : 90 V1ResourceApi(commons.ApiRequester client) : _requester = client;
93 _requester = client;
94 91
95 /** 92 /// Fetches analytics stats of a short Dynamic Link for a given
96 * Fetches analytics stats of a short Dynamic Link for a given 93 /// duration. Metrics include number of clicks, redirects, installs,
97 * duration. Metrics include number of clicks, redirects, installs, 94 /// app first opens, and app reopens.
98 * app first opens, and app reopens. 95 ///
99 * 96 /// Request parameters:
100 * Request parameters: 97 ///
101 * 98 /// [dynamicLink] - Dynamic Link URL. e.g. https://abcd.app.goo.gl/wxyz
102 * [dynamicLink] - Dynamic Link URL. e.g. https://abcd.app.goo.gl/wxyz 99 ///
103 * 100 /// [durationDays] - The span of time requested in days.
104 * [durationDays] - The span of time requested in days. 101 ///
105 * 102 /// Completes with a [DynamicLinkStats].
106 * Completes with a [DynamicLinkStats]. 103 ///
107 * 104 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
108 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 105 /// an error.
109 * error. 106 ///
110 * 107 /// If the used [http.Client] completes with an error when making a REST
111 * If the used [http.Client] completes with an error when making a REST call, 108 /// call, this method will complete with the same error.
112 * this method will complete with the same error. 109 async.Future<DynamicLinkStats> getLinkStats(core.String dynamicLink,
113 */ 110 {core.String durationDays}) {
114 async.Future<DynamicLinkStats> getLinkStats(core.String dynamicLink, {core.Str ing durationDays}) {
115 var _url = null; 111 var _url = null;
116 var _queryParams = new core.Map(); 112 var _queryParams = new core.Map();
117 var _uploadMedia = null; 113 var _uploadMedia = null;
118 var _uploadOptions = null; 114 var _uploadOptions = null;
119 var _downloadOptions = commons.DownloadOptions.Metadata; 115 var _downloadOptions = commons.DownloadOptions.Metadata;
120 var _body = null; 116 var _body = null;
121 117
122 if (dynamicLink == null) { 118 if (dynamicLink == null) {
123 throw new core.ArgumentError("Parameter dynamicLink is required."); 119 throw new core.ArgumentError("Parameter dynamicLink is required.");
124 } 120 }
125 if (durationDays != null) { 121 if (durationDays != null) {
126 _queryParams["durationDays"] = [durationDays]; 122 _queryParams["durationDays"] = [durationDays];
127 } 123 }
128 124
129 _url = 'v1/' + commons.Escaper.ecapeVariable('$dynamicLink') + '/linkStats'; 125 _url = 'v1/' + commons.Escaper.ecapeVariable('$dynamicLink') + '/linkStats';
130 126
131 var _response = _requester.request(_url, 127 var _response = _requester.request(_url, "GET",
132 "GET", 128 body: _body,
133 body: _body, 129 queryParams: _queryParams,
134 queryParams: _queryParams, 130 uploadOptions: _uploadOptions,
135 uploadOptions: _uploadOptions, 131 uploadMedia: _uploadMedia,
136 uploadMedia: _uploadMedia, 132 downloadOptions: _downloadOptions);
137 downloadOptions: _downloadOptions);
138 return _response.then((data) => new DynamicLinkStats.fromJson(data)); 133 return _response.then((data) => new DynamicLinkStats.fromJson(data));
139 } 134 }
140 135
136 /// Get iOS strong/weak-match info for post-install attribution.
137 ///
138 /// [request] - The metadata request object.
139 ///
140 /// Request parameters:
141 ///
142 /// Completes with a [GetIosPostInstallAttributionResponse].
143 ///
144 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
145 /// an error.
146 ///
147 /// If the used [http.Client] completes with an error when making a REST
148 /// call, this method will complete with the same error.
149 async.Future<GetIosPostInstallAttributionResponse> installAttribution(
150 GetIosPostInstallAttributionRequest request) {
151 var _url = null;
152 var _queryParams = new core.Map();
153 var _uploadMedia = null;
154 var _uploadOptions = null;
155 var _downloadOptions = commons.DownloadOptions.Metadata;
156 var _body = null;
157
158 if (request != null) {
159 _body = convert.JSON.encode((request).toJson());
160 }
161
162 _url = 'v1/installAttribution';
163
164 var _response = _requester.request(_url, "POST",
165 body: _body,
166 queryParams: _queryParams,
167 uploadOptions: _uploadOptions,
168 uploadMedia: _uploadMedia,
169 downloadOptions: _downloadOptions);
170 return _response.then(
171 (data) => new GetIosPostInstallAttributionResponse.fromJson(data));
172 }
141 } 173 }
142 174
175 /// Tracking parameters supported by Dynamic Link.
176 class AnalyticsInfo {
177 /// Google Play Campaign Measurements.
178 GooglePlayAnalytics googlePlayAnalytics;
143 179
144 180 /// iTunes Connect App Analytics.
145 /** Tracking parameters supported by Dynamic Link. */
146 class AnalyticsInfo {
147 /** Google Play Campaign Measurements. */
148 GooglePlayAnalytics googlePlayAnalytics;
149 /** iTunes Connect App Analytics. */
150 ITunesConnectAnalytics itunesConnectAnalytics; 181 ITunesConnectAnalytics itunesConnectAnalytics;
151 182
152 AnalyticsInfo(); 183 AnalyticsInfo();
153 184
154 AnalyticsInfo.fromJson(core.Map _json) { 185 AnalyticsInfo.fromJson(core.Map _json) {
155 if (_json.containsKey("googlePlayAnalytics")) { 186 if (_json.containsKey("googlePlayAnalytics")) {
156 googlePlayAnalytics = new GooglePlayAnalytics.fromJson(_json["googlePlayAn alytics"]); 187 googlePlayAnalytics =
188 new GooglePlayAnalytics.fromJson(_json["googlePlayAnalytics"]);
157 } 189 }
158 if (_json.containsKey("itunesConnectAnalytics")) { 190 if (_json.containsKey("itunesConnectAnalytics")) {
159 itunesConnectAnalytics = new ITunesConnectAnalytics.fromJson(_json["itunes ConnectAnalytics"]); 191 itunesConnectAnalytics =
192 new ITunesConnectAnalytics.fromJson(_json["itunesConnectAnalytics"]);
160 } 193 }
161 } 194 }
162 195
163 core.Map<core.String, core.Object> toJson() { 196 core.Map<core.String, core.Object> toJson() {
164 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 197 final core.Map<core.String, core.Object> _json =
198 new core.Map<core.String, core.Object>();
165 if (googlePlayAnalytics != null) { 199 if (googlePlayAnalytics != null) {
166 _json["googlePlayAnalytics"] = (googlePlayAnalytics).toJson(); 200 _json["googlePlayAnalytics"] = (googlePlayAnalytics).toJson();
167 } 201 }
168 if (itunesConnectAnalytics != null) { 202 if (itunesConnectAnalytics != null) {
169 _json["itunesConnectAnalytics"] = (itunesConnectAnalytics).toJson(); 203 _json["itunesConnectAnalytics"] = (itunesConnectAnalytics).toJson();
170 } 204 }
171 return _json; 205 return _json;
172 } 206 }
173 } 207 }
174 208
175 /** Android related attributes to the Dynamic Link. */ 209 /// Android related attributes to the Dynamic Link.
176 class AndroidInfo { 210 class AndroidInfo {
177 /** Link to open on Android if the app is not installed. */ 211 /// Link to open on Android if the app is not installed.
178 core.String androidFallbackLink; 212 core.String androidFallbackLink;
179 /** If specified, this overrides the ‘link’ parameter on Android. */ 213
214 /// If specified, this overrides the ‘link’ parameter on Android.
180 core.String androidLink; 215 core.String androidLink;
181 /** 216
182 * Minimum version code for the Android app. If the installed app’s version 217 /// Minimum version code for the Android app. If the installed app’s version
183 * code is lower, then the user is taken to the Play Store. 218 /// code is lower, then the user is taken to the Play Store.
184 */
185 core.String androidMinPackageVersionCode; 219 core.String androidMinPackageVersionCode;
186 /** Android package name of the app. */ 220
221 /// Android package name of the app.
187 core.String androidPackageName; 222 core.String androidPackageName;
188 223
189 AndroidInfo(); 224 AndroidInfo();
190 225
191 AndroidInfo.fromJson(core.Map _json) { 226 AndroidInfo.fromJson(core.Map _json) {
192 if (_json.containsKey("androidFallbackLink")) { 227 if (_json.containsKey("androidFallbackLink")) {
193 androidFallbackLink = _json["androidFallbackLink"]; 228 androidFallbackLink = _json["androidFallbackLink"];
194 } 229 }
195 if (_json.containsKey("androidLink")) { 230 if (_json.containsKey("androidLink")) {
196 androidLink = _json["androidLink"]; 231 androidLink = _json["androidLink"];
197 } 232 }
198 if (_json.containsKey("androidMinPackageVersionCode")) { 233 if (_json.containsKey("androidMinPackageVersionCode")) {
199 androidMinPackageVersionCode = _json["androidMinPackageVersionCode"]; 234 androidMinPackageVersionCode = _json["androidMinPackageVersionCode"];
200 } 235 }
201 if (_json.containsKey("androidPackageName")) { 236 if (_json.containsKey("androidPackageName")) {
202 androidPackageName = _json["androidPackageName"]; 237 androidPackageName = _json["androidPackageName"];
203 } 238 }
204 } 239 }
205 240
206 core.Map<core.String, core.Object> toJson() { 241 core.Map<core.String, core.Object> toJson() {
207 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 242 final core.Map<core.String, core.Object> _json =
243 new core.Map<core.String, core.Object>();
208 if (androidFallbackLink != null) { 244 if (androidFallbackLink != null) {
209 _json["androidFallbackLink"] = androidFallbackLink; 245 _json["androidFallbackLink"] = androidFallbackLink;
210 } 246 }
211 if (androidLink != null) { 247 if (androidLink != null) {
212 _json["androidLink"] = androidLink; 248 _json["androidLink"] = androidLink;
213 } 249 }
214 if (androidMinPackageVersionCode != null) { 250 if (androidMinPackageVersionCode != null) {
215 _json["androidMinPackageVersionCode"] = androidMinPackageVersionCode; 251 _json["androidMinPackageVersionCode"] = androidMinPackageVersionCode;
216 } 252 }
217 if (androidPackageName != null) { 253 if (androidPackageName != null) {
218 _json["androidPackageName"] = androidPackageName; 254 _json["androidPackageName"] = androidPackageName;
219 } 255 }
220 return _json; 256 return _json;
221 } 257 }
222 } 258 }
223 259
224 /** Request to create a short Dynamic Link. */ 260 /// Request to create a short Dynamic Link.
225 class CreateShortDynamicLinkRequest { 261 class CreateShortDynamicLinkRequest {
226 /** 262 /// Information about the Dynamic Link to be shortened.
227 * Information about the Dynamic Link to be shortened. 263 /// [Learn
228 * [Learn 264 /// more](https://firebase.google.com/docs/dynamic-links/android#create-a-dyna mic-link-programmatically).
229 * more](https://firebase.google.com/docs/dynamic-links/android#create-a-dynam ic-link-programmatically).
230 */
231 DynamicLinkInfo dynamicLinkInfo; 265 DynamicLinkInfo dynamicLinkInfo;
232 /** 266
233 * Full long Dynamic Link URL with desired query parameters specified. 267 /// Full long Dynamic Link URL with desired query parameters specified.
234 * For example, 268 /// For example,
235 * "https://sample.app.goo.gl/?link=http://www.google.com&apn=com.sample", 269 /// "https://sample.app.goo.gl/?link=http://www.google.com&apn=com.sample",
236 * [Learn 270 /// [Learn
237 * more](https://firebase.google.com/docs/dynamic-links/android#create-a-dynam ic-link-programmatically). 271 /// more](https://firebase.google.com/docs/dynamic-links/android#create-a-dyna mic-link-programmatically).
238 */
239 core.String longDynamicLink; 272 core.String longDynamicLink;
240 /** Short Dynamic Link suffix. Optional. */ 273
274 /// Short Dynamic Link suffix. Optional.
241 Suffix suffix; 275 Suffix suffix;
242 276
243 CreateShortDynamicLinkRequest(); 277 CreateShortDynamicLinkRequest();
244 278
245 CreateShortDynamicLinkRequest.fromJson(core.Map _json) { 279 CreateShortDynamicLinkRequest.fromJson(core.Map _json) {
246 if (_json.containsKey("dynamicLinkInfo")) { 280 if (_json.containsKey("dynamicLinkInfo")) {
247 dynamicLinkInfo = new DynamicLinkInfo.fromJson(_json["dynamicLinkInfo"]); 281 dynamicLinkInfo = new DynamicLinkInfo.fromJson(_json["dynamicLinkInfo"]);
248 } 282 }
249 if (_json.containsKey("longDynamicLink")) { 283 if (_json.containsKey("longDynamicLink")) {
250 longDynamicLink = _json["longDynamicLink"]; 284 longDynamicLink = _json["longDynamicLink"];
251 } 285 }
252 if (_json.containsKey("suffix")) { 286 if (_json.containsKey("suffix")) {
253 suffix = new Suffix.fromJson(_json["suffix"]); 287 suffix = new Suffix.fromJson(_json["suffix"]);
254 } 288 }
255 } 289 }
256 290
257 core.Map<core.String, core.Object> toJson() { 291 core.Map<core.String, core.Object> toJson() {
258 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 292 final core.Map<core.String, core.Object> _json =
293 new core.Map<core.String, core.Object>();
259 if (dynamicLinkInfo != null) { 294 if (dynamicLinkInfo != null) {
260 _json["dynamicLinkInfo"] = (dynamicLinkInfo).toJson(); 295 _json["dynamicLinkInfo"] = (dynamicLinkInfo).toJson();
261 } 296 }
262 if (longDynamicLink != null) { 297 if (longDynamicLink != null) {
263 _json["longDynamicLink"] = longDynamicLink; 298 _json["longDynamicLink"] = longDynamicLink;
264 } 299 }
265 if (suffix != null) { 300 if (suffix != null) {
266 _json["suffix"] = (suffix).toJson(); 301 _json["suffix"] = (suffix).toJson();
267 } 302 }
268 return _json; 303 return _json;
269 } 304 }
270 } 305 }
271 306
272 /** Response to create a short Dynamic Link. */ 307 /// Response to create a short Dynamic Link.
273 class CreateShortDynamicLinkResponse { 308 class CreateShortDynamicLinkResponse {
274 /** Preivew link to show the link flow chart. */ 309 /// Preivew link to show the link flow chart.
275 core.String previewLink; 310 core.String previewLink;
276 /** Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz */ 311
312 /// Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz
277 core.String shortLink; 313 core.String shortLink;
278 /** Information about potential warnings on link creation. */ 314
315 /// Information about potential warnings on link creation.
279 core.List<DynamicLinkWarning> warning; 316 core.List<DynamicLinkWarning> warning;
280 317
281 CreateShortDynamicLinkResponse(); 318 CreateShortDynamicLinkResponse();
282 319
283 CreateShortDynamicLinkResponse.fromJson(core.Map _json) { 320 CreateShortDynamicLinkResponse.fromJson(core.Map _json) {
284 if (_json.containsKey("previewLink")) { 321 if (_json.containsKey("previewLink")) {
285 previewLink = _json["previewLink"]; 322 previewLink = _json["previewLink"];
286 } 323 }
287 if (_json.containsKey("shortLink")) { 324 if (_json.containsKey("shortLink")) {
288 shortLink = _json["shortLink"]; 325 shortLink = _json["shortLink"];
289 } 326 }
290 if (_json.containsKey("warning")) { 327 if (_json.containsKey("warning")) {
291 warning = _json["warning"].map((value) => new DynamicLinkWarning.fromJson( value)).toList(); 328 warning = _json["warning"]
329 .map((value) => new DynamicLinkWarning.fromJson(value))
330 .toList();
292 } 331 }
293 } 332 }
294 333
295 core.Map<core.String, core.Object> toJson() { 334 core.Map<core.String, core.Object> toJson() {
296 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 335 final core.Map<core.String, core.Object> _json =
336 new core.Map<core.String, core.Object>();
297 if (previewLink != null) { 337 if (previewLink != null) {
298 _json["previewLink"] = previewLink; 338 _json["previewLink"] = previewLink;
299 } 339 }
300 if (shortLink != null) { 340 if (shortLink != null) {
301 _json["shortLink"] = shortLink; 341 _json["shortLink"] = shortLink;
302 } 342 }
303 if (warning != null) { 343 if (warning != null) {
304 _json["warning"] = warning.map((value) => (value).toJson()).toList(); 344 _json["warning"] = warning.map((value) => (value).toJson()).toList();
305 } 345 }
306 return _json; 346 return _json;
307 } 347 }
308 } 348 }
309 349
310 /** Dynamic Link event stat. */ 350 /// Signals associated with the device making the request.
351 class DeviceInfo {
352 /// Device model name.
353 core.String deviceModelName;
354
355 /// Device language code setting.
356 core.String languageCode;
357
358 /// Device display resolution height.
359 core.String screenResolutionHeight;
360
361 /// Device display resolution width.
362 core.String screenResolutionWidth;
363
364 /// Device timezone setting.
365 core.String timezone;
366
367 DeviceInfo();
368
369 DeviceInfo.fromJson(core.Map _json) {
370 if (_json.containsKey("deviceModelName")) {
371 deviceModelName = _json["deviceModelName"];
372 }
373 if (_json.containsKey("languageCode")) {
374 languageCode = _json["languageCode"];
375 }
376 if (_json.containsKey("screenResolutionHeight")) {
377 screenResolutionHeight = _json["screenResolutionHeight"];
378 }
379 if (_json.containsKey("screenResolutionWidth")) {
380 screenResolutionWidth = _json["screenResolutionWidth"];
381 }
382 if (_json.containsKey("timezone")) {
383 timezone = _json["timezone"];
384 }
385 }
386
387 core.Map<core.String, core.Object> toJson() {
388 final core.Map<core.String, core.Object> _json =
389 new core.Map<core.String, core.Object>();
390 if (deviceModelName != null) {
391 _json["deviceModelName"] = deviceModelName;
392 }
393 if (languageCode != null) {
394 _json["languageCode"] = languageCode;
395 }
396 if (screenResolutionHeight != null) {
397 _json["screenResolutionHeight"] = screenResolutionHeight;
398 }
399 if (screenResolutionWidth != null) {
400 _json["screenResolutionWidth"] = screenResolutionWidth;
401 }
402 if (timezone != null) {
403 _json["timezone"] = timezone;
404 }
405 return _json;
406 }
407 }
408
409 /// Dynamic Link event stat.
311 class DynamicLinkEventStat { 410 class DynamicLinkEventStat {
312 /** The number of times this event occurred. */ 411 /// The number of times this event occurred.
313 core.String count; 412 core.String count;
314 /** 413
315 * Link event. 414 /// Link event.
316 * Possible string values are: 415 /// Possible string values are:
317 * - "DYNAMIC_LINK_EVENT_UNSPECIFIED" : Unspecified type. 416 /// - "DYNAMIC_LINK_EVENT_UNSPECIFIED" : Unspecified type.
318 * - "CLICK" : Indicates that an FDL is clicked by users. 417 /// - "CLICK" : Indicates that an FDL is clicked by users.
319 * - "REDIRECT" : Indicates that an FDL redirects users to fallback link. 418 /// - "REDIRECT" : Indicates that an FDL redirects users to fallback link.
320 * - "APP_INSTALL" : Indicates that an FDL triggers an app install from Play 419 /// - "APP_INSTALL" : Indicates that an FDL triggers an app install from Play
321 * store, currently 420 /// store, currently
322 * it's impossible to get stats from App store. 421 /// it's impossible to get stats from App store.
323 * - "APP_FIRST_OPEN" : Indicates that the app is opened for the first time 422 /// - "APP_FIRST_OPEN" : Indicates that the app is opened for the first time
324 * after an install 423 /// after an install
325 * triggered by FDLs 424 /// triggered by FDLs
326 * - "APP_RE_OPEN" : Indicates that the app is opened via an FDL for non-first 425 /// - "APP_RE_OPEN" : Indicates that the app is opened via an FDL for
327 * time. 426 /// non-first time.
328 */
329 core.String event; 427 core.String event;
330 /** 428
331 * Requested platform. 429 /// Requested platform.
332 * Possible string values are: 430 /// Possible string values are:
333 * - "DYNAMIC_LINK_PLATFORM_UNSPECIFIED" : Unspecified platform. 431 /// - "DYNAMIC_LINK_PLATFORM_UNSPECIFIED" : Unspecified platform.
334 * - "ANDROID" : Represents Android platform. 432 /// - "ANDROID" : Represents Android platform.
335 * All apps and browsers on Android are classfied in this category. 433 /// All apps and browsers on Android are classfied in this category.
336 * - "IOS" : Represents iOS platform. 434 /// - "IOS" : Represents iOS platform.
337 * All apps and browsers on iOS are classfied in this category. 435 /// All apps and browsers on iOS are classfied in this category.
338 * - "DESKTOP" : Represents desktop. 436 /// - "DESKTOP" : Represents desktop.
339 * Note: other platforms like Windows, Blackberry, Amazon fall into this 437 /// Note: other platforms like Windows, Blackberry, Amazon fall into this
340 * category. 438 /// category.
341 */
342 core.String platform; 439 core.String platform;
343 440
344 DynamicLinkEventStat(); 441 DynamicLinkEventStat();
345 442
346 DynamicLinkEventStat.fromJson(core.Map _json) { 443 DynamicLinkEventStat.fromJson(core.Map _json) {
347 if (_json.containsKey("count")) { 444 if (_json.containsKey("count")) {
348 count = _json["count"]; 445 count = _json["count"];
349 } 446 }
350 if (_json.containsKey("event")) { 447 if (_json.containsKey("event")) {
351 event = _json["event"]; 448 event = _json["event"];
352 } 449 }
353 if (_json.containsKey("platform")) { 450 if (_json.containsKey("platform")) {
354 platform = _json["platform"]; 451 platform = _json["platform"];
355 } 452 }
356 } 453 }
357 454
358 core.Map<core.String, core.Object> toJson() { 455 core.Map<core.String, core.Object> toJson() {
359 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 456 final core.Map<core.String, core.Object> _json =
457 new core.Map<core.String, core.Object>();
360 if (count != null) { 458 if (count != null) {
361 _json["count"] = count; 459 _json["count"] = count;
362 } 460 }
363 if (event != null) { 461 if (event != null) {
364 _json["event"] = event; 462 _json["event"] = event;
365 } 463 }
366 if (platform != null) { 464 if (platform != null) {
367 _json["platform"] = platform; 465 _json["platform"] = platform;
368 } 466 }
369 return _json; 467 return _json;
370 } 468 }
371 } 469 }
372 470
373 /** Information about a Dynamic Link. */ 471 /// Information about a Dynamic Link.
374 class DynamicLinkInfo { 472 class DynamicLinkInfo {
375 /** 473 /// Parameters used for tracking. See all tracking parameters in the
376 * Parameters used for tracking. See all tracking parameters in the 474 /// [documentation](https://firebase.google.com/docs/dynamic-links/create-manu ally).
377 * [documentation](https://firebase.google.com/docs/dynamic-links/create-manua lly).
378 */
379 AnalyticsInfo analyticsInfo; 475 AnalyticsInfo analyticsInfo;
380 /** 476
381 * Android related information. See Android related parameters in the 477 /// Android related information. See Android related parameters in the
382 * [documentation](https://firebase.google.com/docs/dynamic-links/create-manua lly). 478 /// [documentation](https://firebase.google.com/docs/dynamic-links/create-manu ally).
383 */
384 AndroidInfo androidInfo; 479 AndroidInfo androidInfo;
385 /** 480
386 * Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl 481 /// Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl
387 * [Learn 482 /// [Learn
388 * more](https://firebase.google.com/docs/dynamic-links/android/receive) 483 /// more](https://firebase.google.com/docs/dynamic-links/android/receive)
389 * on how to set up Dynamic Link domain associated with your Firebase project. 484 /// on how to set up Dynamic Link domain associated with your Firebase
390 * 485 /// project.
391 * Required. 486 ///
392 */ 487 /// Required.
393 core.String dynamicLinkDomain; 488 core.String dynamicLinkDomain;
394 /** 489
395 * iOS related information. See iOS related parameters in the 490 /// iOS related information. See iOS related parameters in the
396 * [documentation](https://firebase.google.com/docs/dynamic-links/create-manua lly). 491 /// [documentation](https://firebase.google.com/docs/dynamic-links/create-manu ally).
397 */
398 IosInfo iosInfo; 492 IosInfo iosInfo;
399 /** 493
400 * The link your app will open, You can specify any URL your app can handle. 494 /// The link your app will open, You can specify any URL your app can handle.
401 * This link must be a well-formatted URL, be properly URL-encoded, and use 495 /// This link must be a well-formatted URL, be properly URL-encoded, and use
402 * the HTTP or HTTPS scheme. See 'link' parameters in the 496 /// the HTTP or HTTPS scheme. See 'link' parameters in the
403 * [documentation](https://firebase.google.com/docs/dynamic-links/create-manua lly). 497 /// [documentation](https://firebase.google.com/docs/dynamic-links/create-manu ally).
404 * 498 ///
405 * Required. 499 /// Required.
406 */
407 core.String link; 500 core.String link;
408 /** Information of navigation behavior of a Firebase Dynamic Links. */ 501
502 /// Information of navigation behavior of a Firebase Dynamic Links.
409 NavigationInfo navigationInfo; 503 NavigationInfo navigationInfo;
410 /** 504
411 * Parameters for social meta tag params. 505 /// Parameters for social meta tag params.
412 * Used to set meta tag data for link previews on social sites. 506 /// Used to set meta tag data for link previews on social sites.
413 */
414 SocialMetaTagInfo socialMetaTagInfo; 507 SocialMetaTagInfo socialMetaTagInfo;
415 508
416 DynamicLinkInfo(); 509 DynamicLinkInfo();
417 510
418 DynamicLinkInfo.fromJson(core.Map _json) { 511 DynamicLinkInfo.fromJson(core.Map _json) {
419 if (_json.containsKey("analyticsInfo")) { 512 if (_json.containsKey("analyticsInfo")) {
420 analyticsInfo = new AnalyticsInfo.fromJson(_json["analyticsInfo"]); 513 analyticsInfo = new AnalyticsInfo.fromJson(_json["analyticsInfo"]);
421 } 514 }
422 if (_json.containsKey("androidInfo")) { 515 if (_json.containsKey("androidInfo")) {
423 androidInfo = new AndroidInfo.fromJson(_json["androidInfo"]); 516 androidInfo = new AndroidInfo.fromJson(_json["androidInfo"]);
424 } 517 }
425 if (_json.containsKey("dynamicLinkDomain")) { 518 if (_json.containsKey("dynamicLinkDomain")) {
426 dynamicLinkDomain = _json["dynamicLinkDomain"]; 519 dynamicLinkDomain = _json["dynamicLinkDomain"];
427 } 520 }
428 if (_json.containsKey("iosInfo")) { 521 if (_json.containsKey("iosInfo")) {
429 iosInfo = new IosInfo.fromJson(_json["iosInfo"]); 522 iosInfo = new IosInfo.fromJson(_json["iosInfo"]);
430 } 523 }
431 if (_json.containsKey("link")) { 524 if (_json.containsKey("link")) {
432 link = _json["link"]; 525 link = _json["link"];
433 } 526 }
434 if (_json.containsKey("navigationInfo")) { 527 if (_json.containsKey("navigationInfo")) {
435 navigationInfo = new NavigationInfo.fromJson(_json["navigationInfo"]); 528 navigationInfo = new NavigationInfo.fromJson(_json["navigationInfo"]);
436 } 529 }
437 if (_json.containsKey("socialMetaTagInfo")) { 530 if (_json.containsKey("socialMetaTagInfo")) {
438 socialMetaTagInfo = new SocialMetaTagInfo.fromJson(_json["socialMetaTagInf o"]); 531 socialMetaTagInfo =
532 new SocialMetaTagInfo.fromJson(_json["socialMetaTagInfo"]);
439 } 533 }
440 } 534 }
441 535
442 core.Map<core.String, core.Object> toJson() { 536 core.Map<core.String, core.Object> toJson() {
443 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 537 final core.Map<core.String, core.Object> _json =
538 new core.Map<core.String, core.Object>();
444 if (analyticsInfo != null) { 539 if (analyticsInfo != null) {
445 _json["analyticsInfo"] = (analyticsInfo).toJson(); 540 _json["analyticsInfo"] = (analyticsInfo).toJson();
446 } 541 }
447 if (androidInfo != null) { 542 if (androidInfo != null) {
448 _json["androidInfo"] = (androidInfo).toJson(); 543 _json["androidInfo"] = (androidInfo).toJson();
449 } 544 }
450 if (dynamicLinkDomain != null) { 545 if (dynamicLinkDomain != null) {
451 _json["dynamicLinkDomain"] = dynamicLinkDomain; 546 _json["dynamicLinkDomain"] = dynamicLinkDomain;
452 } 547 }
453 if (iosInfo != null) { 548 if (iosInfo != null) {
454 _json["iosInfo"] = (iosInfo).toJson(); 549 _json["iosInfo"] = (iosInfo).toJson();
455 } 550 }
456 if (link != null) { 551 if (link != null) {
457 _json["link"] = link; 552 _json["link"] = link;
458 } 553 }
459 if (navigationInfo != null) { 554 if (navigationInfo != null) {
460 _json["navigationInfo"] = (navigationInfo).toJson(); 555 _json["navigationInfo"] = (navigationInfo).toJson();
461 } 556 }
462 if (socialMetaTagInfo != null) { 557 if (socialMetaTagInfo != null) {
463 _json["socialMetaTagInfo"] = (socialMetaTagInfo).toJson(); 558 _json["socialMetaTagInfo"] = (socialMetaTagInfo).toJson();
464 } 559 }
465 return _json; 560 return _json;
466 } 561 }
467 } 562 }
468 563
469 /** Analytics stats of a Dynamic Link for a given timeframe. */ 564 /// Analytics stats of a Dynamic Link for a given timeframe.
470 class DynamicLinkStats { 565 class DynamicLinkStats {
471 /** Dynamic Link event stats. */ 566 /// Dynamic Link event stats.
472 core.List<DynamicLinkEventStat> linkEventStats; 567 core.List<DynamicLinkEventStat> linkEventStats;
473 568
474 DynamicLinkStats(); 569 DynamicLinkStats();
475 570
476 DynamicLinkStats.fromJson(core.Map _json) { 571 DynamicLinkStats.fromJson(core.Map _json) {
477 if (_json.containsKey("linkEventStats")) { 572 if (_json.containsKey("linkEventStats")) {
478 linkEventStats = _json["linkEventStats"].map((value) => new DynamicLinkEve ntStat.fromJson(value)).toList(); 573 linkEventStats = _json["linkEventStats"]
574 .map((value) => new DynamicLinkEventStat.fromJson(value))
575 .toList();
479 } 576 }
480 } 577 }
481 578
482 core.Map<core.String, core.Object> toJson() { 579 core.Map<core.String, core.Object> toJson() {
483 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 580 final core.Map<core.String, core.Object> _json =
581 new core.Map<core.String, core.Object>();
484 if (linkEventStats != null) { 582 if (linkEventStats != null) {
485 _json["linkEventStats"] = linkEventStats.map((value) => (value).toJson()). toList(); 583 _json["linkEventStats"] =
584 linkEventStats.map((value) => (value).toJson()).toList();
486 } 585 }
487 return _json; 586 return _json;
488 } 587 }
489 } 588 }
490 589
491 /** Dynamic Links warning messages. */ 590 /// Dynamic Links warning messages.
492 class DynamicLinkWarning { 591 class DynamicLinkWarning {
493 /** 592 /// The warning code.
494 * The warning code. 593 /// Possible string values are:
495 * Possible string values are: 594 /// - "CODE_UNSPECIFIED" : Unknown code.
496 * - "CODE_UNSPECIFIED" : Unknown code. 595 /// - "NOT_IN_PROJECT_ANDROID_PACKAGE_NAME" : The Android package does not
497 * - "NOT_IN_PROJECT_ANDROID_PACKAGE_NAME" : The Android package does not 596 /// match any in developer's DevConsole project.
498 * match any in developer's DevConsole project. 597 /// - "NOT_INTEGER_ANDROID_PACKAGE_MIN_VERSION" : The Android minimum version
499 * - "NOT_INTEGER_ANDROID_PACKAGE_MIN_VERSION" : The Android minimum version 598 /// code has to be a valid integer.
500 * code has to be a valid integer. 599 /// - "UNNECESSARY_ANDROID_PACKAGE_MIN_VERSION" : Android package min version
501 * - "UNNECESSARY_ANDROID_PACKAGE_MIN_VERSION" : Android package min version 600 /// param is not needed, e.g. when
502 * param is not needed, e.g. when 601 /// 'apn' is missing.
503 * 'apn' is missing. 602 /// - "NOT_URI_ANDROID_LINK" : Android link is not a valid URI.
504 * - "NOT_URI_ANDROID_LINK" : Android link is not a valid URI. 603 /// - "UNNECESSARY_ANDROID_LINK" : Android link param is not needed, e.g.
505 * - "UNNECESSARY_ANDROID_LINK" : Android link param is not needed, e.g. when 604 /// when param 'al' and 'link' have
506 * param 'al' and 'link' have 605 /// the same value..
507 * the same value.. 606 /// - "NOT_URI_ANDROID_FALLBACK_LINK" : Android fallback link is not a valid
508 * - "NOT_URI_ANDROID_FALLBACK_LINK" : Android fallback link is not a valid 607 /// URI.
509 * URI. 608 /// - "BAD_URI_SCHEME_ANDROID_FALLBACK_LINK" : Android fallback link has an
510 * - "BAD_URI_SCHEME_ANDROID_FALLBACK_LINK" : Android fallback link has an 609 /// invalid (non http/https) URI scheme.
511 * invalid (non http/https) URI scheme. 610 /// - "NOT_IN_PROJECT_IOS_BUNDLE_ID" : The iOS bundle ID does not match any
512 * - "NOT_IN_PROJECT_IOS_BUNDLE_ID" : The iOS bundle ID does not match any in 611 /// in developer's DevConsole project.
513 * developer's DevConsole project. 612 /// - "NOT_IN_PROJECT_IPAD_BUNDLE_ID" : The iPad bundle ID does not match any
514 * - "NOT_IN_PROJECT_IPAD_BUNDLE_ID" : The iPad bundle ID does not match any 613 /// in developer's DevConsole project.
515 * in developer's DevConsole project. 614 /// - "UNNECESSARY_IOS_URL_SCHEME" : iOS URL scheme is not needed, e.g. when
516 * - "UNNECESSARY_IOS_URL_SCHEME" : iOS URL scheme is not needed, e.g. when 615 /// 'ibi' are 'ipbi' are all missing.
517 * 'ibi' are 'ipbi' are all missing. 616 /// - "NOT_NUMERIC_IOS_APP_STORE_ID" : iOS app store ID format is incorrect,
518 * - "NOT_NUMERIC_IOS_APP_STORE_ID" : iOS app store ID format is incorrect, 617 /// e.g. not numeric.
519 * e.g. not numeric. 618 /// - "UNNECESSARY_IOS_APP_STORE_ID" : iOS app store ID is not needed.
520 * - "UNNECESSARY_IOS_APP_STORE_ID" : iOS app store ID is not needed. 619 /// - "NOT_URI_IOS_FALLBACK_LINK" : iOS fallback link is not a valid URI.
521 * - "NOT_URI_IOS_FALLBACK_LINK" : iOS fallback link is not a valid URI. 620 /// - "BAD_URI_SCHEME_IOS_FALLBACK_LINK" : iOS fallback link has an invalid
522 * - "BAD_URI_SCHEME_IOS_FALLBACK_LINK" : iOS fallback link has an invalid 621 /// (non http/https) URI scheme.
523 * (non http/https) URI scheme. 622 /// - "NOT_URI_IPAD_FALLBACK_LINK" : iPad fallback link is not a valid URI.
524 * - "NOT_URI_IPAD_FALLBACK_LINK" : iPad fallback link is not a valid URI. 623 /// - "BAD_URI_SCHEME_IPAD_FALLBACK_LINK" : iPad fallback link has an invalid
525 * - "BAD_URI_SCHEME_IPAD_FALLBACK_LINK" : iPad fallback link has an invalid 624 /// (non http/https) URI scheme.
526 * (non http/https) URI scheme. 625 /// - "BAD_DEBUG_PARAM" : Debug param format is incorrect.
527 * - "BAD_DEBUG_PARAM" : Debug param format is incorrect. 626 /// - "BAD_AD_PARAM" : isAd param format is incorrect.
528 * - "BAD_AD_PARAM" : isAd param format is incorrect. 627 /// - "DEPRECATED_PARAM" : Indicates a certain param is deprecated.
529 * - "DEPRECATED_PARAM" : Indicates a certain param is deprecated. 628 /// - "UNRECOGNIZED_PARAM" : Indicates certain paramater is not recognized.
530 * - "UNRECOGNIZED_PARAM" : Indicates certain paramater is not recognized. 629 /// - "TOO_LONG_PARAM" : Indicates certain paramater is too long.
531 * - "TOO_LONG_PARAM" : Indicates certain paramater is too long. 630 /// - "NOT_URI_SOCIAL_IMAGE_LINK" : Social meta tag image link is not a valid
532 * - "NOT_URI_SOCIAL_IMAGE_LINK" : Social meta tag image link is not a valid 631 /// URI.
533 * URI. 632 /// - "BAD_URI_SCHEME_SOCIAL_IMAGE_LINK" : Social meta tag image link has an
534 * - "BAD_URI_SCHEME_SOCIAL_IMAGE_LINK" : Social meta tag image link has an 633 /// invalid (non http/https) URI scheme.
535 * invalid (non http/https) URI scheme. 634 /// - "NOT_URI_SOCIAL_URL"
536 * - "NOT_URI_SOCIAL_URL" 635 /// - "BAD_URI_SCHEME_SOCIAL_URL"
537 * - "BAD_URI_SCHEME_SOCIAL_URL" 636 /// - "LINK_LENGTH_TOO_LONG" : Dynamic Link URL length is too long.
538 * - "LINK_LENGTH_TOO_LONG" : Dynamic Link URL length is too long. 637 /// - "LINK_WITH_FRAGMENTS" : Dynamic Link URL contains fragments.
539 * - "LINK_WITH_FRAGMENTS" : Dynamic Link URL contains fragments. 638 /// - "NOT_MATCHING_IOS_BUNDLE_ID_AND_STORE_ID" : The iOS bundle ID does not
540 * - "NOT_MATCHING_IOS_BUNDLE_ID_AND_STORE_ID" : The iOS bundle ID does not 639 /// match with the given iOS store ID.
541 * match with the given iOS store ID.
542 */
543 core.String warningCode; 640 core.String warningCode;
544 /** The document describing the warning, and helps resolve. */ 641
642 /// The document describing the warning, and helps resolve.
545 core.String warningDocumentLink; 643 core.String warningDocumentLink;
546 /** The warning message to help developers improve their requests. */ 644
645 /// The warning message to help developers improve their requests.
547 core.String warningMessage; 646 core.String warningMessage;
548 647
549 DynamicLinkWarning(); 648 DynamicLinkWarning();
550 649
551 DynamicLinkWarning.fromJson(core.Map _json) { 650 DynamicLinkWarning.fromJson(core.Map _json) {
552 if (_json.containsKey("warningCode")) { 651 if (_json.containsKey("warningCode")) {
553 warningCode = _json["warningCode"]; 652 warningCode = _json["warningCode"];
554 } 653 }
555 if (_json.containsKey("warningDocumentLink")) { 654 if (_json.containsKey("warningDocumentLink")) {
556 warningDocumentLink = _json["warningDocumentLink"]; 655 warningDocumentLink = _json["warningDocumentLink"];
557 } 656 }
558 if (_json.containsKey("warningMessage")) { 657 if (_json.containsKey("warningMessage")) {
559 warningMessage = _json["warningMessage"]; 658 warningMessage = _json["warningMessage"];
560 } 659 }
561 } 660 }
562 661
563 core.Map<core.String, core.Object> toJson() { 662 core.Map<core.String, core.Object> toJson() {
564 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 663 final core.Map<core.String, core.Object> _json =
664 new core.Map<core.String, core.Object>();
565 if (warningCode != null) { 665 if (warningCode != null) {
566 _json["warningCode"] = warningCode; 666 _json["warningCode"] = warningCode;
567 } 667 }
568 if (warningDocumentLink != null) { 668 if (warningDocumentLink != null) {
569 _json["warningDocumentLink"] = warningDocumentLink; 669 _json["warningDocumentLink"] = warningDocumentLink;
570 } 670 }
571 if (warningMessage != null) { 671 if (warningMessage != null) {
572 _json["warningMessage"] = warningMessage; 672 _json["warningMessage"] = warningMessage;
573 } 673 }
574 return _json; 674 return _json;
575 } 675 }
576 } 676 }
577 677
578 /** 678 /// Request for iSDK to execute strong match flow for post-install attribution.
579 * Parameters for Google Play Campaign Measurements. 679 /// This is meant for iOS requests only. Requests from other platforms will
580 * [Learn 680 /// not be honored.
581 * more](https://developers.google.com/analytics/devguides/collection/android/v4 /campaigns#campaign-params) 681 class GetIosPostInstallAttributionRequest {
582 */ 682 /// App installation epoch time (https://en.wikipedia.org/wiki/Unix_time).
683 /// This is a client signal for a more accurate weak match.
684 core.String appInstallationTime;
685
686 /// APP bundle ID.
687 core.String bundleId;
688
689 /// Device information.
690 DeviceInfo device;
691
692 /// iOS version, ie: 9.3.5.
693 /// Consider adding "build".
694 core.String iosVersion;
695
696 /// App post install attribution retrieval information. Disambiguates
697 /// mechanism (iSDK or developer invoked) to retrieve payload from
698 /// clicked link.
699 /// Possible string values are:
700 /// - "UNKNOWN_PAYLOAD_RETRIEVAL_METHOD" : Unknown method.
701 /// - "IMPLICIT_WEAK_MATCH" : iSDK performs a server lookup by device
702 /// fingerprint in the background
703 /// when app is first-opened; no API called by developer.
704 /// - "EXPLICIT_WEAK_MATCH" : iSDK performs a server lookup by device
705 /// fingerprint upon a dev API call.
706 /// - "EXPLICIT_STRONG_AFTER_WEAK_MATCH" : iSDK performs a strong match only
707 /// if weak match is found upon a dev
708 /// API call.
709 core.String retrievalMethod;
710
711 /// Google SDK version.
712 core.String sdkVersion;
713
714 /// Possible unique matched link that server need to check before performing
715 /// fingerprint match. If passed link is short server need to expand the
716 /// link.
717 /// If link is long server need to vslidate the link.
718 core.String uniqueMatchLinkToCheck;
719
720 /// Strong match page information. Disambiguates between default UI and
721 /// custom page to present when strong match succeeds/fails to find cookie.
722 /// Possible string values are:
723 /// - "UNKNOWN_VISUAL_STYLE" : Unknown style.
724 /// - "DEFAULT_STYLE" : Default style.
725 /// - "CUSTOM_STYLE" : Custom style.
726 core.String visualStyle;
727
728 GetIosPostInstallAttributionRequest();
729
730 GetIosPostInstallAttributionRequest.fromJson(core.Map _json) {
731 if (_json.containsKey("appInstallationTime")) {
732 appInstallationTime = _json["appInstallationTime"];
733 }
734 if (_json.containsKey("bundleId")) {
735 bundleId = _json["bundleId"];
736 }
737 if (_json.containsKey("device")) {
738 device = new DeviceInfo.fromJson(_json["device"]);
739 }
740 if (_json.containsKey("iosVersion")) {
741 iosVersion = _json["iosVersion"];
742 }
743 if (_json.containsKey("retrievalMethod")) {
744 retrievalMethod = _json["retrievalMethod"];
745 }
746 if (_json.containsKey("sdkVersion")) {
747 sdkVersion = _json["sdkVersion"];
748 }
749 if (_json.containsKey("uniqueMatchLinkToCheck")) {
750 uniqueMatchLinkToCheck = _json["uniqueMatchLinkToCheck"];
751 }
752 if (_json.containsKey("visualStyle")) {
753 visualStyle = _json["visualStyle"];
754 }
755 }
756
757 core.Map<core.String, core.Object> toJson() {
758 final core.Map<core.String, core.Object> _json =
759 new core.Map<core.String, core.Object>();
760 if (appInstallationTime != null) {
761 _json["appInstallationTime"] = appInstallationTime;
762 }
763 if (bundleId != null) {
764 _json["bundleId"] = bundleId;
765 }
766 if (device != null) {
767 _json["device"] = (device).toJson();
768 }
769 if (iosVersion != null) {
770 _json["iosVersion"] = iosVersion;
771 }
772 if (retrievalMethod != null) {
773 _json["retrievalMethod"] = retrievalMethod;
774 }
775 if (sdkVersion != null) {
776 _json["sdkVersion"] = sdkVersion;
777 }
778 if (uniqueMatchLinkToCheck != null) {
779 _json["uniqueMatchLinkToCheck"] = uniqueMatchLinkToCheck;
780 }
781 if (visualStyle != null) {
782 _json["visualStyle"] = visualStyle;
783 }
784 return _json;
785 }
786 }
787
788 /// Response for iSDK to execute strong match flow for post-install
789 /// attribution.
790 class GetIosPostInstallAttributionResponse {
791 /// The minimum version for app, specified by dev through ?imv= parameter.
792 /// Return to iSDK to allow app to evaluate if current version meets this.
793 core.String appMinimumVersion;
794
795 /// The confidence of the returned attribution.
796 /// Possible string values are:
797 /// - "UNKNOWN_ATTRIBUTION_CONFIDENCE" : Unset.
798 /// - "WEAK" : Weak confidence, more than one matching link found or link
799 /// suspected to
800 /// be false positive
801 /// - "DEFAULT" : Default confidence, match based on fingerprint
802 /// - "UNIQUE" : Unique confidence, match based on "unique match link to
803 /// check" or other
804 /// means
805 core.String attributionConfidence;
806
807 /// The deep-link attributed post-install via one of several techniques
808 /// (fingerprint, copy unique).
809 core.String deepLink;
810
811 /// User-agent specific custom-scheme URIs for iSDK to open. This will be set
812 /// according to the user-agent tha the click was originally made in. There
813 /// is
814 /// no Safari-equivalent custom-scheme open URLs.
815 /// ie: googlechrome://www.example.com
816 /// ie: firefox://open-url?url=http://www.example.com
817 /// ie: opera-http://example.com
818 core.String externalBrowserDestinationLink;
819
820 /// The link to navigate to update the app if min version is not met.
821 /// This is either (in order): 1) fallback link (from ?ifl= parameter, if
822 /// specified by developer) or 2) AppStore URL (from ?isi= parameter, if
823 /// specified), or 3) the payload link (from required link= parameter).
824 core.String fallbackLink;
825
826 /// Invitation ID attributed post-install via one of several techniques
827 /// (fingerprint, copy unique).
828 core.String invitationId;
829
830 /// Instruction for iSDK to attemmpt to perform strong match. For instance,
831 /// if browser does not support/allow cookie or outside of support browsers,
832 /// this will be false.
833 core.bool isStrongMatchExecutable;
834
835 /// Describes why match failed, ie: "discarded due to low confidence".
836 /// This message will be publicly visible.
837 core.String matchMessage;
838
839 /// Entire FDL (short or long) attributed post-install via one of several
840 /// techniques (fingerprint, copy unique).
841 core.String requestedLink;
842
843 /// The entire FDL, expanded from a short link. It is the same as the
844 /// requested_link, if it is long. Parameters from this should not be
845 /// used directly (ie: server can default utm_[campaign|medium|source]
846 /// to a value when requested_link lack them, server determine the best
847 /// fallback_link when requested_link specifies >1 fallback links).
848 core.String resolvedLink;
849
850 /// Scion campaign value to be propagated by iSDK to Scion at post-install.
851 core.String utmCampaign;
852
853 /// Scion medium value to be propagated by iSDK to Scion at post-install.
854 core.String utmMedium;
855
856 /// Scion source value to be propagated by iSDK to Scion at post-install.
857 core.String utmSource;
858
859 GetIosPostInstallAttributionResponse();
860
861 GetIosPostInstallAttributionResponse.fromJson(core.Map _json) {
862 if (_json.containsKey("appMinimumVersion")) {
863 appMinimumVersion = _json["appMinimumVersion"];
864 }
865 if (_json.containsKey("attributionConfidence")) {
866 attributionConfidence = _json["attributionConfidence"];
867 }
868 if (_json.containsKey("deepLink")) {
869 deepLink = _json["deepLink"];
870 }
871 if (_json.containsKey("externalBrowserDestinationLink")) {
872 externalBrowserDestinationLink = _json["externalBrowserDestinationLink"];
873 }
874 if (_json.containsKey("fallbackLink")) {
875 fallbackLink = _json["fallbackLink"];
876 }
877 if (_json.containsKey("invitationId")) {
878 invitationId = _json["invitationId"];
879 }
880 if (_json.containsKey("isStrongMatchExecutable")) {
881 isStrongMatchExecutable = _json["isStrongMatchExecutable"];
882 }
883 if (_json.containsKey("matchMessage")) {
884 matchMessage = _json["matchMessage"];
885 }
886 if (_json.containsKey("requestedLink")) {
887 requestedLink = _json["requestedLink"];
888 }
889 if (_json.containsKey("resolvedLink")) {
890 resolvedLink = _json["resolvedLink"];
891 }
892 if (_json.containsKey("utmCampaign")) {
893 utmCampaign = _json["utmCampaign"];
894 }
895 if (_json.containsKey("utmMedium")) {
896 utmMedium = _json["utmMedium"];
897 }
898 if (_json.containsKey("utmSource")) {
899 utmSource = _json["utmSource"];
900 }
901 }
902
903 core.Map<core.String, core.Object> toJson() {
904 final core.Map<core.String, core.Object> _json =
905 new core.Map<core.String, core.Object>();
906 if (appMinimumVersion != null) {
907 _json["appMinimumVersion"] = appMinimumVersion;
908 }
909 if (attributionConfidence != null) {
910 _json["attributionConfidence"] = attributionConfidence;
911 }
912 if (deepLink != null) {
913 _json["deepLink"] = deepLink;
914 }
915 if (externalBrowserDestinationLink != null) {
916 _json["externalBrowserDestinationLink"] = externalBrowserDestinationLink;
917 }
918 if (fallbackLink != null) {
919 _json["fallbackLink"] = fallbackLink;
920 }
921 if (invitationId != null) {
922 _json["invitationId"] = invitationId;
923 }
924 if (isStrongMatchExecutable != null) {
925 _json["isStrongMatchExecutable"] = isStrongMatchExecutable;
926 }
927 if (matchMessage != null) {
928 _json["matchMessage"] = matchMessage;
929 }
930 if (requestedLink != null) {
931 _json["requestedLink"] = requestedLink;
932 }
933 if (resolvedLink != null) {
934 _json["resolvedLink"] = resolvedLink;
935 }
936 if (utmCampaign != null) {
937 _json["utmCampaign"] = utmCampaign;
938 }
939 if (utmMedium != null) {
940 _json["utmMedium"] = utmMedium;
941 }
942 if (utmSource != null) {
943 _json["utmSource"] = utmSource;
944 }
945 return _json;
946 }
947 }
948
949 /// Parameters for Google Play Campaign Measurements.
950 /// [Learn
951 /// more](https://developers.google.com/analytics/devguides/collection/android/v 4/campaigns#campaign-params)
583 class GooglePlayAnalytics { 952 class GooglePlayAnalytics {
584 /** 953 /// [AdWords autotagging
585 * [AdWords autotagging 954 /// parameter](https://support.google.com/analytics/answer/1033981?hl=en);
586 * parameter](https://support.google.com/analytics/answer/1033981?hl=en); 955 /// used to measure Google AdWords ads. This value is generated dynamically
587 * used to measure Google AdWords ads. This value is generated dynamically 956 /// and should never be modified.
588 * and should never be modified.
589 */
590 core.String gclid; 957 core.String gclid;
591 /** 958
592 * Campaign name; used for keyword analysis to identify a specific product 959 /// Campaign name; used for keyword analysis to identify a specific product
593 * promotion or strategic campaign. 960 /// promotion or strategic campaign.
594 */
595 core.String utmCampaign; 961 core.String utmCampaign;
596 /** 962
597 * Campaign content; used for A/B testing and content-targeted ads to 963 /// Campaign content; used for A/B testing and content-targeted ads to
598 * differentiate ads or links that point to the same URL. 964 /// differentiate ads or links that point to the same URL.
599 */
600 core.String utmContent; 965 core.String utmContent;
601 /** 966
602 * Campaign medium; used to identify a medium such as email or cost-per-click. 967 /// Campaign medium; used to identify a medium such as email or
603 */ 968 /// cost-per-click.
604 core.String utmMedium; 969 core.String utmMedium;
605 /** 970
606 * Campaign source; used to identify a search engine, newsletter, or other 971 /// Campaign source; used to identify a search engine, newsletter, or other
607 * source. 972 /// source.
608 */
609 core.String utmSource; 973 core.String utmSource;
610 /** Campaign term; used with paid search to supply the keywords for ads. */ 974
975 /// Campaign term; used with paid search to supply the keywords for ads.
611 core.String utmTerm; 976 core.String utmTerm;
612 977
613 GooglePlayAnalytics(); 978 GooglePlayAnalytics();
614 979
615 GooglePlayAnalytics.fromJson(core.Map _json) { 980 GooglePlayAnalytics.fromJson(core.Map _json) {
616 if (_json.containsKey("gclid")) { 981 if (_json.containsKey("gclid")) {
617 gclid = _json["gclid"]; 982 gclid = _json["gclid"];
618 } 983 }
619 if (_json.containsKey("utmCampaign")) { 984 if (_json.containsKey("utmCampaign")) {
620 utmCampaign = _json["utmCampaign"]; 985 utmCampaign = _json["utmCampaign"];
621 } 986 }
622 if (_json.containsKey("utmContent")) { 987 if (_json.containsKey("utmContent")) {
623 utmContent = _json["utmContent"]; 988 utmContent = _json["utmContent"];
624 } 989 }
625 if (_json.containsKey("utmMedium")) { 990 if (_json.containsKey("utmMedium")) {
626 utmMedium = _json["utmMedium"]; 991 utmMedium = _json["utmMedium"];
627 } 992 }
628 if (_json.containsKey("utmSource")) { 993 if (_json.containsKey("utmSource")) {
629 utmSource = _json["utmSource"]; 994 utmSource = _json["utmSource"];
630 } 995 }
631 if (_json.containsKey("utmTerm")) { 996 if (_json.containsKey("utmTerm")) {
632 utmTerm = _json["utmTerm"]; 997 utmTerm = _json["utmTerm"];
633 } 998 }
634 } 999 }
635 1000
636 core.Map<core.String, core.Object> toJson() { 1001 core.Map<core.String, core.Object> toJson() {
637 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1002 final core.Map<core.String, core.Object> _json =
1003 new core.Map<core.String, core.Object>();
638 if (gclid != null) { 1004 if (gclid != null) {
639 _json["gclid"] = gclid; 1005 _json["gclid"] = gclid;
640 } 1006 }
641 if (utmCampaign != null) { 1007 if (utmCampaign != null) {
642 _json["utmCampaign"] = utmCampaign; 1008 _json["utmCampaign"] = utmCampaign;
643 } 1009 }
644 if (utmContent != null) { 1010 if (utmContent != null) {
645 _json["utmContent"] = utmContent; 1011 _json["utmContent"] = utmContent;
646 } 1012 }
647 if (utmMedium != null) { 1013 if (utmMedium != null) {
648 _json["utmMedium"] = utmMedium; 1014 _json["utmMedium"] = utmMedium;
649 } 1015 }
650 if (utmSource != null) { 1016 if (utmSource != null) {
651 _json["utmSource"] = utmSource; 1017 _json["utmSource"] = utmSource;
652 } 1018 }
653 if (utmTerm != null) { 1019 if (utmTerm != null) {
654 _json["utmTerm"] = utmTerm; 1020 _json["utmTerm"] = utmTerm;
655 } 1021 }
656 return _json; 1022 return _json;
657 } 1023 }
658 } 1024 }
659 1025
660 /** Parameters for iTunes Connect App Analytics. */ 1026 /// Parameters for iTunes Connect App Analytics.
661 class ITunesConnectAnalytics { 1027 class ITunesConnectAnalytics {
662 /** Affiliate token used to create affiliate-coded links. */ 1028 /// Affiliate token used to create affiliate-coded links.
663 core.String at; 1029 core.String at;
664 /** 1030
665 * Campaign text that developers can optionally add to any link in order to 1031 /// Campaign text that developers can optionally add to any link in order to
666 * track sales from a specific marketing campaign. 1032 /// track sales from a specific marketing campaign.
667 */
668 core.String ct; 1033 core.String ct;
669 /** iTune media types, including music, podcasts, audiobooks and so on. */ 1034
1035 /// iTune media types, including music, podcasts, audiobooks and so on.
670 core.String mt; 1036 core.String mt;
671 /** 1037
672 * Provider token that enables analytics for Dynamic Links from within iTunes 1038 /// Provider token that enables analytics for Dynamic Links from within
673 * Connect. 1039 /// iTunes
674 */ 1040 /// Connect.
675 core.String pt; 1041 core.String pt;
676 1042
677 ITunesConnectAnalytics(); 1043 ITunesConnectAnalytics();
678 1044
679 ITunesConnectAnalytics.fromJson(core.Map _json) { 1045 ITunesConnectAnalytics.fromJson(core.Map _json) {
680 if (_json.containsKey("at")) { 1046 if (_json.containsKey("at")) {
681 at = _json["at"]; 1047 at = _json["at"];
682 } 1048 }
683 if (_json.containsKey("ct")) { 1049 if (_json.containsKey("ct")) {
684 ct = _json["ct"]; 1050 ct = _json["ct"];
685 } 1051 }
686 if (_json.containsKey("mt")) { 1052 if (_json.containsKey("mt")) {
687 mt = _json["mt"]; 1053 mt = _json["mt"];
688 } 1054 }
689 if (_json.containsKey("pt")) { 1055 if (_json.containsKey("pt")) {
690 pt = _json["pt"]; 1056 pt = _json["pt"];
691 } 1057 }
692 } 1058 }
693 1059
694 core.Map<core.String, core.Object> toJson() { 1060 core.Map<core.String, core.Object> toJson() {
695 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1061 final core.Map<core.String, core.Object> _json =
1062 new core.Map<core.String, core.Object>();
696 if (at != null) { 1063 if (at != null) {
697 _json["at"] = at; 1064 _json["at"] = at;
698 } 1065 }
699 if (ct != null) { 1066 if (ct != null) {
700 _json["ct"] = ct; 1067 _json["ct"] = ct;
701 } 1068 }
702 if (mt != null) { 1069 if (mt != null) {
703 _json["mt"] = mt; 1070 _json["mt"] = mt;
704 } 1071 }
705 if (pt != null) { 1072 if (pt != null) {
706 _json["pt"] = pt; 1073 _json["pt"] = pt;
707 } 1074 }
708 return _json; 1075 return _json;
709 } 1076 }
710 } 1077 }
711 1078
712 /** iOS related attributes to the Dynamic Link.. */ 1079 /// iOS related attributes to the Dynamic Link..
713 class IosInfo { 1080 class IosInfo {
714 /** iOS App Store ID. */ 1081 /// iOS App Store ID.
715 core.String iosAppStoreId; 1082 core.String iosAppStoreId;
716 /** iOS bundle ID of the app. */ 1083
1084 /// iOS bundle ID of the app.
717 core.String iosBundleId; 1085 core.String iosBundleId;
718 /** 1086
719 * Custom (destination) scheme to use for iOS. By default, we’ll use the 1087 /// Custom (destination) scheme to use for iOS. By default, we’ll use the
720 * bundle ID as the custom scheme. Developer can override this behavior using 1088 /// bundle ID as the custom scheme. Developer can override this behavior
721 * this param. 1089 /// using
722 */ 1090 /// this param.
723 core.String iosCustomScheme; 1091 core.String iosCustomScheme;
724 /** Link to open on iOS if the app is not installed. */ 1092
1093 /// Link to open on iOS if the app is not installed.
725 core.String iosFallbackLink; 1094 core.String iosFallbackLink;
726 /** iPad bundle ID of the app. */ 1095
1096 /// iPad bundle ID of the app.
727 core.String iosIpadBundleId; 1097 core.String iosIpadBundleId;
728 /** If specified, this overrides the ios_fallback_link value on iPads. */ 1098
1099 /// If specified, this overrides the ios_fallback_link value on iPads.
729 core.String iosIpadFallbackLink; 1100 core.String iosIpadFallbackLink;
730 1101
731 IosInfo(); 1102 IosInfo();
732 1103
733 IosInfo.fromJson(core.Map _json) { 1104 IosInfo.fromJson(core.Map _json) {
734 if (_json.containsKey("iosAppStoreId")) { 1105 if (_json.containsKey("iosAppStoreId")) {
735 iosAppStoreId = _json["iosAppStoreId"]; 1106 iosAppStoreId = _json["iosAppStoreId"];
736 } 1107 }
737 if (_json.containsKey("iosBundleId")) { 1108 if (_json.containsKey("iosBundleId")) {
738 iosBundleId = _json["iosBundleId"]; 1109 iosBundleId = _json["iosBundleId"];
739 } 1110 }
740 if (_json.containsKey("iosCustomScheme")) { 1111 if (_json.containsKey("iosCustomScheme")) {
741 iosCustomScheme = _json["iosCustomScheme"]; 1112 iosCustomScheme = _json["iosCustomScheme"];
742 } 1113 }
743 if (_json.containsKey("iosFallbackLink")) { 1114 if (_json.containsKey("iosFallbackLink")) {
744 iosFallbackLink = _json["iosFallbackLink"]; 1115 iosFallbackLink = _json["iosFallbackLink"];
745 } 1116 }
746 if (_json.containsKey("iosIpadBundleId")) { 1117 if (_json.containsKey("iosIpadBundleId")) {
747 iosIpadBundleId = _json["iosIpadBundleId"]; 1118 iosIpadBundleId = _json["iosIpadBundleId"];
748 } 1119 }
749 if (_json.containsKey("iosIpadFallbackLink")) { 1120 if (_json.containsKey("iosIpadFallbackLink")) {
750 iosIpadFallbackLink = _json["iosIpadFallbackLink"]; 1121 iosIpadFallbackLink = _json["iosIpadFallbackLink"];
751 } 1122 }
752 } 1123 }
753 1124
754 core.Map<core.String, core.Object> toJson() { 1125 core.Map<core.String, core.Object> toJson() {
755 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1126 final core.Map<core.String, core.Object> _json =
1127 new core.Map<core.String, core.Object>();
756 if (iosAppStoreId != null) { 1128 if (iosAppStoreId != null) {
757 _json["iosAppStoreId"] = iosAppStoreId; 1129 _json["iosAppStoreId"] = iosAppStoreId;
758 } 1130 }
759 if (iosBundleId != null) { 1131 if (iosBundleId != null) {
760 _json["iosBundleId"] = iosBundleId; 1132 _json["iosBundleId"] = iosBundleId;
761 } 1133 }
762 if (iosCustomScheme != null) { 1134 if (iosCustomScheme != null) {
763 _json["iosCustomScheme"] = iosCustomScheme; 1135 _json["iosCustomScheme"] = iosCustomScheme;
764 } 1136 }
765 if (iosFallbackLink != null) { 1137 if (iosFallbackLink != null) {
766 _json["iosFallbackLink"] = iosFallbackLink; 1138 _json["iosFallbackLink"] = iosFallbackLink;
767 } 1139 }
768 if (iosIpadBundleId != null) { 1140 if (iosIpadBundleId != null) {
769 _json["iosIpadBundleId"] = iosIpadBundleId; 1141 _json["iosIpadBundleId"] = iosIpadBundleId;
770 } 1142 }
771 if (iosIpadFallbackLink != null) { 1143 if (iosIpadFallbackLink != null) {
772 _json["iosIpadFallbackLink"] = iosIpadFallbackLink; 1144 _json["iosIpadFallbackLink"] = iosIpadFallbackLink;
773 } 1145 }
774 return _json; 1146 return _json;
775 } 1147 }
776 } 1148 }
777 1149
778 /** Information of navigation behavior. */ 1150 /// Information of navigation behavior.
779 class NavigationInfo { 1151 class NavigationInfo {
780 /** 1152 /// If this option is on, FDL click will be forced to redirect rather than
781 * If this option is on, FDL click will be forced to redirect rather than 1153 /// show an interstitial page.
782 * show an interstitial page.
783 */
784 core.bool enableForcedRedirect; 1154 core.bool enableForcedRedirect;
785 1155
786 NavigationInfo(); 1156 NavigationInfo();
787 1157
788 NavigationInfo.fromJson(core.Map _json) { 1158 NavigationInfo.fromJson(core.Map _json) {
789 if (_json.containsKey("enableForcedRedirect")) { 1159 if (_json.containsKey("enableForcedRedirect")) {
790 enableForcedRedirect = _json["enableForcedRedirect"]; 1160 enableForcedRedirect = _json["enableForcedRedirect"];
791 } 1161 }
792 } 1162 }
793 1163
794 core.Map<core.String, core.Object> toJson() { 1164 core.Map<core.String, core.Object> toJson() {
795 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1165 final core.Map<core.String, core.Object> _json =
1166 new core.Map<core.String, core.Object>();
796 if (enableForcedRedirect != null) { 1167 if (enableForcedRedirect != null) {
797 _json["enableForcedRedirect"] = enableForcedRedirect; 1168 _json["enableForcedRedirect"] = enableForcedRedirect;
798 } 1169 }
799 return _json; 1170 return _json;
800 } 1171 }
801 } 1172 }
802 1173
803 /** 1174 /// Parameters for social meta tag params.
804 * Parameters for social meta tag params. 1175 /// Used to set meta tag data for link previews on social sites.
805 * Used to set meta tag data for link previews on social sites.
806 */
807 class SocialMetaTagInfo { 1176 class SocialMetaTagInfo {
808 /** A short description of the link. Optional. */ 1177 /// A short description of the link. Optional.
809 core.String socialDescription; 1178 core.String socialDescription;
810 /** An image url string. Optional. */ 1179
1180 /// An image url string. Optional.
811 core.String socialImageLink; 1181 core.String socialImageLink;
812 /** Title to be displayed. Optional. */ 1182
1183 /// Title to be displayed. Optional.
813 core.String socialTitle; 1184 core.String socialTitle;
814 1185
815 SocialMetaTagInfo(); 1186 SocialMetaTagInfo();
816 1187
817 SocialMetaTagInfo.fromJson(core.Map _json) { 1188 SocialMetaTagInfo.fromJson(core.Map _json) {
818 if (_json.containsKey("socialDescription")) { 1189 if (_json.containsKey("socialDescription")) {
819 socialDescription = _json["socialDescription"]; 1190 socialDescription = _json["socialDescription"];
820 } 1191 }
821 if (_json.containsKey("socialImageLink")) { 1192 if (_json.containsKey("socialImageLink")) {
822 socialImageLink = _json["socialImageLink"]; 1193 socialImageLink = _json["socialImageLink"];
823 } 1194 }
824 if (_json.containsKey("socialTitle")) { 1195 if (_json.containsKey("socialTitle")) {
825 socialTitle = _json["socialTitle"]; 1196 socialTitle = _json["socialTitle"];
826 } 1197 }
827 } 1198 }
828 1199
829 core.Map<core.String, core.Object> toJson() { 1200 core.Map<core.String, core.Object> toJson() {
830 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1201 final core.Map<core.String, core.Object> _json =
1202 new core.Map<core.String, core.Object>();
831 if (socialDescription != null) { 1203 if (socialDescription != null) {
832 _json["socialDescription"] = socialDescription; 1204 _json["socialDescription"] = socialDescription;
833 } 1205 }
834 if (socialImageLink != null) { 1206 if (socialImageLink != null) {
835 _json["socialImageLink"] = socialImageLink; 1207 _json["socialImageLink"] = socialImageLink;
836 } 1208 }
837 if (socialTitle != null) { 1209 if (socialTitle != null) {
838 _json["socialTitle"] = socialTitle; 1210 _json["socialTitle"] = socialTitle;
839 } 1211 }
840 return _json; 1212 return _json;
841 } 1213 }
842 } 1214 }
843 1215
844 /** Short Dynamic Link suffix. */ 1216 /// Short Dynamic Link suffix.
845 class Suffix { 1217 class Suffix {
846 /** 1218 /// Suffix option.
847 * Suffix option. 1219 /// Possible string values are:
848 * Possible string values are: 1220 /// - "OPTION_UNSPECIFIED" : The suffix option is not specified, performs as
849 * - "OPTION_UNSPECIFIED" : The suffix option is not specified, performs as 1221 /// NOT_GUESSABLE .
850 * NOT_GUESSABLE . 1222 /// - "UNGUESSABLE" : Short Dynamic Link suffix is a base62 [0-9A-Za-z]
851 * - "UNGUESSABLE" : Short Dynamic Link suffix is a base62 [0-9A-Za-z] encoded 1223 /// encoded string of
852 * string of 1224 /// a random generated 96 bit random number, which has a length of 17 chars.
853 * a random generated 96 bit random number, which has a length of 17 chars. 1225 /// For example, "nlAR8U4SlKRZw1cb2".
854 * For example, "nlAR8U4SlKRZw1cb2". 1226 /// It prevents other people from guessing and crawling short Dynamic Links
855 * It prevents other people from guessing and crawling short Dynamic Links 1227 /// that contain personal identifiable information.
856 * that contain personal identifiable information. 1228 /// - "SHORT" : Short Dynamic Link suffix is a base62 [0-9A-Za-z] string
857 * - "SHORT" : Short Dynamic Link suffix is a base62 [0-9A-Za-z] string 1229 /// starting with a
858 * starting with a 1230 /// length of 4 chars. the length will increase when all the space is
859 * length of 4 chars. the length will increase when all the space is 1231 /// occupied.
860 * occupied.
861 */
862 core.String option; 1232 core.String option;
863 1233
864 Suffix(); 1234 Suffix();
865 1235
866 Suffix.fromJson(core.Map _json) { 1236 Suffix.fromJson(core.Map _json) {
867 if (_json.containsKey("option")) { 1237 if (_json.containsKey("option")) {
868 option = _json["option"]; 1238 option = _json["option"];
869 } 1239 }
870 } 1240 }
871 1241
872 core.Map<core.String, core.Object> toJson() { 1242 core.Map<core.String, core.Object> toJson() {
873 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1243 final core.Map<core.String, core.Object> _json =
1244 new core.Map<core.String, core.Object>();
874 if (option != null) { 1245 if (option != null) {
875 _json["option"] = option; 1246 _json["option"] = option;
876 } 1247 }
877 return _json; 1248 return _json;
878 } 1249 }
879 } 1250 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/drive/v3.dart ('k') | generated/googleapis/lib/firebaseremoteconfig/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698