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 boolean
equals(Object obj)
int
hashCode()
static Translate.LanguageListOption
targetLanguage(String targetLanguage)
Returns an option for setting the target language.String
toString()
-
-
-
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 thetargetLanguage
code.- Parameters:
targetLanguage
- the target language code
-
-