Class ContentSafetyLabel


  • public final class ContentSafetyLabel
    extends java.lang.Object
    • Method Detail

      • getLabel

        public java.lang.String getLabel()
        Returns:
        The label of the sensitive topic
      • getConfidence

        public double getConfidence()
        Returns:
        The confidence score for the topic being discussed, from 0 to 1
      • getSeverity

        public double getSeverity()
        Returns:
        How severely the topic is discussed in the section, from 0 to 1
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object