Class ChallengeMetrics (3.51.0)

public final class ChallengeMetrics extends GeneratedMessageV3 implements ChallengeMetricsOrBuilder

Metrics related to challenges.

Protobuf type google.cloud.recaptchaenterprise.v1.ChallengeMetrics

Static Fields

FAILED_COUNT_FIELD_NUMBER

public static final int FAILED_COUNT_FIELD_NUMBER
Field Value
Type Description
int

NOCAPTCHA_COUNT_FIELD_NUMBER

public static final int NOCAPTCHA_COUNT_FIELD_NUMBER
Field Value
Type Description
int

PAGELOAD_COUNT_FIELD_NUMBER

public static final int PAGELOAD_COUNT_FIELD_NUMBER
Field Value
Type Description
int

PASSED_COUNT_FIELD_NUMBER

public static final int PASSED_COUNT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ChallengeMetrics getDefaultInstance()
Returns
Type Description
ChallengeMetrics

getDescriptor()

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

newBuilder()

public static ChallengeMetrics.Builder newBuilder()
Returns
Type Description
ChallengeMetrics.Builder

newBuilder(ChallengeMetrics prototype)

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

parseDelimitedFrom(InputStream input)

public static ChallengeMetrics parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ChallengeMetrics
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static ChallengeMetrics parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ChallengeMetrics
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static ChallengeMetrics parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ChallengeMetrics
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static ChallengeMetrics parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ChallengeMetrics
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static ChallengeMetrics parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ChallengeMetrics
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<ChallengeMetrics> parser()
Returns
Type Description
Parser<ChallengeMetrics>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public ChallengeMetrics getDefaultInstanceForType()
Returns
Type Description
ChallengeMetrics

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.

getParserForType()

public Parser<ChallengeMetrics> getParserForType()
Returns
Type Description
Parser<ChallengeMetrics>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ChallengeMetrics.Builder newBuilderForType()
Returns
Type Description
ChallengeMetrics.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ChallengeMetrics.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ChallengeMetrics.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ChallengeMetrics.Builder toBuilder()
Returns
Type Description
ChallengeMetrics.Builder

writeTo(CodedOutputStream output)

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