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

commonMain.protokt.v1.google.cloud.extended_operations.kt Maven / Gradle / Ivy

// Generated by protokt version 1.0.0-alpha.8. Do not modify.
// Source: google/cloud/extended_operations.proto
@file:Suppress("DEPRECATION")

package protokt.v1.google.cloud

import protokt.v1.KtEnum
import protokt.v1.KtEnumDeserializer
import kotlin.Int
import kotlin.String
import kotlin.Suppress

public sealed class OperationResponseMapping(
  override val `value`: Int,
  override val name: String
) : KtEnum() {
  public object UNDEFINED : OperationResponseMapping(0, "UNDEFINED")

  public object NAME : OperationResponseMapping(1, "NAME")

  public object STATUS : OperationResponseMapping(2, "STATUS")

  public object ERROR_CODE : OperationResponseMapping(3, "ERROR_CODE")

  public object ERROR_MESSAGE : OperationResponseMapping(4, "ERROR_MESSAGE")

  public class UNRECOGNIZED(
    `value`: Int
  ) : OperationResponseMapping(value, "UNRECOGNIZED")

  public 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