commonMain.media.ProducerKind.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-entities Show documentation
Show all versions of proto-entities Show documentation
KMP package which exports compiled protobuf entities to be used by other repos
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: media.ProducerKind in media/common.proto
package media
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 ProducerKind(
public override val `value`: Int,
) : WireEnum {
AUDIO(0),
VIDEO(1),
;
public companion object {
public val ADAPTER: ProtoAdapter = object : EnumAdapter(
ProducerKind::class,
PROTO_3,
ProducerKind.AUDIO
) {
public override fun fromValue(`value`: Int): ProducerKind? = ProducerKind.fromValue(value)
}
public fun fromValue(`value`: Int): ProducerKind? = when (value) {
0 -> AUDIO
1 -> VIDEO
else -> null
}
}
}