fun buildSerialDescriptor(    serialName: String,     kind: SerialKind,     vararg typeParameters: SerialDescriptor,     builder: ClassSerialDescriptorBuilder.() -> Unit = {}): SerialDescriptor

An unsafe alternative to buildClassSerialDescriptor that supports an arbitrary SerialKind. This function is left public only for migration of pre-release users and is not intended to be used as generally-safe and stable mechanism. Beware that it can produce inconsistent or non spec-compliant instances.

If you end up using this builder, please file an issue with your use-case in kotlinx.serialization