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

main.java.com.streamlayer.common.AccessLevel Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: streamlayer/common/streamlayer_common.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.common;

/**
 * Protobuf enum {@code streamlayer.common.AccessLevel}
 */
public enum AccessLevel
    implements com.google.protobuf.Internal.EnumLite {
  /**
   * ACCESS_LEVEL_UNSET = 0;
   */
  ACCESS_LEVEL_UNSET(0),
  /**
   * ACCESS_LEVEL_OWNER = 1;
   */
  ACCESS_LEVEL_OWNER(1),
  /**
   * ACCESS_LEVEL_CLIENT = 2;
   */
  ACCESS_LEVEL_CLIENT(2),
  /**
   * ACCESS_LEVEL_MODERATOR = 2900;
   */
  ACCESS_LEVEL_MODERATOR(2900),
  /**
   * ACCESS_LEVEL_VIEWER = 3000;
   */
  ACCESS_LEVEL_VIEWER(3000),
  /**
   * ACCESS_LEVEL_MEMBER = 4000;
   */
  ACCESS_LEVEL_MEMBER(4000),
  /**
   * ACCESS_LEVEL_ADMIN = 5000;
   */
  ACCESS_LEVEL_ADMIN(5000),
  /**
   * ACCESS_LEVEL_ROOT = 10000;
   */
  ACCESS_LEVEL_ROOT(10000),
  UNRECOGNIZED(-1),
  ;

  /**
   * ACCESS_LEVEL_UNSET = 0;
   */
  public static final int ACCESS_LEVEL_UNSET_VALUE = 0;
  /**
   * ACCESS_LEVEL_OWNER = 1;
   */
  public static final int ACCESS_LEVEL_OWNER_VALUE = 1;
  /**
   * ACCESS_LEVEL_CLIENT = 2;
   */
  public static final int ACCESS_LEVEL_CLIENT_VALUE = 2;
  /**
   * ACCESS_LEVEL_MODERATOR = 2900;
   */
  public static final int ACCESS_LEVEL_MODERATOR_VALUE = 2900;
  /**
   * ACCESS_LEVEL_VIEWER = 3000;
   */
  public static final int ACCESS_LEVEL_VIEWER_VALUE = 3000;
  /**
   * ACCESS_LEVEL_MEMBER = 4000;
   */
  public static final int ACCESS_LEVEL_MEMBER_VALUE = 4000;
  /**
   * ACCESS_LEVEL_ADMIN = 5000;
   */
  public static final int ACCESS_LEVEL_ADMIN_VALUE = 5000;
  /**
   * ACCESS_LEVEL_ROOT = 10000;
   */
  public static final int ACCESS_LEVEL_ROOT_VALUE = 10000;


  @java.lang.Override
  public final int getNumber() {
    if (this == UNRECOGNIZED) {
      throw new java.lang.IllegalArgumentException(
          "Can't get the number of an unknown enum value.");
    }
    return value;
  }

  /**
   * @param value The number of the enum to look for.
   * @return The enum associated with the given number.
   * @deprecated Use {@link #forNumber(int)} instead.
   */
  @java.lang.Deprecated
  public static AccessLevel valueOf(int value) {
    return forNumber(value);
  }

  public static AccessLevel forNumber(int value) {
    switch (value) {
      case 0: return ACCESS_LEVEL_UNSET;
      case 1: return ACCESS_LEVEL_OWNER;
      case 2: return ACCESS_LEVEL_CLIENT;
      case 2900: return ACCESS_LEVEL_MODERATOR;
      case 3000: return ACCESS_LEVEL_VIEWER;
      case 4000: return ACCESS_LEVEL_MEMBER;
      case 5000: return ACCESS_LEVEL_ADMIN;
      case 10000: return ACCESS_LEVEL_ROOT;
      default: return null;
    }
  }

  public static com.google.protobuf.Internal.EnumLiteMap
      internalGetValueMap() {
    return internalValueMap;
  }
  private static final com.google.protobuf.Internal.EnumLiteMap<
      AccessLevel> internalValueMap =
        new com.google.protobuf.Internal.EnumLiteMap() {
          @java.lang.Override
          public AccessLevel findValueByNumber(int number) {
            return AccessLevel.forNumber(number);
          }
        };

  public static com.google.protobuf.Internal.EnumVerifier 
      internalGetVerifier() {
    return AccessLevelVerifier.INSTANCE;
  }

  private static final class AccessLevelVerifier implements 
       com.google.protobuf.Internal.EnumVerifier { 
          static final com.google.protobuf.Internal.EnumVerifier           INSTANCE = new AccessLevelVerifier();
          @java.lang.Override
          public boolean isInRange(int number) {
            return AccessLevel.forNumber(number) != null;
          }
        };

  private final int value;

  private AccessLevel(int value) {
    this.value = value;
  }

  // @@protoc_insertion_point(enum_scope:streamlayer.common.AccessLevel)
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy