protokt.com.google.cloud.extended_operations.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.12.0. Do not modify.
// Source: google/cloud/extended_operations.proto
package com.google.cloud
import com.toasttab.protokt.rt.KtEnum
import com.toasttab.protokt.rt.KtEnumDeserializer
import kotlin.Int
import kotlin.String
sealed class OperationResponseMapping(
override val `value`: Int,
override val name: String,
) : KtEnum() {
object UNDEFINED : OperationResponseMapping(0, "UNDEFINED")
object NAME : OperationResponseMapping(1, "NAME")
object STATUS : OperationResponseMapping(2, "STATUS")
object ERROR_CODE : OperationResponseMapping(3, "ERROR_CODE")
object ERROR_MESSAGE : OperationResponseMapping(4, "ERROR_MESSAGE")
class UNRECOGNIZED(
`value`: Int,
) : OperationResponseMapping(value, "UNRECOGNIZED")
companion object Deserializer : KtEnumDeserializer {
override fun from(`value`: Int): OperationResponseMapping = when (value) {
0 -> UNDEFINED
1 -> NAME
2 -> STATUS
3 -> ERROR_CODE
4 -> ERROR_MESSAGE
else -> UNRECOGNIZED(value)
}
}
}