Class ChallengeRule.ChallengeOutcome (3.96.0)

public static final class ChallengeRule.ChallengeOutcome extends GeneratedMessage 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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ChallengeRule.ChallengeOutcome

Static Fields

DIFFICULTY_FIELD_NUMBER

public static final int DIFFICULTY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ChallengeRule.ChallengeOutcome getDefaultInstance()
Returns
Type Description
ChallengeRule.ChallengeOutcome

getDescriptor()

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

newBuilder()

public static ChallengeRule.ChallengeOutcome.Builder newBuilder()
Returns
Type Description
ChallengeRule.ChallengeOutcome.Builder

newBuilder(ChallengeRule.ChallengeOutcome prototype)

public static ChallengeRule.ChallengeOutcome.Builder newBuilder(ChallengeRule.ChallengeOutcome prototype)
Parameter
Name Description
prototype ChallengeRule.ChallengeOutcome
Returns
Type Description
ChallengeRule.ChallengeOutcome.Builder

parseDelimitedFrom(InputStream input)

public static ChallengeRule.ChallengeOutcome parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ChallengeRule.ChallengeOutcome
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ChallengeRule.ChallengeOutcome parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChallengeRule.ChallengeOutcome
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ChallengeRule.ChallengeOutcome parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ChallengeRule.ChallengeOutcome
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ChallengeRule.ChallengeOutcome parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChallengeRule.ChallengeOutcome
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ChallengeRule.ChallengeOutcome parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ChallengeRule.ChallengeOutcome
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ChallengeRule.ChallengeOutcome parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChallengeRule.ChallengeOutcome
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ChallengeRule.ChallengeOutcome parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ChallengeRule.ChallengeOutcome
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ChallengeRule.ChallengeOutcome parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChallengeRule.ChallengeOutcome
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ChallengeRule.ChallengeOutcome parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ChallengeRule.ChallengeOutcome
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ChallengeRule.ChallengeOutcome parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChallengeRule.ChallengeOutcome
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ChallengeRule.ChallengeOutcome parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ChallengeRule.ChallengeOutcome
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ChallengeRule.ChallengeOutcome parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChallengeRule.ChallengeOutcome
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ChallengeRule.ChallengeOutcome> parser()
Returns
Type Description
Parser<ChallengeOutcome>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<ChallengeRule.ChallengeOutcome> getParserForType()
Returns
Type Description
Parser<ChallengeOutcome>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ChallengeRule.ChallengeOutcome.Builder newBuilderForType()
Returns
Type Description
ChallengeRule.ChallengeOutcome.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ChallengeRule.ChallengeOutcome.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ChallengeRule.ChallengeOutcome.Builder
Overrides

toBuilder()

public ChallengeRule.ChallengeOutcome.Builder toBuilder()
Returns
Type Description
ChallengeRule.ChallengeOutcome.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException