public enum LoginRequirement extends java.lang.Enum<LoginRequirement> implements ProtocolMessageEnum
Methods to restrict access to a URL based on login status.Protobuf enum
google.appengine.v1.LoginRequirement
Enum Constant and Description |
---|
LOGIN_ADMIN
If the user is not signed in, the `auth_fail_action` is taken.
|
LOGIN_OPTIONAL
Does not require that the user is signed in.
|
LOGIN_REQUIRED
If the user has signed in, the handler proceeds normally.
|
LOGIN_UNSPECIFIED
Not specified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
LOGIN_ADMIN_VALUE
If the user is not signed in, the `auth_fail_action` is taken.
|
static int |
LOGIN_OPTIONAL_VALUE
Does not require that the user is signed in.
|
static int |
LOGIN_REQUIRED_VALUE
If the user has signed in, the handler proceeds normally.
|
static int |
LOGIN_UNSPECIFIED_VALUE
Not specified.
|
Modifier and Type | Method and Description |
---|---|
static LoginRequirement |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<LoginRequirement> |
internalGetValueMap() |
static LoginRequirement |
valueOf(Descriptors.EnumValueDescriptor desc) |
static LoginRequirement |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LoginRequirement |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LoginRequirement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoginRequirement LOGIN_UNSPECIFIED
Not specified. `LOGIN_OPTIONAL` is assumed.
LOGIN_UNSPECIFIED = 0;
public static final LoginRequirement LOGIN_OPTIONAL
Does not require that the user is signed in.
LOGIN_OPTIONAL = 1;
public static final LoginRequirement LOGIN_ADMIN
If the user is not signed in, the `auth_fail_action` is taken. In addition, if the user is not an administrator for the application, they are given an error message regardless of `auth_fail_action`. If the user is an administrator, the handler proceeds.
LOGIN_ADMIN = 2;
public static final LoginRequirement LOGIN_REQUIRED
If the user has signed in, the handler proceeds normally. Otherwise, the auth_fail_action is taken.
LOGIN_REQUIRED = 3;
public static final LoginRequirement UNRECOGNIZED
public static final int LOGIN_UNSPECIFIED_VALUE
Not specified. `LOGIN_OPTIONAL` is assumed.
LOGIN_UNSPECIFIED = 0;
public static final int LOGIN_OPTIONAL_VALUE
Does not require that the user is signed in.
LOGIN_OPTIONAL = 1;
public static final int LOGIN_ADMIN_VALUE
If the user is not signed in, the `auth_fail_action` is taken. In addition, if the user is not an administrator for the application, they are given an error message regardless of `auth_fail_action`. If the user is an administrator, the handler proceeds.
LOGIN_ADMIN = 2;
public static final int LOGIN_REQUIRED_VALUE
If the user has signed in, the handler proceeds normally. Otherwise, the auth_fail_action is taken.
LOGIN_REQUIRED = 3;
public static LoginRequirement[] values()
for (LoginRequirement c : LoginRequirement.values()) System.out.println(c);
public static LoginRequirement valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static LoginRequirement valueOf(int value)
forNumber(int)
instead.public static LoginRequirement forNumber(int value)
public static Internal.EnumLiteMap<LoginRequirement> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static LoginRequirement valueOf(Descriptors.EnumValueDescriptor desc)