mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-05-08 21:15:54 +08:00
238 lines
7.4 KiB
Java
238 lines
7.4 KiB
Java
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: GCGEndReason.proto
|
|
|
|
package emu.grasscutter.net.proto;
|
|
|
|
public final class GCGEndReasonOuterClass {
|
|
private GCGEndReasonOuterClass() {}
|
|
public static void registerAllExtensions(
|
|
com.google.protobuf.ExtensionRegistryLite registry) {
|
|
}
|
|
|
|
public static void registerAllExtensions(
|
|
com.google.protobuf.ExtensionRegistry registry) {
|
|
registerAllExtensions(
|
|
(com.google.protobuf.ExtensionRegistryLite) registry);
|
|
}
|
|
/**
|
|
* <pre>
|
|
* Obf: PNMCCGIBCDL
|
|
* </pre>
|
|
*
|
|
* Protobuf enum {@code GCGEndReason}
|
|
*/
|
|
public enum GCGEndReason
|
|
implements com.google.protobuf.ProtocolMessageEnum {
|
|
/**
|
|
* <code>GCG_END_REASON_DEFAULT = 0;</code>
|
|
*/
|
|
GCG_END_REASON_DEFAULT(0),
|
|
/**
|
|
* <code>GCG_END_REASON_DIE = 1;</code>
|
|
*/
|
|
GCG_END_REASON_DIE(1),
|
|
/**
|
|
* <code>GCG_END_REASON_SURRENDER = 2;</code>
|
|
*/
|
|
GCG_END_REASON_SURRENDER(2),
|
|
/**
|
|
* <code>GCG_END_REASON_DISCONNECTED = 3;</code>
|
|
*/
|
|
GCG_END_REASON_DISCONNECTED(3),
|
|
/**
|
|
* <code>GCG_END_REASON_ROUND_LIMIT = 4;</code>
|
|
*/
|
|
GCG_END_REASON_ROUND_LIMIT(4),
|
|
/**
|
|
* <code>GCG_END_REASON_GM = 5;</code>
|
|
*/
|
|
GCG_END_REASON_GM(5),
|
|
/**
|
|
* <code>GCG_END_REASON_NO_PLAYER = 6;</code>
|
|
*/
|
|
GCG_END_REASON_NO_PLAYER(6),
|
|
/**
|
|
* <code>GCG_END_REASON_GIVE_UP = 7;</code>
|
|
*/
|
|
GCG_END_REASON_GIVE_UP(7),
|
|
/**
|
|
* <code>GCG_END_REASON_INIT_TIMEOUT = 8;</code>
|
|
*/
|
|
GCG_END_REASON_INIT_TIMEOUT(8),
|
|
/**
|
|
* <code>GCG_END_REASON_EFFECT = 9;</code>
|
|
*/
|
|
GCG_END_REASON_EFFECT(9),
|
|
/**
|
|
* <code>GCG_END_REASON_EXPIRE_TIMEOUT = 10;</code>
|
|
*/
|
|
GCG_END_REASON_EXPIRE_TIMEOUT(10),
|
|
UNRECOGNIZED(-1),
|
|
;
|
|
|
|
/**
|
|
* <code>GCG_END_REASON_DEFAULT = 0;</code>
|
|
*/
|
|
public static final int GCG_END_REASON_DEFAULT_VALUE = 0;
|
|
/**
|
|
* <code>GCG_END_REASON_DIE = 1;</code>
|
|
*/
|
|
public static final int GCG_END_REASON_DIE_VALUE = 1;
|
|
/**
|
|
* <code>GCG_END_REASON_SURRENDER = 2;</code>
|
|
*/
|
|
public static final int GCG_END_REASON_SURRENDER_VALUE = 2;
|
|
/**
|
|
* <code>GCG_END_REASON_DISCONNECTED = 3;</code>
|
|
*/
|
|
public static final int GCG_END_REASON_DISCONNECTED_VALUE = 3;
|
|
/**
|
|
* <code>GCG_END_REASON_ROUND_LIMIT = 4;</code>
|
|
*/
|
|
public static final int GCG_END_REASON_ROUND_LIMIT_VALUE = 4;
|
|
/**
|
|
* <code>GCG_END_REASON_GM = 5;</code>
|
|
*/
|
|
public static final int GCG_END_REASON_GM_VALUE = 5;
|
|
/**
|
|
* <code>GCG_END_REASON_NO_PLAYER = 6;</code>
|
|
*/
|
|
public static final int GCG_END_REASON_NO_PLAYER_VALUE = 6;
|
|
/**
|
|
* <code>GCG_END_REASON_GIVE_UP = 7;</code>
|
|
*/
|
|
public static final int GCG_END_REASON_GIVE_UP_VALUE = 7;
|
|
/**
|
|
* <code>GCG_END_REASON_INIT_TIMEOUT = 8;</code>
|
|
*/
|
|
public static final int GCG_END_REASON_INIT_TIMEOUT_VALUE = 8;
|
|
/**
|
|
* <code>GCG_END_REASON_EFFECT = 9;</code>
|
|
*/
|
|
public static final int GCG_END_REASON_EFFECT_VALUE = 9;
|
|
/**
|
|
* <code>GCG_END_REASON_EXPIRE_TIMEOUT = 10;</code>
|
|
*/
|
|
public static final int GCG_END_REASON_EXPIRE_TIMEOUT_VALUE = 10;
|
|
|
|
|
|
public final int getNumber() {
|
|
if (this == UNRECOGNIZED) {
|
|
throw new java.lang.IllegalArgumentException(
|
|
"Can't get the number of an unknown enum value.");
|
|
}
|
|
return value;
|
|
}
|
|
|
|
/**
|
|
* @param value The numeric wire value of the corresponding enum entry.
|
|
* @return The enum associated with the given numeric wire value.
|
|
* @deprecated Use {@link #forNumber(int)} instead.
|
|
*/
|
|
@java.lang.Deprecated
|
|
public static GCGEndReason valueOf(int value) {
|
|
return forNumber(value);
|
|
}
|
|
|
|
/**
|
|
* @param value The numeric wire value of the corresponding enum entry.
|
|
* @return The enum associated with the given numeric wire value.
|
|
*/
|
|
public static GCGEndReason forNumber(int value) {
|
|
switch (value) {
|
|
case 0: return GCG_END_REASON_DEFAULT;
|
|
case 1: return GCG_END_REASON_DIE;
|
|
case 2: return GCG_END_REASON_SURRENDER;
|
|
case 3: return GCG_END_REASON_DISCONNECTED;
|
|
case 4: return GCG_END_REASON_ROUND_LIMIT;
|
|
case 5: return GCG_END_REASON_GM;
|
|
case 6: return GCG_END_REASON_NO_PLAYER;
|
|
case 7: return GCG_END_REASON_GIVE_UP;
|
|
case 8: return GCG_END_REASON_INIT_TIMEOUT;
|
|
case 9: return GCG_END_REASON_EFFECT;
|
|
case 10: return GCG_END_REASON_EXPIRE_TIMEOUT;
|
|
default: return null;
|
|
}
|
|
}
|
|
|
|
public static com.google.protobuf.Internal.EnumLiteMap<GCGEndReason>
|
|
internalGetValueMap() {
|
|
return internalValueMap;
|
|
}
|
|
private static final com.google.protobuf.Internal.EnumLiteMap<
|
|
GCGEndReason> internalValueMap =
|
|
new com.google.protobuf.Internal.EnumLiteMap<GCGEndReason>() {
|
|
public GCGEndReason findValueByNumber(int number) {
|
|
return GCGEndReason.forNumber(number);
|
|
}
|
|
};
|
|
|
|
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
|
getValueDescriptor() {
|
|
if (this == UNRECOGNIZED) {
|
|
throw new java.lang.IllegalStateException(
|
|
"Can't get the descriptor of an unrecognized enum value.");
|
|
}
|
|
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 emu.grasscutter.net.proto.GCGEndReasonOuterClass.getDescriptor().getEnumTypes().get(0);
|
|
}
|
|
|
|
private static final GCGEndReason[] VALUES = values();
|
|
|
|
public static GCGEndReason 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 GCGEndReason(int value) {
|
|
this.value = value;
|
|
}
|
|
|
|
// @@protoc_insertion_point(enum_scope:GCGEndReason)
|
|
}
|
|
|
|
|
|
public static com.google.protobuf.Descriptors.FileDescriptor
|
|
getDescriptor() {
|
|
return descriptor;
|
|
}
|
|
private static com.google.protobuf.Descriptors.FileDescriptor
|
|
descriptor;
|
|
static {
|
|
java.lang.String[] descriptorData = {
|
|
"\n\022GCGEndReason.proto*\321\002\n\014GCGEndReason\022\032\n" +
|
|
"\026GCG_END_REASON_DEFAULT\020\000\022\026\n\022GCG_END_REA" +
|
|
"SON_DIE\020\001\022\034\n\030GCG_END_REASON_SURRENDER\020\002\022" +
|
|
"\037\n\033GCG_END_REASON_DISCONNECTED\020\003\022\036\n\032GCG_" +
|
|
"END_REASON_ROUND_LIMIT\020\004\022\025\n\021GCG_END_REAS" +
|
|
"ON_GM\020\005\022\034\n\030GCG_END_REASON_NO_PLAYER\020\006\022\032\n" +
|
|
"\026GCG_END_REASON_GIVE_UP\020\007\022\037\n\033GCG_END_REA" +
|
|
"SON_INIT_TIMEOUT\020\010\022\031\n\025GCG_END_REASON_EFF" +
|
|
"ECT\020\t\022!\n\035GCG_END_REASON_EXPIRE_TIMEOUT\020\n" +
|
|
"B\033\n\031emu.grasscutter.net.protob\006proto3"
|
|
};
|
|
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
.internalBuildGeneratedFileFrom(descriptorData,
|
|
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
});
|
|
}
|
|
|
|
// @@protoc_insertion_point(outer_class_scope)
|
|
}
|