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/docs/usecase#comparison_of_features. Ensure that applications can handle values not explicitly listed.Protobuf enum
google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse reCAPTCHA action-tokens to protect user actions.Redirects suspicious traffic to reCAPTCHA.Deprecated.Use reCAPTCHA session-tokens to protect the whole user session on the site's domain.Undefined feature. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUse reCAPTCHA action-tokens to protect user actions.static final intRedirects suspicious traffic to reCAPTCHA.static final intDeprecated.static final intUse reCAPTCHA session-tokens to protect the whole user session on the site's domain.static final intUndefined feature. -
Method Summary
Modifier and TypeMethodDescriptionstatic WafSettings.WafFeatureforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<WafSettings.WafFeature>static WafSettings.WafFeaturevalueOf(int value) Deprecated.static WafSettings.WafFeaturevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static WafSettings.WafFeatureReturns 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 Details
-
WAF_FEATURE_UNSPECIFIED
Undefined feature.
WAF_FEATURE_UNSPECIFIED = 0; -
CHALLENGE_PAGE
Redirects suspicious traffic to reCAPTCHA.
CHALLENGE_PAGE = 1; -
SESSION_TOKEN
Use reCAPTCHA session-tokens to protect the whole user session on the site's domain.
SESSION_TOKEN = 2; -
ACTION_TOKEN
Use reCAPTCHA action-tokens to protect user actions.
ACTION_TOKEN = 3; -
EXPRESS
Deprecated.Deprecated: Use `express_settings` instead.
EXPRESS = 5 [deprecated = true]; -
UNRECOGNIZED
-
-
Field Details
-
WAF_FEATURE_UNSPECIFIED_VALUE
public static final int WAF_FEATURE_UNSPECIFIED_VALUEUndefined feature.
WAF_FEATURE_UNSPECIFIED = 0;- See Also:
-
CHALLENGE_PAGE_VALUE
public static final int CHALLENGE_PAGE_VALUERedirects suspicious traffic to reCAPTCHA.
CHALLENGE_PAGE = 1;- See Also:
-
SESSION_TOKEN_VALUE
public static final int SESSION_TOKEN_VALUEUse 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_VALUEUse reCAPTCHA action-tokens to protect user actions.
ACTION_TOKEN = 3;- See Also:
-
EXPRESS_VALUE
Deprecated.Deprecated: Use `express_settings` instead.
EXPRESS = 5 [deprecated = true];- See Also:
-
-
Method Details
-
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
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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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
- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.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 nameNullPointerException- if the argument is null
-