public static class TranslationDocumentResult.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TranslationDocumentResult |
build() |
TranslationDocumentResult.Builder |
copy(TranslationDocumentResult model) |
TranslationDocumentResult.Builder |
key(String key)
Document unique identifier defined by the user.
|
TranslationDocumentResult.Builder |
sourceLanguageCode(String sourceLanguageCode)
Language code supported Automatically detect language - auto Arabic - ar Brazilian
Portuguese - pt-BR Canadian French - fr-CA Croatian - hr Czech - cs Danish - da Dutch -
nl English - en Finnish - fi French - fr German - de Greek - el Hebrew - he Hungarian -
hu Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl Portuguese - pt
Romanian - ro Russian - ru Simplified Chinese - zh-CN Slovak - sk Slovenian - sl Spanish
|
TranslationDocumentResult.Builder |
targetLanguageCode(String targetLanguageCode)
Language code supported Arabic - ar Brazilian Portuguese - pt-BR Canadian French - fr-CA
Croatian - hr Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr
German - de Greek - el Hebrew - he Hungarian - hu Italian - it Japanese - ja Korean - ko
Norwegian - no Polish - pl Portuguese - pt Romanian - ro Russian - ru Simplified Chinese
|
TranslationDocumentResult.Builder |
translatedText(String translatedText)
Translated text in selected target language.
|
public TranslationDocumentResult.Builder key(String key)
Document unique identifier defined by the user.
key
- the value to setpublic TranslationDocumentResult.Builder translatedText(String translatedText)
Translated text in selected target language.
translatedText
- the value to setpublic TranslationDocumentResult.Builder sourceLanguageCode(String sourceLanguageCode)
Language code supported Automatically detect language - auto Arabic - ar Brazilian Portuguese - pt-BR Canadian French - fr-CA Croatian - hr Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr German - de Greek - el Hebrew - he Hungarian - hu Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl Portuguese - pt Romanian - ro Russian - ru Simplified Chinese - zh-CN Slovak - sk Slovenian - sl Spanish
sourceLanguageCode
- the value to setpublic TranslationDocumentResult.Builder targetLanguageCode(String targetLanguageCode)
Language code supported Arabic - ar Brazilian Portuguese - pt-BR Canadian French - fr-CA Croatian - hr Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr German - de Greek - el Hebrew - he Hungarian - hu Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl Portuguese - pt Romanian - ro Russian - ru Simplified Chinese
targetLanguageCode
- the value to setpublic TranslationDocumentResult build()
public TranslationDocumentResult.Builder copy(TranslationDocumentResult model)
Copyright © 2016–2024. All rights reserved.