Class Metrics.Builder (3.42.0)

public static final class Metrics.Builder extends GeneratedMessageV3.Builder<Metrics.Builder> implements MetricsOrBuilder

Metrics for a single Key.

Protobuf type google.cloud.recaptchaenterprise.v1.Metrics

Implements

MetricsOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllChallengeMetrics(Iterable<? extends ChallengeMetrics> values)

public Metrics.Builder addAllChallengeMetrics(Iterable<? extends ChallengeMetrics> values)

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
values Iterable<? extends com.google.recaptchaenterprise.v1.ChallengeMetrics>
Returns
Type Description
Metrics.Builder

addAllScoreMetrics(Iterable<? extends ScoreMetrics> values)

public Metrics.Builder addAllScoreMetrics(Iterable<? extends ScoreMetrics> values)

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
values Iterable<? extends com.google.recaptchaenterprise.v1.ScoreMetrics>
Returns
Type Description
Metrics.Builder

addChallengeMetrics(ChallengeMetrics value)

public Metrics.Builder addChallengeMetrics(ChallengeMetrics value)

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
value ChallengeMetrics
Returns
Type Description
Metrics.Builder

addChallengeMetrics(ChallengeMetrics.Builder builderForValue)

public Metrics.Builder addChallengeMetrics(ChallengeMetrics.Builder builderForValue)

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
builderForValue ChallengeMetrics.Builder
Returns
Type Description
Metrics.Builder

addChallengeMetrics(int index, ChallengeMetrics value)

public Metrics.Builder addChallengeMetrics(int index, ChallengeMetrics value)

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;

Parameters
Name Description
index int
value ChallengeMetrics
Returns
Type Description
Metrics.Builder

addChallengeMetrics(int index, ChallengeMetrics.Builder builderForValue)

public Metrics.Builder addChallengeMetrics(int index, ChallengeMetrics.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue ChallengeMetrics.Builder
Returns
Type Description
Metrics.Builder

addChallengeMetricsBuilder()

public ChallengeMetrics.Builder addChallengeMetricsBuilder()

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
ChallengeMetrics.Builder

addChallengeMetricsBuilder(int index)

public ChallengeMetrics.Builder addChallengeMetricsBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Metrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Metrics.Builder
Overrides

addScoreMetrics(ScoreMetrics value)

public Metrics.Builder addScoreMetrics(ScoreMetrics value)

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
value ScoreMetrics
Returns
Type Description
Metrics.Builder

addScoreMetrics(ScoreMetrics.Builder builderForValue)

public Metrics.Builder addScoreMetrics(ScoreMetrics.Builder builderForValue)

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
builderForValue ScoreMetrics.Builder
Returns
Type Description
Metrics.Builder

addScoreMetrics(int index, ScoreMetrics value)

public Metrics.Builder addScoreMetrics(int index, ScoreMetrics value)

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;

Parameters
Name Description
index int
value ScoreMetrics
Returns
Type Description
Metrics.Builder

addScoreMetrics(int index, ScoreMetrics.Builder builderForValue)

public Metrics.Builder addScoreMetrics(int index, ScoreMetrics.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue ScoreMetrics.Builder
Returns
Type Description
Metrics.Builder

addScoreMetricsBuilder()

public ScoreMetrics.Builder addScoreMetricsBuilder()

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
ScoreMetrics.Builder

addScoreMetricsBuilder(int index)

public ScoreMetrics.Builder addScoreMetricsBuilder(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.Builder

build()

public Metrics build()
Returns
Type Description
Metrics

buildPartial()

public Metrics buildPartial()
Returns
Type Description
Metrics

clear()

public Metrics.Builder clear()
Returns
Type Description
Metrics.Builder
Overrides

clearChallengeMetrics()

public Metrics.Builder clearChallengeMetrics()

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
Metrics.Builder

clearField(Descriptors.FieldDescriptor field)

public Metrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Metrics.Builder
Overrides

clearName()

public Metrics.Builder clearName()

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
Metrics.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Metrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Metrics.Builder
Overrides

clearScoreMetrics()

public Metrics.Builder clearScoreMetrics()

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
Metrics.Builder

clearStartTime()

public Metrics.Builder clearStartTime()

Inclusive start time aligned to a day (UTC).

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Metrics.Builder

clone()

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

getChallengeMetricsBuilder(int index)

public ChallengeMetrics.Builder getChallengeMetricsBuilder(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.Builder

getChallengeMetricsBuilderList()

public List<ChallengeMetrics.Builder> getChallengeMetricsBuilderList()

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<Builder>

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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

getScoreMetricsBuilder(int index)

public ScoreMetrics.Builder getScoreMetricsBuilder(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.Builder

getScoreMetricsBuilderList()

public List<ScoreMetrics.Builder> getScoreMetricsBuilderList()

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<Builder>

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>

getStartTime()

public Timestamp getStartTime()

Inclusive start time aligned to a day (UTC).

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Inclusive start time aligned to a day (UTC).

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Metrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Metrics.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Metrics.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Metrics.Builder
Overrides

mergeFrom(Metrics other)

public Metrics.Builder mergeFrom(Metrics other)
Parameter
Name Description
other Metrics
Returns
Type Description
Metrics.Builder

mergeStartTime(Timestamp value)

public Metrics.Builder mergeStartTime(Timestamp value)

Inclusive start time aligned to a day (UTC).

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
Metrics.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Metrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Metrics.Builder
Overrides

removeChallengeMetrics(int index)

public Metrics.Builder removeChallengeMetrics(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
Metrics.Builder

removeScoreMetrics(int index)

public Metrics.Builder removeScoreMetrics(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
Metrics.Builder

setChallengeMetrics(int index, ChallengeMetrics value)

public Metrics.Builder setChallengeMetrics(int index, ChallengeMetrics value)

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;

Parameters
Name Description
index int
value ChallengeMetrics
Returns
Type Description
Metrics.Builder

setChallengeMetrics(int index, ChallengeMetrics.Builder builderForValue)

public Metrics.Builder setChallengeMetrics(int index, ChallengeMetrics.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue ChallengeMetrics.Builder
Returns
Type Description
Metrics.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Metrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Metrics.Builder
Overrides

setName(String value)

public Metrics.Builder setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Metrics.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Metrics.Builder setNameBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Metrics.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Metrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Metrics.Builder
Overrides

setScoreMetrics(int index, ScoreMetrics value)

public Metrics.Builder setScoreMetrics(int index, ScoreMetrics value)

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;

Parameters
Name Description
index int
value ScoreMetrics
Returns
Type Description
Metrics.Builder

setScoreMetrics(int index, ScoreMetrics.Builder builderForValue)

public Metrics.Builder setScoreMetrics(int index, ScoreMetrics.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue ScoreMetrics.Builder
Returns
Type Description
Metrics.Builder

setStartTime(Timestamp value)

public Metrics.Builder setStartTime(Timestamp value)

Inclusive start time aligned to a day (UTC).

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
Metrics.Builder

setStartTime(Timestamp.Builder builderForValue)

public Metrics.Builder setStartTime(Timestamp.Builder builderForValue)

Inclusive start time aligned to a day (UTC).

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Metrics.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Metrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Metrics.Builder
Overrides