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 and Description |
|---|
BROWSER_ERROR
A retriable error (such as network failure) occurred on the browser.
|
DUPE
The user verification had already been seen.
|
EXPIRED
The user verification token had expired.
|
INVALID_REASON_UNSPECIFIED
Default unspecified type.
|
MALFORMED
The provided user verification token was malformed.
|
MISSING
The user verification token was not present.
|
SITE_MISMATCH
Deprecated.
|
UNKNOWN_INVALID_REASON
If the failure reason was not accounted for.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
BROWSER_ERROR_VALUE
A retriable error (such as network failure) occurred on the browser.
|
static int |
DUPE_VALUE
The user verification had already been seen.
|
static int |
EXPIRED_VALUE
The user verification token had expired.
|
static int |
INVALID_REASON_UNSPECIFIED_VALUE
Default unspecified type.
|
static int |
MALFORMED_VALUE
The provided user verification token was malformed.
|
static int |
MISSING_VALUE
The user verification token was not present.
|
static int |
SITE_MISMATCH_VALUE
Deprecated.
|
static int |
UNKNOWN_INVALID_REASON_VALUE
If the failure reason was not accounted for.
|
| Modifier and Type | Method and Description |
|---|---|
static TokenProperties.InvalidReason |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<TokenProperties.InvalidReason> |
internalGetValueMap() |
static TokenProperties.InvalidReason |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static TokenProperties.InvalidReason |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static TokenProperties.InvalidReason |
valueOf(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.
|
public static final TokenProperties.InvalidReason INVALID_REASON_UNSPECIFIED
Default unspecified type.
INVALID_REASON_UNSPECIFIED = 0;public static final TokenProperties.InvalidReason UNKNOWN_INVALID_REASON
If the failure reason was not accounted for.
UNKNOWN_INVALID_REASON = 1;public static final TokenProperties.InvalidReason MALFORMED
The provided user verification token was malformed.
MALFORMED = 2;public static final TokenProperties.InvalidReason EXPIRED
The user verification token had expired.
EXPIRED = 3;public static final TokenProperties.InvalidReason DUPE
The user verification had already been seen.
DUPE = 4;@Deprecated public static final TokenProperties.InvalidReason SITE_MISMATCH
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];public static final TokenProperties.InvalidReason MISSING
The user verification token was not present. It is a required input.
MISSING = 6;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 = 7;public static final TokenProperties.InvalidReason UNRECOGNIZED
public static final int INVALID_REASON_UNSPECIFIED_VALUE
Default unspecified type.
INVALID_REASON_UNSPECIFIED = 0;public static final int UNKNOWN_INVALID_REASON_VALUE
If the failure reason was not accounted for.
UNKNOWN_INVALID_REASON = 1;public static final int MALFORMED_VALUE
The provided user verification token was malformed.
MALFORMED = 2;public static final int EXPIRED_VALUE
The user verification token had expired.
EXPIRED = 3;public static final int DUPE_VALUE
The user verification had already been seen.
DUPE = 4;@Deprecated public static final int SITE_MISMATCH_VALUE
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];public static final int MISSING_VALUE
The user verification token was not present. It is a required input.
MISSING = 6;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 = 7;public static TokenProperties.InvalidReason[] values()
for (TokenProperties.InvalidReason c : TokenProperties.InvalidReason.values()) System.out.println(c);
public static TokenProperties.InvalidReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static TokenProperties.InvalidReason valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static TokenProperties.InvalidReason forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<TokenProperties.InvalidReason> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static TokenProperties.InvalidReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.