Package | Description |
---|---|
com.google.cloud.translate |
A client for Cloud Translation - Fast, dynamic translation.
|
Modifier and Type | Method and Description |
---|---|
static Translate.TranslateOption |
Translate.TranslateOption.format(String format)
Sets the format of the source text, in either HTML (default) or plain-text.
|
static Translate.TranslateOption |
Translate.TranslateOption.model(String model)
Sets the language translation model.
|
static Translate.TranslateOption |
Translate.TranslateOption.sourceLanguage(String sourceLanguage)
Returns an option for setting the source language.
|
static Translate.TranslateOption |
Translate.TranslateOption.targetLanguage(String targetLanguage)
Returns an option for setting the target language.
|
Modifier and Type | Method and Description |
---|---|
List<Translation> |
Translate.translate(List<String> texts,
Translate.TranslateOption... options)
Translates the provided texts.
|
Translation |
Translate.translate(String text,
Translate.TranslateOption... options)
Translates the provided text.
|
Copyright © 2022 Google LLC. All rights reserved.