POGOProtos.Data.Battle.BattleStateOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: POGOProtos/Data/Battle/BattleState.proto
package POGOProtos.Data.Battle;
public final class BattleStateOuterClass {
private BattleStateOuterClass() {}
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.Data.Battle.BattleState}
*/
public enum BattleState
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATE_UNSET = 0;
*/
STATE_UNSET(0),
/**
* ACTIVE = 1;
*/
ACTIVE(1),
/**
* VICTORY = 2;
*/
VICTORY(2),
/**
* DEFEATED = 3;
*/
DEFEATED(3),
/**
* TIMED_OUT = 4;
*/
TIMED_OUT(4),
UNRECOGNIZED(-1),
;
/**
* STATE_UNSET = 0;
*/
public static final int STATE_UNSET_VALUE = 0;
/**
* ACTIVE = 1;
*/
public static final int ACTIVE_VALUE = 1;
/**
* VICTORY = 2;
*/
public static final int VICTORY_VALUE = 2;
/**
* DEFEATED = 3;
*/
public static final int DEFEATED_VALUE = 3;
/**
* TIMED_OUT = 4;
*/
public static final int TIMED_OUT_VALUE = 4;
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 BattleState valueOf(int value) {
return forNumber(value);
}
public static BattleState forNumber(int value) {
switch (value) {
case 0: return STATE_UNSET;
case 1: return ACTIVE;
case 2: return VICTORY;
case 3: return DEFEATED;
case 4: return TIMED_OUT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
BattleState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public BattleState findValueByNumber(int number) {
return BattleState.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.Data.Battle.BattleStateOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final BattleState[] VALUES = values();
public static BattleState 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 BattleState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:POGOProtos.Data.Battle.BattleState)
}
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/Data/Battle/BattleState.pro" +
"to\022\026POGOProtos.Data.Battle*T\n\013BattleStat" +
"e\022\017\n\013STATE_UNSET\020\000\022\n\n\006ACTIVE\020\001\022\013\n\007VICTOR" +
"Y\020\002\022\014\n\010DEFEATED\020\003\022\r\n\tTIMED_OUT\020\004b\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