// Generated by the protocol buffer compiler. DO NOT EDIT! // source: PlayerLogoutReason.proto package emu.grasscutter.net.proto; public final class PlayerLogoutReasonOuterClass { private PlayerLogoutReasonOuterClass() {} 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 PlayerLogoutReason} */ public enum PlayerLogoutReason implements com.google.protobuf.ProtocolMessageEnum { /** * DISCONNECT = 0; */ DISCONNECT(0), /** * CLIENT_REQ = 1; */ CLIENT_REQ(1), /** * TIMEOUT = 2; */ TIMEOUT(2), /** * ADMIN_REQ = 3; */ ADMIN_REQ(3), /** * SERVER_CLOSE = 4; */ SERVER_CLOSE(4), /** * GM_CLEAR = 5; */ GM_CLEAR(5), /** * PLAYER_TRANSFER = 6; */ PLAYER_TRANSFER(6), /** * CLIENT_CHECKSUM_INVALID = 7; */ CLIENT_CHECKSUM_INVALID(7), /** * MUIP_MOVE_SAVE_WAIT = 8; */ MUIP_MOVE_SAVE_WAIT(8), UNRECOGNIZED(-1), ; /** * DISCONNECT = 0; */ public static final int DISCONNECT_VALUE = 0; /** * CLIENT_REQ = 1; */ public static final int CLIENT_REQ_VALUE = 1; /** * TIMEOUT = 2; */ public static final int TIMEOUT_VALUE = 2; /** * ADMIN_REQ = 3; */ public static final int ADMIN_REQ_VALUE = 3; /** * SERVER_CLOSE = 4; */ public static final int SERVER_CLOSE_VALUE = 4; /** * GM_CLEAR = 5; */ public static final int GM_CLEAR_VALUE = 5; /** * PLAYER_TRANSFER = 6; */ public static final int PLAYER_TRANSFER_VALUE = 6; /** * CLIENT_CHECKSUM_INVALID = 7; */ public static final int CLIENT_CHECKSUM_INVALID_VALUE = 7; /** * MUIP_MOVE_SAVE_WAIT = 8; */ public static final int MUIP_MOVE_SAVE_WAIT_VALUE = 8; 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 PlayerLogoutReason 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 PlayerLogoutReason forNumber(int value) { switch (value) { case 0: return DISCONNECT; case 1: return CLIENT_REQ; case 2: return TIMEOUT; case 3: return ADMIN_REQ; case 4: return SERVER_CLOSE; case 5: return GM_CLEAR; case 6: return PLAYER_TRANSFER; case 7: return CLIENT_CHECKSUM_INVALID; case 8: return MUIP_MOVE_SAVE_WAIT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PlayerLogoutReason> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PlayerLogoutReason findValueByNumber(int number) { return PlayerLogoutReason.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.PlayerLogoutReasonOuterClass.getDescriptor().getEnumTypes().get(0); } private static final PlayerLogoutReason[] VALUES = values(); public static PlayerLogoutReason 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 PlayerLogoutReason(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:PlayerLogoutReason) } public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\030PlayerLogoutReason.proto*\273\001\n\022PlayerLog" + "outReason\022\016\n\nDISCONNECT\020\000\022\016\n\nCLIENT_REQ\020" + "\001\022\013\n\007TIMEOUT\020\002\022\r\n\tADMIN_REQ\020\003\022\020\n\014SERVER_" + "CLOSE\020\004\022\014\n\010GM_CLEAR\020\005\022\023\n\017PLAYER_TRANSFER" + "\020\006\022\033\n\027CLIENT_CHECKSUM_INVALID\020\007\022\027\n\023MUIP_" + "MOVE_SAVE_WAIT\020\010B\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) }