Class TextSentiment
java.lang.Object
com.azure.core.util.ExpandableStringEnum<TextSentiment>
com.azure.ai.textanalytics.models.TextSentiment
Defines values for
TextSentiment.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TextSentimentStatic value Mixed forTextSentiment.static final TextSentimentStatic value Negative forTextSentiment.static final TextSentimentStatic value Neutral forTextSentiment.static final TextSentimentStatic value Positive forTextSentiment. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TextSentimentfromString(String name) Creates or finds aTextSentimentfrom its string representation.static Collection<TextSentiment>values()All known TextSentiment values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
POSITIVE
Static value Positive forTextSentiment. -
NEUTRAL
Static value Neutral forTextSentiment. -
NEGATIVE
Static value Negative forTextSentiment. -
MIXED
Static value Mixed forTextSentiment.
-
-
Constructor Details
-
TextSentiment
Deprecated.Use thefromString(String)factory method.Creates a new instance ofTextSentimentvalue.
-
-
Method Details
-
fromString
Creates or finds aTextSentimentfrom its string representation.- Parameters:
name- A name to look for.- Returns:
- The corresponding
TextSentiment.
-
values
All known TextSentiment values.- Returns:
- known TextSentiment values.
-
fromString(String)factory method.