Class Translate.LanguageListOption (2.43.0)

public static class Translate.LanguageListOption extends Option

Class for specifying supported language listing options.

Inheritance

java.lang.Object > com.google.cloud.translate.Option > Translate.LanguageListOption

Static Methods

targetLanguage(String targetLanguage)

public static Translate.LanguageListOption targetLanguage(String targetLanguage)

Returns an option for setting the target language. If this option is not provided, the value returned by TranslateOptions#getTargetLanguage() is used. When provided, the returned Language#getName() will be in the language specified by the targetLanguage code.

Parameter
Name Description
targetLanguage String

the target language code

Returns
Type Description
Translate.LanguageListOption