Class ChallengeMetrics.Builder (3.46.0)

public static final class ChallengeMetrics.Builder extends GeneratedMessageV3.Builder<ChallengeMetrics.Builder> implements ChallengeMetricsOrBuilder

Metrics related to challenges.

Protobuf type google.cloud.recaptchaenterprise.v1.ChallengeMetrics

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ChallengeMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ChallengeMetrics.Builder
Overrides

build()

public ChallengeMetrics build()
Returns
Type Description
ChallengeMetrics

buildPartial()

public ChallengeMetrics buildPartial()
Returns
Type Description
ChallengeMetrics

clear()

public ChallengeMetrics.Builder clear()
Returns
Type Description
ChallengeMetrics.Builder
Overrides

clearFailedCount()

public ChallengeMetrics.Builder clearFailedCount()

Count of submitted challenge solutions that were incorrect or otherwise deemed suspicious such that a subsequent challenge was triggered.

int64 failed_count = 3;

Returns
Type Description
ChallengeMetrics.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ChallengeMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ChallengeMetrics.Builder
Overrides

clearNocaptchaCount()

public ChallengeMetrics.Builder clearNocaptchaCount()

Count of nocaptchas (successful verification without a challenge) issued.

int64 nocaptcha_count = 2;

Returns
Type Description
ChallengeMetrics.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ChallengeMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ChallengeMetrics.Builder
Overrides

clearPageloadCount()

public ChallengeMetrics.Builder clearPageloadCount()

Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent to a count of pageloads for pages that include reCAPTCHA.

int64 pageload_count = 1;

Returns
Type Description
ChallengeMetrics.Builder

This builder for chaining.

clearPassedCount()

public ChallengeMetrics.Builder clearPassedCount()

Count of nocaptchas (successful verification without a challenge) plus submitted challenge solutions that were correct and resulted in verification.

int64 passed_count = 4;

Returns
Type Description
ChallengeMetrics.Builder

This builder for chaining.

clone()

public ChallengeMetrics.Builder clone()
Returns
Type Description
ChallengeMetrics.Builder
Overrides

getDefaultInstanceForType()

public ChallengeMetrics getDefaultInstanceForType()
Returns
Type Description
ChallengeMetrics

getDescriptorForType()

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

getFailedCount()

public long getFailedCount()

Count of submitted challenge solutions that were incorrect or otherwise deemed suspicious such that a subsequent challenge was triggered.

int64 failed_count = 3;

Returns
Type Description
long

The failedCount.

getNocaptchaCount()

public long getNocaptchaCount()

Count of nocaptchas (successful verification without a challenge) issued.

int64 nocaptcha_count = 2;

Returns
Type Description
long

The nocaptchaCount.

getPageloadCount()

public long getPageloadCount()

Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent to a count of pageloads for pages that include reCAPTCHA.

int64 pageload_count = 1;

Returns
Type Description
long

The pageloadCount.

getPassedCount()

public long getPassedCount()

Count of nocaptchas (successful verification without a challenge) plus submitted challenge solutions that were correct and resulted in verification.

int64 passed_count = 4;

Returns
Type Description
long

The passedCount.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ChallengeMetrics other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ChallengeMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ChallengeMetrics.Builder
Overrides

setFailedCount(long value)

public ChallengeMetrics.Builder setFailedCount(long value)

Count of submitted challenge solutions that were incorrect or otherwise deemed suspicious such that a subsequent challenge was triggered.

int64 failed_count = 3;

Parameter
Name Description
value long

The failedCount to set.

Returns
Type Description
ChallengeMetrics.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ChallengeMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ChallengeMetrics.Builder
Overrides

setNocaptchaCount(long value)

public ChallengeMetrics.Builder setNocaptchaCount(long value)

Count of nocaptchas (successful verification without a challenge) issued.

int64 nocaptcha_count = 2;

Parameter
Name Description
value long

The nocaptchaCount to set.

Returns
Type Description
ChallengeMetrics.Builder

This builder for chaining.

setPageloadCount(long value)

public ChallengeMetrics.Builder setPageloadCount(long value)

Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent to a count of pageloads for pages that include reCAPTCHA.

int64 pageload_count = 1;

Parameter
Name Description
value long

The pageloadCount to set.

Returns
Type Description
ChallengeMetrics.Builder

This builder for chaining.

setPassedCount(long value)

public ChallengeMetrics.Builder setPassedCount(long value)

Count of nocaptchas (successful verification without a challenge) plus submitted challenge solutions that were correct and resulted in verification.

int64 passed_count = 4;

Parameter
Name Description
value long

The passedCount to set.

Returns
Type Description
ChallengeMetrics.Builder

This builder for chaining.

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

public ChallengeMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ChallengeMetrics.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ChallengeMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ChallengeMetrics.Builder
Overrides