@@ -16,6 +16,7 @@ import org.onebusaway.core.checkKnown
16
16
import org.onebusaway.core.checkRequired
17
17
import org.onebusaway.core.immutableEmptyMap
18
18
import org.onebusaway.core.toImmutable
19
+ import org.onebusaway.errors.OnebusawaySdkInvalidDataException
19
20
20
21
@NoAutoDetect
21
22
class AgenciesWithCoverageListResponse
@@ -33,24 +34,69 @@ private constructor(
33
34
@JsonAnySetter private val additionalProperties: Map <String , JsonValue > = immutableEmptyMap(),
34
35
) {
35
36
37
+ /* *
38
+ * @throws OnebusawaySdkInvalidDataException if the JSON field has an unexpected type or is
39
+ * unexpectedly missing or null (e.g. if the server responded with an unexpected value).
40
+ */
36
41
fun code (): Long = code.getRequired(" code" )
37
42
43
+ /* *
44
+ * @throws OnebusawaySdkInvalidDataException if the JSON field has an unexpected type or is
45
+ * unexpectedly missing or null (e.g. if the server responded with an unexpected value).
46
+ */
38
47
fun currentTime (): Long = currentTime.getRequired(" currentTime" )
39
48
49
+ /* *
50
+ * @throws OnebusawaySdkInvalidDataException if the JSON field has an unexpected type or is
51
+ * unexpectedly missing or null (e.g. if the server responded with an unexpected value).
52
+ */
40
53
fun text (): String = text.getRequired(" text" )
41
54
55
+ /* *
56
+ * @throws OnebusawaySdkInvalidDataException if the JSON field has an unexpected type or is
57
+ * unexpectedly missing or null (e.g. if the server responded with an unexpected value).
58
+ */
42
59
fun version (): Long = version.getRequired(" version" )
43
60
61
+ /* *
62
+ * @throws OnebusawaySdkInvalidDataException if the JSON field has an unexpected type or is
63
+ * unexpectedly missing or null (e.g. if the server responded with an unexpected value).
64
+ */
44
65
fun data (): Data = data.getRequired(" data" )
45
66
67
+ /* *
68
+ * Returns the raw JSON value of [code].
69
+ *
70
+ * Unlike [code], this method doesn't throw if the JSON field has an unexpected type.
71
+ */
46
72
@JsonProperty(" code" ) @ExcludeMissing fun _code (): JsonField <Long > = code
47
73
74
+ /* *
75
+ * Returns the raw JSON value of [currentTime].
76
+ *
77
+ * Unlike [currentTime], this method doesn't throw if the JSON field has an unexpected type.
78
+ */
48
79
@JsonProperty(" currentTime" ) @ExcludeMissing fun _currentTime (): JsonField <Long > = currentTime
49
80
81
+ /* *
82
+ * Returns the raw JSON value of [text].
83
+ *
84
+ * Unlike [text], this method doesn't throw if the JSON field has an unexpected type.
85
+ */
50
86
@JsonProperty(" text" ) @ExcludeMissing fun _text (): JsonField <String > = text
51
87
88
+ /* *
89
+ * Returns the raw JSON value of [version].
90
+ *
91
+ * Unlike [version], this method doesn't throw if the JSON field has an unexpected type.
92
+ */
52
93
@JsonProperty(" version" ) @ExcludeMissing fun _version (): JsonField <Long > = version
53
94
95
+ /* *
96
+ * Returns the raw JSON value of [data].
97
+ *
98
+ * Unlike [data], this method doesn't throw if the JSON field has an unexpected type.
99
+ */
54
100
@JsonProperty(" data" ) @ExcludeMissing fun _data (): JsonField <Data > = data
55
101
56
102
@JsonAnyGetter
@@ -123,22 +169,53 @@ private constructor(
123
169
124
170
fun code (code : Long ) = code(JsonField .of(code))
125
171
172
+ /* *
173
+ * Sets [Builder.code] to an arbitrary JSON value.
174
+ *
175
+ * You should usually call [Builder.code] with a well-typed [Long] value instead. This
176
+ * method is primarily for setting the field to an undocumented or not yet supported value.
177
+ */
126
178
fun code (code : JsonField <Long >) = apply { this .code = code }
127
179
128
180
fun currentTime (currentTime : Long ) = currentTime(JsonField .of(currentTime))
129
181
182
+ /* *
183
+ * Sets [Builder.currentTime] to an arbitrary JSON value.
184
+ *
185
+ * You should usually call [Builder.currentTime] with a well-typed [Long] value instead.
186
+ * This method is primarily for setting the field to an undocumented or not yet supported
187
+ * value.
188
+ */
130
189
fun currentTime (currentTime : JsonField <Long >) = apply { this .currentTime = currentTime }
131
190
132
191
fun text (text : String ) = text(JsonField .of(text))
133
192
193
+ /* *
194
+ * Sets [Builder.text] to an arbitrary JSON value.
195
+ *
196
+ * You should usually call [Builder.text] with a well-typed [String] value instead. This
197
+ * method is primarily for setting the field to an undocumented or not yet supported value.
198
+ */
134
199
fun text (text : JsonField <String >) = apply { this .text = text }
135
200
136
201
fun version (version : Long ) = version(JsonField .of(version))
137
202
203
+ /* *
204
+ * Sets [Builder.version] to an arbitrary JSON value.
205
+ *
206
+ * You should usually call [Builder.version] with a well-typed [Long] value instead. This
207
+ * method is primarily for setting the field to an undocumented or not yet supported value.
208
+ */
138
209
fun version (version : JsonField <Long >) = apply { this .version = version }
139
210
140
211
fun data (data : Data ) = data(JsonField .of(data))
141
212
213
+ /* *
214
+ * Sets [Builder.data] to an arbitrary JSON value.
215
+ *
216
+ * You should usually call [Builder.data] with a well-typed [Data] value instead. This
217
+ * method is primarily for setting the field to an undocumented or not yet supported value.
218
+ */
142
219
fun data (data : JsonField <Data >) = apply { this .data = data }
143
220
144
221
fun additionalProperties (additionalProperties : Map <String , JsonValue >) = apply {
@@ -188,20 +265,48 @@ private constructor(
188
265
private val additionalProperties: Map <String , JsonValue > = immutableEmptyMap(),
189
266
) {
190
267
268
+ /* *
269
+ * @throws OnebusawaySdkInvalidDataException if the JSON field has an unexpected type or is
270
+ * unexpectedly missing or null (e.g. if the server responded with an unexpected value).
271
+ */
191
272
fun limitExceeded (): Boolean = limitExceeded.getRequired(" limitExceeded" )
192
273
274
+ /* *
275
+ * @throws OnebusawaySdkInvalidDataException if the JSON field has an unexpected type or is
276
+ * unexpectedly missing or null (e.g. if the server responded with an unexpected value).
277
+ */
193
278
fun list (): kotlin.collections.List <List > = list.getRequired(" list" )
194
279
280
+ /* *
281
+ * @throws OnebusawaySdkInvalidDataException if the JSON field has an unexpected type or is
282
+ * unexpectedly missing or null (e.g. if the server responded with an unexpected value).
283
+ */
195
284
fun references (): References = references.getRequired(" references" )
196
285
286
+ /* *
287
+ * Returns the raw JSON value of [limitExceeded].
288
+ *
289
+ * Unlike [limitExceeded], this method doesn't throw if the JSON field has an unexpected
290
+ * type.
291
+ */
197
292
@JsonProperty(" limitExceeded" )
198
293
@ExcludeMissing
199
294
fun _limitExceeded (): JsonField <Boolean > = limitExceeded
200
295
296
+ /* *
297
+ * Returns the raw JSON value of [list].
298
+ *
299
+ * Unlike [list], this method doesn't throw if the JSON field has an unexpected type.
300
+ */
201
301
@JsonProperty(" list" )
202
302
@ExcludeMissing
203
303
fun _list (): JsonField <kotlin.collections.List <List >> = list
204
304
305
+ /* *
306
+ * Returns the raw JSON value of [references].
307
+ *
308
+ * Unlike [references], this method doesn't throw if the JSON field has an unexpected type.
309
+ */
205
310
@JsonProperty(" references" )
206
311
@ExcludeMissing
207
312
fun _references (): JsonField <References > = references
@@ -257,16 +362,35 @@ private constructor(
257
362
258
363
fun limitExceeded (limitExceeded : Boolean ) = limitExceeded(JsonField .of(limitExceeded))
259
364
365
+ /* *
366
+ * Sets [Builder.limitExceeded] to an arbitrary JSON value.
367
+ *
368
+ * You should usually call [Builder.limitExceeded] with a well-typed [Boolean] value
369
+ * instead. This method is primarily for setting the field to an undocumented or not yet
370
+ * supported value.
371
+ */
260
372
fun limitExceeded (limitExceeded : JsonField <Boolean >) = apply {
261
373
this .limitExceeded = limitExceeded
262
374
}
263
375
264
376
fun list (list : kotlin.collections.List <List >) = list(JsonField .of(list))
265
377
378
+ /* *
379
+ * Sets [Builder.list] to an arbitrary JSON value.
380
+ *
381
+ * You should usually call [Builder.list] with a well-typed `List<List>` value instead.
382
+ * This method is primarily for setting the field to an undocumented or not yet
383
+ * supported value.
384
+ */
266
385
fun list (list : JsonField <kotlin.collections.List <List >>) = apply {
267
386
this .list = list.map { it.toMutableList() }
268
387
}
269
388
389
+ /* *
390
+ * Adds a single [List] to [Builder.list].
391
+ *
392
+ * @throws IllegalStateException if the field was previously set to a non-list.
393
+ */
270
394
fun addList (list : List ) = apply {
271
395
this .list =
272
396
(this .list ? : JsonField .of(mutableListOf ())).also {
@@ -276,6 +400,13 @@ private constructor(
276
400
277
401
fun references (references : References ) = references(JsonField .of(references))
278
402
403
+ /* *
404
+ * Sets [Builder.references] to an arbitrary JSON value.
405
+ *
406
+ * You should usually call [Builder.references] with a well-typed [References] value
407
+ * instead. This method is primarily for setting the field to an undocumented or not yet
408
+ * supported value.
409
+ */
279
410
fun references (references : JsonField <References >) = apply {
280
411
this .references = references
281
412
}
@@ -331,24 +462,75 @@ private constructor(
331
462
private val additionalProperties: Map <String , JsonValue > = immutableEmptyMap(),
332
463
) {
333
464
465
+ /* *
466
+ * @throws OnebusawaySdkInvalidDataException if the JSON field has an unexpected type or
467
+ * is unexpectedly missing or null (e.g. if the server responded with an unexpected
468
+ * value).
469
+ */
334
470
fun agencyId (): String = agencyId.getRequired(" agencyId" )
335
471
472
+ /* *
473
+ * @throws OnebusawaySdkInvalidDataException if the JSON field has an unexpected type or
474
+ * is unexpectedly missing or null (e.g. if the server responded with an unexpected
475
+ * value).
476
+ */
336
477
fun lat (): Double = lat.getRequired(" lat" )
337
478
479
+ /* *
480
+ * @throws OnebusawaySdkInvalidDataException if the JSON field has an unexpected type or
481
+ * is unexpectedly missing or null (e.g. if the server responded with an unexpected
482
+ * value).
483
+ */
338
484
fun latSpan (): Double = latSpan.getRequired(" latSpan" )
339
485
486
+ /* *
487
+ * @throws OnebusawaySdkInvalidDataException if the JSON field has an unexpected type or
488
+ * is unexpectedly missing or null (e.g. if the server responded with an unexpected
489
+ * value).
490
+ */
340
491
fun lon (): Double = lon.getRequired(" lon" )
341
492
493
+ /* *
494
+ * @throws OnebusawaySdkInvalidDataException if the JSON field has an unexpected type or
495
+ * is unexpectedly missing or null (e.g. if the server responded with an unexpected
496
+ * value).
497
+ */
342
498
fun lonSpan (): Double = lonSpan.getRequired(" lonSpan" )
343
499
500
+ /* *
501
+ * Returns the raw JSON value of [agencyId].
502
+ *
503
+ * Unlike [agencyId], this method doesn't throw if the JSON field has an unexpected
504
+ * type.
505
+ */
344
506
@JsonProperty(" agencyId" ) @ExcludeMissing fun _agencyId (): JsonField <String > = agencyId
345
507
508
+ /* *
509
+ * Returns the raw JSON value of [lat].
510
+ *
511
+ * Unlike [lat], this method doesn't throw if the JSON field has an unexpected type.
512
+ */
346
513
@JsonProperty(" lat" ) @ExcludeMissing fun _lat (): JsonField <Double > = lat
347
514
515
+ /* *
516
+ * Returns the raw JSON value of [latSpan].
517
+ *
518
+ * Unlike [latSpan], this method doesn't throw if the JSON field has an unexpected type.
519
+ */
348
520
@JsonProperty(" latSpan" ) @ExcludeMissing fun _latSpan (): JsonField <Double > = latSpan
349
521
522
+ /* *
523
+ * Returns the raw JSON value of [lon].
524
+ *
525
+ * Unlike [lon], this method doesn't throw if the JSON field has an unexpected type.
526
+ */
350
527
@JsonProperty(" lon" ) @ExcludeMissing fun _lon (): JsonField <Double > = lon
351
528
529
+ /* *
530
+ * Returns the raw JSON value of [lonSpan].
531
+ *
532
+ * Unlike [lonSpan], this method doesn't throw if the JSON field has an unexpected type.
533
+ */
352
534
@JsonProperty(" lonSpan" ) @ExcludeMissing fun _lonSpan (): JsonField <Double > = lonSpan
353
535
354
536
@JsonAnyGetter
@@ -410,22 +592,57 @@ private constructor(
410
592
411
593
fun agencyId (agencyId : String ) = agencyId(JsonField .of(agencyId))
412
594
595
+ /* *
596
+ * Sets [Builder.agencyId] to an arbitrary JSON value.
597
+ *
598
+ * You should usually call [Builder.agencyId] with a well-typed [String] value
599
+ * instead. This method is primarily for setting the field to an undocumented or not
600
+ * yet supported value.
601
+ */
413
602
fun agencyId (agencyId : JsonField <String >) = apply { this .agencyId = agencyId }
414
603
415
604
fun lat (lat : Double ) = lat(JsonField .of(lat))
416
605
606
+ /* *
607
+ * Sets [Builder.lat] to an arbitrary JSON value.
608
+ *
609
+ * You should usually call [Builder.lat] with a well-typed [Double] value instead.
610
+ * This method is primarily for setting the field to an undocumented or not yet
611
+ * supported value.
612
+ */
417
613
fun lat (lat : JsonField <Double >) = apply { this .lat = lat }
418
614
419
615
fun latSpan (latSpan : Double ) = latSpan(JsonField .of(latSpan))
420
616
617
+ /* *
618
+ * Sets [Builder.latSpan] to an arbitrary JSON value.
619
+ *
620
+ * You should usually call [Builder.latSpan] with a well-typed [Double] value
621
+ * instead. This method is primarily for setting the field to an undocumented or not
622
+ * yet supported value.
623
+ */
421
624
fun latSpan (latSpan : JsonField <Double >) = apply { this .latSpan = latSpan }
422
625
423
626
fun lon (lon : Double ) = lon(JsonField .of(lon))
424
627
628
+ /* *
629
+ * Sets [Builder.lon] to an arbitrary JSON value.
630
+ *
631
+ * You should usually call [Builder.lon] with a well-typed [Double] value instead.
632
+ * This method is primarily for setting the field to an undocumented or not yet
633
+ * supported value.
634
+ */
425
635
fun lon (lon : JsonField <Double >) = apply { this .lon = lon }
426
636
427
637
fun lonSpan (lonSpan : Double ) = lonSpan(JsonField .of(lonSpan))
428
638
639
+ /* *
640
+ * Sets [Builder.lonSpan] to an arbitrary JSON value.
641
+ *
642
+ * You should usually call [Builder.lonSpan] with a well-typed [Double] value
643
+ * instead. This method is primarily for setting the field to an undocumented or not
644
+ * yet supported value.
645
+ */
429
646
fun lonSpan (lonSpan : JsonField <Double >) = apply { this .lonSpan = lonSpan }
430
647
431
648
fun additionalProperties (additionalProperties : Map <String , JsonValue >) = apply {
0 commit comments