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

org.whispersystems.signalservice.internal.push.ProvisioningVersion.kt Maven / Gradle / Ivy

There is a newer version: 2.15.3_unofficial_107
Show newest version
// 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
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy