kotlinx-serialization / kotlinx.serialization.protobuf / ProtoType

ProtoType

(common, js, jvm, native) @Target([AnnotationTarget.PROPERTY]) annotation class ProtoType

Instructs to use a particular ProtoNumberType for a property of integer number type. Affect Byte, Short, Int, Long and Char properties and does not affect others.

Constructors

(common, js, jvm, native)

<init>

Instructs to use a particular ProtoNumberType for a property of integer number type. Affect Byte, Short, Int, Long and Char properties and does not affect others.

<init>(type: ProtoNumberType)

Properties

(common, js, jvm, native)

type

val type: ProtoNumberType