POGOProtos.Enums.NotificationTypeOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Enums/NotificationType.proto
package POGOProtos.Enums;
public final class NotificationTypeOuterClass {
private NotificationTypeOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code POGOProtos.Enums.NotificationType}
*/
public enum NotificationType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NO_NOTIFICATIONS = 0;
*/
NO_NOTIFICATIONS(0),
/**
* POKEMON_NOTIFICATIONS = 1;
*/
POKEMON_NOTIFICATIONS(1),
/**
* POKESTOP_NOTIFICATIONS = 2;
*/
POKESTOP_NOTIFICATIONS(2),
/**
* ALL_NOTIFICATIONS = 3;
*/
ALL_NOTIFICATIONS(3),
UNRECOGNIZED(-1),
;
/**
* NO_NOTIFICATIONS = 0;
*/
public static final int NO_NOTIFICATIONS_VALUE = 0;
/**
* POKEMON_NOTIFICATIONS = 1;
*/
public static final int POKEMON_NOTIFICATIONS_VALUE = 1;
/**
* POKESTOP_NOTIFICATIONS = 2;
*/
public static final int POKESTOP_NOTIFICATIONS_VALUE = 2;
/**
* ALL_NOTIFICATIONS = 3;
*/
public static final int ALL_NOTIFICATIONS_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NotificationType valueOf(int value) {
return forNumber(value);
}
public static NotificationType forNumber(int value) {
switch (value) {
case 0: return NO_NOTIFICATIONS;
case 1: return POKEMON_NOTIFICATIONS;
case 2: return POKESTOP_NOTIFICATIONS;
case 3: return ALL_NOTIFICATIONS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
NotificationType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public NotificationType findValueByNumber(int number) {
return NotificationType.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 POGOProtos.Enums.NotificationTypeOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final NotificationType[] VALUES = values();
public static NotificationType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private NotificationType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:POGOProtos.Enums.NotificationType)
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\'POGOProtos/Enums/NotificationType.prot" +
"o\022\020POGOProtos.Enums*v\n\020NotificationType\022" +
"\024\n\020NO_NOTIFICATIONS\020\000\022\031\n\025POKEMON_NOTIFIC" +
"ATIONS\020\001\022\032\n\026POKESTOP_NOTIFICATIONS\020\002\022\025\n\021" +
"ALL_NOTIFICATIONS\020\003b\006proto3"
};
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)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy