Class TestingOptions.Builder (2.6.1)

public static final class TestingOptions.Builder extends GeneratedMessageV3.Builder<TestingOptions.Builder> implements TestingOptionsOrBuilder

Options for user acceptance testing.

Protobuf type google.cloud.recaptchaenterprise.v1.TestingOptions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TestingOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TestingOptions.Builder
Overrides

build()

public TestingOptions build()
Returns
TypeDescription
TestingOptions

buildPartial()

public TestingOptions buildPartial()
Returns
TypeDescription
TestingOptions

clear()

public TestingOptions.Builder clear()
Returns
TypeDescription
TestingOptions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TestingOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TestingOptions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TestingOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TestingOptions.Builder
Overrides

clearTestingChallenge()

public TestingOptions.Builder clearTestingChallenge()

For challenge-based keys only (CHECKBOX, INVISIBLE), all challenge requests for this site will return nocaptcha if NOCAPTCHA, or an unsolvable challenge if CHALLENGE.

.google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2;

Returns
TypeDescription
TestingOptions.Builder

This builder for chaining.

clearTestingScore()

public TestingOptions.Builder clearTestingScore()

All assessments for this Key will return this score. Must be between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.

float testing_score = 1;

Returns
TypeDescription
TestingOptions.Builder

This builder for chaining.

clone()

public TestingOptions.Builder clone()
Returns
TypeDescription
TestingOptions.Builder
Overrides

getDefaultInstanceForType()

public TestingOptions getDefaultInstanceForType()
Returns
TypeDescription
TestingOptions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTestingChallenge()

public TestingOptions.TestingChallenge getTestingChallenge()

For challenge-based keys only (CHECKBOX, INVISIBLE), all challenge requests for this site will return nocaptcha if NOCAPTCHA, or an unsolvable challenge if CHALLENGE.

.google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2;

Returns
TypeDescription
TestingOptions.TestingChallenge

The testingChallenge.

getTestingChallengeValue()

public int getTestingChallengeValue()

For challenge-based keys only (CHECKBOX, INVISIBLE), all challenge requests for this site will return nocaptcha if NOCAPTCHA, or an unsolvable challenge if CHALLENGE.

.google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for testingChallenge.

getTestingScore()

public float getTestingScore()

All assessments for this Key will return this score. Must be between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.

float testing_score = 1;

Returns
TypeDescription
float

The testingScore.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TestingOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TestingOptions.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TestingOptions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TestingOptions.Builder
Overrides

mergeFrom(TestingOptions other)

public TestingOptions.Builder mergeFrom(TestingOptions other)
Parameter
NameDescription
otherTestingOptions
Returns
TypeDescription
TestingOptions.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TestingOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TestingOptions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TestingOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TestingOptions.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TestingOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TestingOptions.Builder
Overrides

setTestingChallenge(TestingOptions.TestingChallenge value)

public TestingOptions.Builder setTestingChallenge(TestingOptions.TestingChallenge value)

For challenge-based keys only (CHECKBOX, INVISIBLE), all challenge requests for this site will return nocaptcha if NOCAPTCHA, or an unsolvable challenge if CHALLENGE.

.google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2;

Parameter
NameDescription
valueTestingOptions.TestingChallenge

The testingChallenge to set.

Returns
TypeDescription
TestingOptions.Builder

This builder for chaining.

setTestingChallengeValue(int value)

public TestingOptions.Builder setTestingChallengeValue(int value)

For challenge-based keys only (CHECKBOX, INVISIBLE), all challenge requests for this site will return nocaptcha if NOCAPTCHA, or an unsolvable challenge if CHALLENGE.

.google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge testing_challenge = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
TestingOptions.Builder

This builder for chaining.

setTestingScore(float value)

public TestingOptions.Builder setTestingScore(float value)

All assessments for this Key will return this score. Must be between 0 (likely not legitimate) and 1 (likely legitimate) inclusive.

float testing_score = 1;

Parameter
NameDescription
valuefloat

The testingScore to set.

Returns
TypeDescription
TestingOptions.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TestingOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TestingOptions.Builder
Overrides