@@ -32,7 +32,6 @@ import java.util.Optional
32
32
@NoAutoDetect
33
33
class CommitTestResultListResponse
34
34
private constructor (
35
- private val _meta : JsonField <_Meta >,
36
35
private val items: JsonField <List <Item >>,
37
36
private val additionalProperties: Map <String , JsonValue >,
38
37
) {
@@ -41,12 +40,8 @@ private constructor(
41
40
42
41
private var hashCode: Int = 0
43
42
44
- fun _meta (): _Meta = _meta .getRequired(" _meta" )
45
-
46
43
fun items (): List <Item > = items.getRequired(" items" )
47
44
48
- @JsonProperty(" _meta" ) @ExcludeMissing fun __meta () = _meta
49
-
50
45
@JsonProperty(" items" ) @ExcludeMissing fun _items () = items
51
46
52
47
@JsonAnyGetter
@@ -55,7 +50,6 @@ private constructor(
55
50
56
51
fun validate (): CommitTestResultListResponse = apply {
57
52
if (! validated) {
58
- _meta ().validate()
59
53
items().forEach { it.validate() }
60
54
validated = true
61
55
}
@@ -69,25 +63,19 @@ private constructor(
69
63
}
70
64
71
65
return other is CommitTestResultListResponse &&
72
- this ._meta == other._meta &&
73
66
this .items == other.items &&
74
67
this .additionalProperties == other.additionalProperties
75
68
}
76
69
77
70
override fun hashCode (): Int {
78
71
if (hashCode == 0 ) {
79
- hashCode =
80
- Objects .hash(
81
- _meta ,
82
- items,
83
- additionalProperties,
84
- )
72
+ hashCode = Objects .hash(items, additionalProperties)
85
73
}
86
74
return hashCode
87
75
}
88
76
89
77
override fun toString () =
90
- " CommitTestResultListResponse{_meta= $_meta , items=$items , additionalProperties=$additionalProperties }"
78
+ " CommitTestResultListResponse{items=$items , additionalProperties=$additionalProperties }"
91
79
92
80
companion object {
93
81
@@ -96,23 +84,15 @@ private constructor(
96
84
97
85
class Builder {
98
86
99
- private var _meta : JsonField <_Meta > = JsonMissing .of()
100
87
private var items: JsonField <List <Item >> = JsonMissing .of()
101
88
private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
102
89
103
90
@JvmSynthetic
104
91
internal fun from (commitTestResultListResponse : CommitTestResultListResponse ) = apply {
105
- this ._meta = commitTestResultListResponse._meta
106
92
this .items = commitTestResultListResponse.items
107
93
additionalProperties(commitTestResultListResponse.additionalProperties)
108
94
}
109
95
110
- fun _meta (_meta : _Meta ) = _meta (JsonField .of(_meta ))
111
-
112
- @JsonProperty(" _meta" )
113
- @ExcludeMissing
114
- fun _meta (_meta : JsonField <_Meta >) = apply { this ._meta = _meta }
115
-
116
96
fun items (items : List <Item >) = items(JsonField .of(items))
117
97
118
98
@JsonProperty(" items" )
@@ -135,176 +115,11 @@ private constructor(
135
115
136
116
fun build (): CommitTestResultListResponse =
137
117
CommitTestResultListResponse (
138
- _meta ,
139
118
items.map { it.toUnmodifiable() },
140
- additionalProperties.toUnmodifiable(),
119
+ additionalProperties.toUnmodifiable()
141
120
)
142
121
}
143
122
144
- @JsonDeserialize(builder = _Meta .Builder ::class )
145
- @NoAutoDetect
146
- class _Meta
147
- private constructor (
148
- private val page: JsonField <Long >,
149
- private val perPage: JsonField <Long >,
150
- private val totalItems: JsonField <Long >,
151
- private val totalPages: JsonField <Long >,
152
- private val additionalProperties: Map <String , JsonValue >,
153
- ) {
154
-
155
- private var validated: Boolean = false
156
-
157
- private var hashCode: Int = 0
158
-
159
- /* * The current page. */
160
- fun page (): Long = page.getRequired(" page" )
161
-
162
- /* * The number of items per page. */
163
- fun perPage (): Long = perPage.getRequired(" perPage" )
164
-
165
- /* * The total number of items. */
166
- fun totalItems (): Long = totalItems.getRequired(" totalItems" )
167
-
168
- /* * The total number of pages. */
169
- fun totalPages (): Long = totalPages.getRequired(" totalPages" )
170
-
171
- /* * The current page. */
172
- @JsonProperty(" page" ) @ExcludeMissing fun _page () = page
173
-
174
- /* * The number of items per page. */
175
- @JsonProperty(" perPage" ) @ExcludeMissing fun _perPage () = perPage
176
-
177
- /* * The total number of items. */
178
- @JsonProperty(" totalItems" ) @ExcludeMissing fun _totalItems () = totalItems
179
-
180
- /* * The total number of pages. */
181
- @JsonProperty(" totalPages" ) @ExcludeMissing fun _totalPages () = totalPages
182
-
183
- @JsonAnyGetter
184
- @ExcludeMissing
185
- fun _additionalProperties (): Map <String , JsonValue > = additionalProperties
186
-
187
- fun validate (): _Meta = apply {
188
- if (! validated) {
189
- page()
190
- perPage()
191
- totalItems()
192
- totalPages()
193
- validated = true
194
- }
195
- }
196
-
197
- fun toBuilder () = Builder ().from(this )
198
-
199
- override fun equals (other : Any? ): Boolean {
200
- if (this == = other) {
201
- return true
202
- }
203
-
204
- return other is _Meta &&
205
- this .page == other.page &&
206
- this .perPage == other.perPage &&
207
- this .totalItems == other.totalItems &&
208
- this .totalPages == other.totalPages &&
209
- this .additionalProperties == other.additionalProperties
210
- }
211
-
212
- override fun hashCode (): Int {
213
- if (hashCode == 0 ) {
214
- hashCode =
215
- Objects .hash(
216
- page,
217
- perPage,
218
- totalItems,
219
- totalPages,
220
- additionalProperties,
221
- )
222
- }
223
- return hashCode
224
- }
225
-
226
- override fun toString () =
227
- " _Meta{page=$page , perPage=$perPage , totalItems=$totalItems , totalPages=$totalPages , additionalProperties=$additionalProperties }"
228
-
229
- companion object {
230
-
231
- @JvmStatic fun builder () = Builder ()
232
- }
233
-
234
- class Builder {
235
-
236
- private var page: JsonField <Long > = JsonMissing .of()
237
- private var perPage: JsonField <Long > = JsonMissing .of()
238
- private var totalItems: JsonField <Long > = JsonMissing .of()
239
- private var totalPages: JsonField <Long > = JsonMissing .of()
240
- private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
241
-
242
- @JvmSynthetic
243
- internal fun from (_meta : _Meta ) = apply {
244
- this .page = _meta .page
245
- this .perPage = _meta .perPage
246
- this .totalItems = _meta .totalItems
247
- this .totalPages = _meta .totalPages
248
- additionalProperties(_meta .additionalProperties)
249
- }
250
-
251
- /* * The current page. */
252
- fun page (page : Long ) = page(JsonField .of(page))
253
-
254
- /* * The current page. */
255
- @JsonProperty(" page" )
256
- @ExcludeMissing
257
- fun page (page : JsonField <Long >) = apply { this .page = page }
258
-
259
- /* * The number of items per page. */
260
- fun perPage (perPage : Long ) = perPage(JsonField .of(perPage))
261
-
262
- /* * The number of items per page. */
263
- @JsonProperty(" perPage" )
264
- @ExcludeMissing
265
- fun perPage (perPage : JsonField <Long >) = apply { this .perPage = perPage }
266
-
267
- /* * The total number of items. */
268
- fun totalItems (totalItems : Long ) = totalItems(JsonField .of(totalItems))
269
-
270
- /* * The total number of items. */
271
- @JsonProperty(" totalItems" )
272
- @ExcludeMissing
273
- fun totalItems (totalItems : JsonField <Long >) = apply { this .totalItems = totalItems }
274
-
275
- /* * The total number of pages. */
276
- fun totalPages (totalPages : Long ) = totalPages(JsonField .of(totalPages))
277
-
278
- /* * The total number of pages. */
279
- @JsonProperty(" totalPages" )
280
- @ExcludeMissing
281
- fun totalPages (totalPages : JsonField <Long >) = apply { this .totalPages = totalPages }
282
-
283
- fun additionalProperties (additionalProperties : Map <String , JsonValue >) = apply {
284
- this .additionalProperties.clear()
285
- this .additionalProperties.putAll(additionalProperties)
286
- }
287
-
288
- @JsonAnySetter
289
- fun putAdditionalProperty (key : String , value : JsonValue ) = apply {
290
- this .additionalProperties.put(key, value)
291
- }
292
-
293
- fun putAllAdditionalProperties (additionalProperties : Map <String , JsonValue >) = apply {
294
- this .additionalProperties.putAll(additionalProperties)
295
- }
296
-
297
- fun build (): _Meta =
298
- _Meta (
299
- page,
300
- perPage,
301
- totalItems,
302
- totalPages,
303
- additionalProperties.toUnmodifiable(),
304
- )
305
- }
306
- }
307
-
308
123
@JsonDeserialize(builder = Item .Builder ::class )
309
124
@NoAutoDetect
310
125
class Item
0 commit comments