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.
 Ensure that applications can handle values not explicitly listed.
 
Protobuf enum google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason
  • Enum Constant Details

    • 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;
    • UNEXPECTED_ACTION

      public static final TokenProperties.InvalidReason UNEXPECTED_ACTION
       The action provided at token generation was different than
       the `expected_action` in the assessment request. The comparison is
       case-insensitive. This reason can only be returned if all of the
       following are true:
      
       - your `site_key` has the POLICY_BASED_CHALLENGE integration type
       - you set an action score threshold higher than 0.0
       - you provided a non-empty `expected_action`
       
      UNEXPECTED_ACTION = 7;
    • UNRECOGNIZED

      public static final TokenProperties.InvalidReason UNRECOGNIZED
  • Field Details

    • INVALID_REASON_UNSPECIFIED_VALUE

      public static final int INVALID_REASON_UNSPECIFIED_VALUE
       Default unspecified type.
       
      INVALID_REASON_UNSPECIFIED = 0;
      See Also:
    • 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:
    • MALFORMED_VALUE

      public static final int MALFORMED_VALUE
       The provided user verification token was malformed.
       
      MALFORMED = 2;
      See Also:
    • EXPIRED_VALUE

      public static final int EXPIRED_VALUE
       The user verification token had expired.
       
      EXPIRED = 3;
      See Also:
    • DUPE_VALUE

      public static final int DUPE_VALUE
       The user verification had already been seen.
       
      DUPE = 4;
      See Also:
    • MISSING_VALUE

      public static final int MISSING_VALUE
       The user verification token was not present.
       
      MISSING = 5;
      See Also:
    • 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:
    • UNEXPECTED_ACTION_VALUE

      public static final int UNEXPECTED_ACTION_VALUE
       The action provided at token generation was different than
       the `expected_action` in the assessment request. The comparison is
       case-insensitive. This reason can only be returned if all of the
       following are true:
      
       - your `site_key` has the POLICY_BASED_CHALLENGE integration type
       - you set an action score threshold higher than 0.0
       - you provided a non-empty `expected_action`
       
      UNEXPECTED_ACTION = 7;
      See Also:
  • Method Details

    • values

      public static TokenProperties.InvalidReason[] 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

      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.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 name
      NullPointerException - 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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null