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

commonMain.socket.room.Capabilities.kt Maven / Gradle / Ivy

Go to download

KMP package which exports compiled protobuf entities to be used by other repos

There is a newer version: 2.89.0
Show newest version
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: socket.room.Capabilities in socket/room.proto
package socket.room

import com.squareup.wire.EnumAdapter
import com.squareup.wire.ProtoAdapter
import com.squareup.wire.Syntax.PROTO_3
import com.squareup.wire.WireEnum
import kotlin.Int

public enum class Capabilities(
  public override val `value`: Int,
) : WireEnum {
  CAPABILITIES_HIVE(0),
  CAPABILITIES_CHAT(1),
  CAPABILITIES_PING(2),
  ;

  public companion object {
    public val ADAPTER: ProtoAdapter = object : EnumAdapter(
      Capabilities::class, 
      PROTO_3, 
      Capabilities.CAPABILITIES_HIVE
    ) {
      public override fun fromValue(`value`: Int): Capabilities? = Capabilities.fromValue(value)
    }

    public fun fromValue(`value`: Int): Capabilities? = when (value) {
      0 -> CAPABILITIES_HIVE
      1 -> CAPABILITIES_CHAT
      2 -> CAPABILITIES_PING
      else -> null
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy