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

commonMain.protokt.v1.google.api.field_behavior.kt Maven / Gradle / Ivy

The newest version!
// Generated by protokt version 1.0.0-beta.2. Do not modify.
// Source: google/api/field_behavior.proto
@file:Suppress("DEPRECATION")

package protokt.v1.google.api

import protokt.v1.Enum
import protokt.v1.EnumReader
import kotlin.Int
import kotlin.String
import kotlin.Suppress

public sealed class FieldBehavior(
  override val `value`: Int,
  override val name: String
) : Enum() {
  public object FIELD_BEHAVIOR_UNSPECIFIED : FieldBehavior(0, "FIELD_BEHAVIOR_UNSPECIFIED")

  public object OPTIONAL : FieldBehavior(1, "OPTIONAL")

  public object REQUIRED : FieldBehavior(2, "REQUIRED")

  public object OUTPUT_ONLY : FieldBehavior(3, "OUTPUT_ONLY")

  public object INPUT_ONLY : FieldBehavior(4, "INPUT_ONLY")

  public object IMMUTABLE : FieldBehavior(5, "IMMUTABLE")

  public object UNORDERED_LIST : FieldBehavior(6, "UNORDERED_LIST")

  public object NON_EMPTY_DEFAULT : FieldBehavior(7, "NON_EMPTY_DEFAULT")

  public object IDENTIFIER : FieldBehavior(8, "IDENTIFIER")

  public class UNRECOGNIZED(
    `value`: Int
  ) : FieldBehavior(value, "UNRECOGNIZED")

  public companion object Deserializer : EnumReader {
    override fun from(`value`: Int): FieldBehavior =
      when (value) {
        0 -> FIELD_BEHAVIOR_UNSPECIFIED
        1 -> OPTIONAL
        2 -> REQUIRED
        3 -> OUTPUT_ONLY
        4 -> INPUT_ONLY
        5 -> IMMUTABLE
        6 -> UNORDERED_LIST
        7 -> NON_EMPTY_DEFAULT
        8 -> IDENTIFIER
        else -> UNRECOGNIZED(value)
      }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy