ai.promoted.proto.common.CurrencyCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deliveryclient Show documentation
Show all versions of deliveryclient Show documentation
A Java Client to contact the Promoted.ai Delivery API.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/common/common.proto
package ai.promoted.proto.common;
/**
* Protobuf enum {@code common.CurrencyCode}
*/
public enum CurrencyCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN_CURRENCY_CODE = 0;
*/
UNKNOWN_CURRENCY_CODE(0),
/**
* USD = 1;
*/
USD(1),
/**
* EUR = 2;
*/
EUR(2),
/**
* JPY = 3;
*/
JPY(3),
/**
* GBP = 4;
*/
GBP(4),
/**
* AUD = 5;
*/
AUD(5),
/**
* CAD = 6;
*/
CAD(6),
/**
* CHF = 7;
*/
CHF(7),
/**
* CNY = 8;
*/
CNY(8),
/**
* HKD = 9;
*/
HKD(9),
/**
* NZD = 10;
*/
NZD(10),
/**
* SEK = 11;
*/
SEK(11),
/**
* KRW = 12;
*/
KRW(12),
/**
* SGD = 13;
*/
SGD(13),
/**
* NOK = 14;
*/
NOK(14),
/**
* MXN = 15;
*/
MXN(15),
/**
* INR = 16;
*/
INR(16),
/**
* RUB = 17;
*/
RUB(17),
/**
* ZAR = 18;
*/
ZAR(18),
/**
* TRY = 19;
*/
TRY(19),
/**
* BRL = 20;
*/
BRL(20),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN_CURRENCY_CODE = 0;
*/
public static final int UNKNOWN_CURRENCY_CODE_VALUE = 0;
/**
* USD = 1;
*/
public static final int USD_VALUE = 1;
/**
* EUR = 2;
*/
public static final int EUR_VALUE = 2;
/**
* JPY = 3;
*/
public static final int JPY_VALUE = 3;
/**
* GBP = 4;
*/
public static final int GBP_VALUE = 4;
/**
* AUD = 5;
*/
public static final int AUD_VALUE = 5;
/**
* CAD = 6;
*/
public static final int CAD_VALUE = 6;
/**
* CHF = 7;
*/
public static final int CHF_VALUE = 7;
/**
* CNY = 8;
*/
public static final int CNY_VALUE = 8;
/**
* HKD = 9;
*/
public static final int HKD_VALUE = 9;
/**
* NZD = 10;
*/
public static final int NZD_VALUE = 10;
/**
* SEK = 11;
*/
public static final int SEK_VALUE = 11;
/**
* KRW = 12;
*/
public static final int KRW_VALUE = 12;
/**
* SGD = 13;
*/
public static final int SGD_VALUE = 13;
/**
* NOK = 14;
*/
public static final int NOK_VALUE = 14;
/**
* MXN = 15;
*/
public static final int MXN_VALUE = 15;
/**
* INR = 16;
*/
public static final int INR_VALUE = 16;
/**
* RUB = 17;
*/
public static final int RUB_VALUE = 17;
/**
* ZAR = 18;
*/
public static final int ZAR_VALUE = 18;
/**
* TRY = 19;
*/
public static final int TRY_VALUE = 19;
/**
* BRL = 20;
*/
public static final int BRL_VALUE = 20;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CurrencyCode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static CurrencyCode forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_CURRENCY_CODE;
case 1: return USD;
case 2: return EUR;
case 3: return JPY;
case 4: return GBP;
case 5: return AUD;
case 6: return CAD;
case 7: return CHF;
case 8: return CNY;
case 9: return HKD;
case 10: return NZD;
case 11: return SEK;
case 12: return KRW;
case 13: return SGD;
case 14: return NOK;
case 15: return MXN;
case 16: return INR;
case 17: return RUB;
case 18: return ZAR;
case 19: return TRY;
case 20: return BRL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CurrencyCode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CurrencyCode findValueByNumber(int number) {
return CurrencyCode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return ai.promoted.proto.common.CommonProto.getDescriptor().getEnumTypes().get(0);
}
private static final CurrencyCode[] VALUES = values();
public static CurrencyCode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private CurrencyCode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:common.CurrencyCode)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy