Class LanguageScope

java.lang.Object
com.azure.core.util.ExpandableStringEnum<LanguageScope>
com.azure.ai.translation.text.models.LanguageScope

public final class LanguageScope extends com.azure.core.util.ExpandableStringEnum<LanguageScope>
Translator languages scopes.
  • Field Details

    • TRANSLATION

      public static final LanguageScope TRANSLATION
      Static value Translation for LanguageScope.
    • TRANSLITERATION

      public static final LanguageScope TRANSLITERATION
      Static value Transliteration for LanguageScope.
    • DICTIONARY

      public static final LanguageScope DICTIONARY
      Static value Dictionary for LanguageScope.
  • Constructor Details

    • LanguageScope

      @Deprecated public LanguageScope()
      Deprecated.
      Use the fromString(String) factory method.
      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:
      name - a name to look for.
      Returns:
      the corresponding LanguageScope.
    • values

      public static Collection<LanguageScope> values()
      Gets known LanguageScope values.
      Returns:
      known LanguageScope values.