Class HttpTranslateRpc (2.64.0)

public class HttpTranslateRpc implements TranslateRpc

Inheritance

java.lang.Object > HttpTranslateRpc

Implements

TranslateRpc

Constructors

HttpTranslateRpc(TranslateOptions options)

public HttpTranslateRpc(TranslateOptions options)
Parameter
Name Description
options TranslateOptions

Methods

detect(List texts)

public List> detect(List texts)

Detects the language of the provided texts.

Parameter
Name Description
texts List<String>
Returns
Type Description
List<List<com.google.api.services.translate.model.DetectionsResourceItems>>

listSupportedLanguages(Map optionMap)

public List listSupportedLanguages(Map.Option,?> optionMap)

Returns a list of the languages supported by Google Translation.

Parameter
Name Description
optionMap Map<Option,?>
Returns
Type Description
List<com.google.api.services.translate.model.LanguagesResource>

translate(List texts, Map optionMap)

public List translate(List texts, Map.Option,?> optionMap)

Translates the provided texts.

Parameters
Name Description
texts List<String>
optionMap Map<Option,?>
Returns
Type Description
List<com.google.api.services.translate.model.TranslationsResource>