cz.proto.IntervalUnit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: data_type.proto
package cz.proto;
/**
* Protobuf enum {@code cz.proto.IntervalUnit}
*/
public enum IntervalUnit
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NONE_INTERVAL_UNIT = 0;
*/
NONE_INTERVAL_UNIT(0),
/**
* YEAR = 1;
*/
YEAR(1),
/**
* MONTH = 2;
*/
MONTH(2),
/**
* DAY = 3;
*/
DAY(3),
/**
* HOUR = 4;
*/
HOUR(4),
/**
* MINUTE = 5;
*/
MINUTE(5),
/**
* SECOND = 6;
*/
SECOND(6),
UNRECOGNIZED(-1),
;
/**
* NONE_INTERVAL_UNIT = 0;
*/
public static final int NONE_INTERVAL_UNIT_VALUE = 0;
/**
* YEAR = 1;
*/
public static final int YEAR_VALUE = 1;
/**
* MONTH = 2;
*/
public static final int MONTH_VALUE = 2;
/**
* DAY = 3;
*/
public static final int DAY_VALUE = 3;
/**
* HOUR = 4;
*/
public static final int HOUR_VALUE = 4;
/**
* MINUTE = 5;
*/
public static final int MINUTE_VALUE = 5;
/**
* SECOND = 6;
*/
public static final int SECOND_VALUE = 6;
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 IntervalUnit 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 IntervalUnit forNumber(int value) {
switch (value) {
case 0: return NONE_INTERVAL_UNIT;
case 1: return YEAR;
case 2: return MONTH;
case 3: return DAY;
case 4: return HOUR;
case 5: return MINUTE;
case 6: return SECOND;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
IntervalUnit> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public IntervalUnit findValueByNumber(int number) {
return IntervalUnit.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 cz.proto.DataTypeOuterClass.getDescriptor().getEnumTypes().get(1);
}
private static final IntervalUnit[] VALUES = values();
public static IntervalUnit 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 IntervalUnit(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cz.proto.IntervalUnit)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy