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

commonMain.bridge.BridgeMessageType.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: bridge.BridgeMessageType in bridge/bridge.proto
package bridge

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

/**
 * protolint:disable ENUM_FIELD_NAMES_PREFIX
 */
public enum class BridgeMessageType(
  public override val `value`: Int,
) : WireEnum {
  ACTION(0),
  RESPONSE(1),
  EVENT(2),
  ;

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

    public fun fromValue(`value`: Int): BridgeMessageType? = when (value) {
      0 -> ACTION
      1 -> RESPONSE
      2 -> EVENT
      else -> null
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy