Uses of Class
com.azure.ai.contentsafety.models.TextCategory
Packages that use TextCategory
Package
Description
Package containing the data models for ContentSafety.
-
Uses of TextCategory in com.azure.ai.contentsafety.models
Fields in com.azure.ai.contentsafety.models declared as TextCategoryModifier and TypeFieldDescriptionstatic final TextCategoryTextCategory.HATEStatic value Hate for TextCategory.static final TextCategoryTextCategory.SELF_HARMStatic value SelfHarm for TextCategory.static final TextCategoryTextCategory.SEXUALStatic value Sexual for TextCategory.static final TextCategoryTextCategory.VIOLENCEStatic value Violence for TextCategory.Methods in com.azure.ai.contentsafety.models that return TextCategoryModifier and TypeMethodDescriptionstatic TextCategoryTextCategory.fromString(String name) Creates or finds a TextCategory from its string representation.TextCategoriesAnalysis.getCategory()Get the category property: The text analysis category.Methods in com.azure.ai.contentsafety.models that return types with arguments of type TextCategoryModifier and TypeMethodDescriptionAnalyzeTextOptions.getCategories()Get the categories property: The categories will be analyzed.static Collection<TextCategory> TextCategory.values()Gets known TextCategory values.Method parameters in com.azure.ai.contentsafety.models with type arguments of type TextCategoryModifier and TypeMethodDescriptionAnalyzeTextOptions.setCategories(List<TextCategory> categories) Set the categories property: The categories will be analyzed.