Enum WafSettings.WafFeature

java.lang.Object
java.lang.Enum<WafSettings.WafFeature>
com.google.recaptchaenterprise.v1.WafSettings.WafFeature
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<WafSettings.WafFeature>
Enclosing class:
WafSettings

public static enum WafSettings.WafFeature extends Enum<WafSettings.WafFeature> implements com.google.protobuf.ProtocolMessageEnum
 Supported WAF features. For more information, see
 https://cloud.google.com/recaptcha/docs/usecase#comparison_of_features.
 Ensure that applications can handle values not explicitly listed.
 
Protobuf enum google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature
  • Enum Constant Details

    • WAF_FEATURE_UNSPECIFIED

      public static final WafSettings.WafFeature WAF_FEATURE_UNSPECIFIED
       Undefined feature.
       
      WAF_FEATURE_UNSPECIFIED = 0;
    • CHALLENGE_PAGE

      public static final WafSettings.WafFeature CHALLENGE_PAGE
       Redirects suspicious traffic to reCAPTCHA.
       
      CHALLENGE_PAGE = 1;
    • SESSION_TOKEN

      public static final WafSettings.WafFeature SESSION_TOKEN
       Use reCAPTCHA session-tokens to protect the whole user session on the
       site's domain.
       
      SESSION_TOKEN = 2;
    • ACTION_TOKEN

      public static final WafSettings.WafFeature ACTION_TOKEN
       Use reCAPTCHA action-tokens to protect user actions.
       
      ACTION_TOKEN = 3;
    • EXPRESS

      @Deprecated public static final WafSettings.WafFeature EXPRESS
      Deprecated.
       Deprecated: Use `express_settings` instead.
       
      EXPRESS = 5 [deprecated = true];
    • UNRECOGNIZED

      public static final WafSettings.WafFeature UNRECOGNIZED
  • Field Details

    • WAF_FEATURE_UNSPECIFIED_VALUE

      public static final int WAF_FEATURE_UNSPECIFIED_VALUE
       Undefined feature.
       
      WAF_FEATURE_UNSPECIFIED = 0;
      See Also:
    • CHALLENGE_PAGE_VALUE

      public static final int CHALLENGE_PAGE_VALUE
       Redirects suspicious traffic to reCAPTCHA.
       
      CHALLENGE_PAGE = 1;
      See Also:
    • SESSION_TOKEN_VALUE

      public static final int SESSION_TOKEN_VALUE
       Use reCAPTCHA session-tokens to protect the whole user session on the
       site's domain.
       
      SESSION_TOKEN = 2;
      See Also:
    • ACTION_TOKEN_VALUE

      public static final int ACTION_TOKEN_VALUE
       Use reCAPTCHA action-tokens to protect user actions.
       
      ACTION_TOKEN = 3;
      See Also:
    • EXPRESS_VALUE

      @Deprecated public static final int EXPRESS_VALUE
      Deprecated.
       Deprecated: Use `express_settings` instead.
       
      EXPRESS = 5 [deprecated = true];
      See Also:
  • Method Details

    • values

      public static WafSettings.WafFeature[] 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 WafSettings.WafFeature 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 WafSettings.WafFeature 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 WafSettings.WafFeature 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<WafSettings.WafFeature> 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 WafSettings.WafFeature 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