| Package | Description |
|---|---|
| com.google.api.services.translate.v3.model |
| Modifier and Type | Method and Description |
|---|---|
Translation |
Translation.clone() |
Translation |
Translation.set(String fieldName,
Object value) |
Translation |
Translation.setDetectedLanguageCode(String detectedLanguageCode)
The BCP-47 language code of source text in the initial request, detected automatically, if no
source language was passed within the initial request.
|
Translation |
Translation.setGlossaryConfig(TranslateTextGlossaryConfig glossaryConfig)
The `glossary_config` used for this translation.
|
Translation |
Translation.setModel(String model)
Only present when `model` is present in the request.
|
Translation |
Translation.setTranslatedText(String translatedText)
Text translated into the target language.
|
| Modifier and Type | Method and Description |
|---|---|
List<Translation> |
TranslateTextResponse.getGlossaryTranslations()
Text translation responses if a glossary is provided in the request.
|
List<Translation> |
TranslateTextResponse.getTranslations()
Text translation responses with no glossary applied.
|
| Modifier and Type | Method and Description |
|---|---|
TranslateTextResponse |
TranslateTextResponse.setGlossaryTranslations(List<Translation> glossaryTranslations)
Text translation responses if a glossary is provided in the request.
|
TranslateTextResponse |
TranslateTextResponse.setTranslations(List<Translation> translations)
Text translation responses with no glossary applied.
|
Copyright © 2011–2021 Google. All rights reserved.