@@ -854,7 +854,7 @@ private constructor(
854854 fun defaultValue (bool : Boolean ) = defaultValue(DefaultValue .ofBool(bool))
855855
856856 /* * Alias for calling [defaultValue] with `DefaultValue.ofMixed(mixed)`. */
857- fun defaultValueOfMixed (mixed : List <DefaultValue .UnnamedSchemaWithArrayParent1 >) =
857+ fun defaultValueOfMixed (mixed : List <DefaultValue .UnnamedSchemaWithArrayParent2 >) =
858858 defaultValue(DefaultValue .ofMixed(mixed))
859859
860860 /* *
@@ -1247,7 +1247,7 @@ private constructor(
12471247 private val string: String? = null ,
12481248 private val number: Double? = null ,
12491249 private val bool: Boolean? = null ,
1250- private val mixed: List <UnnamedSchemaWithArrayParent1 >? = null ,
1250+ private val mixed: List <UnnamedSchemaWithArrayParent2 >? = null ,
12511251 private val _json : JsonValue ? = null ,
12521252 ) {
12531253
@@ -1261,7 +1261,7 @@ private constructor(
12611261 * Default value should be of type array when custom metadata field type is set to
12621262 * `MultiSelect`.
12631263 */
1264- fun mixed (): Optional <List <UnnamedSchemaWithArrayParent1 >> = Optional .ofNullable(mixed)
1264+ fun mixed (): Optional <List <UnnamedSchemaWithArrayParent2 >> = Optional .ofNullable(mixed)
12651265
12661266 fun isString (): Boolean = string != null
12671267
@@ -1281,7 +1281,7 @@ private constructor(
12811281 * Default value should be of type array when custom metadata field type is set to
12821282 * `MultiSelect`.
12831283 */
1284- fun asMixed (): List <UnnamedSchemaWithArrayParent1 > = mixed.getOrThrow(" mixed" )
1284+ fun asMixed (): List <UnnamedSchemaWithArrayParent2 > = mixed.getOrThrow(" mixed" )
12851285
12861286 fun _json (): Optional <JsonValue > = Optional .ofNullable(_json )
12871287
@@ -1309,7 +1309,7 @@ private constructor(
13091309
13101310 override fun visitBool (bool : Boolean ) {}
13111311
1312- override fun visitMixed (mixed : List <UnnamedSchemaWithArrayParent1 >) {
1312+ override fun visitMixed (mixed : List <UnnamedSchemaWithArrayParent2 >) {
13131313 mixed.forEach { it.validate() }
13141314 }
13151315 }
@@ -1341,7 +1341,7 @@ private constructor(
13411341
13421342 override fun visitBool (bool : Boolean ) = 1
13431343
1344- override fun visitMixed (mixed : List <UnnamedSchemaWithArrayParent1 >) =
1344+ override fun visitMixed (mixed : List <UnnamedSchemaWithArrayParent2 >) =
13451345 mixed.sumOf { it.validity().toInt() }
13461346
13471347 override fun unknown (json : JsonValue ? ) = 0
@@ -1385,7 +1385,7 @@ private constructor(
13851385 * `MultiSelect`.
13861386 */
13871387 @JvmStatic
1388- fun ofMixed (mixed : List <UnnamedSchemaWithArrayParent1 >) =
1388+ fun ofMixed (mixed : List <UnnamedSchemaWithArrayParent2 >) =
13891389 DefaultValue (mixed = mixed.toImmutable())
13901390 }
13911391
@@ -1405,7 +1405,7 @@ private constructor(
14051405 * Default value should be of type array when custom metadata field type is set to
14061406 * `MultiSelect`.
14071407 */
1408- fun visitMixed (mixed : List <UnnamedSchemaWithArrayParent1 >): T
1408+ fun visitMixed (mixed : List <UnnamedSchemaWithArrayParent2 >): T
14091409
14101410 /* *
14111411 * Maps an unknown variant of [DefaultValue] to a value of type [T].
@@ -1440,7 +1440,7 @@ private constructor(
14401440 },
14411441 tryDeserialize(
14421442 node,
1443- jacksonTypeRef<List <UnnamedSchemaWithArrayParent1 >>(),
1443+ jacksonTypeRef<List <UnnamedSchemaWithArrayParent2 >>(),
14441444 )
14451445 ?.let { DefaultValue (mixed = it, _json = json) },
14461446 )
@@ -1478,9 +1478,9 @@ private constructor(
14781478 }
14791479 }
14801480
1481- @JsonDeserialize(using = UnnamedSchemaWithArrayParent1 .Deserializer ::class )
1482- @JsonSerialize(using = UnnamedSchemaWithArrayParent1 .Serializer ::class )
1483- class UnnamedSchemaWithArrayParent1
1481+ @JsonDeserialize(using = UnnamedSchemaWithArrayParent2 .Deserializer ::class )
1482+ @JsonSerialize(using = UnnamedSchemaWithArrayParent2 .Serializer ::class )
1483+ class UnnamedSchemaWithArrayParent2
14841484 private constructor (
14851485 private val string: String? = null ,
14861486 private val number: Double? = null ,
@@ -1518,7 +1518,7 @@ private constructor(
15181518
15191519 private var validated: Boolean = false
15201520
1521- fun validate (): UnnamedSchemaWithArrayParent1 = apply {
1521+ fun validate (): UnnamedSchemaWithArrayParent2 = apply {
15221522 if (validated) {
15231523 return @apply
15241524 }
@@ -1568,7 +1568,7 @@ private constructor(
15681568 return true
15691569 }
15701570
1571- return other is UnnamedSchemaWithArrayParent1 &&
1571+ return other is UnnamedSchemaWithArrayParent2 &&
15721572 string == other.string &&
15731573 number == other.number &&
15741574 bool == other.bool
@@ -1578,28 +1578,28 @@ private constructor(
15781578
15791579 override fun toString (): String =
15801580 when {
1581- string != null -> " UnnamedSchemaWithArrayParent1 {string=$string }"
1582- number != null -> " UnnamedSchemaWithArrayParent1 {number=$number }"
1583- bool != null -> " UnnamedSchemaWithArrayParent1 {bool=$bool }"
1584- _json != null -> " UnnamedSchemaWithArrayParent1 {_unknown=$_json }"
1585- else -> throw IllegalStateException (" Invalid UnnamedSchemaWithArrayParent1 " )
1581+ string != null -> " UnnamedSchemaWithArrayParent2 {string=$string }"
1582+ number != null -> " UnnamedSchemaWithArrayParent2 {number=$number }"
1583+ bool != null -> " UnnamedSchemaWithArrayParent2 {bool=$bool }"
1584+ _json != null -> " UnnamedSchemaWithArrayParent2 {_unknown=$_json }"
1585+ else -> throw IllegalStateException (" Invalid UnnamedSchemaWithArrayParent2 " )
15861586 }
15871587
15881588 companion object {
15891589
15901590 @JvmStatic
1591- fun ofString (string : String ) = UnnamedSchemaWithArrayParent1 (string = string)
1591+ fun ofString (string : String ) = UnnamedSchemaWithArrayParent2 (string = string)
15921592
15931593 @JvmStatic
1594- fun ofNumber (number : Double ) = UnnamedSchemaWithArrayParent1 (number = number)
1594+ fun ofNumber (number : Double ) = UnnamedSchemaWithArrayParent2 (number = number)
15951595
15961596 @JvmStatic
1597- fun ofBool (bool : Boolean ) = UnnamedSchemaWithArrayParent1 (bool = bool)
1597+ fun ofBool (bool : Boolean ) = UnnamedSchemaWithArrayParent2 (bool = bool)
15981598 }
15991599
16001600 /* *
16011601 * An interface that defines how to map each variant of
1602- * [UnnamedSchemaWithArrayParent1 ] to a value of type [T].
1602+ * [UnnamedSchemaWithArrayParent2 ] to a value of type [T].
16031603 */
16041604 interface Visitor <out T > {
16051605
@@ -1610,10 +1610,10 @@ private constructor(
16101610 fun visitBool (bool : Boolean ): T
16111611
16121612 /* *
1613- * Maps an unknown variant of [UnnamedSchemaWithArrayParent1 ] to a value of type
1613+ * Maps an unknown variant of [UnnamedSchemaWithArrayParent2 ] to a value of type
16141614 * [T].
16151615 *
1616- * An instance of [UnnamedSchemaWithArrayParent1 ] can contain an unknown variant
1616+ * An instance of [UnnamedSchemaWithArrayParent2 ] can contain an unknown variant
16171617 * if it was deserialized from data that doesn't match any known variant. For
16181618 * example, if the SDK is on an older version than the API, then the API may
16191619 * respond with new variants that the SDK is unaware of.
@@ -1622,31 +1622,31 @@ private constructor(
16221622 */
16231623 fun unknown (json : JsonValue ? ): T {
16241624 throw ImageKitInvalidDataException (
1625- " Unknown UnnamedSchemaWithArrayParent1 : $json "
1625+ " Unknown UnnamedSchemaWithArrayParent2 : $json "
16261626 )
16271627 }
16281628 }
16291629
16301630 internal class Deserializer :
1631- BaseDeserializer <UnnamedSchemaWithArrayParent1 >(
1632- UnnamedSchemaWithArrayParent1 ::class
1631+ BaseDeserializer <UnnamedSchemaWithArrayParent2 >(
1632+ UnnamedSchemaWithArrayParent2 ::class
16331633 ) {
16341634
16351635 override fun ObjectCodec.deserialize (
16361636 node : JsonNode
1637- ): UnnamedSchemaWithArrayParent1 {
1637+ ): UnnamedSchemaWithArrayParent2 {
16381638 val json = JsonValue .fromJsonNode(node)
16391639
16401640 val bestMatches =
16411641 sequenceOf(
16421642 tryDeserialize(node, jacksonTypeRef<String >())?.let {
1643- UnnamedSchemaWithArrayParent1 (string = it, _json = json)
1643+ UnnamedSchemaWithArrayParent2 (string = it, _json = json)
16441644 },
16451645 tryDeserialize(node, jacksonTypeRef<Double >())?.let {
1646- UnnamedSchemaWithArrayParent1 (number = it, _json = json)
1646+ UnnamedSchemaWithArrayParent2 (number = it, _json = json)
16471647 },
16481648 tryDeserialize(node, jacksonTypeRef<Boolean >())?.let {
1649- UnnamedSchemaWithArrayParent1 (bool = it, _json = json)
1649+ UnnamedSchemaWithArrayParent2 (bool = it, _json = json)
16501650 },
16511651 )
16521652 .filterNotNull()
@@ -1656,7 +1656,7 @@ private constructor(
16561656 // This can happen if what we're deserializing is completely
16571657 // incompatible with all the possible variants (e.g. deserializing from
16581658 // object).
1659- 0 -> UnnamedSchemaWithArrayParent1 (_json = json)
1659+ 0 -> UnnamedSchemaWithArrayParent2 (_json = json)
16601660 1 -> bestMatches.single()
16611661 // If there's more than one match with the highest validity, then use
16621662 // the first completely valid match, or simply the first match if none
@@ -1667,12 +1667,12 @@ private constructor(
16671667 }
16681668
16691669 internal class Serializer :
1670- BaseSerializer <UnnamedSchemaWithArrayParent1 >(
1671- UnnamedSchemaWithArrayParent1 ::class
1670+ BaseSerializer <UnnamedSchemaWithArrayParent2 >(
1671+ UnnamedSchemaWithArrayParent2 ::class
16721672 ) {
16731673
16741674 override fun serialize (
1675- value : UnnamedSchemaWithArrayParent1 ,
1675+ value : UnnamedSchemaWithArrayParent2 ,
16761676 generator : JsonGenerator ,
16771677 provider : SerializerProvider ,
16781678 ) {
@@ -1682,7 +1682,7 @@ private constructor(
16821682 value.bool != null -> generator.writeObject(value.bool)
16831683 value._json != null -> generator.writeObject(value._json )
16841684 else ->
1685- throw IllegalStateException (" Invalid UnnamedSchemaWithArrayParent1 " )
1685+ throw IllegalStateException (" Invalid UnnamedSchemaWithArrayParent2 " )
16861686 }
16871687 }
16881688 }
0 commit comments