GetSupportedLanguagesResult Class

  • java.lang.Object
    • com.azure.ai.translation.text.models.GetSupportedLanguagesResult

Implements

public final class GetSupportedLanguagesResult
implements JsonSerializable<GetSupportedLanguagesResult>

Response for the languages API.

Method Summary

Modifier and Type Method and Description
static GetSupportedLanguagesResult fromJson(JsonReader jsonReader)

Reads an instance of GetSupportedLanguagesResult from the JsonReader.

List<String> getModels()

Get the models property: LLM models supported.

Map<String,TranslationLanguage> getTranslation()

Get the translation property: Languages that support translate API.

Map<String,TransliterationLanguage> getTransliteration()

Get the transliteration property: Languages that support transliteration API.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static GetSupportedLanguagesResult fromJson(JsonReader jsonReader)

Reads an instance of GetSupportedLanguagesResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GetSupportedLanguagesResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the GetSupportedLanguagesResult.

getModels

public List<String> getModels()

Get the models property: LLM models supported.

Returns:

the models value.

getTranslation

public Map<String,TranslationLanguage> getTranslation()

Get the translation property: Languages that support translate API.

Returns:

the translation value.

getTransliteration

public Map<String,TransliterationLanguage> getTransliteration()

Get the transliteration property: Languages that support transliteration API.

Returns:

the transliteration value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to