Class ScoreMetrics.Builder (3.52.0)

public static final class ScoreMetrics.Builder extends GeneratedMessageV3.Builder<ScoreMetrics.Builder> implements ScoreMetricsOrBuilder

Metrics related to scoring.

Protobuf type google.cloud.recaptchaenterprise.v1.ScoreMetrics

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ScoreMetrics build()
Returns
Type Description
ScoreMetrics

buildPartial()

public ScoreMetrics buildPartial()
Returns
Type Description
ScoreMetrics

clear()

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

clearActionMetrics()

public ScoreMetrics.Builder clearActionMetrics()
Returns
Type Description
ScoreMetrics.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOverallMetrics()

public ScoreMetrics.Builder clearOverallMetrics()

Aggregated score metrics for all traffic.

.google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;

Returns
Type Description
ScoreMetrics.Builder

clone()

public ScoreMetrics.Builder clone()
Returns
Type Description
ScoreMetrics.Builder
Overrides

containsActionMetrics(String key)

public boolean containsActionMetrics(String key)

Action-based metrics. The map key is the action name which specified by the site owners at time of the "execute" client-side call.

map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

getActionMetrics() (deprecated)

public Map<String,ScoreDistribution> getActionMetrics()
Returns
Type Description
Map<String,ScoreDistribution>

getActionMetricsCount()

public int getActionMetricsCount()

Action-based metrics. The map key is the action name which specified by the site owners at time of the "execute" client-side call.

map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;

Returns
Type Description
int

getActionMetricsMap()

public Map<String,ScoreDistribution> getActionMetricsMap()

Action-based metrics. The map key is the action name which specified by the site owners at time of the "execute" client-side call.

map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;

Returns
Type Description
Map<String,ScoreDistribution>

getActionMetricsOrDefault(String key, ScoreDistribution defaultValue)

public ScoreDistribution getActionMetricsOrDefault(String key, ScoreDistribution defaultValue)

Action-based metrics. The map key is the action name which specified by the site owners at time of the "execute" client-side call.

map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;

Parameters
Name Description
key String
defaultValue ScoreDistribution
Returns
Type Description
ScoreDistribution

getActionMetricsOrThrow(String key)

public ScoreDistribution getActionMetricsOrThrow(String key)

Action-based metrics. The map key is the action name which specified by the site owners at time of the "execute" client-side call.

map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;

Parameter
Name Description
key String
Returns
Type Description
ScoreDistribution

getDefaultInstanceForType()

public ScoreMetrics getDefaultInstanceForType()
Returns
Type Description
ScoreMetrics

getDescriptorForType()

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

getMutableActionMetrics() (deprecated)

public Map<String,ScoreDistribution> getMutableActionMetrics()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ScoreDistribution>

getOverallMetrics()

public ScoreDistribution getOverallMetrics()

Aggregated score metrics for all traffic.

.google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;

Returns
Type Description
ScoreDistribution

The overallMetrics.

getOverallMetricsBuilder()

public ScoreDistribution.Builder getOverallMetricsBuilder()

Aggregated score metrics for all traffic.

.google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;

Returns
Type Description
ScoreDistribution.Builder

getOverallMetricsOrBuilder()

public ScoreDistributionOrBuilder getOverallMetricsOrBuilder()

Aggregated score metrics for all traffic.

.google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;

Returns
Type Description
ScoreDistributionOrBuilder

hasOverallMetrics()

public boolean hasOverallMetrics()

Aggregated score metrics for all traffic.

.google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;

Returns
Type Description
boolean

Whether the overallMetrics field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ScoreMetrics other)

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

mergeOverallMetrics(ScoreDistribution value)

public ScoreMetrics.Builder mergeOverallMetrics(ScoreDistribution value)

Aggregated score metrics for all traffic.

.google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;

Parameter
Name Description
value ScoreDistribution
Returns
Type Description
ScoreMetrics.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putActionMetrics(String key, ScoreDistribution value)

public ScoreMetrics.Builder putActionMetrics(String key, ScoreDistribution value)

Action-based metrics. The map key is the action name which specified by the site owners at time of the "execute" client-side call.

map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;

Parameters
Name Description
key String
value ScoreDistribution
Returns
Type Description
ScoreMetrics.Builder

putActionMetricsBuilderIfAbsent(String key)

public ScoreDistribution.Builder putActionMetricsBuilderIfAbsent(String key)

Action-based metrics. The map key is the action name which specified by the site owners at time of the "execute" client-side call.

map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;

Parameter
Name Description
key String
Returns
Type Description
ScoreDistribution.Builder

putAllActionMetrics(Map<String,ScoreDistribution> values)

public ScoreMetrics.Builder putAllActionMetrics(Map<String,ScoreDistribution> values)

Action-based metrics. The map key is the action name which specified by the site owners at time of the "execute" client-side call.

map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;

Parameter
Name Description
values Map<String,ScoreDistribution>
Returns
Type Description
ScoreMetrics.Builder

removeActionMetrics(String key)

public ScoreMetrics.Builder removeActionMetrics(String key)

Action-based metrics. The map key is the action name which specified by the site owners at time of the "execute" client-side call.

map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;

Parameter
Name Description
key String
Returns
Type Description
ScoreMetrics.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOverallMetrics(ScoreDistribution value)

public ScoreMetrics.Builder setOverallMetrics(ScoreDistribution value)

Aggregated score metrics for all traffic.

.google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;

Parameter
Name Description
value ScoreDistribution
Returns
Type Description
ScoreMetrics.Builder

setOverallMetrics(ScoreDistribution.Builder builderForValue)

public ScoreMetrics.Builder setOverallMetrics(ScoreDistribution.Builder builderForValue)

Aggregated score metrics for all traffic.

.google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;

Parameter
Name Description
builderForValue ScoreDistribution.Builder
Returns
Type Description
ScoreMetrics.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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