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-enterprise/docs/usecase#comparison_of_features.
Protobuf enumgoogle.cloud.recaptchaenterprise.v1.WafSettings.WafFeature
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTION_TOKEN
Use reCAPTCHA action-tokens to protect user actions.CHALLENGE_PAGE
Redirects suspicious traffic to reCAPTCHA.SESSION_TOKEN
Use reCAPTCHA session-tokens to protect the whole user session on the site's domain.UNRECOGNIZED
WAF_FEATURE_UNSPECIFIED
Undefined feature.
-
Field Summary
Fields Modifier and Type Field Description static int
ACTION_TOKEN_VALUE
Use reCAPTCHA action-tokens to protect user actions.static int
CHALLENGE_PAGE_VALUE
Redirects suspicious traffic to reCAPTCHA.static int
SESSION_TOKEN_VALUE
Use reCAPTCHA session-tokens to protect the whole user session on the site's domain.static int
WAF_FEATURE_UNSPECIFIED_VALUE
Undefined feature.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static WafSettings.WafFeature
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<WafSettings.WafFeature>
internalGetValueMap()
static WafSettings.WafFeature
valueOf(int value)
Deprecated.static WafSettings.WafFeature
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static WafSettings.WafFeature
valueOf(String name)
Returns the enum constant of this type with the specified name.static WafSettings.WafFeature[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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;
-
UNRECOGNIZED
public static final WafSettings.WafFeature UNRECOGNIZED
-
-
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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.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 nameNullPointerException
- 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 interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.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 nameNullPointerException
- if the argument is null
-
-