Package com.google.cloud.translate
Class Translate.LanguageListOption
- java.lang.Object
-
- com.google.cloud.translate.Translate.LanguageListOption
-
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- Translate
public static class Translate.LanguageListOption extends Object
Class for specifying supported language listing options.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()static Translate.LanguageListOptiontargetLanguage(String targetLanguage)Returns an option for setting the target language.StringtoString()
-
-
-
Method Detail
-
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 byTranslateOptions.getTargetLanguage()is used. When provided, the returnedLanguage.getName()will be in the language specified by thetargetLanguagecode.- Parameters:
targetLanguage- the target language code
-
-