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

    Modifier and Type
    Method
    Description
    Enum representation of confidence.
    int
    Enum representation of confidence.
    float
    A decimal representation of confidence in the range of 0 to 1 where 0 indicates no confidence and 1 indicates complete confidence.
     
    boolean
    Enum representation of confidence.
    boolean
    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.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • 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

       Enum representation of confidence.
       
      .google.cloud.webrisk.v1.ThreatInfo.Confidence.ConfidenceLevel level = 2;
      Returns:
      The level.
    • getValueCase