Enum Class 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-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdministrator role with full access to all features.Standard user role with limited default permissions. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAdministrator role with full access to all features.static final intStandard user role with limited default permissions. -
Method Summary
Modifier and TypeMethodDescriptionstatic UserRoleforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<UserRole> static UserRolevalueOf(int value) Deprecated.static UserRolevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static UserRoleReturns the enum constant of this class with the specified name.static UserRole[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
-
-
Field Details
-
ADMIN_VALUE
public static final int ADMIN_VALUEAdministrator 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_VALUEStandard 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
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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 nameNullPointerException- if the argument is null
-