pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "NETWORK_DISCONNECT_INVALID" => Some(Self::NetworkDisconnectInvalid),
            "NETWORK_DISCONNECT_SHUTDOWN" => Some(Self::NetworkDisconnectShutdown),
            "NETWORK_DISCONNECT_DISCONNECT_BY_USER" => Some(Self::NetworkDisconnectDisconnectByUser),
            "NETWORK_DISCONNECT_DISCONNECT_BY_SERVER" => Some(Self::NetworkDisconnectDisconnectByServer),
            "NETWORK_DISCONNECT_LOST" => Some(Self::NetworkDisconnectLost),
            "NETWORK_DISCONNECT_OVERFLOW" => Some(Self::NetworkDisconnectOverflow),
            "NETWORK_DISCONNECT_STEAM_BANNED" => Some(Self::NetworkDisconnectSteamBanned),
            "NETWORK_DISCONNECT_STEAM_INUSE" => Some(Self::NetworkDisconnectSteamInuse),
            "NETWORK_DISCONNECT_STEAM_TICKET" => Some(Self::NetworkDisconnectSteamTicket),
            "NETWORK_DISCONNECT_STEAM_LOGON" => Some(Self::NetworkDisconnectSteamLogon),
            "NETWORK_DISCONNECT_STEAM_AUTHCANCELLED" => Some(Self::NetworkDisconnectSteamAuthcancelled),
            "NETWORK_DISCONNECT_STEAM_AUTHALREADYUSED" => Some(Self::NetworkDisconnectSteamAuthalreadyused),
            "NETWORK_DISCONNECT_STEAM_AUTHINVALID" => Some(Self::NetworkDisconnectSteamAuthinvalid),
            "NETWORK_DISCONNECT_STEAM_VACBANSTATE" => Some(Self::NetworkDisconnectSteamVacbanstate),
            "NETWORK_DISCONNECT_STEAM_LOGGED_IN_ELSEWHERE" => Some(Self::NetworkDisconnectSteamLoggedInElsewhere),
            "NETWORK_DISCONNECT_STEAM_VAC_CHECK_TIMEDOUT" => Some(Self::NetworkDisconnectSteamVacCheckTimedout),
            "NETWORK_DISCONNECT_STEAM_DROPPED" => Some(Self::NetworkDisconnectSteamDropped),
            "NETWORK_DISCONNECT_STEAM_OWNERSHIP" => Some(Self::NetworkDisconnectSteamOwnership),
            "NETWORK_DISCONNECT_SERVERINFO_OVERFLOW" => Some(Self::NetworkDisconnectServerinfoOverflow),
            "NETWORK_DISCONNECT_TICKMSG_OVERFLOW" => Some(Self::NetworkDisconnectTickmsgOverflow),
            "NETWORK_DISCONNECT_STRINGTABLEMSG_OVERFLOW" => Some(Self::NetworkDisconnectStringtablemsgOverflow),
            "NETWORK_DISCONNECT_DELTAENTMSG_OVERFLOW" => Some(Self::NetworkDisconnectDeltaentmsgOverflow),
            "NETWORK_DISCONNECT_TEMPENTMSG_OVERFLOW" => Some(Self::NetworkDisconnectTempentmsgOverflow),
            "NETWORK_DISCONNECT_SOUNDSMSG_OVERFLOW" => Some(Self::NetworkDisconnectSoundsmsgOverflow),
            "NETWORK_DISCONNECT_SNAPSHOTOVERFLOW" => Some(Self::NetworkDisconnectSnapshotoverflow),
            "NETWORK_DISCONNECT_SNAPSHOTERROR" => Some(Self::NetworkDisconnectSnapshoterror),
            "NETWORK_DISCONNECT_RELIABLEOVERFLOW" => Some(Self::NetworkDisconnectReliableoverflow),
            "NETWORK_DISCONNECT_BADDELTATICK" => Some(Self::NetworkDisconnectBaddeltatick),
            "NETWORK_DISCONNECT_NOMORESPLITS" => Some(Self::NetworkDisconnectNomoresplits),
            "NETWORK_DISCONNECT_TIMEDOUT" => Some(Self::NetworkDisconnectTimedout),
            "NETWORK_DISCONNECT_DISCONNECTED" => Some(Self::NetworkDisconnectDisconnected),
            "NETWORK_DISCONNECT_LEAVINGSPLIT" => Some(Self::NetworkDisconnectLeavingsplit),
            "NETWORK_DISCONNECT_DIFFERENTCLASSTABLES" => Some(Self::NetworkDisconnectDifferentclasstables),
            "NETWORK_DISCONNECT_BADRELAYPASSWORD" => Some(Self::NetworkDisconnectBadrelaypassword),
            "NETWORK_DISCONNECT_BADSPECTATORPASSWORD" => Some(Self::NetworkDisconnectBadspectatorpassword),
            "NETWORK_DISCONNECT_HLTVRESTRICTED" => Some(Self::NetworkDisconnectHltvrestricted),
            "NETWORK_DISCONNECT_NOSPECTATORS" => Some(Self::NetworkDisconnectNospectators),
            "NETWORK_DISCONNECT_HLTVUNAVAILABLE" => Some(Self::NetworkDisconnectHltvunavailable),
            "NETWORK_DISCONNECT_HLTVSTOP" => Some(Self::NetworkDisconnectHltvstop),
            "NETWORK_DISCONNECT_KICKED" => Some(Self::NetworkDisconnectKicked),
            "NETWORK_DISCONNECT_BANADDED" => Some(Self::NetworkDisconnectBanadded),
            "NETWORK_DISCONNECT_KICKBANADDED" => Some(Self::NetworkDisconnectKickbanadded),
            "NETWORK_DISCONNECT_HLTVDIRECT" => Some(Self::NetworkDisconnectHltvdirect),
            "NETWORK_DISCONNECT_PURESERVER_CLIENTEXTRA" => Some(Self::NetworkDisconnectPureserverClientextra),
            "NETWORK_DISCONNECT_PURESERVER_MISMATCH" => Some(Self::NetworkDisconnectPureserverMismatch),
            "NETWORK_DISCONNECT_USERCMD" => Some(Self::NetworkDisconnectUsercmd),
            "NETWORK_DISCONNECT_REJECTED_BY_GAME" => Some(Self::NetworkDisconnectRejectedByGame),
            "NETWORK_DISCONNECT_MESSAGE_PARSE_ERROR" => Some(Self::NetworkDisconnectMessageParseError),
            "NETWORK_DISCONNECT_INVALID_MESSAGE_ERROR" => Some(Self::NetworkDisconnectInvalidMessageError),
            "NETWORK_DISCONNECT_BAD_SERVER_PASSWORD" => Some(Self::NetworkDisconnectBadServerPassword),
            "NETWORK_DISCONNECT_DIRECT_CONNECT_RESERVATION" => Some(Self::NetworkDisconnectDirectConnectReservation),
            "NETWORK_DISCONNECT_CONNECTION_FAILURE" => Some(Self::NetworkDisconnectConnectionFailure),
            "NETWORK_DISCONNECT_NO_PEER_GROUP_HANDLERS" => Some(Self::NetworkDisconnectNoPeerGroupHandlers),
            "NETWORK_DISCONNECT_RECONNECTION" => Some(Self::NetworkDisconnectReconnection),
            "NETWORK_DISCONNECT_LOOPSHUTDOWN" => Some(Self::NetworkDisconnectLoopshutdown),
            "NETWORK_DISCONNECT_LOOPDEACTIVATE" => Some(Self::NetworkDisconnectLoopdeactivate),
            "NETWORK_DISCONNECT_HOST_ENDGAME" => Some(Self::NetworkDisconnectHostEndgame),
            "NETWORK_DISCONNECT_LOOP_LEVELLOAD_ACTIVATE" => Some(Self::NetworkDisconnectLoopLevelloadActivate),
            "NETWORK_DISCONNECT_CREATE_SERVER_FAILED" => Some(Self::NetworkDisconnectCreateServerFailed),
            "NETWORK_DISCONNECT_EXITING" => Some(Self::NetworkDisconnectExiting),
            "NETWORK_DISCONNECT_REQUEST_HOSTSTATE_IDLE" => Some(Self::NetworkDisconnectRequestHoststateIdle),
            "NETWORK_DISCONNECT_REQUEST_HOSTSTATE_HLTVRELAY" => Some(Self::NetworkDisconnectRequestHoststateHltvrelay),
            "NETWORK_DISCONNECT_CLIENT_CONSISTENCY_FAIL" => Some(Self::NetworkDisconnectClientConsistencyFail),
            "NETWORK_DISCONNECT_CLIENT_UNABLE_TO_CRC_MAP" => Some(Self::NetworkDisconnectClientUnableToCrcMap),
            "NETWORK_DISCONNECT_CLIENT_NO_MAP" => Some(Self::NetworkDisconnectClientNoMap),
            "NETWORK_DISCONNECT_CLIENT_DIFFERENT_MAP" => Some(Self::NetworkDisconnectClientDifferentMap),
            "NETWORK_DISCONNECT_SERVER_REQUIRES_STEAM" => Some(Self::NetworkDisconnectServerRequiresSteam),
            "NETWORK_DISCONNECT_STEAM_DENY_MISC" => Some(Self::NetworkDisconnectSteamDenyMisc),
            "NETWORK_DISCONNECT_STEAM_DENY_BAD_ANTI_CHEAT" => Some(Self::NetworkDisconnectSteamDenyBadAntiCheat),
            "NETWORK_DISCONNECT_SERVER_SHUTDOWN" => Some(Self::NetworkDisconnectServerShutdown),
            "NETWORK_DISCONNECT_REPLAY_INCOMPATIBLE" => Some(Self::NetworkDisconnectReplayIncompatible),
            "NETWORK_DISCONNECT_CONNECT_REQUEST_TIMEDOUT" => Some(Self::NetworkDisconnectConnectRequestTimedout),
            "NETWORK_DISCONNECT_SERVER_INCOMPATIBLE" => Some(Self::NetworkDisconnectServerIncompatible),
            "NETWORK_DISCONNECT_LOCALPROBLEM_MANYRELAYS" => Some(Self::NetworkDisconnectLocalproblemManyrelays),
            "NETWORK_DISCONNECT_LOCALPROBLEM_HOSTEDSERVERPRIMARYRELAY" => Some(Self::NetworkDisconnectLocalproblemHostedserverprimaryrelay),
            "NETWORK_DISCONNECT_LOCALPROBLEM_NETWORKCONFIG" => Some(Self::NetworkDisconnectLocalproblemNetworkconfig),
            "NETWORK_DISCONNECT_LOCALPROBLEM_OTHER" => Some(Self::NetworkDisconnectLocalproblemOther),
            "NETWORK_DISCONNECT_REMOTE_TIMEOUT" => Some(Self::NetworkDisconnectRemoteTimeout),
            "NETWORK_DISCONNECT_REMOTE_TIMEOUT_CONNECTING" => Some(Self::NetworkDisconnectRemoteTimeoutConnecting),
            "NETWORK_DISCONNECT_REMOTE_OTHER" => Some(Self::NetworkDisconnectRemoteOther),
            "NETWORK_DISCONNECT_REMOTE_BADCRYPT" => Some(Self::NetworkDisconnectRemoteBadcrypt),
            "NETWORK_DISCONNECT_REMOTE_CERTNOTTRUSTED" => Some(Self::NetworkDisconnectRemoteCertnottrusted),
            "NETWORK_DISCONNECT_UNUSUAL" => Some(Self::NetworkDisconnectUnusual),
            "NETWORK_DISCONNECT_INTERNAL_ERROR" => Some(Self::NetworkDisconnectInternalError),
            "NETWORK_DISCONNECT_REJECT_BADCHALLENGE" => Some(Self::NetworkDisconnectRejectBadchallenge),
            "NETWORK_DISCONNECT_REJECT_NOLOBBY" => Some(Self::NetworkDisconnectRejectNolobby),
            "NETWORK_DISCONNECT_REJECT_BACKGROUND_MAP" => Some(Self::NetworkDisconnectRejectBackgroundMap),
            "NETWORK_DISCONNECT_REJECT_SINGLE_PLAYER" => Some(Self::NetworkDisconnectRejectSinglePlayer),
            "NETWORK_DISCONNECT_REJECT_HIDDEN_GAME" => Some(Self::NetworkDisconnectRejectHiddenGame),
            "NETWORK_DISCONNECT_REJECT_LANRESTRICT" => Some(Self::NetworkDisconnectRejectLanrestrict),
            "NETWORK_DISCONNECT_REJECT_BADPASSWORD" => Some(Self::NetworkDisconnectRejectBadpassword),
            "NETWORK_DISCONNECT_REJECT_SERVERFULL" => Some(Self::NetworkDisconnectRejectServerfull),
            "NETWORK_DISCONNECT_REJECT_INVALIDRESERVATION" => Some(Self::NetworkDisconnectRejectInvalidreservation),
            "NETWORK_DISCONNECT_REJECT_FAILEDCHANNEL" => Some(Self::NetworkDisconnectRejectFailedchannel),
            "NETWORK_DISCONNECT_REJECT_CONNECT_FROM_LOBBY" => Some(Self::NetworkDisconnectRejectConnectFromLobby),
            "NETWORK_DISCONNECT_REJECT_RESERVED_FOR_LOBBY" => Some(Self::NetworkDisconnectRejectReservedForLobby),
            "NETWORK_DISCONNECT_REJECT_INVALIDKEYLENGTH" => Some(Self::NetworkDisconnectRejectInvalidkeylength),
            "NETWORK_DISCONNECT_REJECT_OLDPROTOCOL" => Some(Self::NetworkDisconnectRejectOldprotocol),
            "NETWORK_DISCONNECT_REJECT_NEWPROTOCOL" => Some(Self::NetworkDisconnectRejectNewprotocol),
            "NETWORK_DISCONNECT_REJECT_INVALIDCONNECTION" => Some(Self::NetworkDisconnectRejectInvalidconnection),
            "NETWORK_DISCONNECT_REJECT_INVALIDCERTLEN" => Some(Self::NetworkDisconnectRejectInvalidcertlen),
            "NETWORK_DISCONNECT_REJECT_INVALIDSTEAMCERTLEN" => Some(Self::NetworkDisconnectRejectInvalidsteamcertlen),
            "NETWORK_DISCONNECT_REJECT_STEAM" => Some(Self::NetworkDisconnectRejectSteam),
            "NETWORK_DISCONNECT_REJECT_SERVERAUTHDISABLED" => Some(Self::NetworkDisconnectRejectServerauthdisabled),
            "NETWORK_DISCONNECT_REJECT_SERVERCDKEYAUTHINVALID" => Some(Self::NetworkDisconnectRejectServercdkeyauthinvalid),
            "NETWORK_DISCONNECT_REJECT_BANNED" => Some(Self::NetworkDisconnectRejectBanned),
            "NETWORK_DISCONNECT_KICKED_TEAMKILLING" => Some(Self::NetworkDisconnectKickedTeamkilling),
            "NETWORK_DISCONNECT_KICKED_TK_START" => Some(Self::NetworkDisconnectKickedTkStart),
            "NETWORK_DISCONNECT_KICKED_UNTRUSTEDACCOUNT" => Some(Self::NetworkDisconnectKickedUntrustedaccount),
            "NETWORK_DISCONNECT_KICKED_CONVICTEDACCOUNT" => Some(Self::NetworkDisconnectKickedConvictedaccount),
            "NETWORK_DISCONNECT_KICKED_COMPETITIVECOOLDOWN" => Some(Self::NetworkDisconnectKickedCompetitivecooldown),
            "NETWORK_DISCONNECT_KICKED_TEAMHURTING" => Some(Self::NetworkDisconnectKickedTeamhurting),
            "NETWORK_DISCONNECT_KICKED_HOSTAGEKILLING" => Some(Self::NetworkDisconnectKickedHostagekilling),
            "NETWORK_DISCONNECT_KICKED_VOTEDOFF" => Some(Self::NetworkDisconnectKickedVotedoff),
            "NETWORK_DISCONNECT_KICKED_IDLE" => Some(Self::NetworkDisconnectKickedIdle),
            "NETWORK_DISCONNECT_KICKED_SUICIDE" => Some(Self::NetworkDisconnectKickedSuicide),
            "NETWORK_DISCONNECT_KICKED_NOSTEAMLOGIN" => Some(Self::NetworkDisconnectKickedNosteamlogin),
            "NETWORK_DISCONNECT_KICKED_NOSTEAMTICKET" => Some(Self::NetworkDisconnectKickedNosteamticket),
            "NETWORK_DISCONNECT_KICKED_INPUTAUTOMATION" => Some(Self::NetworkDisconnectKickedInputautomation),
            "NETWORK_DISCONNECT_KICKED_VACNETABNORMALBEHAVIOR" => Some(Self::NetworkDisconnectKickedVacnetabnormalbehavior),
            "NETWORK_DISCONNECT_KICKED_INSECURECLIENT" => Some(Self::NetworkDisconnectKickedInsecureclient),
            _ => None,
        }
    }
Creates an enum from field names used in the ProtoBuf definition.
src/csgoproto/src/protobuf.rs