public static final class WebKeySettings.ChallengeSettings.Builder extends GeneratedMessageV3.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.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WebKeySettings.ChallengeSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
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];
clearField(Descriptors.FieldDescriptor field)
public WebKeySettings.ChallengeSettings.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public WebKeySettings.ChallengeSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public WebKeySettings.ChallengeSettings.Builder clone()
Overrides
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 GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WebKeySettings.ChallengeSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
setField(Descriptors.FieldDescriptor field, Object value)
public WebKeySettings.ChallengeSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WebKeySettings.ChallengeSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final WebKeySettings.ChallengeSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides