PrimitiveType
@Serializable(with = PrimitiveType.ByteSerializer::class)
Type discriminator and ASN.1 codec for Primitive values.
IDs intentionally start at 1 (not 0) to stay robust with formats that may elide default scalar values on the wire (e.g. ProtoBuf-style encodings where 0 is the default for integers). If 0 were used as a valid discriminator, it could be indistinguishable from a missing discriminator field.
Types
Properties
Functions
Link copied to clipboard
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Link copied to clipboard
Returns an array containing the constants of this enum type, in the order they're declared.