-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathprimitives.proto.kt
More file actions
56 lines (54 loc) · 1.7 KB
/
Copy pathprimitives.proto.kt
File metadata and controls
56 lines (54 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package testgen.primitives
import kotlin.Boolean
import kotlin.ByteArray
import kotlin.Double
import kotlin.Float
import kotlin.Int
import kotlin.Long
import kotlin.String
import kotlin.UInt
import kotlin.ULong
import kotlinx.serialization.Serializable
import kotlinx.serialization.protobuf.ProtoIntegerType.FIXED
import kotlinx.serialization.protobuf.ProtoIntegerType.SIGNED
import kotlinx.serialization.protobuf.ProtoNumber
import kotlinx.serialization.protobuf.ProtoType
@Serializable
public data class PrimitivesMessage(
@ProtoNumber(number = 1)
public val optionalInt32: Int? = 0,
@ProtoNumber(number = 2)
public val optionalInt64: Long? = 0L,
@ProtoNumber(number = 3)
public val optionalUint32: UInt? = 0U,
@ProtoNumber(number = 4)
public val optionalUint64: ULong? = 0UL,
@ProtoNumber(number = 5)
@ProtoType(type = SIGNED)
public val optionalSint32: Int? = 0,
@ProtoNumber(number = 6)
@ProtoType(type = SIGNED)
public val optionalSint64: Long? = 0L,
@ProtoNumber(number = 7)
@ProtoType(type = FIXED)
public val optionalFixed32: Int? = 0,
@ProtoNumber(number = 8)
@ProtoType(type = FIXED)
public val optionalFixed64: Long? = 0L,
@ProtoNumber(number = 9)
@ProtoType(type = FIXED)
public val optionalSfixed32: Int? = 0,
@ProtoNumber(number = 10)
@ProtoType(type = FIXED)
public val optionalSfixed64: Long? = 0L,
@ProtoNumber(number = 11)
public val optionalFloat: Float? = 0.0f,
@ProtoNumber(number = 12)
public val optionalDouble: Double? = 0.0,
@ProtoNumber(number = 13)
public val optionalBool: Boolean? = false,
@ProtoNumber(number = 14)
public val optionalString: String? = "",
@ProtoNumber(number = 15)
public val optionalBytes: ByteArray? = byteArrayOf(),
)