LanguageScope Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. ai. translation. text. models. LanguageScope
- com.
- com.
public final class LanguageScope
extends ExpandableStringEnum<LanguageScope>
Translator languages scopes.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Language |
MODELS
Static value Models for Language |
|
static final
Language |
TRANSLATION
Static value Translation for Language |
|
static final
Language |
TRANSLITERATION
Static value Transliteration for Language |
Constructor Summary
| Constructor | Description |
|---|---|
| LanguageScope() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Language |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Language |
fromString(String name)
Creates or finds a Language |
|
static
Collection<Language |
values()
Gets known Language |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
MODELS
public static final LanguageScope MODELS
Static value Models for LanguageScope.
TRANSLATION
public static final LanguageScope TRANSLATION
Static value Translation for LanguageScope.
TRANSLITERATION
public static final LanguageScope TRANSLITERATION
Static value Transliteration for LanguageScope.
Constructor Details
LanguageScope
@Deprecated
public LanguageScope()
Deprecated
Creates a new instance of LanguageScope value.
Method Details
fromString
public static LanguageScope fromString(String name)
Creates or finds a LanguageScope from its string representation.
Parameters:
Returns:
values
public static Collection<LanguageScope> values()
Gets known LanguageScope values.
Returns: