commonMain.protokt.v1.google.api.field_behavior.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-common-protos-lite Show documentation
Show all versions of proto-google-common-protos-lite Show documentation
Protobuf compiler and runtime for Kotlin
The newest version!
// Generated by protokt version 1.0.0-beta.2. Do not modify.
// Source: google/api/field_behavior.proto
@file:Suppress("DEPRECATION")
package protokt.v1.google.api
import protokt.v1.Enum
import protokt.v1.EnumReader
import kotlin.Int
import kotlin.String
import kotlin.Suppress
public sealed class FieldBehavior(
override val `value`: Int,
override val name: String
) : Enum() {
public object FIELD_BEHAVIOR_UNSPECIFIED : FieldBehavior(0, "FIELD_BEHAVIOR_UNSPECIFIED")
public object OPTIONAL : FieldBehavior(1, "OPTIONAL")
public object REQUIRED : FieldBehavior(2, "REQUIRED")
public object OUTPUT_ONLY : FieldBehavior(3, "OUTPUT_ONLY")
public object INPUT_ONLY : FieldBehavior(4, "INPUT_ONLY")
public object IMMUTABLE : FieldBehavior(5, "IMMUTABLE")
public object UNORDERED_LIST : FieldBehavior(6, "UNORDERED_LIST")
public object NON_EMPTY_DEFAULT : FieldBehavior(7, "NON_EMPTY_DEFAULT")
public object IDENTIFIER : FieldBehavior(8, "IDENTIFIER")
public class UNRECOGNIZED(
`value`: Int
) : FieldBehavior(value, "UNRECOGNIZED")
public companion object Deserializer : EnumReader {
override fun from(`value`: Int): FieldBehavior =
when (value) {
0 -> FIELD_BEHAVIOR_UNSPECIFIED
1 -> OPTIONAL
2 -> REQUIRED
3 -> OUTPUT_ONLY
4 -> INPUT_ONLY
5 -> IMMUTABLE
6 -> UNORDERED_LIST
7 -> NON_EMPTY_DEFAULT
8 -> IDENTIFIER
else -> UNRECOGNIZED(value)
}
}
}