com.alachisoft.ncache.common.protobuf.OrderProtocol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-common Show documentation
Show all versions of nc-common Show documentation
Internal package of Alachisoft.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Order.proto
package com.alachisoft.ncache.common.protobuf;
public final class OrderProtocol {
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\013Order.proto\022%com.alachisoft.ncache.com" +
"mon.protobuf*\032\n\005Order\022\007\n\003ASC\020\000\022\010\n\004DESC\020\001" +
"B\017B\rOrderProtocol"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{
}, assigner);
}
private OrderProtocol() {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
public static void internalForceInit() {
}
public enum Order
implements com.google.protobuf.ProtocolMessageEnum {
ASC(0, 0),
DESC(1, 1),
;
private static final Order[] VALUES = {
ASC, DESC,
};
private static com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Order findValueByNumber(int number) {
return Order.valueOf(number)
;
}
};
static {
com.alachisoft.ncache.common.protobuf.OrderProtocol.getDescriptor();
}
private final int index;
private final int value;
private Order(int index, int value) {
this.index = index;
this.value = value;
}
public static Order valueOf(int value) {
switch (value) {
case 0:
return ASC;
case 1:
return DESC;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.OrderProtocol.getDescriptor().getEnumTypes().get(0);
}
public static Order 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()];
}
public final int getNumber() {
return value;
}
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
// @@protoc_insertion_point(enum_scope:com.alachisoft.ncache.common.protobuf.Order)
}
// @@protoc_insertion_point(outer_class_scope)
}