com.pingcap.tidb.tipb.ChecksumScanOn Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: checksum.proto
package com.pingcap.tidb.tipb;
/**
* Protobuf enum {@code tipb.ChecksumScanOn}
*/
public enum ChecksumScanOn
implements com.google.protobuf.ProtocolMessageEnum {
/**
* Table = 0;
*/
Table(0),
/**
* Index = 1;
*/
Index(1),
;
/**
* Table = 0;
*/
public static final int Table_VALUE = 0;
/**
* Index = 1;
*/
public static final int Index_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ChecksumScanOn valueOf(int value) {
return forNumber(value);
}
public static ChecksumScanOn forNumber(int value) {
switch (value) {
case 0: return Table;
case 1: return Index;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ChecksumScanOn> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ChecksumScanOn findValueByNumber(int number) {
return ChecksumScanOn.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.Checksum.getDescriptor().getEnumTypes().get(0);
}
private static final ChecksumScanOn[] VALUES = values();
public static ChecksumScanOn 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 ChecksumScanOn(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:tipb.ChecksumScanOn)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy