Package com.google.webrisk.v1
Interface ThreatInfo.ConfidenceOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ThreatInfo.Confidence
,ThreatInfo.Confidence.Builder
- Enclosing class:
- ThreatInfo
public static interface ThreatInfo.ConfidenceOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThreatInfo.Confidence.ConfidenceLevel
getLevel()
Enum representation of confidence.int
getLevelValue()
Enum representation of confidence.float
getScore()
A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.ThreatInfo.Confidence.ValueCase
getValueCase()
boolean
hasLevel()
Enum representation of confidence.boolean
hasScore()
A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasScore
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:
- Whether the score field is set.
-
getScore
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:
- The score.
-
hasLevel
boolean hasLevel()
Enum representation of confidence.
.google.cloud.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel level = 2;
- Returns:
- Whether the level field is set.
-
getLevelValue
int getLevelValue()
Enum representation of confidence.
.google.cloud.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel level = 2;
- Returns:
- The enum numeric value on the wire for level.
-
getLevel
ThreatInfo.Confidence.ConfidenceLevel getLevel()
Enum representation of confidence.
.google.cloud.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel level = 2;
- Returns:
- The level.
-
getValueCase
ThreatInfo.Confidence.ValueCase getValueCase()
-
-