Class ScoreMetrics (3.14.0)

public final class ScoreMetrics extends GeneratedMessageV3 implements ScoreMetricsOrBuilder

Metrics related to scoring.

Protobuf type google.cloud.recaptchaenterprise.v1.ScoreMetrics

Static Fields

ACTION_METRICS_FIELD_NUMBER

public static final int ACTION_METRICS_FIELD_NUMBER
Field Value
TypeDescription
int

OVERALL_METRICS_FIELD_NUMBER

public static final int OVERALL_METRICS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ScoreMetrics getDefaultInstance()
Returns
TypeDescription
ScoreMetrics

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ScoreMetrics.Builder newBuilder()
Returns
TypeDescription
ScoreMetrics.Builder

newBuilder(ScoreMetrics prototype)

public static ScoreMetrics.Builder newBuilder(ScoreMetrics prototype)
Parameter
NameDescription
prototypeScoreMetrics
Returns
TypeDescription
ScoreMetrics.Builder

parseDelimitedFrom(InputStream input)

public static ScoreMetrics parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ScoreMetrics
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ScoreMetrics parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScoreMetrics
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ScoreMetrics parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ScoreMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ScoreMetrics parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScoreMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ScoreMetrics parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ScoreMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ScoreMetrics parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScoreMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ScoreMetrics parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ScoreMetrics
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ScoreMetrics parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScoreMetrics
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ScoreMetrics parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ScoreMetrics
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ScoreMetrics parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScoreMetrics
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ScoreMetrics parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ScoreMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ScoreMetrics parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScoreMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ScoreMetrics> parser()
Returns
TypeDescription
Parser<ScoreMetrics>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getActionMetrics()

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

getOverallMetrics()

public ScoreDistribution getOverallMetrics()

Aggregated score metrics for all traffic.

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

Returns
TypeDescription
ScoreDistribution

The overallMetrics.

getOverallMetricsOrBuilder()

public ScoreDistributionOrBuilder getOverallMetricsOrBuilder()

Aggregated score metrics for all traffic.

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

Returns
TypeDescription
ScoreDistributionOrBuilder

getParserForType()

public Parser<ScoreMetrics> getParserForType()
Returns
TypeDescription
Parser<ScoreMetrics>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ScoreMetrics.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ScoreMetrics.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException