Skip to content
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ private val __SupportSubEntities: KProperty1<ApplicationDefinition, Boolean?>
get() = ApplicationDefinition::supportSubEntities
private val __UnknownIntentThreshold: KProperty1<ApplicationDefinition, Double?>
get() = ApplicationDefinition::unknownIntentThreshold
private val __KnownIntentThreshold: KProperty1<ApplicationDefinition, Double?>
get() = ApplicationDefinition::knownIntentThreshold
private val __NormalizeText: KProperty1<ApplicationDefinition, Boolean?>
get() = ApplicationDefinition::normalizeText
private val ___id: KProperty1<ApplicationDefinition, Id<ApplicationDefinition>?>
Expand Down Expand Up @@ -79,6 +81,9 @@ class ApplicationDefinition_<T>(previous: KPropertyPath<T, *>?, property: KPrope
val unknownIntentThreshold: KPropertyPath<T, Double?>
get() = KPropertyPath(this,__UnknownIntentThreshold)

val knownIntentThreshold: KPropertyPath<T, Double?>
get() = KPropertyPath(this,__KnownIntentThreshold)

val normalizeText: KPropertyPath<T, Boolean?>
get() = KPropertyPath(this,__NormalizeText)

Expand Down Expand Up @@ -109,6 +114,8 @@ class ApplicationDefinition_<T>(previous: KPropertyPath<T, *>?, property: KPrope
get() = __SupportSubEntities
val UnknownIntentThreshold: KProperty1<ApplicationDefinition, Double?>
get() = __UnknownIntentThreshold
val KnownIntentThreshold: KProperty1<ApplicationDefinition, Double?>
get() = __KnownIntentThreshold
val NormalizeText: KProperty1<ApplicationDefinition, Boolean?>
get() = __NormalizeText
val _id: KProperty1<ApplicationDefinition, Id<ApplicationDefinition>?>
Expand Down Expand Up @@ -151,6 +158,9 @@ class ApplicationDefinition_Col<T>(previous: KPropertyPath<T, *>?, property: KPr
val unknownIntentThreshold: KPropertyPath<T, Double?>
get() = KPropertyPath(this,__UnknownIntentThreshold)

val knownIntentThreshold: KPropertyPath<T, Double?>
get() = KPropertyPath(this,__KnownIntentThreshold)

val normalizeText: KPropertyPath<T, Boolean?>
get() = KPropertyPath(this,__NormalizeText)

Expand Down Expand Up @@ -197,6 +207,9 @@ class ApplicationDefinition_Map<T, K>(previous: KPropertyPath<T, *>?, property:
val unknownIntentThreshold: KPropertyPath<T, Double?>
get() = KPropertyPath(this,__UnknownIntentThreshold)

val knownIntentThreshold: KPropertyPath<T, Double?>
get() = KPropertyPath(this,__KnownIntentThreshold)

val normalizeText: KPropertyPath<T, Boolean?>
get() = KPropertyPath(this,__NormalizeText)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ internal class ApplicationDefinition_Deserializer : JsonDeserializer<Application
var _supportSubEntities_set : Boolean = false
var _unknownIntentThreshold_: Double? = null
var _unknownIntentThreshold_set : Boolean = false
var _knownIntentThreshold_: Double? = null
var _knownIntentThreshold_set : Boolean = false
var _normalizeText_: Boolean? = null
var _normalizeText_set : Boolean = false
var __id_: Id<ApplicationDefinition>? = null
Expand Down Expand Up @@ -119,6 +121,11 @@ internal class ApplicationDefinition_Deserializer : JsonDeserializer<Application
else p.doubleValue;
_unknownIntentThreshold_set = true
}
"knownIntentThreshold" -> {
_knownIntentThreshold_ = if(_token_ == JsonToken.VALUE_NULL) null
else p.doubleValue;
_knownIntentThreshold_set = true
}
"normalizeText" -> {
_normalizeText_ = if(_token_ == JsonToken.VALUE_NULL) null
else p.booleanValue;
Expand All @@ -140,14 +147,16 @@ internal class ApplicationDefinition_Deserializer : JsonDeserializer<Application
return if(_name_set && _label_set && _namespace_set && _intents_set &&
_supportedLocales_set && _intentStatesMap_set && _nlpEngineType_set &&
_mergeEngineTypes_set && _useEntityModels_set && _supportSubEntities_set &&
_unknownIntentThreshold_set && _normalizeText_set && __id_set)
_unknownIntentThreshold_set && _knownIntentThreshold_set && _normalizeText_set
&& __id_set)
ApplicationDefinition(name = _name_!!, label = _label_!!, namespace =
_namespace_!!, intents = _intents_!!, supportedLocales =
_supportedLocales_!!, intentStatesMap = _intentStatesMap_!!,
nlpEngineType = _nlpEngineType_!!, mergeEngineTypes =
_mergeEngineTypes_!!, useEntityModels = _useEntityModels_!!,
supportSubEntities = _supportSubEntities_!!, unknownIntentThreshold =
_unknownIntentThreshold_!!, normalizeText = _normalizeText_!!, _id =
_unknownIntentThreshold_!!, knownIntentThreshold =
_knownIntentThreshold_!!, normalizeText = _normalizeText_!!, _id =
__id_!!)
else {
val map = mutableMapOf<KParameter, Any?>()
Expand All @@ -173,6 +182,8 @@ internal class ApplicationDefinition_Deserializer : JsonDeserializer<Application
map[parameters.getValue("supportSubEntities")] = _supportSubEntities_
if(_unknownIntentThreshold_set)
map[parameters.getValue("unknownIntentThreshold")] = _unknownIntentThreshold_
if(_knownIntentThreshold_set)
map[parameters.getValue("knownIntentThreshold")] = _knownIntentThreshold_
if(_normalizeText_set)
map[parameters.getValue("normalizeText")] = _normalizeText_
if(__id_set)
Expand All @@ -199,8 +210,10 @@ internal class ApplicationDefinition_Deserializer : JsonDeserializer<Application
primaryConstructor.findParameterByName("useEntityModels")!!, "supportSubEntities" to
primaryConstructor.findParameterByName("supportSubEntities")!!,
"unknownIntentThreshold" to
primaryConstructor.findParameterByName("unknownIntentThreshold")!!, "normalizeText"
to primaryConstructor.findParameterByName("normalizeText")!!, "_id" to
primaryConstructor.findParameterByName("unknownIntentThreshold")!!,
"knownIntentThreshold" to
primaryConstructor.findParameterByName("knownIntentThreshold")!!, "normalizeText" to
primaryConstructor.findParameterByName("normalizeText")!!, "_id" to
primaryConstructor.findParameterByName("_id")!!) }

private val _intents__reference: TypeReference<Set<Id<IntentDefinition>>> = object :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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_)
Expand Down

0 comments on commit 30e1ce8

Please sign in to comment.