Class ChallengeMetrics.Builder (3.6.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ChallengeMetrics build()
Returns
TypeDescription
ChallengeMetrics

buildPartial()

public ChallengeMetrics buildPartial()
Returns
TypeDescription
ChallengeMetrics

clear()

public ChallengeMetrics.Builder clear()
Returns
TypeDescription
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
TypeDescription
ChallengeMetrics.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNocaptchaCount()

public ChallengeMetrics.Builder clearNocaptchaCount()

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

int64 nocaptcha_count = 2;

Returns
TypeDescription
ChallengeMetrics.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ChallengeMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ChallengeMetrics.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ChallengeMetrics getDefaultInstanceForType()
Returns
TypeDescription
ChallengeMetrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
long

The failedCount.

getNocaptchaCount()

public long getNocaptchaCount()

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

int64 nocaptcha_count = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
long

The passedCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ChallengeMetrics other)

public ChallengeMetrics.Builder mergeFrom(ChallengeMetrics other)
Parameter
NameDescription
otherChallengeMetrics
Returns
TypeDescription
ChallengeMetrics.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ChallengeMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuelong

The failedCount to set.

Returns
TypeDescription
ChallengeMetrics.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ChallengeMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The nocaptchaCount to set.

Returns
TypeDescription
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
NameDescription
valuelong

The pageloadCount to set.

Returns
TypeDescription
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
NameDescription
valuelong

The passedCount to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ChallengeMetrics.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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