Class ChallengeMetrics (3.32.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
TypeDescription
int

NOCAPTCHA_COUNT_FIELD_NUMBER

public static final int NOCAPTCHA_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

PAGELOAD_COUNT_FIELD_NUMBER

public static final int PAGELOAD_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

PASSED_COUNT_FIELD_NUMBER

public static final int PASSED_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ChallengeMetrics getDefaultInstance()
Returns
TypeDescription
ChallengeMetrics

getDescriptor()

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

newBuilder()

public static ChallengeMetrics.Builder newBuilder()
Returns
TypeDescription
ChallengeMetrics.Builder

newBuilder(ChallengeMetrics prototype)

public static ChallengeMetrics.Builder newBuilder(ChallengeMetrics prototype)
Parameter
NameDescription
prototypeChallengeMetrics
Returns
TypeDescription
ChallengeMetrics.Builder

parseDelimitedFrom(InputStream input)

public static ChallengeMetrics parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ChallengeMetrics
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ChallengeMetrics parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChallengeMetrics
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ChallengeMetrics parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ChallengeMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ChallengeMetrics parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChallengeMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ChallengeMetrics parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ChallengeMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ChallengeMetrics parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChallengeMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ChallengeMetrics parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ChallengeMetrics
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ChallengeMetrics parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChallengeMetrics
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ChallengeMetrics parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ChallengeMetrics
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ChallengeMetrics parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChallengeMetrics
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ChallengeMetrics parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ChallengeMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ChallengeMetrics parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChallengeMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ChallengeMetrics> parser()
Returns
TypeDescription
Parser<ChallengeMetrics>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<ChallengeMetrics> getParserForType()
Returns
TypeDescription
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
TypeDescription
long

The passedCount.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ChallengeMetrics.Builder newBuilderForType()
Returns
TypeDescription
ChallengeMetrics.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ChallengeMetrics.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ChallengeMetrics.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ChallengeMetrics.Builder toBuilder()
Returns
TypeDescription
ChallengeMetrics.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException