public enum AuthFailAction extends java.lang.Enum<AuthFailAction> implements ProtocolMessageEnum
Actions to take when the user is not logged in.Protobuf enum
google.appengine.v1.AuthFailAction
Enum Constant and Description |
---|
AUTH_FAIL_ACTION_REDIRECT
Redirects user to "accounts.google.com".
|
AUTH_FAIL_ACTION_UNAUTHORIZED
Rejects request with a `401` HTTP status code and an error
message.
|
AUTH_FAIL_ACTION_UNSPECIFIED
Not specified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
AUTH_FAIL_ACTION_REDIRECT_VALUE
Redirects user to "accounts.google.com".
|
static int |
AUTH_FAIL_ACTION_UNAUTHORIZED_VALUE
Rejects request with a `401` HTTP status code and an error
message.
|
static int |
AUTH_FAIL_ACTION_UNSPECIFIED_VALUE
Not specified.
|
Modifier and Type | Method and Description |
---|---|
static AuthFailAction |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<AuthFailAction> |
internalGetValueMap() |
static AuthFailAction |
valueOf(Descriptors.EnumValueDescriptor desc) |
static AuthFailAction |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static AuthFailAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AuthFailAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthFailAction AUTH_FAIL_ACTION_UNSPECIFIED
Not specified. `AUTH_FAIL_ACTION_REDIRECT` is assumed.
AUTH_FAIL_ACTION_UNSPECIFIED = 0;
public static final AuthFailAction AUTH_FAIL_ACTION_REDIRECT
Redirects user to "accounts.google.com". The user is redirected back to the application URL after signing in or creating an account.
AUTH_FAIL_ACTION_REDIRECT = 1;
public static final AuthFailAction AUTH_FAIL_ACTION_UNAUTHORIZED
Rejects request with a `401` HTTP status code and an error message.
AUTH_FAIL_ACTION_UNAUTHORIZED = 2;
public static final AuthFailAction UNRECOGNIZED
public static final int AUTH_FAIL_ACTION_UNSPECIFIED_VALUE
Not specified. `AUTH_FAIL_ACTION_REDIRECT` is assumed.
AUTH_FAIL_ACTION_UNSPECIFIED = 0;
public static final int AUTH_FAIL_ACTION_REDIRECT_VALUE
Redirects user to "accounts.google.com". The user is redirected back to the application URL after signing in or creating an account.
AUTH_FAIL_ACTION_REDIRECT = 1;
public static final int AUTH_FAIL_ACTION_UNAUTHORIZED_VALUE
Rejects request with a `401` HTTP status code and an error message.
AUTH_FAIL_ACTION_UNAUTHORIZED = 2;
public static AuthFailAction[] values()
for (AuthFailAction c : AuthFailAction.values()) System.out.println(c);
public static AuthFailAction 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 AuthFailAction valueOf(int value)
forNumber(int)
instead.public static AuthFailAction forNumber(int value)
public static Internal.EnumLiteMap<AuthFailAction> 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 AuthFailAction valueOf(Descriptors.EnumValueDescriptor desc)