Class TextCategory

java.lang.Object
com.azure.core.util.ExpandableStringEnum<TextCategory>
com.azure.ai.contentsafety.models.TextCategory
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class TextCategory extends com.azure.core.util.ExpandableStringEnum<TextCategory>
Text analyze category.
  • Field Details

    • HATE

      public static final TextCategory HATE
      Static value Hate for TextCategory.
    • SELF_HARM

      public static final TextCategory SELF_HARM
      Static value SelfHarm for TextCategory.
    • SEXUAL

      public static final TextCategory SEXUAL
      Static value Sexual for TextCategory.
    • VIOLENCE

      public static final TextCategory VIOLENCE
      Static value Violence for TextCategory.
  • Constructor Details

    • TextCategory

      @Deprecated public TextCategory()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of TextCategory value.
  • Method Details

    • fromString

      public static TextCategory fromString(String name)
      Creates or finds a TextCategory from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding TextCategory.
    • values

      public static Collection<TextCategory> values()
      Gets known TextCategory values.
      Returns:
      known TextCategory values.