Enum TokenProperties.InvalidReason
- java.lang.Object
-
- java.lang.Enum<TokenProperties.InvalidReason>
-
- com.google.recaptchaenterprise.v1.TokenProperties.InvalidReason
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<TokenProperties.InvalidReason>
- Enclosing class:
- TokenProperties
public static enum TokenProperties.InvalidReason extends Enum<TokenProperties.InvalidReason> implements com.google.protobuf.ProtocolMessageEnum
Enum that represents the types of invalid token reasons.
Protobuf enumgoogle.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BROWSER_ERRORA retriable error (such as network failure) occurred on the browser.DUPEThe user verification had already been seen.EXPIREDThe user verification token had expired.INVALID_REASON_UNSPECIFIEDDefault unspecified type.MALFORMEDThe provided user verification token was malformed.MISSINGThe user verification token was not present.UNKNOWN_INVALID_REASONIf the failure reason was not accounted for.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intBROWSER_ERROR_VALUEA retriable error (such as network failure) occurred on the browser.static intDUPE_VALUEThe user verification had already been seen.static intEXPIRED_VALUEThe user verification token had expired.static intINVALID_REASON_UNSPECIFIED_VALUEDefault unspecified type.static intMALFORMED_VALUEThe provided user verification token was malformed.static intMISSING_VALUEThe user verification token was not present.static intUNKNOWN_INVALID_REASON_VALUEIf the failure reason was not accounted for.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TokenProperties.InvalidReasonforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<TokenProperties.InvalidReason>internalGetValueMap()static TokenProperties.InvalidReasonvalueOf(int value)Deprecated.static TokenProperties.InvalidReasonvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static TokenProperties.InvalidReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static TokenProperties.InvalidReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_REASON_UNSPECIFIED
public static final TokenProperties.InvalidReason INVALID_REASON_UNSPECIFIED
Default unspecified type.
INVALID_REASON_UNSPECIFIED = 0;
-
UNKNOWN_INVALID_REASON
public static final TokenProperties.InvalidReason UNKNOWN_INVALID_REASON
If the failure reason was not accounted for.
UNKNOWN_INVALID_REASON = 1;
-
MALFORMED
public static final TokenProperties.InvalidReason MALFORMED
The provided user verification token was malformed.
MALFORMED = 2;
-
EXPIRED
public static final TokenProperties.InvalidReason EXPIRED
The user verification token had expired.
EXPIRED = 3;
-
DUPE
public static final TokenProperties.InvalidReason DUPE
The user verification had already been seen.
DUPE = 4;
-
MISSING
public static final TokenProperties.InvalidReason MISSING
The user verification token was not present.
MISSING = 5;
-
BROWSER_ERROR
public static final TokenProperties.InvalidReason BROWSER_ERROR
A retriable error (such as network failure) occurred on the browser. Could easily be simulated by an attacker.
BROWSER_ERROR = 6;
-
UNRECOGNIZED
public static final TokenProperties.InvalidReason UNRECOGNIZED
-
-
Field Detail
-
INVALID_REASON_UNSPECIFIED_VALUE
public static final int INVALID_REASON_UNSPECIFIED_VALUE
Default unspecified type.
INVALID_REASON_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
UNKNOWN_INVALID_REASON_VALUE
public static final int UNKNOWN_INVALID_REASON_VALUE
If the failure reason was not accounted for.
UNKNOWN_INVALID_REASON = 1;- See Also:
- Constant Field Values
-
MALFORMED_VALUE
public static final int MALFORMED_VALUE
The provided user verification token was malformed.
MALFORMED = 2;- See Also:
- Constant Field Values
-
EXPIRED_VALUE
public static final int EXPIRED_VALUE
The user verification token had expired.
EXPIRED = 3;- See Also:
- Constant Field Values
-
DUPE_VALUE
public static final int DUPE_VALUE
The user verification had already been seen.
DUPE = 4;- See Also:
- Constant Field Values
-
MISSING_VALUE
public static final int MISSING_VALUE
The user verification token was not present.
MISSING = 5;- See Also:
- Constant Field Values
-
BROWSER_ERROR_VALUE
public static final int BROWSER_ERROR_VALUE
A retriable error (such as network failure) occurred on the browser. Could easily be simulated by an attacker.
BROWSER_ERROR = 6;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static TokenProperties.InvalidReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TokenProperties.InvalidReason c : TokenProperties.InvalidReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TokenProperties.InvalidReason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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 public static TokenProperties.InvalidReason valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static TokenProperties.InvalidReason 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<TokenProperties.InvalidReason> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static TokenProperties.InvalidReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-