TextType Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. translation. text. models. TextType
- com.
- com.
public final class TextType
extends ExpandableStringEnum<TextType>
Translation text type.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Text |
HTML
HTML-encoded text. |
|
static final
Text |
PLAIN
Plain text. |
Constructor Summary
| Constructor | Description |
|---|---|
| TextType() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Text |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Text |
fromString(String name)
Creates or finds a Text |
|
static
Collection<Text |
values()
Gets known Text |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
HTML
public static final TextType HTML
HTML-encoded text.
PLAIN
public static final TextType PLAIN
Plain text.
Constructor Details
TextType
@Deprecated
public TextType()
Deprecated
Creates a new instance of TextType value.
Method Details
fromString
public static TextType fromString(String name)
Creates or finds a TextType from its string representation.
Parameters:
Returns:
values
public static Collection<TextType> values()
Gets known TextType values.
Returns: