POGOProtos.Enums.CentralStateOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Enums/CentralState.proto
package POGOProtos.Enums;
public final class CentralStateOuterClass {
private CentralStateOuterClass() {}
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.CentralState}
*/
public enum CentralState
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN_CENTRAL_STATE = 0;
*/
UNKNOWN_CENTRAL_STATE(0),
/**
* RESETTING = 1;
*/
RESETTING(1),
/**
* UNSUPPORTED = 2;
*/
UNSUPPORTED(2),
/**
* UNAUTHORIZED = 3;
*/
UNAUTHORIZED(3),
/**
* POWERED_OFF = 4;
*/
POWERED_OFF(4),
/**
* POWERED_ON = 5;
*/
POWERED_ON(5),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN_CENTRAL_STATE = 0;
*/
public static final int UNKNOWN_CENTRAL_STATE_VALUE = 0;
/**
* RESETTING = 1;
*/
public static final int RESETTING_VALUE = 1;
/**
* UNSUPPORTED = 2;
*/
public static final int UNSUPPORTED_VALUE = 2;
/**
* UNAUTHORIZED = 3;
*/
public static final int UNAUTHORIZED_VALUE = 3;
/**
* POWERED_OFF = 4;
*/
public static final int POWERED_OFF_VALUE = 4;
/**
* POWERED_ON = 5;
*/
public static final int POWERED_ON_VALUE = 5;
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 CentralState valueOf(int value) {
return forNumber(value);
}
public static CentralState forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_CENTRAL_STATE;
case 1: return RESETTING;
case 2: return UNSUPPORTED;
case 3: return UNAUTHORIZED;
case 4: return POWERED_OFF;
case 5: return POWERED_ON;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CentralState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CentralState findValueByNumber(int number) {
return CentralState.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.CentralStateOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final CentralState[] VALUES = values();
public static CentralState 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 CentralState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:POGOProtos.Enums.CentralState)
}
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/CentralState.proto\022\020P" +
"OGOProtos.Enums*|\n\014CentralState\022\031\n\025UNKNO" +
"WN_CENTRAL_STATE\020\000\022\r\n\tRESETTING\020\001\022\017\n\013UNS" +
"UPPORTED\020\002\022\020\n\014UNAUTHORIZED\020\003\022\017\n\013POWERED_" +
"OFF\020\004\022\016\n\nPOWERED_ON\020\005b\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