Class ScoreMetrics.Builder (3.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ScoreMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ScoreMetrics.Builder
Overrides

build()

public ScoreMetrics build()
Returns
TypeDescription
ScoreMetrics

buildPartial()

public ScoreMetrics buildPartial()
Returns
TypeDescription
ScoreMetrics

clear()

public ScoreMetrics.Builder clear()
Returns
TypeDescription
ScoreMetrics.Builder
Overrides

clearActionMetrics()

public ScoreMetrics.Builder clearActionMetrics()
Returns
TypeDescription
ScoreMetrics.Builder

clearField(Descriptors.FieldDescriptor field)

public ScoreMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ScoreMetrics.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ScoreMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ScoreMetrics.Builder
Overrides

clearOverallMetrics()

public ScoreMetrics.Builder clearOverallMetrics()

Aggregated score metrics for all traffic.

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

Returns
TypeDescription
ScoreMetrics.Builder

clone()

public ScoreMetrics.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getActionMetrics() (deprecated)

public Map<String,ScoreDistribution> getActionMetrics()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueScoreDistribution
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
ScoreDistribution

getDefaultInstanceForType()

public ScoreMetrics getDefaultInstanceForType()
Returns
TypeDescription
ScoreMetrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableActionMetrics() (deprecated)

public Map<String,ScoreDistribution> getMutableActionMetrics()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,ScoreDistribution>

getOverallMetrics()

public ScoreDistribution getOverallMetrics()

Aggregated score metrics for all traffic.

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

Returns
TypeDescription
ScoreDistribution

The overallMetrics.

getOverallMetricsBuilder()

public ScoreDistribution.Builder getOverallMetricsBuilder()

Aggregated score metrics for all traffic.

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

Returns
TypeDescription
ScoreDistribution.Builder

getOverallMetricsOrBuilder()

public ScoreDistributionOrBuilder getOverallMetricsOrBuilder()

Aggregated score metrics for all traffic.

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

Returns
TypeDescription
ScoreDistributionOrBuilder

hasOverallMetrics()

public boolean hasOverallMetrics()

Aggregated score metrics for all traffic.

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

Returns
TypeDescription
boolean

Whether the overallMetrics field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ScoreMetrics other)

public ScoreMetrics.Builder mergeFrom(ScoreMetrics other)
Parameter
NameDescription
otherScoreMetrics
Returns
TypeDescription
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
NameDescription
valueScoreDistribution
Returns
TypeDescription
ScoreMetrics.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScoreMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
keyString
valueScoreDistribution
Returns
TypeDescription
ScoreMetrics.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
NameDescription
valuesMap<String,ScoreDistribution>
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
ScoreMetrics.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ScoreMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ScoreMetrics.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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