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