Class ChallengeRule.ChallengeOutcome.Builder (3.96.0)

public static final class ChallengeRule.ChallengeOutcome.Builder extends GeneratedMessage.Builder<ChallengeRule.ChallengeOutcome.Builder> implements ChallengeRule.ChallengeOutcomeOrBuilder

An outcome that indicates that a challenge of a specified difficulty should be presented to the user.

Protobuf type google.cloud.recaptchaenterprise.v1.ChallengeRule.ChallengeOutcome

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ChallengeRule.ChallengeOutcome build()
Returns
Type Description
ChallengeRule.ChallengeOutcome

buildPartial()

public ChallengeRule.ChallengeOutcome buildPartial()
Returns
Type Description
ChallengeRule.ChallengeOutcome

clear()

public ChallengeRule.ChallengeOutcome.Builder clear()
Returns
Type Description
ChallengeRule.ChallengeOutcome.Builder
Overrides

clearDifficulty()

public ChallengeRule.ChallengeOutcome.Builder clearDifficulty()

Optional. The difficulty of the challenge to present to the user. If unspecified, BALANCE is used.

.google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference difficulty = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ChallengeRule.ChallengeOutcome.Builder

This builder for chaining.

getDefaultInstanceForType()

public ChallengeRule.ChallengeOutcome getDefaultInstanceForType()
Returns
Type Description
ChallengeRule.ChallengeOutcome

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDifficulty()

public WebKeySettings.ChallengeSecurityPreference getDifficulty()

Optional. The difficulty of the challenge to present to the user. If unspecified, BALANCE is used.

.google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference difficulty = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WebKeySettings.ChallengeSecurityPreference

The difficulty.

getDifficultyValue()

public int getDifficultyValue()

Optional. The difficulty of the challenge to present to the user. If unspecified, BALANCE is used.

.google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference difficulty = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for difficulty.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ChallengeRule.ChallengeOutcome.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChallengeRule.ChallengeOutcome.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ChallengeRule.ChallengeOutcome.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ChallengeRule.ChallengeOutcome.Builder
Overrides

mergeFrom(ChallengeRule.ChallengeOutcome other)

public ChallengeRule.ChallengeOutcome.Builder mergeFrom(ChallengeRule.ChallengeOutcome other)
Parameter
Name Description
other ChallengeRule.ChallengeOutcome
Returns
Type Description
ChallengeRule.ChallengeOutcome.Builder

setDifficulty(WebKeySettings.ChallengeSecurityPreference value)

public ChallengeRule.ChallengeOutcome.Builder setDifficulty(WebKeySettings.ChallengeSecurityPreference value)

Optional. The difficulty of the challenge to present to the user. If unspecified, BALANCE is used.

.google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference difficulty = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value WebKeySettings.ChallengeSecurityPreference

The difficulty to set.

Returns
Type Description
ChallengeRule.ChallengeOutcome.Builder

This builder for chaining.

setDifficultyValue(int value)

public ChallengeRule.ChallengeOutcome.Builder setDifficultyValue(int value)

Optional. The difficulty of the challenge to present to the user. If unspecified, BALANCE is used.

.google.cloud.recaptchaenterprise.v1.WebKeySettings.ChallengeSecurityPreference difficulty = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for difficulty to set.

Returns
Type Description
ChallengeRule.ChallengeOutcome.Builder

This builder for chaining.