From 30e1ce8b511b630a2ffa20984bbd8f26bb0404b1 Mon Sep 17 00:00:00 2001 From: Julien Buret Date: Mon, 13 Jan 2025 11:08:50 +0100 Subject: [PATCH] update serialization --- .../shared/config/ApplicationDefinition_.kt | 13 ++++++++++++ .../ApplicationDefinition_Deserializer.kt | 21 +++++++++++++++---- .../ApplicationDefinition_Serializer.kt | 3 +++ 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/nlp/front/storage-mongo/target/generated-sources/kapt/compile/ai/tock/nlp/front/shared/config/ApplicationDefinition_.kt b/nlp/front/storage-mongo/target/generated-sources/kapt/compile/ai/tock/nlp/front/shared/config/ApplicationDefinition_.kt index 711eebdaeb..261863a0e0 100644 --- a/nlp/front/storage-mongo/target/generated-sources/kapt/compile/ai/tock/nlp/front/shared/config/ApplicationDefinition_.kt +++ b/nlp/front/storage-mongo/target/generated-sources/kapt/compile/ai/tock/nlp/front/shared/config/ApplicationDefinition_.kt @@ -40,6 +40,8 @@ private val __SupportSubEntities: KProperty1 get() = ApplicationDefinition::supportSubEntities private val __UnknownIntentThreshold: KProperty1 get() = ApplicationDefinition::unknownIntentThreshold +private val __KnownIntentThreshold: KProperty1 + get() = ApplicationDefinition::knownIntentThreshold private val __NormalizeText: KProperty1 get() = ApplicationDefinition::normalizeText private val ___id: KProperty1?> @@ -79,6 +81,9 @@ class ApplicationDefinition_(previous: KPropertyPath?, property: KPrope val unknownIntentThreshold: KPropertyPath get() = KPropertyPath(this,__UnknownIntentThreshold) + val knownIntentThreshold: KPropertyPath + get() = KPropertyPath(this,__KnownIntentThreshold) + val normalizeText: KPropertyPath get() = KPropertyPath(this,__NormalizeText) @@ -109,6 +114,8 @@ class ApplicationDefinition_(previous: KPropertyPath?, property: KPrope get() = __SupportSubEntities val UnknownIntentThreshold: KProperty1 get() = __UnknownIntentThreshold + val KnownIntentThreshold: KProperty1 + get() = __KnownIntentThreshold val NormalizeText: KProperty1 get() = __NormalizeText val _id: KProperty1?> @@ -151,6 +158,9 @@ class ApplicationDefinition_Col(previous: KPropertyPath?, property: KPr val unknownIntentThreshold: KPropertyPath get() = KPropertyPath(this,__UnknownIntentThreshold) + val knownIntentThreshold: KPropertyPath + get() = KPropertyPath(this,__KnownIntentThreshold) + val normalizeText: KPropertyPath get() = KPropertyPath(this,__NormalizeText) @@ -197,6 +207,9 @@ class ApplicationDefinition_Map(previous: KPropertyPath?, property: val unknownIntentThreshold: KPropertyPath get() = KPropertyPath(this,__UnknownIntentThreshold) + val knownIntentThreshold: KPropertyPath + get() = KPropertyPath(this,__KnownIntentThreshold) + val normalizeText: KPropertyPath get() = KPropertyPath(this,__NormalizeText) diff --git a/nlp/front/storage-mongo/target/generated-sources/kapt/compile/ai/tock/nlp/front/shared/config/ApplicationDefinition_Deserializer.kt b/nlp/front/storage-mongo/target/generated-sources/kapt/compile/ai/tock/nlp/front/shared/config/ApplicationDefinition_Deserializer.kt index 639cbe7af0..38332b12bf 100644 --- a/nlp/front/storage-mongo/target/generated-sources/kapt/compile/ai/tock/nlp/front/shared/config/ApplicationDefinition_Deserializer.kt +++ b/nlp/front/storage-mongo/target/generated-sources/kapt/compile/ai/tock/nlp/front/shared/config/ApplicationDefinition_Deserializer.kt @@ -50,6 +50,8 @@ internal class ApplicationDefinition_Deserializer : JsonDeserializer? = null @@ -119,6 +121,11 @@ internal class ApplicationDefinition_Deserializer : JsonDeserializer { + _knownIntentThreshold_ = if(_token_ == JsonToken.VALUE_NULL) null + else p.doubleValue; + _knownIntentThreshold_set = true + } "normalizeText" -> { _normalizeText_ = if(_token_ == JsonToken.VALUE_NULL) null else p.booleanValue; @@ -140,14 +147,16 @@ internal class ApplicationDefinition_Deserializer : JsonDeserializer() @@ -173,6 +182,8 @@ internal class ApplicationDefinition_Deserializer : JsonDeserializer>> = object : diff --git a/nlp/front/storage-mongo/target/generated-sources/kapt/compile/ai/tock/nlp/front/shared/config/ApplicationDefinition_Serializer.kt b/nlp/front/storage-mongo/target/generated-sources/kapt/compile/ai/tock/nlp/front/shared/config/ApplicationDefinition_Serializer.kt index ff578134a4..d2a9a24b35 100644 --- a/nlp/front/storage-mongo/target/generated-sources/kapt/compile/ai/tock/nlp/front/shared/config/ApplicationDefinition_Serializer.kt +++ b/nlp/front/storage-mongo/target/generated-sources/kapt/compile/ai/tock/nlp/front/shared/config/ApplicationDefinition_Serializer.kt @@ -78,6 +78,9 @@ internal class ApplicationDefinition_Serializer : gen.writeFieldName("unknownIntentThreshold") val _unknownIntentThreshold_ = value.unknownIntentThreshold gen.writeNumber(_unknownIntentThreshold_) + gen.writeFieldName("knownIntentThreshold") + val _knownIntentThreshold_ = value.knownIntentThreshold + gen.writeNumber(_knownIntentThreshold_) gen.writeFieldName("normalizeText") val _normalizeText_ = value.normalizeText gen.writeBoolean(_normalizeText_)