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

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SCORE_METRICS_FIELD_NUMBER

public static final int SCORE_METRICS_FIELD_NUMBER
Field Value
TypeDescription
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Metrics getDefaultInstance()
Returns
TypeDescription
Metrics

getDescriptor()

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

newBuilder()

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

newBuilder(Metrics prototype)

public static Metrics.Builder newBuilder(Metrics prototype)
Parameter
NameDescription
prototypeMetrics
Returns
TypeDescription
Metrics.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.recaptchaenterprise.v1.ChallengeMetricsOrBuilder>

getDefaultInstanceForType()

public Metrics getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<Metrics> getParserForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.recaptchaenterprise.v1.ScoreMetricsOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStartTime()

public Timestamp getStartTime()

Inclusive start time aligned to a day (UTC).

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Inclusive start time aligned to a day (UTC).

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
TimestampOrBuilder

hasStartTime()

public boolean hasStartTime()

Inclusive start time aligned to a day (UTC).

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
boolean

Whether the startTime field is set.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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