public enum Language extends Enum<Language>
This enum provides language codes to specify the language of responses from the API.
| Enum Constant and Description | 
|---|
| EN_USEnglish language code. | 
| ZH_CNChinese Simplified language code. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getValue() | 
| String | toString()Returns the string representation of the language code. | 
| static Language | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static Language[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final Language ZH_CN
public static final Language EN_US
public static Language[] values()
for (Language c : Language.values()) System.out.println(c);
public static Language valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
public String getValue()
Copyright © 2025. All rights reserved.