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

commonMain.hiveline.stream.MediaKind.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: hiveline.stream.MediaKind in hiveline/stream.proto
package hiveline.stream

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 MediaKind(
  public override val `value`: Int,
) : WireEnum {
  MEDIA_KIND_VIDEO(0),
  MEDIA_KIND_AUDIO(1),
  ;

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

    public fun fromValue(`value`: Int): MediaKind? = when (value) {
      0 -> MEDIA_KIND_VIDEO
      1 -> MEDIA_KIND_AUDIO
      else -> null
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy