Enum TokenProperties.InvalidReason
java.lang.Object
java.lang.Enum<TokenProperties.InvalidReason>
com.google.recaptchaenterprise.v1beta1.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 enum
google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA retriable error (such as network failure) occurred on the browser.The user verification had already been seen.The user verification token had expired.Default unspecified type.The provided user verification token was malformed.The user verification token was not present.Deprecated.If the failure reason was not accounted for. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA retriable error (such as network failure) occurred on the browser.static final intThe user verification had already been seen.static final intThe user verification token had expired.static final intDefault unspecified type.static final intThe provided user verification token was malformed.static final intThe user verification token was not present.static final intDeprecated.static final intIf the failure reason was not accounted for. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<TokenProperties.InvalidReason>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified 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 Details
-
INVALID_REASON_UNSPECIFIED
Default unspecified type.
INVALID_REASON_UNSPECIFIED = 0; -
UNKNOWN_INVALID_REASON
If the failure reason was not accounted for.
UNKNOWN_INVALID_REASON = 1; -
MALFORMED
The provided user verification token was malformed.
MALFORMED = 2; -
EXPIRED
The user verification token had expired.
EXPIRED = 3; -
DUPE
The user verification had already been seen.
DUPE = 4; -
SITE_MISMATCH
Deprecated.The user verification token did not match the provided site key. This may be a configuration error (for example, development keys used in production) or end users trying to use verification tokens from other sites.
SITE_MISMATCH = 5 [deprecated = true]; -
MISSING
The user verification token was not present. It is a required input.
MISSING = 6; -
BROWSER_ERROR
A retriable error (such as network failure) occurred on the browser. Could easily be simulated by an attacker.
BROWSER_ERROR = 7; -
UNRECOGNIZED
-
-
Field Details
-
INVALID_REASON_UNSPECIFIED_VALUE
public static final int INVALID_REASON_UNSPECIFIED_VALUEDefault unspecified type.
INVALID_REASON_UNSPECIFIED = 0;- See Also:
-
UNKNOWN_INVALID_REASON_VALUE
public static final int UNKNOWN_INVALID_REASON_VALUEIf the failure reason was not accounted for.
UNKNOWN_INVALID_REASON = 1;- See Also:
-
MALFORMED_VALUE
public static final int MALFORMED_VALUEThe provided user verification token was malformed.
MALFORMED = 2;- See Also:
-
EXPIRED_VALUE
public static final int EXPIRED_VALUEThe user verification token had expired.
EXPIRED = 3;- See Also:
-
DUPE_VALUE
public static final int DUPE_VALUEThe user verification had already been seen.
DUPE = 4;- See Also:
-
SITE_MISMATCH_VALUE
Deprecated.The user verification token did not match the provided site key. This may be a configuration error (for example, development keys used in production) or end users trying to use verification tokens from other sites.
SITE_MISMATCH = 5 [deprecated = true];- See Also:
-
MISSING_VALUE
public static final int MISSING_VALUEThe user verification token was not present. It is a required input.
MISSING = 6;- See Also:
-
BROWSER_ERROR_VALUE
public static final int BROWSER_ERROR_VALUEA retriable error (such as network failure) occurred on the browser. Could easily be simulated by an attacker.
BROWSER_ERROR = 7;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.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
- 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 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
-