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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ScoreMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ScoreMetrics build()
Returns
buildPartial()
public ScoreMetrics buildPartial()
Returns
clear()
public ScoreMetrics.Builder clear()
Returns
Overrides
clearActionMetrics()
public ScoreMetrics.Builder clearActionMetrics()
Returns
clearField(Descriptors.FieldDescriptor field)
public ScoreMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ScoreMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearOverallMetrics()
public ScoreMetrics.Builder clearOverallMetrics()
Aggregated score metrics for all traffic.
.google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;
Returns
clone()
public ScoreMetrics.Builder clone()
Returns
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.
Populated only for SCORE keys.
map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
Parameter
Returns
getActionMetrics()
public Map<String,ScoreDistribution> getActionMetrics()
Returns
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.
Populated only for SCORE keys.
map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
Returns
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.
Populated only for SCORE keys.
map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
Returns
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.
Populated only for SCORE keys.
map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
Parameters
Returns
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.
Populated only for SCORE keys.
map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
Parameter
Returns
getDefaultInstanceForType()
public ScoreMetrics getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMutableActionMetrics()
public Map<String,ScoreDistribution> getMutableActionMetrics()
Use alternate mutation accessors instead.
Returns
getOverallMetrics()
public ScoreDistribution getOverallMetrics()
Aggregated score metrics for all traffic.
.google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;
Returns
getOverallMetricsBuilder()
public ScoreDistribution.Builder getOverallMetricsBuilder()
Aggregated score metrics for all traffic.
.google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;
Returns
getOverallMetricsOrBuilder()
public ScoreDistributionOrBuilder getOverallMetricsOrBuilder()
Aggregated score metrics for all traffic.
.google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;
Returns
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
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public ScoreMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ScoreMetrics.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(ScoreMetrics other)
public ScoreMetrics.Builder mergeFrom(ScoreMetrics other)
Parameter
Returns
mergeOverallMetrics(ScoreDistribution value)
public ScoreMetrics.Builder mergeOverallMetrics(ScoreDistribution value)
Aggregated score metrics for all traffic.
.google.cloud.recaptchaenterprise.v1.ScoreDistribution overall_metrics = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ScoreMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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.
Populated only for SCORE keys.
map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
Parameters
Returns
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.
Populated only for SCORE keys.
map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
Parameter
Returns
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.
Populated only for SCORE keys.
map<string, .google.cloud.recaptchaenterprise.v1.ScoreDistribution> action_metrics = 2;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ScoreMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ScoreMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ScoreMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides