Enum Class UserRole

java.lang.Object
java.lang.Enum<UserRole>
com.soulfiremc.grpc.generated.UserRole
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<UserRole>, Constable

@Generated public enum UserRole extends Enum<UserRole> implements com.google.protobuf.ProtocolMessageEnum
The role assigned to a user account, determining their base permission level.
Roles provide a coarse-grained permission model that is supplemented by
specific permission grants at the global and instance levels.
Protobuf enum soulfire.v1.UserRole
  • Enum Constant Details

    • ADMIN

      public static final UserRole ADMIN
      Administrator role with full access to all features.
      ADMIN users implicitly have all GlobalPermission and InstancePermission values granted.
      Only ADMIN users can manage other users and server configuration by default.
      
      ADMIN = 0;
    • USER

      public static final UserRole USER
      Standard user role with limited default permissions.
      USER role accounts require explicit permission grants for most operations.
      Default permissions for USER role are controlled by server configuration.
      
      USER = 1;
    • UNRECOGNIZED

      public static final UserRole UNRECOGNIZED
  • Field Details

    • ADMIN_VALUE

      public static final int ADMIN_VALUE
      Administrator role with full access to all features.
      ADMIN users implicitly have all GlobalPermission and InstancePermission values granted.
      Only ADMIN users can manage other users and server configuration by default.
      
      ADMIN = 0;
      See Also:
    • USER_VALUE

      public static final int USER_VALUE
      Standard user role with limited default permissions.
      USER role accounts require explicit permission grants for most operations.
      Default permissions for USER role are controlled by server configuration.
      
      USER = 1;
      See Also:
  • Method Details

    • values

      public static UserRole[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static UserRole valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static UserRole valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static UserRole forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<UserRole> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static UserRole valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null