Class Metrics (3.41.0)

public final class Metrics extends GeneratedMessageV3 implements MetricsOrBuilder

Metrics for a single Key.

Protobuf type google.cloud.recaptchaenterprise.v1.Metrics

Implements

MetricsOrBuilder

Static Fields

CHALLENGE_METRICS_FIELD_NUMBER

public static final int CHALLENGE_METRICS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

SCORE_METRICS_FIELD_NUMBER

public static final int SCORE_METRICS_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Metrics getDefaultInstance()
Returns
Type Description
Metrics

getDescriptor()

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

newBuilder()

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

newBuilder(Metrics prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getChallengeMetrics(int index)

public ChallengeMetrics getChallengeMetrics(int index)

Metrics will be continuous and in order by dates, and in the granularity of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have challenge-based data.

repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;

Parameter
Name Description
index int
Returns
Type Description
ChallengeMetrics

getChallengeMetricsCount()

public int getChallengeMetricsCount()

Metrics will be continuous and in order by dates, and in the granularity of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have challenge-based data.

repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;

Returns
Type Description
int

getChallengeMetricsList()

public List<ChallengeMetrics> getChallengeMetricsList()

Metrics will be continuous and in order by dates, and in the granularity of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have challenge-based data.

repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;

Returns
Type Description
List<ChallengeMetrics>

getChallengeMetricsOrBuilder(int index)

public ChallengeMetricsOrBuilder getChallengeMetricsOrBuilder(int index)

Metrics will be continuous and in order by dates, and in the granularity of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have challenge-based data.

repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;

Parameter
Name Description
index int
Returns
Type Description
ChallengeMetricsOrBuilder

getChallengeMetricsOrBuilderList()

public List<? extends ChallengeMetricsOrBuilder> getChallengeMetricsOrBuilderList()

Metrics will be continuous and in order by dates, and in the granularity of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have challenge-based data.

repeated .google.cloud.recaptchaenterprise.v1.ChallengeMetrics challenge_metrics = 3;

Returns
Type Description
List<? extends com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder>

getDefaultInstanceForType()

public Metrics getDefaultInstanceForType()
Returns
Type Description
Metrics

getName()

public String getName()

Output only. Identifier. The name of the metrics, in the format projects/{project}/keys/{key}/metrics.

string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Identifier. The name of the metrics, in the format projects/{project}/keys/{key}/metrics.

string name = 4 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getScoreMetrics(int index)

public ScoreMetrics getScoreMetrics(int index)

Metrics will be continuous and in order by dates, and in the granularity of day. All Key types should have score-based data.

repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;

Parameter
Name Description
index int
Returns
Type Description
ScoreMetrics

getScoreMetricsCount()

public int getScoreMetricsCount()

Metrics will be continuous and in order by dates, and in the granularity of day. All Key types should have score-based data.

repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;

Returns
Type Description
int

getScoreMetricsList()

public List<ScoreMetrics> getScoreMetricsList()

Metrics will be continuous and in order by dates, and in the granularity of day. All Key types should have score-based data.

repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;

Returns
Type Description
List<ScoreMetrics>

getScoreMetricsOrBuilder(int index)

public ScoreMetricsOrBuilder getScoreMetricsOrBuilder(int index)

Metrics will be continuous and in order by dates, and in the granularity of day. All Key types should have score-based data.

repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;

Parameter
Name Description
index int
Returns
Type Description
ScoreMetricsOrBuilder

getScoreMetricsOrBuilderList()

public List<? extends ScoreMetricsOrBuilder> getScoreMetricsOrBuilderList()

Metrics will be continuous and in order by dates, and in the granularity of day. All Key types should have score-based data.

repeated .google.cloud.recaptchaenterprise.v1.ScoreMetrics score_metrics = 2;

Returns
Type Description
List<? extends com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStartTime()

public Timestamp getStartTime()

Inclusive start time aligned to a day (UTC).

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Timestamp

The startTime.

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Inclusive start time aligned to a day (UTC).

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
TimestampOrBuilder

hasStartTime()

public boolean hasStartTime()

Inclusive start time aligned to a day (UTC).

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
boolean

Whether the startTime field is set.

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 Metrics.Builder newBuilderForType()
Returns
Type Description
Metrics.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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