Class ContentSafetyLabelResult


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

      • getText

        public java.lang.String getText()
        Returns:
        The transcript of the section flagged by the Content Moderation model
      • getLabels

        public java.util.List<ContentSafetyLabel> getLabels()
        Returns:
        An array of safety labels, one per sensitive topic that was detected in the section
      • getSentencesIdxStart

        public int getSentencesIdxStart()
        Returns:
        The sentence index at which the section begins
      • getSentencesIdxEnd

        public int getSentencesIdxEnd()
        Returns:
        The sentence index at which the section ends
      • getTimestamp

        public Timestamp getTimestamp()
        Returns:
        Timestamp information for the section
      • 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