dnet-dedup/dnet-openaire-data-protos/src/gen/java/eu/dnetlib/data/proto/TypeProtos.java

119 lines
3.7 KiB
Java

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Type.proto
package eu.dnetlib.data.proto;
public final class TypeProtos {
private TypeProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
datasource(0, 10),
organization(1, 20),
person(2, 30),
project(3, 40),
result(4, 50),
;
public static final int datasource_VALUE = 10;
public static final int organization_VALUE = 20;
public static final int person_VALUE = 30;
public static final int project_VALUE = 40;
public static final int result_VALUE = 50;
public final int getNumber() { return value; }
public static Type valueOf(int value) {
switch (value) {
case 10: return datasource;
case 20: return organization;
case 30: return person;
case 40: return project;
case 50: return result;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<Type>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<Type>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<Type>() {
public Type findValueByNumber(int number) {
return Type.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return eu.dnetlib.data.proto.TypeProtos.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = {
datasource, organization, person, project, result,
};
public static Type 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 index;
private final int value;
private Type(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:eu.dnetlib.data.proto.Type)
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\nType.proto\022\025eu.dnetlib.data.proto*M\n\004T" +
"ype\022\016\n\ndatasource\020\n\022\020\n\014organization\020\024\022\n\n" +
"\006person\020\036\022\013\n\007project\020(\022\n\n\006result\0202B#\n\025eu" +
".dnetlib.data.protoB\nTypeProtos"
};
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);
}
// @@protoc_insertion_point(outer_class_scope)
}