
com.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
// Generated by protokt version 0.10.2. Do not modify.
// Source: google/api/field_behavior.proto
package com.google.api
import com.toasttab.protokt.rt.KtEnum
import com.toasttab.protokt.rt.KtEnumDeserializer
import kotlin.Int
import kotlin.String
sealed class FieldBehavior(
override val `value`: Int,
override val name: String,
) : KtEnum() {
object FIELD_BEHAVIOR_UNSPECIFIED : FieldBehavior(0, "FIELD_BEHAVIOR_UNSPECIFIED")
object OPTIONAL : FieldBehavior(1, "OPTIONAL")
object REQUIRED : FieldBehavior(2, "REQUIRED")
object OUTPUT_ONLY : FieldBehavior(3, "OUTPUT_ONLY")
object INPUT_ONLY : FieldBehavior(4, "INPUT_ONLY")
object IMMUTABLE : FieldBehavior(5, "IMMUTABLE")
object UNORDERED_LIST : FieldBehavior(6, "UNORDERED_LIST")
object NON_EMPTY_DEFAULT : FieldBehavior(7, "NON_EMPTY_DEFAULT")
class UNRECOGNIZED(
`value`: Int,
) : FieldBehavior(value, "UNRECOGNIZED")
companion object Deserializer : KtEnumDeserializer {
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
else -> UNRECOGNIZED(value)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy