public static final class WebKeySettings.ChallengeSettings.Builder extends GeneratedMessage.Builder<WebKeySettings.ChallengeSettings.Builder> implements WebKeySettings.ChallengeSettingsOrBuilder
Settings for POLICY_BASED_CHALLENGE keys to control when a challenge is
triggered.
Protobuf type google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSettings
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public WebKeySettings.ChallengeSettings build()
buildPartial()
public WebKeySettings.ChallengeSettings buildPartial()
clear()
public WebKeySettings.ChallengeSettings.Builder clear()
Overrides
clearActionSettings()
public WebKeySettings.ChallengeSettings.Builder clearActionSettings()
clearDefaultSettings()
public WebKeySettings.ChallengeSettings.Builder clearDefaultSettings()
Required. Defines when a challenge is triggered (unless the default
threshold is overridden for the given action, see action_settings).
.google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];
containsActionSettings(String key)
public boolean containsActionSettings(String key)
Optional. The action to score threshold map.
The action name should be the same as the action name passed in the
data-action attribute
(see https://cloud.google.com/recaptcha/docs/actions-website).
Action names are case-insensitive.
There is a maximum of 100 action settings.
An action name has a maximum length of 100.
map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
key |
String
|
getActionSettings() (deprecated)
public Map<String,WebKeySettings.ActionSettings> getActionSettings()
getActionSettingsCount()
public int getActionSettingsCount()
Optional. The action to score threshold map.
The action name should be the same as the action name passed in the
data-action attribute
(see https://cloud.google.com/recaptcha/docs/actions-website).
Action names are case-insensitive.
There is a maximum of 100 action settings.
An action name has a maximum length of 100.
map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
getActionSettingsMap()
public Map<String,WebKeySettings.ActionSettings> getActionSettingsMap()
Optional. The action to score threshold map.
The action name should be the same as the action name passed in the
data-action attribute
(see https://cloud.google.com/recaptcha/docs/actions-website).
Action names are case-insensitive.
There is a maximum of 100 action settings.
An action name has a maximum length of 100.
map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
getActionSettingsOrDefault(String key, WebKeySettings.ActionSettings defaultValue)
public WebKeySettings.ActionSettings getActionSettingsOrDefault(String key, WebKeySettings.ActionSettings defaultValue)
Optional. The action to score threshold map.
The action name should be the same as the action name passed in the
data-action attribute
(see https://cloud.google.com/recaptcha/docs/actions-website).
Action names are case-insensitive.
There is a maximum of 100 action settings.
An action name has a maximum length of 100.
map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
getActionSettingsOrThrow(String key)
public WebKeySettings.ActionSettings getActionSettingsOrThrow(String key)
Optional. The action to score threshold map.
The action name should be the same as the action name passed in the
data-action attribute
(see https://cloud.google.com/recaptcha/docs/actions-website).
Action names are case-insensitive.
There is a maximum of 100 action settings.
An action name has a maximum length of 100.
map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
key |
String
|
getDefaultInstanceForType()
public WebKeySettings.ChallengeSettings getDefaultInstanceForType()
getDefaultSettings()
public WebKeySettings.ActionSettings getDefaultSettings()
Required. Defines when a challenge is triggered (unless the default
threshold is overridden for the given action, see action_settings).
.google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];
getDefaultSettingsBuilder()
public WebKeySettings.ActionSettings.Builder getDefaultSettingsBuilder()
Required. Defines when a challenge is triggered (unless the default
threshold is overridden for the given action, see action_settings).
.google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];
getDefaultSettingsOrBuilder()
public WebKeySettings.ActionSettingsOrBuilder getDefaultSettingsOrBuilder()
Required. Defines when a challenge is triggered (unless the default
threshold is overridden for the given action, see action_settings).
.google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableActionSettings() (deprecated)
public Map<String,WebKeySettings.ActionSettings> getMutableActionSettings()
Use alternate mutation accessors instead.
hasDefaultSettings()
public boolean hasDefaultSettings()
Required. Defines when a challenge is triggered (unless the default
threshold is overridden for the given action, see action_settings).
.google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the defaultSettings field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeDefaultSettings(WebKeySettings.ActionSettings value)
public WebKeySettings.ChallengeSettings.Builder mergeDefaultSettings(WebKeySettings.ActionSettings value)
Required. Defines when a challenge is triggered (unless the default
threshold is overridden for the given action, see action_settings).
.google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];
public WebKeySettings.ChallengeSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public WebKeySettings.ChallengeSettings.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeFrom(WebKeySettings.ChallengeSettings other)
public WebKeySettings.ChallengeSettings.Builder mergeFrom(WebKeySettings.ChallengeSettings other)
putActionSettings(String key, WebKeySettings.ActionSettings value)
public WebKeySettings.ChallengeSettings.Builder putActionSettings(String key, WebKeySettings.ActionSettings value)
Optional. The action to score threshold map.
The action name should be the same as the action name passed in the
data-action attribute
(see https://cloud.google.com/recaptcha/docs/actions-website).
Action names are case-insensitive.
There is a maximum of 100 action settings.
An action name has a maximum length of 100.
map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
putActionSettingsBuilderIfAbsent(String key)
public WebKeySettings.ActionSettings.Builder putActionSettingsBuilderIfAbsent(String key)
Optional. The action to score threshold map.
The action name should be the same as the action name passed in the
data-action attribute
(see https://cloud.google.com/recaptcha/docs/actions-website).
Action names are case-insensitive.
There is a maximum of 100 action settings.
An action name has a maximum length of 100.
map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
key |
String
|
putAllActionSettings(Map<String,WebKeySettings.ActionSettings> values)
public WebKeySettings.ChallengeSettings.Builder putAllActionSettings(Map<String,WebKeySettings.ActionSettings> values)
Optional. The action to score threshold map.
The action name should be the same as the action name passed in the
data-action attribute
(see https://cloud.google.com/recaptcha/docs/actions-website).
Action names are case-insensitive.
There is a maximum of 100 action settings.
An action name has a maximum length of 100.
map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
removeActionSettings(String key)
public WebKeySettings.ChallengeSettings.Builder removeActionSettings(String key)
Optional. The action to score threshold map.
The action name should be the same as the action name passed in the
data-action attribute
(see https://cloud.google.com/recaptcha/docs/actions-website).
Action names are case-insensitive.
There is a maximum of 100 action settings.
An action name has a maximum length of 100.
map<string, .google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings> action_settings = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
key |
String
|
setDefaultSettings(WebKeySettings.ActionSettings value)
public WebKeySettings.ChallengeSettings.Builder setDefaultSettings(WebKeySettings.ActionSettings value)
Required. Defines when a challenge is triggered (unless the default
threshold is overridden for the given action, see action_settings).
.google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];
setDefaultSettings(WebKeySettings.ActionSettings.Builder builderForValue)
public WebKeySettings.ChallengeSettings.Builder setDefaultSettings(WebKeySettings.ActionSettings.Builder builderForValue)
Required. Defines when a challenge is triggered (unless the default
threshold is overridden for the given action, see action_settings).
.google.cloud.recaptchaenterprise.v1.WebKeySettings.ActionSettings default_settings = 1 [(.google.api.field_behavior) = REQUIRED];