public interface OffensiveAnalysis
OffensiveAnalysis
  • Method Details

    • getMessage

      String getMessage()
      Either the message text or the URL of the image that was analyzed.
      Returns:
      message
    • getUrl

      String getUrl()
      URL of the image that was analyzed.
      Returns:
      url
    • getEvaluation

      A label, either SAFE or UNSAFE, that classifies the analyzed content.
      Returns:
      evaluation
    • getScore

      Float getScore()
      The likelihood that the assigned evaluation represents the analyzed message correctly. 1 is the maximum value, representing the highest likelihood that the content of the message matches the evaluation. 0 is the minimum value, representing the lowest likelihood that the content of the message matches the evaluation.
      Returns:
      score
    • builder

      static OffensiveAnalysis.Builder builder()
      Getting builder
      Returns:
      New Builder instance