Interface ThreatInfo.ConfidenceOrBuilder (2.54.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
Type Description
ThreatInfo.Confidence.ConfidenceLevel

The level.

getLevelValue()

public abstract int getLevelValue()

Enum representation of confidence.

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

Returns
Type Description
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
Type Description
float

The score.

getValueCase()

public abstract ThreatInfo.Confidence.ValueCase getValueCase()
Returns
Type Description
ThreatInfo.Confidence.ValueCase

hasLevel()

public abstract boolean hasLevel()

Enum representation of confidence.

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

Returns
Type Description
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
Type Description
boolean

Whether the score field is set.