Interface ThreatInfo.ConfidenceOrBuilder (2.40.0)

public static interface ThreatInfo.ConfidenceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getLevel()

public abstract ThreatInfo.Confidence.ConfidenceLevel getLevel()

Enum representation of confidence.

.google.cloud.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel level = 2;

Returns
TypeDescription
ThreatInfo.Confidence.ConfidenceLevel

The level.

getLevelValue()

public abstract int getLevelValue()

Enum representation of confidence.

.google.cloud.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel level = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for level.

getScore()

public abstract float getScore()

A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.

float score = 1;

Returns
TypeDescription
float

The score.

getValueCase()

public abstract ThreatInfo.Confidence.ValueCase getValueCase()
Returns
TypeDescription
ThreatInfo.Confidence.ValueCase

hasLevel()

public abstract boolean hasLevel()

Enum representation of confidence.

.google.cloud.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel level = 2;

Returns
TypeDescription
boolean

Whether the level field is set.

hasScore()

public abstract boolean hasScore()

A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.

float score = 1;

Returns
TypeDescription
boolean

Whether the score field is set.