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>
Text analyze category.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TextCategoryStatic value Hate for TextCategory.static final TextCategoryStatic value SelfHarm for TextCategory.static final TextCategoryStatic value Sexual for TextCategory.static final TextCategoryStatic value Violence for TextCategory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TextCategoryfromString(String name) Creates or finds a TextCategory from its string representation.static Collection<TextCategory> values()Gets known TextCategory values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
HATE
Static value Hate for TextCategory. -
SELF_HARM
Static value SelfHarm for TextCategory. -
SEXUAL
Static value Sexual for TextCategory. -
VIOLENCE
Static value Violence for TextCategory.
-
-
Constructor Details
-
TextCategory
Deprecated.Use thefromString(String)factory method.Creates a new instance of TextCategory value.
-
-
Method Details
-
fromString
Creates or finds a TextCategory from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding TextCategory.
-
values
Gets known TextCategory values.- Returns:
- known TextCategory values.
-
fromString(String)factory method.