org.whispersystems.signalservice.internal.push.ProvisioningVersion.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signal-service-java Show documentation
Show all versions of signal-service-java Show documentation
Signal Service communication library for Java, unofficial fork
// Code generated by Wire protocol buffer compiler, do not edit.
// Source: signalservice.ProvisioningVersion in Provisioning.proto
package org.whispersystems.signalservice.`internal`.push
import com.squareup.wire.EnumAdapter
import com.squareup.wire.ProtoAdapter
import com.squareup.wire.Syntax.PROTO_2
import com.squareup.wire.WireEnum
import kotlin.Int
import kotlin.jvm.JvmField
import kotlin.jvm.JvmStatic
public enum class ProvisioningVersion(
public override val `value`: Int,
) : WireEnum {
INITIAL(0),
TABLET_SUPPORT(1),
CURRENT(1),
;
public companion object {
@JvmField
public val ADAPTER: ProtoAdapter = object :
EnumAdapter(
ProvisioningVersion::class,
PROTO_2,
ProvisioningVersion.INITIAL
) {
public override fun fromValue(`value`: Int): ProvisioningVersion? =
ProvisioningVersion.fromValue(value)
}
@JvmStatic
public fun fromValue(`value`: Int): ProvisioningVersion? = when (value) {
0 -> INITIAL
1 -> TABLET_SUPPORT
1 -> CURRENT
else -> null
}
}
}