Package ai.promoted.proto.common
Enum CurrencyCode
- java.lang.Object
-
- java.lang.Enum<CurrencyCode>
-
- ai.promoted.proto.common.CurrencyCode
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<CurrencyCode>
public enum CurrencyCode extends Enum<CurrencyCode> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumcommon.CurrencyCode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUDAUD = 5;BRLBRL = 20;CADCAD = 6;CHFCHF = 7;CNYCNY = 8;EUREUR = 2;GBPGBP = 4;HKDHKD = 9;INRINR = 16;JPYJPY = 3;KRWKRW = 12;MXNMXN = 15;NOKNOK = 14;NZDNZD = 10;RUBRUB = 17;SEKSEK = 11;SGDSGD = 13;TRYTRY = 19;UNKNOWN_CURRENCY_CODEUNKNOWN_CURRENCY_CODE = 0;UNRECOGNIZEDUSDUSD = 1;ZARZAR = 18;
-
Field Summary
Fields Modifier and Type Field Description static intAUD_VALUEAUD = 5;static intBRL_VALUEBRL = 20;static intCAD_VALUECAD = 6;static intCHF_VALUECHF = 7;static intCNY_VALUECNY = 8;static intEUR_VALUEEUR = 2;static intGBP_VALUEGBP = 4;static intHKD_VALUEHKD = 9;static intINR_VALUEINR = 16;static intJPY_VALUEJPY = 3;static intKRW_VALUEKRW = 12;static intMXN_VALUEMXN = 15;static intNOK_VALUENOK = 14;static intNZD_VALUENZD = 10;static intRUB_VALUERUB = 17;static intSEK_VALUESEK = 11;static intSGD_VALUESGD = 13;static intTRY_VALUETRY = 19;static intUNKNOWN_CURRENCY_CODE_VALUEUNKNOWN_CURRENCY_CODE = 0;static intUSD_VALUEUSD = 1;static intZAR_VALUEZAR = 18;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CurrencyCodeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<CurrencyCode>internalGetValueMap()static CurrencyCodevalueOf(int value)Deprecated.static CurrencyCodevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static CurrencyCodevalueOf(String name)Returns the enum constant of this type with the specified name.static CurrencyCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_CURRENCY_CODE
public static final CurrencyCode UNKNOWN_CURRENCY_CODE
UNKNOWN_CURRENCY_CODE = 0;
-
USD
public static final CurrencyCode USD
USD = 1;
-
EUR
public static final CurrencyCode EUR
EUR = 2;
-
JPY
public static final CurrencyCode JPY
JPY = 3;
-
GBP
public static final CurrencyCode GBP
GBP = 4;
-
AUD
public static final CurrencyCode AUD
AUD = 5;
-
CAD
public static final CurrencyCode CAD
CAD = 6;
-
CHF
public static final CurrencyCode CHF
CHF = 7;
-
CNY
public static final CurrencyCode CNY
CNY = 8;
-
HKD
public static final CurrencyCode HKD
HKD = 9;
-
NZD
public static final CurrencyCode NZD
NZD = 10;
-
SEK
public static final CurrencyCode SEK
SEK = 11;
-
KRW
public static final CurrencyCode KRW
KRW = 12;
-
SGD
public static final CurrencyCode SGD
SGD = 13;
-
NOK
public static final CurrencyCode NOK
NOK = 14;
-
MXN
public static final CurrencyCode MXN
MXN = 15;
-
INR
public static final CurrencyCode INR
INR = 16;
-
RUB
public static final CurrencyCode RUB
RUB = 17;
-
ZAR
public static final CurrencyCode ZAR
ZAR = 18;
-
TRY
public static final CurrencyCode TRY
TRY = 19;
-
BRL
public static final CurrencyCode BRL
BRL = 20;
-
UNRECOGNIZED
public static final CurrencyCode UNRECOGNIZED
-
-
Field Detail
-
UNKNOWN_CURRENCY_CODE_VALUE
public static final int UNKNOWN_CURRENCY_CODE_VALUE
UNKNOWN_CURRENCY_CODE = 0;- See Also:
- Constant Field Values
-
USD_VALUE
public static final int USD_VALUE
USD = 1;- See Also:
- Constant Field Values
-
EUR_VALUE
public static final int EUR_VALUE
EUR = 2;- See Also:
- Constant Field Values
-
JPY_VALUE
public static final int JPY_VALUE
JPY = 3;- See Also:
- Constant Field Values
-
GBP_VALUE
public static final int GBP_VALUE
GBP = 4;- See Also:
- Constant Field Values
-
AUD_VALUE
public static final int AUD_VALUE
AUD = 5;- See Also:
- Constant Field Values
-
CAD_VALUE
public static final int CAD_VALUE
CAD = 6;- See Also:
- Constant Field Values
-
CHF_VALUE
public static final int CHF_VALUE
CHF = 7;- See Also:
- Constant Field Values
-
CNY_VALUE
public static final int CNY_VALUE
CNY = 8;- See Also:
- Constant Field Values
-
HKD_VALUE
public static final int HKD_VALUE
HKD = 9;- See Also:
- Constant Field Values
-
NZD_VALUE
public static final int NZD_VALUE
NZD = 10;- See Also:
- Constant Field Values
-
SEK_VALUE
public static final int SEK_VALUE
SEK = 11;- See Also:
- Constant Field Values
-
KRW_VALUE
public static final int KRW_VALUE
KRW = 12;- See Also:
- Constant Field Values
-
SGD_VALUE
public static final int SGD_VALUE
SGD = 13;- See Also:
- Constant Field Values
-
NOK_VALUE
public static final int NOK_VALUE
NOK = 14;- See Also:
- Constant Field Values
-
MXN_VALUE
public static final int MXN_VALUE
MXN = 15;- See Also:
- Constant Field Values
-
INR_VALUE
public static final int INR_VALUE
INR = 16;- See Also:
- Constant Field Values
-
RUB_VALUE
public static final int RUB_VALUE
RUB = 17;- See Also:
- Constant Field Values
-
ZAR_VALUE
public static final int ZAR_VALUE
ZAR = 18;- See Also:
- Constant Field Values
-
TRY_VALUE
public static final int TRY_VALUE
TRY = 19;- See Also:
- Constant Field Values
-
BRL_VALUE
public static final int BRL_VALUE
BRL = 20;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CurrencyCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CurrencyCode c : CurrencyCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CurrencyCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static CurrencyCode valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static CurrencyCode forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<CurrencyCode> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static CurrencyCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-