All Downloads are FREE. Search and download functionalities are using the official Maven repository.

protokt.com.google.cloud.extended_operations.kt Maven / Gradle / Ivy

There is a newer version: 0.12.1
Show newest version
// 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)
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy