-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmessage_no_fields.proto.kt
More file actions
43 lines (36 loc) · 1010 Bytes
/
Copy pathmessage_no_fields.proto.kt
File metadata and controls
43 lines (36 loc) · 1010 Bytes
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
package testgen.messages
import kotlin.Any
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlinx.serialization.Serializable
import kotlinx.serialization.protobuf.ProtoNumber
@Serializable
public class MessageNoFields() {
override fun toString(): String = "MessageNoFields"
override fun hashCode(): Int = 70_682_849
override fun equals(other: Any?): Boolean = other is MessageNoFields
@Serializable
public data class SubMessageNoFields(
@ProtoNumber(number = 1)
public val subHello: SubMessageNoFields? = null,
) {
@Serializable
public data class SubMessageNoFieldsExtend(
@ProtoNumber(number = 1)
public val type: Type? = testgen.messages.MessageNoFields.Type.UNKNOWN,
)
}
@Serializable
public data class SubMessageOneofFields(
@ProtoNumber(number = 1)
public val someValue: Int? = null,
)
@Serializable
public enum class Type {
@ProtoNumber(number = 0)
UNKNOWN,
@ProtoNumber(number = 1)
KNOWN,
}
}