dev.vality.damsel.analytics.SplitUnit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of analytics-proto Show documentation
Show all versions of analytics-proto Show documentation
Generates jar artifact containing compiled thrift classes based on generated thrift IDL files
/**
* Autogenerated by Thrift Compiler (0.14.2)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package dev.vality.damsel.analytics;
/**
* В каком разбиении сервис отдаёт данные.
*
*/
@javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.14.2)", date = "2022-11-14")
public enum SplitUnit implements org.apache.thrift.TEnum {
MINUTE(0),
HOUR(1),
DAY(2),
WEEK(3),
MONTH(4),
YEAR(5);
private final int value;
private SplitUnit(int value) {
this.value = value;
}
/**
* Get the integer value of this enum value, as defined in the Thrift IDL.
*/
public int getValue() {
return value;
}
/**
* Find a the enum type by its integer value, as defined in the Thrift IDL.
* @return null if the value is not found.
*/
@org.apache.thrift.annotation.Nullable
public static SplitUnit findByValue(int value) {
switch (value) {
case 0:
return MINUTE;
case 1:
return HOUR;
case 2:
return DAY;
case 3:
return WEEK;
case 4:
return MONTH;
case 5:
return YEAR;
default:
return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy