Enum 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-enterprise/docs/usecase#comparison_of_features.
     
    Protobuf enum google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature
    • Enum Constant Detail

      • 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;
    • Field Detail

      • WAF_FEATURE_UNSPECIFIED_VALUE

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

        public static final int CHALLENGE_PAGE_VALUE
         Redirects suspicious traffic to reCAPTCHA.
         
        CHALLENGE_PAGE = 1;
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • ACTION_TOKEN_VALUE

        public static final int ACTION_TOKEN_VALUE
         Use reCAPTCHA action-tokens to protect user actions.
         
        ACTION_TOKEN = 3;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static WafSettings.WafFeature[] 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 (WafSettings.WafFeature c : WafSettings.WafFeature.values())
            System.out.println(c);
        
        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 final 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