com.pingcap.tidb.tipb.Endian Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: select.proto
package com.pingcap.tidb.tipb;
/**
* Protobuf enum {@code tipb.Endian}
*/
public enum Endian
implements com.google.protobuf.ProtocolMessageEnum {
/**
* LittleEndian = 0;
*/
LittleEndian(0),
/**
* BigEndian = 1;
*/
BigEndian(1),
;
/**
* LittleEndian = 0;
*/
public static final int LittleEndian_VALUE = 0;
/**
* BigEndian = 1;
*/
public static final int BigEndian_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Endian valueOf(int value) {
return forNumber(value);
}
public static Endian forNumber(int value) {
switch (value) {
case 0: return LittleEndian;
case 1: return BigEndian;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Endian> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Endian findValueByNumber(int number) {
return Endian.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
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 com.pingcap.tidb.tipb.Select.getDescriptor().getEnumTypes().get(1);
}
private static final Endian[] VALUES = values();
public static Endian valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Endian(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:tipb.Endian)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy