Enum WebKeySettings.ChallengeSecurityPreference
java.lang.Object
java.lang.Enum<WebKeySettings.ChallengeSecurityPreference>
com.google.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<WebKeySettings.ChallengeSecurityPreference>
- Enclosing class:
- WebKeySettings
public static enum WebKeySettings.ChallengeSecurityPreference
extends Enum<WebKeySettings.ChallengeSecurityPreference>
implements com.google.protobuf.ProtocolMessageEnum
Enum that represents the possible challenge frequency and difficulty configurations for a web key. Ensure that applications can handle values not explicitly listed.Protobuf enum
google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionKey tends to show balanced (in amount and difficulty) challenges.Default type that indicates this enum hasn't been specified.Key tends to show more and harder challenges.Key tends to show fewer and easier challenges. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intKey tends to show balanced (in amount and difficulty) challenges.static final intDefault type that indicates this enum hasn't been specified.static final intKey tends to show more and harder challenges.static final intKey tends to show fewer and easier challenges. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<WebKeySettings.ChallengeSecurityPreference>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED
public static final WebKeySettings.ChallengeSecurityPreference CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIEDDefault type that indicates this enum hasn't been specified.
CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED = 0; -
USABILITY
Key tends to show fewer and easier challenges.
USABILITY = 1; -
BALANCE
Key tends to show balanced (in amount and difficulty) challenges.
BALANCE = 2; -
SECURITY
Key tends to show more and harder challenges.
SECURITY = 3; -
UNRECOGNIZED
-
-
Field Details
-
CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED_VALUE
public static final int CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED_VALUEDefault type that indicates this enum hasn't been specified.
CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED = 0;- See Also:
-
USABILITY_VALUE
public static final int USABILITY_VALUEKey tends to show fewer and easier challenges.
USABILITY = 1;- See Also:
-
BALANCE_VALUE
public static final int BALANCE_VALUEKey tends to show balanced (in amount and difficulty) challenges.
BALANCE = 2;- See Also:
-
SECURITY_VALUE
public static final int SECURITY_VALUEKey tends to show more and harder challenges.
SECURITY = 3;- 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<WebKeySettings.ChallengeSecurityPreference> 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 WebKeySettings.ChallengeSecurityPreference 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
-