Class Metrics.Builder (3.38.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.recaptchaenterprise.v1.ChallengeMetrics>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.recaptchaenterprise.v1.ScoreMetrics>
Returns
TypeDescription
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
NameDescription
valueChallengeMetrics
Returns
TypeDescription
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
NameDescription
builderForValueChallengeMetrics.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueChallengeMetrics
Returns
TypeDescription
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
NameDescription
indexint
builderForValueChallengeMetrics.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ChallengeMetrics.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Metrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueScoreMetrics
Returns
TypeDescription
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
NameDescription
builderForValueScoreMetrics.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueScoreMetrics
Returns
TypeDescription
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
NameDescription
indexint
builderForValueScoreMetrics.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ScoreMetrics.Builder

build()

public Metrics build()
Returns
TypeDescription
Metrics

buildPartial()

public Metrics buildPartial()
Returns
TypeDescription
Metrics

clear()

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

clearField(Descriptors.FieldDescriptor field)

public Metrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Metrics.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Metrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Metrics.Builder

clearStartTime()

public Metrics.Builder clearStartTime()

Inclusive start time aligned to a day (UTC).

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Metrics.Builder

clone()

public Metrics.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

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

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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
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>

getStartTime()

public Timestamp getStartTime()

Inclusive start time aligned to a day (UTC).

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Inclusive start time aligned to a day (UTC).

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Metrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Metrics.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Metrics.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Metrics.Builder
Overrides

mergeFrom(Metrics other)

public Metrics.Builder mergeFrom(Metrics other)
Parameter
NameDescription
otherMetrics
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Metrics.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Metrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueChallengeMetrics
Returns
TypeDescription
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
NameDescription
indexint
builderForValueChallengeMetrics.Builder
Returns
TypeDescription
Metrics.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Metrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueScoreMetrics
Returns
TypeDescription
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
NameDescription
indexint
builderForValueScoreMetrics.Builder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Metrics.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Metrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Metrics.Builder
Overrides