diff --git a/docs/pokerth.proto b/docs/pokerth.proto index 0193c7c4..5c7f36bd 100644 --- a/docs/pokerth.proto +++ b/docs/pokerth.proto @@ -73,23 +73,41 @@ message NetGameInfo { } required NetGameType netGameType = 2; required uint32 maxNumPlayers = 3; - optional uint32 raiseEveryHands = 4; - optional uint32 raiseEveryMinutes = 5; + enum RaiseIntervalMode { + raiseOnHandNum = 1; + raiseOnMinutes = 2; + } + required RaiseIntervalMode raiseIntervalMode = 4; + optional uint32 raiseEveryHands = 5; + optional uint32 raiseEveryMinutes = 6; enum EndRaiseMode { doubleBlinds = 1; raiseByEndValue = 2; keepLastBlind = 3; } - required EndRaiseMode endRaiseMode = 6; - optional uint32 endRaiseSmallBlindValue = 7; - required uint32 proposedGuiSpeed = 8; - required uint32 delayBetweenHands = 9; // These are seconds - required uint32 playerActionTimeout = 10; // These are seconds - required uint32 firstSmallBlind = 11; - required uint32 startMoney = 12; - repeated uint32 manualBlinds = 13 [packed = true]; + required EndRaiseMode endRaiseMode = 7; + optional uint32 endRaiseSmallBlindValue = 8; + required uint32 proposedGuiSpeed = 9; + required uint32 delayBetweenHands = 10; // These are seconds + required uint32 playerActionTimeout = 11; // These are seconds + required uint32 firstSmallBlind = 12; + required uint32 startMoney = 13; + repeated uint32 manualBlinds = 14 [packed = true]; } +// Message Part containing player result. + +message PlayerResult { + required uint32 playerId = 1; + required uint32 resultCard1 = 2; + required uint32 resultCard2 = 3; + repeated uint32 bestHandPosition = 4 [packed = true]; + required uint32 moneyWon = 5; + required uint32 playerMoney = 6; + optional uint32 cardsValue = 7; +} + + // All messages used in the network protocol. message AnnounceMessage { @@ -240,7 +258,7 @@ message SubscriptionRequestMessage { required SubscriptionAction subscriptionAction = 1; } -message JoinExistingGameRequestMessage { +message JoinExistingGameMessage { required uint32 gameId = 1; optional string password = 2; optional bool autoLeave = 3; @@ -411,7 +429,7 @@ message MyActionRequestMessage { message YourActionRejectedMessage { required uint32 gameId = 1; required NetGameState gameState = 2; - required NetPlayerAction myAction = 3; + required NetPlayerAction yourAction = 3; required uint32 yourRelativeBet = 4; enum RejectionReason { rejectedInvalidGameState = 1; @@ -461,15 +479,6 @@ message AllInShowCardsMessage { message EndOfHandShowCardsMessage { required uint32 gameId = 1; - message PlayerResult { - required uint32 playerId = 1; - required uint32 resultCard1 = 2; - required uint32 resultCard2 = 3; - repeated uint32 bestHandPosition = 4 [packed = true]; - required uint32 moneyWon = 5; - required uint32 playerMoney = 6; - optional uint32 cardsValue = 7; - } repeated PlayerResult playerResults = 2; } @@ -484,7 +493,7 @@ message ShowMyCardsRequestMessage { } message AfterHandShowCardsMessage { - required EndOfHandShowCardsMessage.PlayerResult playerResult = 1; + required PlayerResult playerResult = 1; } message EndOfGameMessage { @@ -618,7 +627,7 @@ message ResetTimeoutMessage { message ReportAvatarMessage { required uint32 reportedPlayerId = 1; - required uint32 reportedAvatarHash = 2; + required bytes reportedAvatarHash = 2; } message ReportAvatarAckMessage { @@ -647,21 +656,21 @@ message ReportGameAckMessage { message ErrorMessage { enum ErrorReason { - errorReserved = 0; - errorInitVersionNotSupported = 1; - errorInitServerFull = 2; - errorInitAuthFailure = 3; - errorInitPlayerNameInUse = 4; - errorInitInvalidPlayerName = 5; - errorInitServerMaintenance = 6; - errorInitBlocked = 7; - errorAvatarTooLarge = 8; - errorInvalidPacket = 9; - errorInvalidState = 10; - errorKickedFromServer = 11; - errorBannedFromServer = 12; - errorBlockedByServer = 13; - errorSessionTimeout = 14; + reserved = 0; + initVersionNotSupported = 1; + initServerFull = 2; + initAuthFailure = 3; + initPlayerNameInUse = 4; + initInvalidPlayerName = 5; + initServerMaintenance = 6; + initBlocked = 7; + avatarTooLarge = 8; + invalidPacket = 9; + invalidState = 10; + kickedFromServer = 11; + bannedFromServer = 12; + blockedByServer = 13; + sessionTimeout = 14; } required ErrorReason errorReason = 1; } @@ -669,77 +678,154 @@ message ErrorMessage { // The main message type (it is prefixed by 4 bytes length of the message). message PokerTHMessage { - optional AnnounceMessage announceMessage = 1; - optional InitMessage initMessage = 2; - optional AuthServerChallengeMessage authServerChallengeMessage = 3; - optional AuthClientResponseMessage authClientResponseMessage = 4; - optional AuthServerVerificationMessage authServerVerificationMessage = 5; - optional InitAckMessage initAckMessage = 6; - optional AvatarRequestMessage avatarRequestMessage = 7; - optional AvatarHeaderMessage avatarHeaderMessage = 8; - optional AvatarDataMessage avatarDataMessage = 9; - optional AvatarEndMessage avatarEndMessage = 10; - optional UnknownAvatarMessage unknownAvatarMessage = 11; - optional PlayerListMessage playerListMessage = 12; - optional GameListNewMessage gameListNewMessage = 13; - optional GameListUpdateMessage gameListUpdateMessage = 14; - optional GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 15; - optional GameListPlayerLeftMessage gameListPlayerLeftMessage = 16; - optional GameListAdminChangedMessage gameListAdminChangedMessage = 17; - optional PlayerInfoRequestMessage playerInfoRequestMessage = 18; - optional PlayerInfoReplyMessage playerInfoReplyMessage = 19; - optional SubscriptionRequestMessage subscriptionRequestMessage = 20; - optional JoinExistingGameRequestMessage joinExistingGameRequestMessage = 21; - optional JoinNewGameMessage joinNewGameMessage = 22; - optional RejoinExistingGameMessage rejoinExistingGameMessage = 23; - optional JoinGameAckMessage joinGameAckMessage = 24; - optional JoinGameFailedMessage joinGameFailedMessage = 25; - optional GamePlayerJoinedMessage gamePlayerJoinedMessage = 26; - optional GamePlayerLeftMessage gamePlayerLeftMessage = 27; - optional GameAdminChangedMessage gameAdminChangedMessage = 28; - optional RemovedFromGameMessage removedFromGameMessage = 29; - optional KickPlayerRequestMessage kickPlayerRequestMessage = 30; - optional LeaveGameRequestMessage leaveGameRequestMessage = 31; - optional InvitePlayerToGameMessage invitePlayerToGameMessage = 32; - optional InviteNotifyMessage inviteNotifyMessage = 33; - optional RejectGameInvitationMessage rejectGameInvitationMessage = 34; - optional RejectInvNotifyMessage rejectInvNotifyMessage = 35; - optional StartEventMessage startEventMessage = 36; - optional StartEventAckMessage startEventAckMessage = 37; - optional GameStartInitialMessage gameStartInitialMessage = 38; - optional GameStartRejoinMessage gameStartRejoinMessage = 39; - optional HandStartMessage handStartMessage = 40; - optional PlayersTurnMessage playersTurnMessage = 41; - optional MyActionRequestMessage myActionRequestMessage = 42; - optional YourActionRejectedMessage yourActionRejectedMessage = 43; - optional PlayersActionDoneMessage playersActionDoneMessage = 44; - optional DealFlopCardsMessage dealFlopCardsMessage = 45; - optional DealTurnCardMessage dealTurnCardMessage = 46; - optional DealRiverCardMessage dealRiverCardMessage = 47; - optional AllInShowCardsMessage allInShowCardsMessage = 48; - optional EndOfHandShowCardsMessage endOfHandShowCardsMessage = 49; - optional EndOfHandHideCardsMessage endOfHandHideCardsMessage = 50; - optional ShowMyCardsRequestMessage showMyCardsRequestMessage = 51; - optional AfterHandShowCardsMessage afterHandShowCardsMessage = 52; - optional EndOfGameMessage endOfGameMessage = 53; - optional PlayerIdChangedMessage playerIdChangedMessage = 54; - optional AskKickPlayerMessage askKickPlayerMessage = 55; - optional AskKickDeniedMessage askKickDeniedMessage = 56; - optional StartKickPetitionMessage startKickPetitionMessage = 57; - optional VoteKickRequestMessage voteKickRequestMessage = 58; - optional VoteKickReplyMessage voteKickReplyMessage = 59; - optional KickPetitionUpdateMessage kickPetitionUpdateMessage = 60; - optional EndKickPetitionMessage endKickPetitionMessage = 61; - optional StatisticsMessage statisticsMessage = 62; - optional ChatRequestMessage chatRequestMessage = 63; - optional ChatMessage chatMessage = 64; - optional ChatRejectMessage chatRejectMessage = 65; - optional DialogMessage dialogMessage = 66; - optional TimeoutWarningMessage timeoutWarningMessage = 67; - optional ResetTimeoutMessage resetTimeoutMessage = 68; - optional ReportAvatarMessage reportAvatarMessage = 69; - optional ReportAvatarAckMessage reportAvatarAckMessage = 70; - optional ReportGameMessage reportGameMessage = 71; - optional ReportGameAckMessage reportGameAckMessage = 72; - optional ErrorMessage errorMessage = 73; + enum PokerTHMessageType { + Type_AnnounceMessage = 1; + Type_InitMessage = 2; + Type_AuthServerChallengeMessage = 3; + Type_AuthClientResponseMessage = 4; + Type_AuthServerVerificationMessage = 5; + Type_InitAckMessage = 6; + Type_AvatarRequestMessage = 7; + Type_AvatarHeaderMessage = 8; + Type_AvatarDataMessage = 9; + Type_AvatarEndMessage = 10; + Type_UnknownAvatarMessage = 11; + Type_PlayerListMessage = 12; + Type_GameListNewMessage = 13; + Type_GameListUpdateMessage = 14; + Type_GameListPlayerJoinedMessage = 15; + Type_GameListPlayerLeftMessage = 16; + Type_GameListAdminChangedMessage = 17; + Type_PlayerInfoRequestMessage = 18; + Type_PlayerInfoReplyMessage = 19; + Type_SubscriptionRequestMessage = 20; + Type_JoinExistingGameMessage = 21; + Type_JoinNewGameMessage = 22; + Type_RejoinExistingGameMessage = 23; + Type_JoinGameAckMessage = 24; + Type_JoinGameFailedMessage = 25; + Type_GamePlayerJoinedMessage = 26; + Type_GamePlayerLeftMessage = 27; + Type_GameAdminChangedMessage = 28; + Type_RemovedFromGameMessage = 29; + Type_KickPlayerRequestMessage = 30; + Type_LeaveGameRequestMessage = 31; + Type_InvitePlayerToGameMessage = 32; + Type_InviteNotifyMessage = 33; + Type_RejectGameInvitationMessage = 34; + Type_RejectInvNotifyMessage = 35; + Type_StartEventMessage = 36; + Type_StartEventAckMessage = 37; + Type_GameStartInitialMessage = 38; + Type_GameStartRejoinMessage = 39; + Type_HandStartMessage = 40; + Type_PlayersTurnMessage = 41; + Type_MyActionRequestMessage = 42; + Type_YourActionRejectedMessage = 43; + Type_PlayersActionDoneMessage = 44; + Type_DealFlopCardsMessage = 45; + Type_DealTurnCardMessage = 46; + Type_DealRiverCardMessage = 47; + Type_AllInShowCardsMessage = 48; + Type_EndOfHandShowCardsMessage = 49; + Type_EndOfHandHideCardsMessage = 50; + Type_ShowMyCardsRequestMessage = 51; + Type_AfterHandShowCardsMessage = 52; + Type_EndOfGameMessage = 53; + Type_PlayerIdChangedMessage = 54; + Type_AskKickPlayerMessage = 55; + Type_AskKickDeniedMessage = 56; + Type_StartKickPetitionMessage = 57; + Type_VoteKickRequestMessage = 58; + Type_VoteKickReplyMessage = 59; + Type_KickPetitionUpdateMessage = 60; + Type_EndKickPetitionMessage = 61; + Type_StatisticsMessage = 62; + Type_ChatRequestMessage = 63; + Type_ChatMessage = 64; + Type_ChatRejectMessage = 65; + Type_DialogMessage = 66; + Type_TimeoutWarningMessage = 67; + Type_ResetTimeoutMessage = 68; + Type_ReportAvatarMessage = 69; + Type_ReportAvatarAckMessage = 70; + Type_ReportGameMessage = 71; + Type_ReportGameAckMessage = 72; + Type_ErrorMessage = 73; + } + required PokerTHMessageType messageType = 1; + + optional AnnounceMessage announceMessage = 2; + optional InitMessage initMessage = 3; + optional AuthServerChallengeMessage authServerChallengeMessage = 4; + optional AuthClientResponseMessage authClientResponseMessage = 5; + optional AuthServerVerificationMessage authServerVerificationMessage = 6; + optional InitAckMessage initAckMessage = 7; + optional AvatarRequestMessage avatarRequestMessage = 8; + optional AvatarHeaderMessage avatarHeaderMessage = 9; + optional AvatarDataMessage avatarDataMessage = 10; + optional AvatarEndMessage avatarEndMessage = 11; + optional UnknownAvatarMessage unknownAvatarMessage = 12; + optional PlayerListMessage playerListMessage = 13; + optional GameListNewMessage gameListNewMessage = 14; + optional GameListUpdateMessage gameListUpdateMessage = 15; + optional GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; + optional GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; + optional GameListAdminChangedMessage gameListAdminChangedMessage = 18; + optional PlayerInfoRequestMessage playerInfoRequestMessage = 19; + optional PlayerInfoReplyMessage playerInfoReplyMessage = 20; + optional SubscriptionRequestMessage subscriptionRequestMessage = 21; + optional JoinExistingGameMessage joinExistingGameMessage = 22; + optional JoinNewGameMessage joinNewGameMessage = 23; + optional RejoinExistingGameMessage rejoinExistingGameMessage = 24; + optional JoinGameAckMessage joinGameAckMessage = 25; + optional JoinGameFailedMessage joinGameFailedMessage = 26; + optional GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; + optional GamePlayerLeftMessage gamePlayerLeftMessage = 28; + optional GameAdminChangedMessage gameAdminChangedMessage = 29; + optional RemovedFromGameMessage removedFromGameMessage = 30; + optional KickPlayerRequestMessage kickPlayerRequestMessage = 31; + optional LeaveGameRequestMessage leaveGameRequestMessage = 32; + optional InvitePlayerToGameMessage invitePlayerToGameMessage = 33; + optional InviteNotifyMessage inviteNotifyMessage = 34; + optional RejectGameInvitationMessage rejectGameInvitationMessage = 35; + optional RejectInvNotifyMessage rejectInvNotifyMessage = 36; + optional StartEventMessage startEventMessage = 37; + optional StartEventAckMessage startEventAckMessage = 38; + optional GameStartInitialMessage gameStartInitialMessage = 39; + optional GameStartRejoinMessage gameStartRejoinMessage = 40; + optional HandStartMessage handStartMessage = 41; + optional PlayersTurnMessage playersTurnMessage = 42; + optional MyActionRequestMessage myActionRequestMessage = 43; + optional YourActionRejectedMessage yourActionRejectedMessage = 44; + optional PlayersActionDoneMessage playersActionDoneMessage = 45; + optional DealFlopCardsMessage dealFlopCardsMessage = 46; + optional DealTurnCardMessage dealTurnCardMessage = 47; + optional DealRiverCardMessage dealRiverCardMessage = 48; + optional AllInShowCardsMessage allInShowCardsMessage = 49; + optional EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; + optional EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; + optional ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; + optional AfterHandShowCardsMessage afterHandShowCardsMessage = 53; + optional EndOfGameMessage endOfGameMessage = 54; + optional PlayerIdChangedMessage playerIdChangedMessage = 55; + optional AskKickPlayerMessage askKickPlayerMessage = 56; + optional AskKickDeniedMessage askKickDeniedMessage = 57; + optional StartKickPetitionMessage startKickPetitionMessage = 58; + optional VoteKickRequestMessage voteKickRequestMessage = 59; + optional VoteKickReplyMessage voteKickReplyMessage = 60; + optional KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; + optional EndKickPetitionMessage endKickPetitionMessage = 62; + optional StatisticsMessage statisticsMessage = 63; + optional ChatRequestMessage chatRequestMessage = 64; + optional ChatMessage chatMessage = 65; + optional ChatRejectMessage chatRejectMessage = 66; + optional DialogMessage dialogMessage = 67; + optional TimeoutWarningMessage timeoutWarningMessage = 68; + optional ResetTimeoutMessage resetTimeoutMessage = 69; + optional ReportAvatarMessage reportAvatarMessage = 70; + optional ReportAvatarAckMessage reportAvatarAckMessage = 71; + optional ReportGameMessage reportGameMessage = 72; + optional ReportGameAckMessage reportGameAckMessage = 73; + optional ErrorMessage errorMessage = 74; } diff --git a/pokerth_protocol.pro b/pokerth_protocol.pro index 2a9d2575..238b8b63 100644 --- a/pokerth_protocol.pro +++ b/pokerth_protocol.pro @@ -343,6 +343,7 @@ SOURCES += src/third_party/asn1/ChatCleanerMessage.c \ src/third_party/asn1/CleanerChatType.c \ src/third_party/asn1/ChatTypePrivate.c \ src/third_party/asn1/ChatRejectMessage.c +SOURCES += src/third_party/protobuf/pokerth.pb.cc win32 { DEFINES += CURL_STATICLIB DEFINES += _WIN32_WINNT=0x0501 diff --git a/src/core/common/avatarmanager.cpp b/src/core/common/avatarmanager.cpp index 55b37660..0d05ade5 100644 --- a/src/core/common/avatarmanager.cpp +++ b/src/core/common/avatarmanager.cpp @@ -182,13 +182,12 @@ AvatarManager::AvatarFileToNetPackets(const string &fileName, unsigned requestId AvatarFileType fileType; boost::shared_ptr tmpState = OpenAvatarFileForChunkRead(fileName, fileSize, fileType); if (tmpState.get() && fileSize && fileType != AVATAR_FILE_TYPE_UNKNOWN) { - boost::shared_ptr avatarHeader(new NetPacket(NetPacket::Alloc)); - avatarHeader->GetMsg()->present = PokerTHMessage_PR_avatarReplyMessage; - AvatarReplyMessage_t *netHeader = &avatarHeader->GetMsg()->choice.avatarReplyMessage; - netHeader->requestId = requestId; - netHeader->avatarResult.present = avatarResult_PR_avatarHeader; - netHeader->avatarResult.choice.avatarHeader.avatarType = fileType; - netHeader->avatarResult.choice.avatarHeader.avatarSize = fileSize; + boost::shared_ptr avatarHeader(new NetPacket); + avatarHeader->GetMsg()->set_messagetype(PokerTHMessage::Type_AvatarHeaderMessage); + AvatarHeaderMessage *netHeader = avatarHeader->GetMsg()->mutable_avatarheadermessage(); + netHeader->set_requestid(requestId); + netHeader->set_avatartype(static_cast(fileType)); + netHeader->set_avatarsize(fileSize); packets.push_back(avatarHeader); unsigned numBytes = 0; @@ -199,15 +198,11 @@ AvatarManager::AvatarFileToNetPackets(const string &fileName, unsigned requestId if (numBytes) { totalBytesRead += numBytes; - boost::shared_ptr avatarFile(new NetPacket(NetPacket::Alloc)); - avatarFile->GetMsg()->present = PokerTHMessage_PR_avatarReplyMessage; - AvatarReplyMessage_t *netFile = &avatarFile->GetMsg()->choice.avatarReplyMessage; - netFile->requestId = requestId; - netFile->avatarResult.present = avatarResult_PR_avatarData; - OCTET_STRING_fromBuf( - &netFile->avatarResult.choice.avatarData.avatarBlock, - (const char *)&tmpData[0], - numBytes); + boost::shared_ptr avatarFile(new NetPacket); + avatarFile->GetMsg()->set_messagetype(PokerTHMessage::Type_AvatarDataMessage); + AvatarDataMessage *netFile = avatarFile->GetMsg()->mutable_avatardatamessage(); + netFile->set_requestid(requestId); + netFile->set_avatarblock((const char *)&tmpData[0], numBytes); packets.push_back(avatarFile); } } while (numBytes); @@ -215,11 +210,10 @@ AvatarManager::AvatarFileToNetPackets(const string &fileName, unsigned requestId if (fileSize != totalBytesRead) retVal = ERR_NET_WRONG_AVATAR_SIZE; else { - boost::shared_ptr avatarEnd(new NetPacket(NetPacket::Alloc)); - avatarEnd->GetMsg()->present = PokerTHMessage_PR_avatarReplyMessage; - AvatarReplyMessage_t *netEnd = &avatarEnd->GetMsg()->choice.avatarReplyMessage; - netEnd->requestId = requestId; - netEnd->avatarResult.present = avatarResult_PR_avatarEnd; + boost::shared_ptr avatarEnd(new NetPacket); + avatarEnd->GetMsg()->set_messagetype(PokerTHMessage::Type_AvatarEndMessage); + AvatarEndMessage *netEnd = avatarEnd->GetMsg()->mutable_avatarendmessage(); + netEnd->set_requestid(requestId); packets.push_back(avatarEnd); retVal = 0; } diff --git a/src/net/common/clientstate.cpp b/src/net/common/clientstate.cpp index 1eb0dfad..768919a0 100644 --- a/src/net/common/clientstate.cpp +++ b/src/net/common/clientstate.cpp @@ -527,21 +527,22 @@ AbstractClientStateReceiving::~AbstractClientStateReceiving() void AbstractClientStateReceiving::HandlePacket(boost::shared_ptr client, boost::shared_ptr tmpPacket) { - if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_playerInfoReplyMessage) { - unsigned playerId = tmpPacket->GetMsg()->choice.playerInfoReplyMessage.playerId; - if (tmpPacket->GetMsg()->choice.playerInfoReplyMessage.playerInfoResult.present == playerInfoResult_PR_playerInfoData) { + if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_PlayerInfoReplyMessage) { + const PlayerInfoReplyMessage &infoReply = tmpPacket->GetMsg()->playerinforeplymessage(); + unsigned playerId = infoReply.playerid(); + if (infoReply.has_playerinfodata()) { PlayerInfo tmpInfo; - PlayerInfoData_t *netInfo = &tmpPacket->GetMsg()->choice.playerInfoReplyMessage.playerInfoResult.choice.playerInfoData; - tmpInfo.playerName = STL_STRING_FROM_OCTET_STRING(netInfo->playerName); - tmpInfo.ptype = netInfo->isHuman ? PLAYER_TYPE_HUMAN : PLAYER_TYPE_COMPUTER; - tmpInfo.isGuest = netInfo->playerRights == PlayerInfoRights_playerRightsGuest; - if (netInfo->countryCode) { - tmpInfo.countryCode = STL_STRING_FROM_OCTET_STRING(*netInfo->countryCode); + const PlayerInfoReplyMessage::PlayerInfoData &netInfo = infoReply.playerinfodata(); + tmpInfo.playerName = netInfo.playername(); + tmpInfo.ptype = netInfo.ishuman() ? PLAYER_TYPE_HUMAN : PLAYER_TYPE_COMPUTER; + tmpInfo.isGuest = netInfo.playerrights() == playerRightsGuest; + if (netInfo.has_countrycode()) { + tmpInfo.countryCode = netInfo.countrycode(); } - if (netInfo->avatarData) { + if (netInfo.has_avatardata()) { tmpInfo.hasAvatar = true; - memcpy(tmpInfo.avatar.GetData(), netInfo->avatarData->avatar.buf, MD5_DATA_SIZE); - tmpInfo.avatarType = (AvatarFileType)netInfo->avatarData->avatarType; + memcpy(tmpInfo.avatar.GetData(), netInfo.avatardata().avatarhash().data(), MD5_DATA_SIZE); + tmpInfo.avatarType = static_cast(netInfo.avatardata().avatartype()); } client->SetPlayerInfo( playerId, @@ -549,218 +550,206 @@ AbstractClientStateReceiving::HandlePacket(boost::shared_ptr clien } else { client->SetUnknownPlayer(playerId); } - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_gamePlayerMessage) { - GamePlayerMessage_t *netGamePlayer = &tmpPacket->GetMsg()->choice.gamePlayerMessage; -// unsigned gameId = netGamePlayer->gameId; - if (netGamePlayer->gamePlayerNotification.present == gamePlayerNotification_PR_removedFromGame) { - RemovedFromGame_t *netRemoved = &netGamePlayer->gamePlayerNotification.choice.removedFromGame; + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_RemovedFromGameMessage) { + const RemovedFromGameMessage &netRemoved = tmpPacket->GetMsg()->removedfromgamemessage(); - client->ClearPlayerDataList(); - // Resubscribe Lobby messages. - client->ResubscribeLobbyMsg(); - // Show Lobby. - client->GetCallback().SignalNetClientWaitDialog(); - int removeReason; - switch (netRemoved->removedFromGameReason) { - case removedFromGameReason_kickedFromGame : + client->ClearPlayerDataList(); + // Resubscribe Lobby messages. + client->ResubscribeLobbyMsg(); + // Show Lobby. + client->GetCallback().SignalNetClientWaitDialog(); + int removeReason; + switch (netRemoved.removedfromgamereason()) { + case RemovedFromGameMessage::kickedFromGame : removeReason = NTF_NET_REMOVED_KICKED; break; - case removedFromGameReason_gameIsFull : + case RemovedFromGameMessage::gameIsFull : removeReason = NTF_NET_REMOVED_GAME_FULL; break; - case removedFromGameReason_gameIsRunning : + case RemovedFromGameMessage::gameIsRunning : removeReason = NTF_NET_REMOVED_ALREADY_RUNNING; break; - case removedFromGameReason_gameTimeout : + case RemovedFromGameMessage::gameTimeout : removeReason = NTF_NET_REMOVED_TIMEOUT; break; - case removedFromGameReason_removedStartFailed : + case RemovedFromGameMessage::removedStartFailed : removeReason = NTF_NET_REMOVED_START_FAILED; break; default : removeReason = NTF_NET_REMOVED_ON_REQUEST; break; - } - client->GetCallback().SignalNetClientRemovedFromGame(removeReason); - client->SetState(ClientStateWaitJoin::Instance()); - } else if (netGamePlayer->gamePlayerNotification.present == gamePlayerNotification_PR_gamePlayerLeft) { - // A player left the game. - GamePlayerLeft_t *netLeft = &netGamePlayer->gamePlayerNotification.choice.gamePlayerLeft; - - if (client->GetGame()) { - boost::shared_ptr tmpPlayer = client->GetGame()->getPlayerByUniqueId(netLeft->playerId); - if (tmpPlayer) { - tmpPlayer->setIsKicked(netLeft->gamePlayerLeftReason == gamePlayerLeftReason_leftKicked); - } - } - // Signal to GUI and remove from data list. - int removeReason; - switch (netLeft->gamePlayerLeftReason) { - case gamePlayerLeftReason_leftKicked : - removeReason = NTF_NET_REMOVED_KICKED; - break; - default : - removeReason = NTF_NET_REMOVED_ON_REQUEST; - break; - } - client->RemovePlayerData(netLeft->playerId, removeReason); - } else if (netGamePlayer->gamePlayerNotification.present == gamePlayerNotification_PR_gameAdminChanged) { - // New admin for the game. - GameAdminChanged_t *netChanged = &netGamePlayer->gamePlayerNotification.choice.gameAdminChanged; - - // Set new game admin and signal to GUI. - client->SetNewGameAdmin(netChanged->newAdminPlayerId); - } else if (netGamePlayer->gamePlayerNotification.present == gamePlayerNotification_PR_gamePlayerJoined) { - // Another player joined the network game. - GamePlayerJoined_t *netPlayerJoined = &netGamePlayer->gamePlayerNotification.choice.gamePlayerJoined; - - boost::shared_ptr playerData = client->CreatePlayerData(netPlayerJoined->playerId, netPlayerJoined->isGameAdmin != 0); - client->AddPlayerData(playerData); } - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_timeoutWarningMessage) { - TimeoutWarningMessage_t *tmpTimeout = &tmpPacket->GetMsg()->choice.timeoutWarningMessage; - client->GetCallback().SignalNetClientShowTimeoutDialog((NetTimeoutReason)tmpTimeout->timeoutReason, tmpTimeout->remainingSeconds); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_chatMessage) { + client->GetCallback().SignalNetClientRemovedFromGame(removeReason); + client->SetState(ClientStateWaitJoin::Instance()); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_GamePlayerLeftMessage) { + // A player left the game. + const GamePlayerLeftMessage &netLeft = tmpPacket->GetMsg()->gameplayerleftmessage(); + + if (client->GetGame()) { + boost::shared_ptr tmpPlayer = client->GetGame()->getPlayerByUniqueId(netLeft.playerid()); + if (tmpPlayer) { + tmpPlayer->setIsKicked(netLeft.gameplayerleftreason() == GamePlayerLeftMessage::leftKicked); + } + } + // Signal to GUI and remove from data list. + int removeReason; + switch (netLeft.gameplayerleftreason()) { + case GamePlayerLeftMessage::leftKicked : + removeReason = NTF_NET_REMOVED_KICKED; + break; + default : + removeReason = NTF_NET_REMOVED_ON_REQUEST; + break; + } + client->RemovePlayerData(netLeft.playerid(), removeReason); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_GameAdminChangedMessage) { + // New admin for the game. + const GameAdminChangedMessage &netChanged = tmpPacket->GetMsg()->gameadminchangedmessage(); + + // Set new game admin and signal to GUI. + client->SetNewGameAdmin(netChanged.newadminplayerid()); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_GamePlayerJoinedMessage) { + // Another player joined the network game. + const GamePlayerJoinedMessage &netPlayerJoined = tmpPacket->GetMsg()->gameplayerjoinedmessage(); + + boost::shared_ptr playerData = client->CreatePlayerData(netPlayerJoined.playerid(), netPlayerJoined.isgameadmin()); + client->AddPlayerData(playerData); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_TimeoutWarningMessage) { + const TimeoutWarningMessage &tmpTimeout = tmpPacket->GetMsg()->timeoutwarningmessage(); + client->GetCallback().SignalNetClientShowTimeoutDialog((NetTimeoutReason)tmpTimeout.timeoutreason(), tmpTimeout.remainingseconds()); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_ChatMessage) { // Chat message - display it in the GUI. - ChatMessage_t *netMessage = &tmpPacket->GetMsg()->choice.chatMessage; + const ChatMessage &netMessage = tmpPacket->GetMsg()->chatmessage(); string playerName; - if (netMessage->chatType.present == chatType_PR_chatTypeBroadcast) { - client->GetCallback().SignalNetClientGameChatMsg("(global notice)", STL_STRING_FROM_OCTET_STRING(netMessage->chatText)); - client->GetCallback().SignalNetClientLobbyChatMsg("(global notice)", STL_STRING_FROM_OCTET_STRING(netMessage->chatText)); - } else if (netMessage->chatType.present == chatType_PR_chatTypeBot) { - client->GetCallback().SignalNetClientGameChatMsg("(chat bot)", STL_STRING_FROM_OCTET_STRING(netMessage->chatText)); - client->GetCallback().SignalNetClientLobbyChatMsg("(chat bot)", STL_STRING_FROM_OCTET_STRING(netMessage->chatText)); - } else if (netMessage->chatType.present == chatType_PR_chatTypeGame) { - unsigned playerId = netMessage->chatType.choice.chatTypeGame.playerId; + if (netMessage.chattype() == ChatMessage::chatTypeBroadcast) { + client->GetCallback().SignalNetClientGameChatMsg("(global notice)", netMessage.chattext()); + client->GetCallback().SignalNetClientLobbyChatMsg("(global notice)", netMessage.chattext()); + } else if (netMessage.chattype() == ChatMessage::chatTypeBot) { + client->GetCallback().SignalNetClientGameChatMsg("(chat bot)", netMessage.chattext()); + client->GetCallback().SignalNetClientLobbyChatMsg("(chat bot)", netMessage.chattext()); + } else if (netMessage.chattype() == ChatMessage::chatTypeGame) { + unsigned playerId = netMessage.playerid(); boost::shared_ptr tmpPlayer = client->GetPlayerDataByUniqueId(playerId); if (tmpPlayer.get()) playerName = tmpPlayer->GetName(); if (!playerName.empty()) - client->GetCallback().SignalNetClientGameChatMsg(playerName, STL_STRING_FROM_OCTET_STRING(netMessage->chatText)); - } else if (netMessage->chatType.present == chatType_PR_chatTypeLobby) { - unsigned playerId = netMessage->chatType.choice.chatTypeLobby.playerId; + client->GetCallback().SignalNetClientGameChatMsg(playerName, netMessage.chattext()); + } else if (netMessage.chattype() == ChatMessage::chatTypeLobby) { + unsigned playerId = netMessage.playerid(); PlayerInfo info; if (client->GetCachedPlayerInfo(playerId, info)) - client->GetCallback().SignalNetClientLobbyChatMsg(info.playerName, STL_STRING_FROM_OCTET_STRING(netMessage->chatText)); - } else if (netMessage->chatType.present == chatType_PR_chatTypePrivate) { - unsigned playerId = netMessage->chatType.choice.chatTypeLobby.playerId; + client->GetCallback().SignalNetClientLobbyChatMsg(info.playerName, netMessage.chattext()); + } else if (netMessage.chattype() == ChatMessage::chatTypePrivate) { + unsigned playerId = netMessage.playerid(); PlayerInfo info; if (client->GetCachedPlayerInfo(playerId, info)) - client->GetCallback().SignalNetClientPrivateChatMsg(info.playerName, STL_STRING_FROM_OCTET_STRING(netMessage->chatText)); + client->GetCallback().SignalNetClientPrivateChatMsg(info.playerName, netMessage.chattext()); } - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_chatRejectMessage) { - ChatRejectMessage_t *netMessage = &tmpPacket->GetMsg()->choice.chatRejectMessage; - client->GetCallback().SignalNetClientGameChatMsg("(notice)", "Chat rejected: " + STL_STRING_FROM_OCTET_STRING(netMessage->chatText)); - client->GetCallback().SignalNetClientLobbyChatMsg("(notice)", "Chat rejected: " + STL_STRING_FROM_OCTET_STRING(netMessage->chatText)); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_dialogMessage) { + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_ChatRejectMessage) { + const ChatRejectMessage &netMessage = tmpPacket->GetMsg()->chatrejectmessage(); + client->GetCallback().SignalNetClientGameChatMsg("(notice)", "Chat rejected: " + netMessage.chattext()); + client->GetCallback().SignalNetClientLobbyChatMsg("(notice)", "Chat rejected: " + netMessage.chattext()); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_DialogMessage) { // Message box - display it in the GUI. - DialogMessage_t *netDialog = &tmpPacket->GetMsg()->choice.dialogMessage; - client->GetCallback().SignalNetClientMsgBox(STL_STRING_FROM_OCTET_STRING(netDialog->notificationText)); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_playerListMessage) { - PlayerListMessage_t *netPlayerList = &tmpPacket->GetMsg()->choice.playerListMessage; + const DialogMessage &netDialog = tmpPacket->GetMsg()->dialogmessage(); + client->GetCallback().SignalNetClientMsgBox(netDialog.notificationtext()); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_PlayerListMessage) { + const PlayerListMessage &netPlayerList = tmpPacket->GetMsg()->playerlistmessage(); - if (netPlayerList->playerListNotification == playerListNotification_playerListNew) { + if (netPlayerList.playerlistnotification() == PlayerListMessage::playerListNew) { PlayerInfo info; - if (!client->GetCachedPlayerInfo(netPlayerList->playerId, info)) { + if (!client->GetCachedPlayerInfo(netPlayerList.playerid(), info)) { // Request player info. ostringstream name; - name << "#" << netPlayerList->playerId; + name << "#" << netPlayerList.playerid(); info.playerName = name.str(); - client->RequestPlayerInfo(netPlayerList->playerId); + client->RequestPlayerInfo(netPlayerList.playerid()); } - client->GetCallback().SignalLobbyPlayerJoined(netPlayerList->playerId, info.playerName); - } else if (netPlayerList->playerListNotification == playerListNotification_playerListLeft) { - client->GetCallback().SignalLobbyPlayerLeft(netPlayerList->playerId); + client->GetCallback().SignalLobbyPlayerJoined(netPlayerList.playerid(), info.playerName); + } else if (netPlayerList.playerlistnotification() == PlayerListMessage::playerListLeft) { + client->GetCallback().SignalLobbyPlayerLeft(netPlayerList.playerid()); } - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_gameListMessage) { - GameListMessage_t *netGameList = &tmpPacket->GetMsg()->choice.gameListMessage; - unsigned gameId = netGameList->gameId; + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_GameListNewMessage) { + // A new game was created on the server. + const GameListNewMessage &netListNew = tmpPacket->GetMsg()->gamelistnewmessage(); - if (netGameList->gameListNotification.present == gameListNotification_PR_gameListNew) { - // A new game was created on the server. - GameListNew_t *netListNew = &netGameList->gameListNotification.choice.gameListNew; - - NonZeroId_t **playerIds = netListNew->playerIds.list.array; - unsigned numPlayers = netListNew->playerIds.list.count; - // Request player info for players if needed. - GameInfo tmpInfo; - for (unsigned i = 0; i < numPlayers; i++) { - PlayerInfo info; - unsigned playerId = *playerIds[i]; - if (!client->GetCachedPlayerInfo(playerId, info)) { - // Request player info. - client->RequestPlayerInfo(playerId); - } - tmpInfo.players.push_back(playerId); - } - tmpInfo.adminPlayerId = netListNew->adminPlayerId; - tmpInfo.isPasswordProtected = netListNew->isPrivate ? true : false; - tmpInfo.mode = static_cast(netListNew->gameMode); - tmpInfo.name = STL_STRING_FROM_OCTET_STRING(netListNew->gameInfo.gameName); - NetPacket::GetGameData(&netListNew->gameInfo, tmpInfo.data); - - client->AddGameInfo(gameId, tmpInfo); - } else if (netGameList->gameListNotification.present == gameListNotification_PR_gameListUpdate) { - // An existing game was updated on the server. - GameListUpdate_t *netListUpdate = &netGameList->gameListNotification.choice.gameListUpdate; - if (netListUpdate->gameMode == NetGameMode_gameClosed) - client->RemoveGameInfo(gameId); - else - client->UpdateGameInfoMode(gameId, static_cast(netListUpdate->gameMode)); - } else if (netGameList->gameListNotification.present == gameListNotification_PR_gameListPlayerJoined) { - GameListPlayerJoined_t *netListJoined = &netGameList->gameListNotification.choice.gameListPlayerJoined; - - client->ModifyGameInfoAddPlayer(gameId, netListJoined->playerId); - // Request player info if needed. + unsigned numPlayers = netListNew.playerids_size(); + // Request player info for players if needed. + GameInfo tmpInfo; + for (unsigned i = 0; i < numPlayers; i++) { PlayerInfo info; - if (!client->GetCachedPlayerInfo(netListJoined->playerId, info)) { - client->RequestPlayerInfo(netListJoined->playerId); + unsigned playerId = netListNew.playerids(i); + if (!client->GetCachedPlayerInfo(playerId, info)) { + // Request player info. + client->RequestPlayerInfo(playerId); } - } else if (netGameList->gameListNotification.present == gameListNotification_PR_gameListPlayerLeft) { - GameListPlayerLeft_t *netListLeft = &netGameList->gameListNotification.choice.gameListPlayerLeft; - - client->ModifyGameInfoRemovePlayer(gameId, netListLeft->playerId); - } else if (netGameList->gameListNotification.present == gameListNotification_PR_gameListAdminChanged) { - GameListAdminChanged_t *netListAdmin = &netGameList->gameListNotification.choice.gameListAdminChanged; - - client->UpdateGameInfoAdmin(gameId, netListAdmin->newAdminPlayerId); + tmpInfo.players.push_back(playerId); } - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_startKickPetitionMessage) { - StartKickPetitionMessage_t *netStartPetition = &tmpPacket->GetMsg()->choice.startKickPetitionMessage; - client->StartPetition(netStartPetition->petitionId, netStartPetition->proposingPlayerId, - netStartPetition->kickPlayerId, netStartPetition->kickTimeoutSec, netStartPetition->numVotesNeededToKick); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_kickPetitionUpdateMessage) { - KickPetitionUpdateMessage_t *netPetitionUpdate = &tmpPacket->GetMsg()->choice.kickPetitionUpdateMessage; - client->UpdatePetition(netPetitionUpdate->petitionId, netPetitionUpdate->numVotesAgainstKicking, - netPetitionUpdate->numVotesInFavourOfKicking, netPetitionUpdate->numVotesNeededToKick); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_endKickPetitionMessage) { - EndKickPetitionMessage_t *netEndPetition = &tmpPacket->GetMsg()->choice.endKickPetitionMessage; - client->EndPetition(netEndPetition->petitionId); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_avatarReplyMessage) { - AvatarReplyMessage_t *netAvatarReply = &tmpPacket->GetMsg()->choice.avatarReplyMessage; - unsigned requestId = netAvatarReply->requestId; - if (netAvatarReply->avatarResult.present == avatarResult_PR_avatarHeader) { - AvatarHeader_t *netAvatarHeader = &netAvatarReply->avatarResult.choice.avatarHeader; - client->AddTempAvatarFile(requestId, netAvatarHeader->avatarSize, static_cast(netAvatarHeader->avatarType)); - } else if (netAvatarReply->avatarResult.present == avatarResult_PR_avatarData) { - AvatarData_t *netAvatarData = &netAvatarReply->avatarResult.choice.avatarData; - vector fileData(netAvatarData->avatarBlock.size); - memcpy(&fileData[0], netAvatarData->avatarBlock.buf, netAvatarData->avatarBlock.size); - client->StoreInTempAvatarFile(requestId, fileData); - } else if (netAvatarReply->avatarResult.present == avatarResult_PR_avatarEnd) { - client->CompleteTempAvatarFile(requestId); - } else if (netAvatarReply->avatarResult.present == avatarResult_PR_unknownAvatar) { - client->SetUnknownAvatar(requestId); + tmpInfo.adminPlayerId = netListNew.adminplayerid(); + tmpInfo.isPasswordProtected = netListNew.isprivate(); + tmpInfo.mode = static_cast(netListNew.gamemode()); + tmpInfo.name = netListNew.gameinfo().gamename(); + NetPacket::GetGameData(netListNew.gameinfo(), tmpInfo.data); + + client->AddGameInfo(netListNew.gameid(), tmpInfo); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_GameListUpdateMessage) { + // An existing game was updated on the server. + const GameListUpdateMessage &netListUpdate = tmpPacket->GetMsg()->gamelistupdatemessage(); + if (netListUpdate.gamemode() == gameClosed) + client->RemoveGameInfo(netListUpdate.gameid()); + else + client->UpdateGameInfoMode(netListUpdate.gameid(), static_cast(netListUpdate.gamemode())); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_GameListPlayerJoinedMessage) { + const GameListPlayerJoinedMessage &netListJoined = tmpPacket->GetMsg()->gamelistplayerjoinedmessage(); + + client->ModifyGameInfoAddPlayer(netListJoined.gameid(), netListJoined.playerid()); + // Request player info if needed. + PlayerInfo info; + if (!client->GetCachedPlayerInfo(netListJoined.playerid(), info)) { + client->RequestPlayerInfo(netListJoined.playerid()); } - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_reportAvatarAckMessage) { - ReportAvatarAckMessage_t *netReportAck = &tmpPacket->GetMsg()->choice.reportAvatarAckMessage; + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_GameListPlayerLeftMessage) { + const GameListPlayerLeftMessage &netListLeft = tmpPacket->GetMsg()->gamelistplayerleftmessage(); + + client->ModifyGameInfoRemovePlayer(netListLeft.gameid(), netListLeft.playerid()); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_GameListAdminChangedMessage) { + const GameListAdminChangedMessage &netListAdmin = tmpPacket->GetMsg()->gamelistadminchangedmessage(); + + client->UpdateGameInfoAdmin(netListAdmin.gameid(), netListAdmin.newadminplayerid()); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_StartKickPetitionMessage) { + const StartKickPetitionMessage &netStartPetition = tmpPacket->GetMsg()->startkickpetitionmessage(); + client->StartPetition(netStartPetition.petitionid(), netStartPetition.proposingplayerid(), + netStartPetition.kickplayerid(), netStartPetition.kicktimeoutsec(), netStartPetition.numvotesneededtokick()); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_KickPetitionUpdateMessage) { + const KickPetitionUpdateMessage &netPetitionUpdate = tmpPacket->GetMsg()->kickpetitionupdatemessage(); + client->UpdatePetition(netPetitionUpdate.petitionid(), netPetitionUpdate.numvotesagainstkicking(), + netPetitionUpdate.numvotesinfavourofkicking(), netPetitionUpdate.numvotesneededtokick()); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_EndKickPetitionMessage) { + const EndKickPetitionMessage &netEndPetition = tmpPacket->GetMsg()->endkickpetitionmessage(); + client->EndPetition(netEndPetition.petitionid()); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_AvatarHeaderMessage) { + const AvatarHeaderMessage &netAvatarHeader = tmpPacket->GetMsg()->avatarheadermessage(); + client->AddTempAvatarFile(netAvatarHeader.requestid(), netAvatarHeader.avatarsize(), static_cast(netAvatarHeader.avatartype())); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_AvatarDataMessage) { + const AvatarDataMessage &netAvatarData = tmpPacket->GetMsg()->avatardatamessage(); + vector fileData(netAvatarData.avatarblock().size()); + memcpy(&fileData[0], netAvatarData.avatarblock().data(), netAvatarData.avatarblock().size()); + client->StoreInTempAvatarFile(netAvatarData.requestid(), fileData); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_AvatarEndMessage) { + const AvatarEndMessage &netAvatarEnd = tmpPacket->GetMsg()->avatarendmessage(); + client->CompleteTempAvatarFile(netAvatarEnd.requestid()); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_UnknownAvatarMessage) { + const UnknownAvatarMessage &netUnknownAvatar = tmpPacket->GetMsg()->unknownavatarmessage(); + client->SetUnknownAvatar(netUnknownAvatar.requestid()); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_ReportAvatarAckMessage) { + const ReportAvatarAckMessage &netReportAck = tmpPacket->GetMsg()->reportavatarackmessage(); unsigned msgCode; - switch (netReportAck->reportAvatarResult) { - case reportAvatarResult_avatarReportAccepted: + switch (netReportAck.reportavatarresult()) { + case ReportAvatarAckMessage::avatarReportAccepted: msgCode = MSG_NET_AVATAR_REPORT_ACCEPTED; break; - case reportAvatarResult_avatarReportDuplicate: + case ReportAvatarAckMessage::avatarReportDuplicate: msgCode = MSG_NET_AVATAR_REPORT_DUP; break; default: @@ -768,14 +757,14 @@ AbstractClientStateReceiving::HandlePacket(boost::shared_ptr clien break; } client->GetCallback().SignalNetClientMsgBox(msgCode); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_reportGameAckMessage) { - ReportGameAckMessage_t *netReportAck = &tmpPacket->GetMsg()->choice.reportGameAckMessage; + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_ReportGameAckMessage) { + const ReportGameAckMessage &netReportAck = tmpPacket->GetMsg()->reportgameackmessage(); unsigned msgCode; - switch (netReportAck->reportGameResult) { - case reportGameResult_gameReportAccepted: + switch (netReportAck.reportgameresult()) { + case ReportGameAckMessage::gameReportAccepted: msgCode = MSG_NET_GAMENAME_REPORT_ACCEPTED; break; - case reportGameResult_gameReportDuplicate: + case ReportGameAckMessage::gameReportDuplicate: msgCode = MSG_NET_GAMENAME_REPORT_DUP; break; default: @@ -783,25 +772,24 @@ AbstractClientStateReceiving::HandlePacket(boost::shared_ptr clien break; } client->GetCallback().SignalNetClientMsgBox(msgCode); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_statisticsMessage) { - StatisticsMessage_t *netStatistics = &tmpPacket->GetMsg()->choice.statisticsMessage; + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_StatisticsMessage) { + const StatisticsMessage &netStatistics = tmpPacket->GetMsg()->statisticsmessage(); - StatisticsData **statData = netStatistics->statisticsData.list.array; - unsigned numStats = netStatistics->statisticsData.list.count; + unsigned numStats = netStatistics.statisticsdata_size(); // Request player info for players if needed. - if (numStats && statData && *statData) { + if (numStats) { ServerStats tmpStats; for (unsigned i = 0; i < numStats; i++) { - if (statData[i]->statisticsType == statisticsType_statNumberOfPlayers) - tmpStats.numberOfPlayersOnServer = statData[i]->statisticsValue; + if (netStatistics.statisticsdata(i).statisticstype() == StatisticsMessage::StatisticsData::statNumberOfPlayers) + tmpStats.numberOfPlayersOnServer = netStatistics.statisticsdata(i).statisticsvalue(); } client->UpdateStatData(tmpStats); } - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_errorMessage) { + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_ErrorMessage) { // Server reported an error. - ErrorMessage_t *netError = &tmpPacket->GetMsg()->choice.errorMessage; + const ErrorMessage &netError = tmpPacket->GetMsg()->errormessage(); // Show the error. - throw ClientException(__FILE__, __LINE__, NetPacket::NetErrorToGameError(netError->errorReason), 0); + throw ClientException(__FILE__, __LINE__, NetPacket::NetErrorToGameError(netError.errorreason()), 0); } InternalHandlePacket(client, tmpPacket); @@ -839,60 +827,46 @@ ClientStateStartSession::Exit(boost::shared_ptr /*client*/) void ClientStateStartSession::InternalHandlePacket(boost::shared_ptr client, boost::shared_ptr tmpPacket) { - if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_announceMessage) { + if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_AnnounceMessage) { // Server has send announcement - check data. - AnnounceMessage_t *netAnnounce = &tmpPacket->GetMsg()->choice.announceMessage; + const AnnounceMessage &netAnnounce = tmpPacket->GetMsg()->announcemessage(); // Check current game version. - if (netAnnounce->latestGameVersion.major != POKERTH_VERSION_MAJOR - || netAnnounce->latestGameVersion.minor != POKERTH_VERSION_MINOR) { + if (netAnnounce.latestgameversion().major() != POKERTH_VERSION_MAJOR + || netAnnounce.latestgameversion().minor() != POKERTH_VERSION_MINOR) { client->GetCallback().SignalNetClientNotification(NTF_NET_NEW_RELEASE_AVAILABLE); - } else if (POKERTH_BETA_REVISION && netAnnounce->latestBetaRevision != POKERTH_BETA_REVISION) { + } else if (POKERTH_BETA_REVISION && netAnnounce.latestbetarevision() != POKERTH_BETA_REVISION) { client->GetCallback().SignalNetClientNotification(NTF_NET_OUTDATED_BETA); } ClientContext &context = client->GetContext(); // CASE 1: Authenticated login (username, challenge/response for password). - if (netAnnounce->serverType == serverType_serverTypeInternetAuth) { + if (netAnnounce.servertype() == AnnounceMessage::serverTypeInternetAuth) { client->GetCallback().SignalNetClientLoginShow(); client->SetState(ClientStateWaitEnterLogin::Instance()); } // CASE 2: Unauthenticated login (network game or dedicated server without auth backend). - else if (netAnnounce->serverType == serverType_serverTypeInternetNoAuth - || netAnnounce->serverType == serverType_serverTypeLAN) { - boost::shared_ptr init(new NetPacket(NetPacket::Alloc)); - init->GetMsg()->present = PokerTHMessage_PR_initMessage; - InitMessage_t *netInit = &init->GetMsg()->choice.initMessage; - netInit->requestedVersion.major = NET_VERSION_MAJOR; - netInit->requestedVersion.minor = NET_VERSION_MINOR; + else if (netAnnounce.servertype() == AnnounceMessage::serverTypeInternetNoAuth + || netAnnounce.servertype() == AnnounceMessage::serverTypeLAN) { + boost::shared_ptr init(new NetPacket); + init->GetMsg()->set_messagetype(PokerTHMessage::Type_InitMessage); + InitMessage *netInit = init->GetMsg()->mutable_initmessage(); + netInit->mutable_requestedversion()->set_major(NET_VERSION_MAJOR); + netInit->mutable_requestedversion()->set_minor(NET_VERSION_MINOR); + netInit->set_buildid(0); if (!context.GetSessionGuid().empty()) { - netInit->myLastSessionId = - OCTET_STRING_new_fromBuf( - &asn_DEF_OCTET_STRING, - context.GetSessionGuid().c_str(), - (int)context.GetSessionGuid().length()); + netInit->set_mylastsessionid(context.GetSessionGuid()); } if (!context.GetServerPassword().empty()) { - netInit->authServerPassword = - OCTET_STRING_new_fromBuf( - &asn_DEF_OCTET_STRING, - context.GetServerPassword().c_str(), - context.GetServerPassword().length()); + netInit->set_authserverpassword(context.GetServerPassword()); } - netInit->login.present = login_PR_unauthenticatedLogin; - UnauthenticatedLogin_t *noauthLogin = &netInit->login.choice.unauthenticatedLogin; - OCTET_STRING_fromBuf(&noauthLogin->nickName, - context.GetPlayerName().c_str(), - (int)context.GetPlayerName().length()); + netInit->set_login(InitMessage::unauthenticatedLogin); + netInit->set_nickname(context.GetPlayerName()); string avatarFile = client->GetQtToolsInterface().stringFromUtf8(context.GetAvatarFile()); if (!avatarFile.empty()) { MD5Buf tmpMD5; if (client->GetAvatarManager().GetHashForAvatar(avatarFile, tmpMD5)) { // Send MD5 hash of avatar. - noauthLogin->avatar = - OCTET_STRING_new_fromBuf( - &asn_DEF_OCTET_STRING, - (const char *)tmpMD5.GetData(), - MD5_DATA_SIZE); + netInit->set_avatarhash(tmpMD5.GetData(), MD5_DATA_SIZE); } } client->GetSender().Send(context.GetSessionData(), init); @@ -937,11 +911,11 @@ ClientStateWaitEnterLogin::Exit(boost::shared_ptr client) void ClientStateWaitEnterLogin::HandlePacket(boost::shared_ptr /*client*/, boost::shared_ptr tmpPacket) { - if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_errorMessage) { + if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_ErrorMessage) { // Server reported an error. - ErrorMessage_t *netError = &tmpPacket->GetMsg()->choice.errorMessage; + const ErrorMessage &netError = tmpPacket->GetMsg()->errormessage(); // Show the error. - throw ClientException(__FILE__, __LINE__, NetPacket::NetErrorToGameError(netError->errorReason), 0); + throw ClientException(__FILE__, __LINE__, NetPacket::NetErrorToGameError(netError.errorreason()), 0); } } @@ -952,24 +926,17 @@ ClientStateWaitEnterLogin::TimerLoop(const boost::system::error_code& ec, boost: ClientThread::LoginData loginData; if (client->GetLoginData(loginData)) { ClientContext &context = client->GetContext(); - boost::shared_ptr init(new NetPacket(NetPacket::Alloc)); - init->GetMsg()->present = PokerTHMessage_PR_initMessage; - InitMessage_t *netInit = &init->GetMsg()->choice.initMessage; - netInit->requestedVersion.major = NET_VERSION_MAJOR; - netInit->requestedVersion.minor = NET_VERSION_MINOR; + boost::shared_ptr init(new NetPacket); + init->GetMsg()->set_messagetype(PokerTHMessage::Type_InitMessage); + InitMessage *netInit = init->GetMsg()->mutable_initmessage(); + netInit->mutable_requestedversion()->set_major(NET_VERSION_MAJOR); + netInit->mutable_requestedversion()->set_minor(NET_VERSION_MINOR); + netInit->set_buildid(0); if (!context.GetSessionGuid().empty()) { - netInit->myLastSessionId = - OCTET_STRING_new_fromBuf( - &asn_DEF_OCTET_STRING, - context.GetSessionGuid().c_str(), - (int)context.GetSessionGuid().length()); + netInit->set_mylastsessionid(context.GetSessionGuid()); } if (!context.GetServerPassword().empty()) { - netInit->authServerPassword = - OCTET_STRING_new_fromBuf( - &asn_DEF_OCTET_STRING, - context.GetServerPassword().c_str(), - context.GetServerPassword().length()); + netInit->set_authserverpassword(context.GetServerPassword()); } context.SetPlayerName(loginData.userName); @@ -978,11 +945,8 @@ ClientStateWaitEnterLogin::TimerLoop(const boost::system::error_code& ec, boost: if (loginData.isGuest) { context.SetPassword(""); context.SetPlayerRights(PLAYER_RIGHTS_GUEST); - netInit->login.present = login_PR_guestLogin; - GuestLogin_t *guestLogin = &netInit->login.choice.guestLogin; - OCTET_STRING_fromBuf(&guestLogin->nickName, - context.GetPlayerName().c_str(), - (int)context.GetPlayerName().length()); + netInit->set_login(InitMessage::guestLogin); + netInit->set_nickname(context.GetPlayerName()); client->GetSender().Send(context.GetSessionData(), init); client->SetState(ClientStateWaitSession::Instance()); @@ -990,27 +954,20 @@ ClientStateWaitEnterLogin::TimerLoop(const boost::system::error_code& ec, boost: // If the player is not a guest, authenticate. else { context.SetPassword(loginData.password); - netInit->login.present = login_PR_authenticatedLogin; - AuthenticatedLogin_t *authLogin = &netInit->login.choice.authenticatedLogin; + netInit->set_login(InitMessage::authenticatedLogin); // Send authentication user data for challenge/response in init. boost::shared_ptr tmpSession = context.GetSessionData(); tmpSession->CreateClientAuthSession(client->GetAuthContext(), context.GetPlayerName(), context.GetPassword()); if (!tmpSession->AuthStep(1, "")) throw ClientException(__FILE__, __LINE__, ERR_NET_INVALID_PASSWORD, 0); string outUserData(tmpSession->AuthGetNextOutMsg()); - OCTET_STRING_fromBuf(&authLogin->clientUserData, - outUserData.c_str(), - (int)outUserData.length()); + netInit->set_clientuserdata(outUserData); string avatarFile = client->GetQtToolsInterface().stringFromUtf8(context.GetAvatarFile()); if (!avatarFile.empty()) { MD5Buf tmpMD5; if (client->GetAvatarManager().GetHashForAvatar(avatarFile, tmpMD5)) { // TODO: use sha1. - authLogin->avatar = - OCTET_STRING_new_fromBuf( - &asn_DEF_OCTET_STRING, - (const char *)tmpMD5.GetData(), - MD5_DATA_SIZE); + netInit->set_avatarhash(tmpMD5.GetData(), MD5_DATA_SIZE); } } client->GetSender().Send(context.GetSessionData(), init); @@ -1056,31 +1013,20 @@ ClientStateWaitAuthChallenge::Exit(boost::shared_ptr /*client*/) void ClientStateWaitAuthChallenge::InternalHandlePacket(boost::shared_ptr client, boost::shared_ptr tmpPacket) { - if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_authMessage) { - // Check subtype. - AuthMessage_t *netAuth = &tmpPacket->GetMsg()->choice.authMessage; - if (netAuth->present == AuthMessage_PR_authServerChallenge) { - AuthServerChallenge_t *netChallenge = &netAuth->choice.authServerChallenge; - string challengeStr = STL_STRING_FROM_OCTET_STRING(netChallenge->serverChallenge); - boost::shared_ptr tmpSession = client->GetContext().GetSessionData(); - if (!tmpSession->AuthStep(2, challengeStr.c_str())) - throw ClientException(__FILE__, __LINE__, ERR_NET_INVALID_PASSWORD, 0); - string outUserData(tmpSession->AuthGetNextOutMsg()); - - - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_authMessage; - AuthMessage_t *outAuth = &packet->GetMsg()->choice.authMessage; - outAuth->present = AuthMessage_PR_authClientResponse; - AuthClientResponse_t *outResponse = &outAuth->choice.authClientResponse; - - OCTET_STRING_fromBuf(&outResponse->clientResponse, - outUserData.c_str(), - (int)outUserData.length()); - client->GetSender().Send(tmpSession, packet); - client->SetState(ClientStateWaitAuthVerify::Instance()); - } else + if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_AuthServerChallengeMessage) { + const AuthServerChallengeMessage &netAuth = tmpPacket->GetMsg()->authserverchallengemessage(); + string challengeStr(netAuth.serverchallenge()); + boost::shared_ptr tmpSession = client->GetContext().GetSessionData(); + if (!tmpSession->AuthStep(2, challengeStr.c_str())) throw ClientException(__FILE__, __LINE__, ERR_NET_INVALID_PASSWORD, 0); + string outUserData(tmpSession->AuthGetNextOutMsg()); + + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_AuthClientResponseMessage); + AuthClientResponseMessage *outAuth = packet->GetMsg()->mutable_authclientresponsemessage(); + outAuth->set_clientresponse(outUserData); + client->GetSender().Send(tmpSession, packet); + client->SetState(ClientStateWaitAuthVerify::Instance()); } } @@ -1114,19 +1060,15 @@ ClientStateWaitAuthVerify::Exit(boost::shared_ptr /*client*/) void ClientStateWaitAuthVerify::InternalHandlePacket(boost::shared_ptr client, boost::shared_ptr tmpPacket) { - if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_authMessage) { + if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_AuthServerVerificationMessage) { // Check subtype. - AuthMessage_t *netAuth = &tmpPacket->GetMsg()->choice.authMessage; - if (netAuth->present == AuthMessage_PR_authServerVerification) { - AuthServerVerification_t *netVerification = &netAuth->choice.authServerVerification; - string verificationStr = STL_STRING_FROM_OCTET_STRING(netVerification->serverVerification); - boost::shared_ptr tmpSession = client->GetContext().GetSessionData(); - if (!tmpSession->AuthStep(3, verificationStr.c_str())) - throw ClientException(__FILE__, __LINE__, ERR_NET_INVALID_PASSWORD, 0); - - client->SetState(ClientStateWaitSession::Instance()); - } else + const AuthServerVerificationMessage &netAuth = tmpPacket->GetMsg()->authserververificationmessage(); + string verificationStr(netAuth.serververification()); + boost::shared_ptr tmpSession = client->GetContext().GetSessionData(); + if (!tmpSession->AuthStep(3, verificationStr.c_str())) throw ClientException(__FILE__, __LINE__, ERR_NET_INVALID_PASSWORD, 0); + + client->SetState(ClientStateWaitSession::Instance()); } } @@ -1160,26 +1102,26 @@ ClientStateWaitSession::Exit(boost::shared_ptr /*client*/) void ClientStateWaitSession::InternalHandlePacket(boost::shared_ptr client, boost::shared_ptr tmpPacket) { - if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_initAckMessage) { + if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_InitAckMessage) { // Everything is fine - we are in the lobby. - InitAckMessage_t *netInitAck = &tmpPacket->GetMsg()->choice.initAckMessage; - client->SetGuiPlayerId(netInitAck->yourPlayerId); + const InitAckMessage &netInitAck = tmpPacket->GetMsg()->initackmessage(); + client->SetGuiPlayerId(netInitAck.yourplayerid()); - client->GetContext().SetSessionGuid(STL_STRING_FROM_OCTET_STRING(netInitAck->yourSessionId)); + client->GetContext().SetSessionGuid(netInitAck.yoursessionid()); client->SetSessionEstablished(true); client->GetCallback().SignalNetClientConnect(MSG_SOCK_SESSION_DONE); - if (netInitAck->rejoinGameId) - client->GetCallback().SignalNetClientRejoinPossible(*netInitAck->rejoinGameId); + if (netInitAck.has_rejoingameid()) + client->GetCallback().SignalNetClientRejoinPossible(netInitAck.rejoingameid()); client->SetState(ClientStateWaitJoin::Instance()); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_avatarRequestMessage) { + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_AvatarRequestMessage) { // Before letting us join the lobby, the server requests our avatar. - AvatarRequestMessage_t *netAvatarRequest = &tmpPacket->GetMsg()->choice.avatarRequestMessage; + const AvatarRequestMessage &netAvatarRequest = tmpPacket->GetMsg()->avatarrequestmessage(); // TODO compare SHA1. NetPacketList tmpList; int avatarError = client->GetAvatarManager().AvatarFileToNetPackets( client->GetQtToolsInterface().stringFromUtf8(client->GetContext().GetAvatarFile()), - netAvatarRequest->requestId, + netAvatarRequest.requestid(), tmpList); if (!avatarError) @@ -1221,77 +1163,73 @@ ClientStateWaitJoin::InternalHandlePacket(boost::shared_ptr client { ClientContext &context = client->GetContext(); - if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_joinGameReplyMessage) { - JoinGameReplyMessage_t *netJoinReply = &tmpPacket->GetMsg()->choice.joinGameReplyMessage; - unsigned gameId = netJoinReply->gameId; - if (netJoinReply->joinGameResult.present == joinGameResult_PR_joinGameAck) { - // Successfully joined a game. - JoinGameAck_t *netJoinAck = &netJoinReply->joinGameResult.choice.joinGameAck; - client->SetGameId(gameId); - GameData tmpData; - NetPacket::GetGameData(&netJoinAck->gameInfo, tmpData); - client->SetGameData(tmpData); + if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_JoinGameAckMessage) { + const JoinGameAckMessage &netJoinAck = tmpPacket->GetMsg()->joingameackmessage(); + // Successfully joined a game. + client->SetGameId(netJoinAck.gameid()); + GameData tmpData; + NetPacket::GetGameData(netJoinAck.gameinfo(), tmpData); + client->SetGameData(tmpData); - // Player number is 0 on init. Will be set when the game starts. - boost::shared_ptr playerData( - new PlayerData(client->GetGuiPlayerId(), 0, PLAYER_TYPE_HUMAN, - context.GetPlayerRights(), netJoinAck->areYouGameAdmin)); - playerData->SetName(context.GetPlayerName()); - playerData->SetAvatarFile(context.GetAvatarFile()); - client->AddPlayerData(playerData); + // Player number is 0 on init. Will be set when the game starts. + boost::shared_ptr playerData( + new PlayerData(client->GetGuiPlayerId(), 0, PLAYER_TYPE_HUMAN, + context.GetPlayerRights(), netJoinAck.areyougameadmin())); + playerData->SetName(context.GetPlayerName()); + playerData->SetAvatarFile(context.GetAvatarFile()); + client->AddPlayerData(playerData); - client->GetCallback().SignalNetClientGameInfo(MSG_NET_GAME_CLIENT_JOIN); - client->SetState(ClientStateWaitGame::Instance()); - } else if (netJoinReply->joinGameResult.present == joinGameResult_PR_joinGameFailed) { - // Failed to join a game. - JoinGameFailed_t *netJoinFailed = &netJoinReply->joinGameResult.choice.joinGameFailed; + client->GetCallback().SignalNetClientGameInfo(MSG_NET_GAME_CLIENT_JOIN); + client->SetState(ClientStateWaitGame::Instance()); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_JoinGameFailedMessage) { + // Failed to join a game. + const JoinGameFailedMessage &netJoinFailed = tmpPacket->GetMsg()->joingamefailedmessage(); - int failureCode; - switch (netJoinFailed->joinGameFailureReason) { - case joinGameFailureReason_invalidGame : - failureCode = NTF_NET_JOIN_GAME_INVALID; - break; - case joinGameFailureReason_gameIsFull : - failureCode = NTF_NET_JOIN_GAME_FULL; - break; - case joinGameFailureReason_gameIsRunning : - failureCode = NTF_NET_JOIN_ALREADY_RUNNING; - break; - case joinGameFailureReason_invalidPassword : - failureCode = NTF_NET_JOIN_INVALID_PASSWORD; - break; - case joinGameFailureReason_notAllowedAsGuest : - failureCode = NTF_NET_JOIN_GUEST_FORBIDDEN; - break; - case joinGameFailureReason_notInvited : - failureCode = NTF_NET_JOIN_NOT_INVITED; - break; - case joinGameFailureReason_gameNameInUse : - failureCode = NTF_NET_JOIN_GAME_NAME_IN_USE; - break; - case joinGameFailureReason_badGameName : - failureCode = NTF_NET_JOIN_GAME_BAD_NAME; - break; - case joinGameFailureReason_invalidSettings : - failureCode = NTF_NET_JOIN_INVALID_SETTINGS; - break; - case joinGameFailureReason_ipAddressBlocked : - failureCode = NTF_NET_JOIN_IP_BLOCKED; - break; - case joinGameFailureReason_rejoinFailed : - failureCode = NTF_NET_JOIN_REJOIN_FAILED; - break; - default : - failureCode = NTF_NET_INTERNAL; - break; - } - - client->GetCallback().SignalNetClientNotification(failureCode); + int failureCode; + switch (netJoinFailed.joingamefailurereason()) { + case JoinGameFailedMessage::invalidGame : + failureCode = NTF_NET_JOIN_GAME_INVALID; + break; + case JoinGameFailedMessage::gameIsFull : + failureCode = NTF_NET_JOIN_GAME_FULL; + break; + case JoinGameFailedMessage::gameIsRunning : + failureCode = NTF_NET_JOIN_ALREADY_RUNNING; + break; + case JoinGameFailedMessage::invalidPassword : + failureCode = NTF_NET_JOIN_INVALID_PASSWORD; + break; + case JoinGameFailedMessage::notAllowedAsGuest : + failureCode = NTF_NET_JOIN_GUEST_FORBIDDEN; + break; + case JoinGameFailedMessage::notInvited : + failureCode = NTF_NET_JOIN_NOT_INVITED; + break; + case JoinGameFailedMessage::gameNameInUse : + failureCode = NTF_NET_JOIN_GAME_NAME_IN_USE; + break; + case JoinGameFailedMessage::badGameName : + failureCode = NTF_NET_JOIN_GAME_BAD_NAME; + break; + case JoinGameFailedMessage::invalidSettings : + failureCode = NTF_NET_JOIN_INVALID_SETTINGS; + break; + case JoinGameFailedMessage::ipAddressBlocked : + failureCode = NTF_NET_JOIN_IP_BLOCKED; + break; + case JoinGameFailedMessage::rejoinFailed : + failureCode = NTF_NET_JOIN_REJOIN_FAILED; + break; + default : + failureCode = NTF_NET_INTERNAL; + break; } - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_inviteNotifyMessage) { - InviteNotifyMessage_t *netInvNotify = &tmpPacket->GetMsg()->choice.inviteNotifyMessage; - if (netInvNotify->playerIdWho == client->GetGuiPlayerId()) { - client->GetCallback().SignalSelfGameInvitation(netInvNotify->gameId, netInvNotify->playerIdByWhom); + + client->GetCallback().SignalNetClientNotification(failureCode); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_InviteNotifyMessage) { + const InviteNotifyMessage &netInvNotify = tmpPacket->GetMsg()->invitenotifymessage(); + if (netInvNotify.playeridwho() == client->GetGuiPlayerId()) { + client->GetCallback().SignalSelfGameInvitation(netInvNotify.gameid(), netInvNotify.playeridbywhom()); } } } @@ -1326,26 +1264,26 @@ ClientStateWaitGame::Exit(boost::shared_ptr /*client*/) void ClientStateWaitGame::InternalHandlePacket(boost::shared_ptr client, boost::shared_ptr tmpPacket) { - if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_startEventMessage) { - StartEventMessage_t *netStartEvent = &tmpPacket->GetMsg()->choice.startEventMessage; - if (netStartEvent->startEventType.present == startEventType_PR_rejoinEvent) { + if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_StartEventMessage) { + const StartEventMessage &netStartEvent = tmpPacket->GetMsg()->starteventmessage(); + if (netStartEvent.starteventtype() == StartEventMessage::rejoinEvent) { client->GetCallback().SignalNetClientGameInfo(MSG_NET_GAME_CLIENT_SYNCREJOIN); } else { client->GetCallback().SignalNetClientGameInfo(MSG_NET_GAME_CLIENT_SYNCSTART); } client->SetState(ClientStateSynchronizeStart::Instance()); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_inviteNotifyMessage) { - InviteNotifyMessage_t *netInvNotify = &tmpPacket->GetMsg()->choice.inviteNotifyMessage; + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_InviteNotifyMessage) { + const InviteNotifyMessage &netInvNotify = tmpPacket->GetMsg()->invitenotifymessage(); client->GetCallback().SignalPlayerGameInvitation( - netInvNotify->gameId, - netInvNotify->playerIdWho, - netInvNotify->playerIdByWhom); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_rejectInvNotifyMessage) { - RejectInvNotifyMessage_t *netRejNotify = &tmpPacket->GetMsg()->choice.rejectInvNotifyMessage; + netInvNotify.gameid(), + netInvNotify.playeridwho(), + netInvNotify.playeridbywhom()); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_RejectInvNotifyMessage) { + const RejectInvNotifyMessage &netRejNotify = tmpPacket->GetMsg()->rejectinvnotifymessage(); client->GetCallback().SignalRejectedGameInvitation( - netRejNotify->gameId, - netRejNotify->playerId, - static_cast(netRejNotify->playerRejectReason)); + netRejNotify.gameid(), + netRejNotify.playerid(), + static_cast(netRejNotify.playerrejectreason())); } } @@ -1388,10 +1326,10 @@ ClientStateSynchronizeStart::TimerLoop(const boost::system::error_code& ec, boos if (!ec && &client->GetState() == this) { if (client->IsSynchronized()) { // Acknowledge start. - boost::shared_ptr startAck(new NetPacket(NetPacket::Alloc)); - startAck->GetMsg()->present = PokerTHMessage_PR_startEventAckMessage; - StartEventAckMessage_t *netStartAck = &startAck->GetMsg()->choice.startEventAckMessage; - netStartAck->gameId = client->GetGameId(); + boost::shared_ptr startAck(new NetPacket); + startAck->GetMsg()->set_messagetype(PokerTHMessage::Type_StartEventAckMessage); + StartEventAckMessage *netStartAck = startAck->GetMsg()->mutable_starteventackmessage(); + netStartAck->set_gameid(client->GetGameId()); client->GetSender().Send(client->GetContext().GetSessionData(), startAck); // Unsubscribe lobby messages. @@ -1411,7 +1349,7 @@ ClientStateSynchronizeStart::TimerLoop(const boost::system::error_code& ec, boos void ClientStateSynchronizeStart::InternalHandlePacket(boost::shared_ptr client, boost::shared_ptr tmpPacket) { - if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_gameStartMessage) { + if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_GameStartInitialMessage) { // Try to start anyway. Terminating here is very bad because rejoin is not possible then. // Unsubscribe lobby messages. client->UnsubscribeLobbyMsg(); @@ -1451,61 +1389,63 @@ ClientStateWaitStart::Exit(boost::shared_ptr /*client*/) void ClientStateWaitStart::InternalHandlePacket(boost::shared_ptr client, boost::shared_ptr tmpPacket) { - if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_gameStartMessage) { - // Start the network game as client. - GameStartMessage_t *netGameStart = &tmpPacket->GetMsg()->choice.gameStartMessage; + if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_GameStartInitialMessage + || tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_GameStartRejoinMessage) + { + PlayerIdList tmpPlayerList; unsigned tmpHandId = 0; - StartData startData; - PlayerIdList tmpPlayerList; - startData.startDealerPlayerId = netGameStart->startDealerPlayerId; - if (netGameStart->gameStartMode.present == gameStartMode_PR_gameStartModeInitial) { - GameStartModeInitial_t *netStartModeInitial = &netGameStart->gameStartMode.choice.gameStartModeInitial; - startData.numberOfPlayers = netStartModeInitial->playerSeats.list.count; + if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_GameStartInitialMessage) { + // Start the network game as client. + const GameStartInitialMessage &netStartModeInitial = tmpPacket->GetMsg()->gamestartinitialmessage(); + + StartData startData; + startData.startDealerPlayerId = netStartModeInitial.startdealerplayerid(); + startData.numberOfPlayers = netStartModeInitial.playerseats_size(); client->SetStartData(startData); // Set player numbers using the game start data slots. - NonZeroId_t **playerIds = netStartModeInitial->playerSeats.list.array; - unsigned numPlayers = netStartModeInitial->playerSeats.list.count; + unsigned numPlayers = netStartModeInitial.playerseats_size(); // Request player info for players if needed. - if (numPlayers && playerIds && *playerIds) { + if (numPlayers) { for (unsigned i = 0; i < numPlayers; i++) { - unsigned playerId = *playerIds[i]; + unsigned playerId = netStartModeInitial.playerseats(i); boost::shared_ptr tmpPlayer = client->GetPlayerDataByUniqueId(playerId); if (!tmpPlayer) throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); tmpPlayer->SetNumber(i); } - } else + } else { throw ClientException(__FILE__, __LINE__, ERR_NET_INVALID_PLAYER_COUNT, 0); - } else if (netGameStart->gameStartMode.present == gameStartMode_PR_gameStartModeRejoin) { - GameStartModeRejoin_t *netStartModeRejoin = &netGameStart->gameStartMode.choice.gameStartModeRejoin; - startData.numberOfPlayers = netStartModeRejoin->rejoinPlayerData.list.count; + } + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_GameStartRejoinMessage) { + const GameStartRejoinMessage &netStartModeRejoin = tmpPacket->GetMsg()->gamestartrejoinmessage(); + + StartData startData; + startData.startDealerPlayerId = netStartModeRejoin.startdealerplayerid(); + startData.numberOfPlayers = netStartModeRejoin.rejoinplayerdata_size(); client->SetStartData(startData); + tmpHandId = netStartModeRejoin.handnum(); // Set player numbers using the game start data slots. - RejoinPlayerData_t **playerInfos = netStartModeRejoin->rejoinPlayerData.list.array; - unsigned numPlayers = netStartModeRejoin->rejoinPlayerData.list.count; - tmpHandId = netStartModeRejoin->handNum; + unsigned numPlayers = netStartModeRejoin.rejoinplayerdata_size(); // Request player info for players if needed. - if (numPlayers && playerInfos && *playerInfos) { + if (numPlayers) { for (unsigned i = 0; i < numPlayers; i++) { - RejoinPlayerData_t *playerData = playerInfos[i]; - boost::shared_ptr tmpPlayer = client->GetPlayerDataByUniqueId(playerData->playerId); + const GameStartRejoinMessage::RejoinPlayerData &playerData = netStartModeRejoin.rejoinplayerdata(i); + boost::shared_ptr tmpPlayer = client->GetPlayerDataByUniqueId(playerData.playerid()); if (!tmpPlayer) { // If the player is not found: The corresponding session left. We need to create a generic player object. // In order to have a complete seat list, we need all players, even those who left. - tmpPlayer = client->CreatePlayerData(playerData->playerId, false); + tmpPlayer = client->CreatePlayerData(playerData.playerid(), false); client->AddPlayerData(tmpPlayer); - tmpPlayerList.push_back(playerData->playerId); + tmpPlayerList.push_back(playerData.playerid()); } tmpPlayer->SetNumber(i); - tmpPlayer->SetStartCash(playerData->playerMoney); + tmpPlayer->SetStartCash(playerData.playermoney()); } } else throw ClientException(__FILE__, __LINE__, ERR_NET_INVALID_PLAYER_COUNT, 0); - } else { - throw ClientException(__FILE__, __LINE__, ERR_NET_INTERNAL_GAME_ERROR, 0); } client->InitGame(); client->GetGame()->setCurrentHandID(tmpHandId); @@ -1548,25 +1488,23 @@ ClientStateWaitHand::Exit(boost::shared_ptr /*client*/) void ClientStateWaitHand::InternalHandlePacket(boost::shared_ptr client, boost::shared_ptr tmpPacket) { - if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_handStartMessage) { + if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_HandStartMessage) { // Hand was started. // These are the cards. Good luck. - HandStartMessage_t *netHandStart = &tmpPacket->GetMsg()->choice.handStartMessage; + const HandStartMessage &netHandStart = tmpPacket->GetMsg()->handstartmessage(); int myCards[2]; string userPassword(client->GetContext().GetPassword()); - if (netHandStart->yourCards.present == yourCards_PR_plainCards - && userPassword.empty()) { - PlainCards_t *plainCards = &netHandStart->yourCards.choice.plainCards; - myCards[0] = (int)plainCards->plainCard1; - myCards[1] = (int)plainCards->plainCard2; - } else if (netHandStart->yourCards.present == yourCards_PR_encryptedCards - && !userPassword.empty()) { - EncryptedCards_t *encryptedCards = &netHandStart->yourCards.choice.encryptedCards; + if (netHandStart.has_plaincards() && userPassword.empty()) { + const HandStartMessage::PlainCards &plainCards = netHandStart.plaincards(); + myCards[0] = (int)plainCards.plaincard1(); + myCards[1] = (int)plainCards.plaincard2(); + } else if (netHandStart.has_encryptedcards() && !userPassword.empty()) { + const string &encryptedCards = netHandStart.encryptedcards(); string plainCards; if (!CryptHelper::AES128Decrypt((const unsigned char *)userPassword.c_str(), (unsigned)userPassword.size(), - encryptedCards->cardData.buf, - encryptedCards->cardData.size, + (const unsigned char *)encryptedCards.data(), + (unsigned)encryptedCards.size(), plainCards)) { throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); } @@ -1585,27 +1523,24 @@ ClientStateWaitHand::InternalHandlePacket(boost::shared_ptr client cardDataStream >> myCards[1]; } // Retrieve state for each seat (not based on player id). - NetPlayerState_t **seatStates = netHandStart->seatStates.list.array; - unsigned numPlayers = netHandStart->seatStates.list.count; + unsigned numPlayers = netHandStart.seatstates_size(); // Request player info for players if needed. - if (numPlayers && seatStates && *seatStates) { - for (int i = 0; i < (int)numPlayers; i++) { - NetPlayerState_t *seatState = seatStates[i]; - int numberDiff = client->GetStartData().numberOfPlayers - client->GetOrigGuiPlayerNum(); - boost::shared_ptr tmpPlayer = client->GetGame()->getPlayerByNumber((i + numberDiff) % client->GetStartData().numberOfPlayers); - if (!tmpPlayer) - throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); - switch (*seatState) { - case NetPlayerState_playerStateNormal : - tmpPlayer->setIsSessionActive(true); - break; - case NetPlayerState_playerStateSessionInactive : - tmpPlayer->setIsSessionActive(false); - break; - case NetPlayerState_playerStateNoMoney : - tmpPlayer->setMyCash(0); - break; - } + for (int i = 0; i < (int)numPlayers; i++) { + NetPlayerState seatState = netHandStart.seatstates(i); + int numberDiff = client->GetStartData().numberOfPlayers - client->GetOrigGuiPlayerNum(); + boost::shared_ptr tmpPlayer = client->GetGame()->getPlayerByNumber((i + numberDiff) % client->GetStartData().numberOfPlayers); + if (!tmpPlayer) + throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); + switch (seatState) { + case playerStateNormal : + tmpPlayer->setIsSessionActive(true); + break; + case playerStateSessionInactive : + tmpPlayer->setIsSessionActive(false); + break; + case playerStateNoMoney : + tmpPlayer->setMyCash(0); + break; } } @@ -1614,8 +1549,8 @@ ClientStateWaitHand::InternalHandlePacket(boost::shared_ptr client // Start new hand. client->GetGame()->getSeatsList()->front()->setMyCards(myCards); client->GetGame()->initHand(); - client->GetGame()->getCurrentHand()->setSmallBlind(netHandStart->smallBlind); - client->GetGame()->getCurrentHand()->getCurrentBeRo()->setMinimumRaise(2 * netHandStart->smallBlind); + client->GetGame()->getCurrentHand()->setSmallBlind(netHandStart.smallblind()); + client->GetGame()->getCurrentHand()->getCurrentBeRo()->setMinimumRaise(2 * netHandStart.smallblind()); client->GetGame()->startHand(); client->GetGui().dealHoleCards(); client->GetGui().refreshGameLabels(GAME_STATE_PREFLOP); @@ -1624,12 +1559,12 @@ ClientStateWaitHand::InternalHandlePacket(boost::shared_ptr client client->GetCallback().SignalNetClientGameInfo(MSG_NET_GAME_CLIENT_HAND_START); client->SetState(ClientStateRunHand::Instance()); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_endOfGameMessage) { + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_EndOfGameMessage) { boost::shared_ptr curGame = client->GetGame(); if (curGame) { - EndOfGameMessage_t *netEndOfGame = &tmpPacket->GetMsg()->choice.endOfGameMessage; + const EndOfGameMessage &netEndOfGame = tmpPacket->GetMsg()->endofgamemessage(); - boost::shared_ptr tmpPlayer = curGame->getPlayerByUniqueId(netEndOfGame->winnerPlayerId); + boost::shared_ptr tmpPlayer = curGame->getPlayerByUniqueId(netEndOfGame.winnerplayerid()); if (!tmpPlayer) throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); client->GetGui().logPlayerWinGame(tmpPlayer->getMyName(), curGame->getMyGameID()); @@ -1640,46 +1575,47 @@ ClientStateWaitHand::InternalHandlePacket(boost::shared_ptr client client->GetCallback().SignalNetClientGameInfo(MSG_NET_GAME_CLIENT_END); client->SetState(ClientStateWaitGame::Instance()); } - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_afterHandShowCardsMessage) { - AfterHandShowCardsMessage_t *showCards = &tmpPacket->GetMsg()->choice.afterHandShowCardsMessage; - PlayerResult_t *r = &showCards->playerResult; + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_AfterHandShowCardsMessage) { + const AfterHandShowCardsMessage &showCards = tmpPacket->GetMsg()->afterhandshowcardsmessage(); + const PlayerResult &r = showCards.playerresult(); - boost::shared_ptr tmpPlayer = client->GetGame()->getPlayerByUniqueId(r->playerId); + boost::shared_ptr tmpPlayer = client->GetGame()->getPlayerByUniqueId(r.playerid()); if (!tmpPlayer) throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); int tmpCards[2]; int bestHandPos[5]; - tmpCards[0] = static_cast(r->resultCard1); - tmpCards[1] = static_cast(r->resultCard2); + tmpCards[0] = static_cast(r.resultcard1()); + tmpCards[1] = static_cast(r.resultcard2()); tmpPlayer->setMyCards(tmpCards); - for (int num = 0; num < 5; num++) - bestHandPos[num] = *r->bestHandPosition.list.array[num]; - if (r->cardsValue) { - tmpPlayer->setMyCardsValueInt(*r->cardsValue); + for (int num = 0; num < 5; num++) { + bestHandPos[num] = r.besthandposition(num); + } + if (r.cardsvalue()) { + tmpPlayer->setMyCardsValueInt(r.cardsvalue()); } tmpPlayer->setMyBestHandPosition(bestHandPos); - tmpPlayer->setMyCash(r->playerMoney); - tmpPlayer->setLastMoneyWon(r->moneyWon); + tmpPlayer->setMyCash(r.playermoney()); + tmpPlayer->setLastMoneyWon(r.moneywon()); - client->GetCallback().SignalNetClientPostRiverShowCards(r->playerId); + client->GetCallback().SignalNetClientPostRiverShowCards(r.playerid()); client->GetClientLog()->logHoleCardsHandName(client->GetGame()->getActivePlayerList(), tmpPlayer, true); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_playerIdChangedMessage) { + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_PlayerIdChangedMessage) { boost::shared_ptr curGame = client->GetGame(); if (curGame) { // Perform Id change. - PlayerIdChangedMessage_t *idChanged = &tmpPacket->GetMsg()->choice.playerIdChangedMessage; - boost::shared_ptr tmpPlayer = curGame->getPlayerByUniqueId(idChanged->oldPlayerId); + const PlayerIdChangedMessage &idChanged = tmpPacket->GetMsg()->playeridchangedmessage(); + boost::shared_ptr tmpPlayer = curGame->getPlayerByUniqueId(idChanged.oldplayerid()); if (!tmpPlayer) throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); - tmpPlayer->setMyUniqueID(idChanged->newPlayerId); + tmpPlayer->setMyUniqueID(idChanged.newplayerid()); // This player is now active again. tmpPlayer->setMyStayOnTableStatus(true); // Also update the dealer, if necessary. - curGame->replaceDealer(idChanged->oldPlayerId, idChanged->newPlayerId); + curGame->replaceDealer(idChanged.oldplayerid(), idChanged.newplayerid()); // Update the player name, if necessary. PlayerInfo info; - if (client->GetCachedPlayerInfo(idChanged->newPlayerId, info)) { + if (client->GetCachedPlayerInfo(idChanged.newplayerid(), info)) { tmpPlayer->setMyName(info.playerName); } } @@ -1717,44 +1653,44 @@ void ClientStateRunHand::InternalHandlePacket(boost::shared_ptr client, boost::shared_ptr tmpPacket) { boost::shared_ptr curGame = client->GetGame(); - if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_playersActionDoneMessage) { - PlayersActionDoneMessage_t *netActionDone = &tmpPacket->GetMsg()->choice.playersActionDoneMessage; + if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_PlayersActionDoneMessage) { + const PlayersActionDoneMessage &netActionDone = tmpPacket->GetMsg()->playersactiondonemessage(); - boost::shared_ptr tmpPlayer = curGame->getPlayerByUniqueId(netActionDone->playerId); + boost::shared_ptr tmpPlayer = curGame->getPlayerByUniqueId(netActionDone.playerid()); if (!tmpPlayer) throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); bool isBigBlind = false; - if (netActionDone->gameState == NetGameState_statePreflopSmallBlind) { + if (netActionDone.gamestate() == statePreflopSmallBlind) { curGame->getCurrentHand()->getCurrentBeRo()->setSmallBlindPositionId(tmpPlayer->getMyUniqueID()); tmpPlayer->setMyButton(BUTTON_SMALL_BLIND); - } else if (netActionDone->gameState == NetGameState_statePreflopBigBlind) { + } else if (netActionDone.gamestate() == statePreflopBigBlind) { curGame->getCurrentHand()->getCurrentBeRo()->setBigBlindPositionId(tmpPlayer->getMyUniqueID()); tmpPlayer->setMyButton(BUTTON_BIG_BLIND); isBigBlind = true; } else { // no blind -> log - if (netActionDone->playerAction) { - assert(netActionDone->totalPlayerBet >= (long)tmpPlayer->getMySet()); + if (netActionDone.playeraction()) { + assert(netActionDone.totalplayerbet() >= tmpPlayer->getMySet()); client->GetGui().logPlayerActionMsg( tmpPlayer->getMyName(), - netActionDone->playerAction, - netActionDone->totalPlayerBet - tmpPlayer->getMySet()); + netActionDone.playeraction(), + netActionDone.totalplayerbet() - tmpPlayer->getMySet()); client->GetClientLog()->logPlayerAction( tmpPlayer->getMyName(), - client->GetClientLog()->transformPlayerActionLog(PlayerAction(netActionDone->playerAction)), - netActionDone->totalPlayerBet - tmpPlayer->getMySet() + client->GetClientLog()->transformPlayerActionLog(PlayerAction(netActionDone.playeraction())), + netActionDone.totalplayerbet() - tmpPlayer->getMySet() ); } // Update last players turn only after the blinds. curGame->getCurrentHand()->setPreviousPlayerID(tmpPlayer->getMyID()); } - tmpPlayer->setMyAction(PlayerAction(netActionDone->playerAction)); - tmpPlayer->setMySetAbsolute(netActionDone->totalPlayerBet); - tmpPlayer->setMyCash(netActionDone->playerMoney); - curGame->getCurrentHand()->getCurrentBeRo()->setHighestSet(netActionDone->highestSet); - curGame->getCurrentHand()->getCurrentBeRo()->setMinimumRaise(netActionDone->minimumRaise); + tmpPlayer->setMyAction(PlayerAction(netActionDone.playeraction())); + tmpPlayer->setMySetAbsolute(netActionDone.totalplayerbet()); + tmpPlayer->setMyCash(netActionDone.playermoney()); + curGame->getCurrentHand()->getCurrentBeRo()->setHighestSet(netActionDone.highestset()); + curGame->getCurrentHand()->getCurrentBeRo()->setMinimumRaise(netActionDone.minimumraise()); curGame->getCurrentHand()->getBoard()->collectSets(); curGame->getCurrentHand()->switchRounds(); @@ -1792,18 +1728,18 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr client, client->GetGui().refreshCash(); client->GetGui().refreshButton(); client->GetGui().updateMyButtonsState(); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_playersTurnMessage) { - PlayersTurnMessage_t *netPlayersTurn = &tmpPacket->GetMsg()->choice.playersTurnMessage; + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_PlayersTurnMessage) { + const PlayersTurnMessage &netPlayersTurn = tmpPacket->GetMsg()->playersturnmessage(); - boost::shared_ptr tmpPlayer = curGame->getPlayerByUniqueId(netPlayersTurn->playerId); + boost::shared_ptr tmpPlayer = curGame->getPlayerByUniqueId(netPlayersTurn.playerid()); if (!tmpPlayer) throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); // Set round. - if (curGame->getCurrentHand()->getCurrentRound() != netPlayersTurn->gameState) { + if (curGame->getCurrentHand()->getCurrentRound() != netPlayersTurn.gamestate()) { ResetPlayerActions(*curGame); - curGame->getCurrentHand()->setCurrentRound(GameState(netPlayersTurn->gameState)); - client->GetClientLog()->setCurrentRound(GameState(netPlayersTurn->gameState)); + curGame->getCurrentHand()->setCurrentRound(static_cast(netPlayersTurn.gamestate())); + client->GetClientLog()->setCurrentRound(static_cast(netPlayersTurn.gamestate())); // Refresh actions. client->GetGui().refreshSet(); client->GetGui().refreshAction(); @@ -1826,13 +1762,13 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr client, if (tmpPlayer->getMyID() == 0) // Is this the GUI player? client->GetGui().meInAction(); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_dealFlopCardsMessage) { - DealFlopCardsMessage_t *netDealFlop = &tmpPacket->GetMsg()->choice.dealFlopCardsMessage; + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_DealFlopCardsMessage) { + const DealFlopCardsMessage &netDealFlop = tmpPacket->GetMsg()->dealflopcardsmessage(); int tmpCards[5]; - tmpCards[0] = static_cast(netDealFlop->flopCard1); - tmpCards[1] = static_cast(netDealFlop->flopCard2); - tmpCards[2] = static_cast(netDealFlop->flopCard3); + tmpCards[0] = static_cast(netDealFlop.flopcard1()); + tmpCards[1] = static_cast(netDealFlop.flopcard2()); + tmpCards[2] = static_cast(netDealFlop.flopcard3()); tmpCards[3] = tmpCards[4] = 0; curGame->getCurrentHand()->getBoard()->setMyCards(tmpCards); curGame->getCurrentHand()->getBoard()->collectPot(); @@ -1845,12 +1781,12 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr client, client->GetGui().refreshPot(); client->GetGui().refreshSet(); client->GetGui().dealBeRoCards(1); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_dealTurnCardMessage) { - DealTurnCardMessage_t *netDealTurn = &tmpPacket->GetMsg()->choice.dealTurnCardMessage; + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_DealTurnCardMessage) { + const DealTurnCardMessage &netDealTurn = tmpPacket->GetMsg()->dealturncardmessage(); int tmpCards[5]; curGame->getCurrentHand()->getBoard()->getMyCards(tmpCards); - tmpCards[3] = static_cast(netDealTurn->turnCard); + tmpCards[3] = static_cast(netDealTurn.turncard()); curGame->getCurrentHand()->getBoard()->setMyCards(tmpCards); curGame->getCurrentHand()->getBoard()->collectPot(); curGame->getCurrentHand()->setPreviousPlayerID(-1); @@ -1862,12 +1798,12 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr client, client->GetGui().refreshPot(); client->GetGui().refreshSet(); client->GetGui().dealBeRoCards(2); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_dealRiverCardMessage) { - DealRiverCardMessage_t *netDealRiver = &tmpPacket->GetMsg()->choice.dealRiverCardMessage; + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_DealRiverCardMessage) { + const DealRiverCardMessage &netDealRiver = tmpPacket->GetMsg()->dealrivercardmessage(); int tmpCards[5]; curGame->getCurrentHand()->getBoard()->getMyCards(tmpCards); - tmpCards[4] = static_cast(netDealRiver->riverCard); + tmpCards[4] = static_cast(netDealRiver.rivercard()); curGame->getCurrentHand()->getBoard()->setMyCards(tmpCards); curGame->getCurrentHand()->getBoard()->collectPot(); curGame->getCurrentHand()->setPreviousPlayerID(-1); @@ -1879,25 +1815,24 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr client, client->GetGui().refreshPot(); client->GetGui().refreshSet(); client->GetGui().dealBeRoCards(3); - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_allInShowCardsMessage) { - AllInShowCardsMessage_t *netAllInShow = &tmpPacket->GetMsg()->choice.allInShowCardsMessage; + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_AllInShowCardsMessage) { + const AllInShowCardsMessage &netAllInShow = tmpPacket->GetMsg()->allinshowcardsmessage(); curGame->getCurrentHand()->setAllInCondition(true); // Set player numbers using the game start data slots. - PlayerAllIn_t **allInPlayers = netAllInShow->playersAllIn.list.array; - unsigned numPlayers = netAllInShow->playersAllIn.list.count; + unsigned numPlayers = netAllInShow.playersallin_size(); // Request player info for players if needed. for (unsigned i = 0; i < numPlayers; i++) { - PlayerAllIn_t *p = allInPlayers[i]; + const AllInShowCardsMessage::PlayerAllIn &p = netAllInShow.playersallin(i); - boost::shared_ptr tmpPlayer = curGame->getPlayerByUniqueId(p->playerId); + boost::shared_ptr tmpPlayer = curGame->getPlayerByUniqueId(p.playerid()); if (!tmpPlayer) throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); int tmpCards[2]; - tmpCards[0] = static_cast(p->allInCard1); - tmpCards[1] = static_cast(p->allInCard2); + tmpCards[0] = static_cast(p.allincard1()); + tmpCards[1] = static_cast(p.allincard2()); tmpPlayer->setMyCards(tmpCards); } client->GetGui().flipHolecardsAllIn(); @@ -1906,109 +1841,110 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr client, curGame->getActivePlayerList() ); } - } else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_endOfHandMessage) { - EndOfHandMessage_t *netEndHand = &tmpPacket->GetMsg()->choice.endOfHandMessage; + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_EndOfHandHideCardsMessage) { + const EndOfHandHideCardsMessage &hideCards = tmpPacket->GetMsg()->endofhandhidecardsmessage(); + curGame->getCurrentHand()->getBoard()->collectPot(); + // Reset player sets + ResetPlayerSets(*curGame); + client->GetGui().refreshPot(); + client->GetGui().refreshSet(); + // Synchronize with GUI. + client->GetGui().waitForGuiUpdateDone(); - if (netEndHand->endOfHandType.present == endOfHandType_PR_endOfHandHideCards) { - EndOfHandHideCards_t *hideCards = &netEndHand->endOfHandType.choice.endOfHandHideCards; - curGame->getCurrentHand()->getBoard()->collectPot(); - // Reset player sets - ResetPlayerSets(*curGame); - client->GetGui().refreshPot(); - client->GetGui().refreshSet(); - // Synchronize with GUI. - client->GetGui().waitForGuiUpdateDone(); + // End of Hand, but keep cards hidden. + boost::shared_ptr tmpPlayer = curGame->getPlayerByUniqueId(hideCards.playerid()); + if (!tmpPlayer) + throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); - // End of Hand, but keep cards hidden. - boost::shared_ptr tmpPlayer = curGame->getPlayerByUniqueId(hideCards->playerId); - if (!tmpPlayer) - throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); + tmpPlayer->setMyCash(hideCards.playermoney()); + tmpPlayer->setLastMoneyWon(hideCards.moneywon()); + list winnerList; + winnerList.push_back(tmpPlayer->getMyUniqueID()); - tmpPlayer->setMyCash(hideCards->playerMoney); - tmpPlayer->setLastMoneyWon(hideCards->moneyWon); - list winnerList; - winnerList.push_back(tmpPlayer->getMyUniqueID()); + curGame->getCurrentHand()->getBoard()->setPot(0); + curGame->getCurrentHand()->getBoard()->setWinners(winnerList); - curGame->getCurrentHand()->getBoard()->setPot(0); - curGame->getCurrentHand()->getBoard()->setWinners(winnerList); + // logging + client->GetClientLog()->logHandWinner(curGame->getActivePlayerList(), tmpPlayer->getMyCardsValueInt(), winnerList); - // logging - client->GetClientLog()->logHandWinner(curGame->getActivePlayerList(), tmpPlayer->getMyCardsValueInt(), winnerList); + client->GetGui().postRiverRunAnimation1(); - client->GetGui().postRiverRunAnimation1(); - - // Wait for next Hand. - client->GetCallback().SignalNetClientGameInfo(MSG_NET_GAME_SERVER_HAND_END); - client->SetState(ClientStateWaitHand::Instance()); - } else if (netEndHand->endOfHandType.present == endOfHandType_PR_endOfHandShowCards) { - EndOfHandShowCards_t *showCards = &netEndHand->endOfHandType.choice.endOfHandShowCards; - - curGame->getCurrentHand()->getBoard()->collectPot(); - // Reset player sets - ResetPlayerSets(*curGame); - client->GetGui().refreshPot(); - client->GetGui().refreshSet(); - // Synchronize with GUI. - client->GetGui().waitForGuiUpdateDone(); - - // End of Hand, show cards. - list winnerList; - list showList; - int highestValueOfCards = 0; - PlayerResult_t **playerResults = showCards->playerResults.list.array; - unsigned numResults = showCards->playerResults.list.count; - // Request player info for players if needed. - for (unsigned i = 0; i < numResults; i++) { - PlayerResult_t *r = playerResults[i]; - - boost::shared_ptr tmpPlayer = curGame->getPlayerByUniqueId(r->playerId); - if (!tmpPlayer) - throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); - - int tmpCards[2]; - int bestHandPos[5]; - tmpCards[0] = static_cast(r->resultCard1); - tmpCards[1] = static_cast(r->resultCard2); - tmpPlayer->setMyCards(tmpCards); - for (int num = 0; num < 5; num++) - bestHandPos[num] = *r->bestHandPosition.list.array[num]; - if (r->cardsValue) { - tmpPlayer->setMyCardsValueInt(*r->cardsValue); - } - tmpPlayer->setMyBestHandPosition(bestHandPos); - if (tmpPlayer->getMyCardsValueInt() > highestValueOfCards) - highestValueOfCards = tmpPlayer->getMyCardsValueInt(); - tmpPlayer->setMyCash(r->playerMoney); - tmpPlayer->setLastMoneyWon(r->moneyWon); - if (r->moneyWon) - winnerList.push_back(r->playerId); - showList.push_back(r->playerId); - } - - curGame->getCurrentHand()->setCurrentRound(GAME_STATE_POST_RIVER); - client->GetClientLog()->setCurrentRound(GAME_STATE_POST_RIVER); - curGame->getCurrentHand()->getCurrentBeRo()->setHighestCardsValue(highestValueOfCards); - curGame->getCurrentHand()->getBoard()->setPot(0); - curGame->getCurrentHand()->getBoard()->setWinners(winnerList); - curGame->getCurrentHand()->getBoard()->setPlayerNeedToShowCards(showList); - - // logging - client->GetClientLog()->logHoleCardsHandName(curGame->getActivePlayerList()); - client->GetClientLog()->logHandWinner(curGame->getActivePlayerList(), highestValueOfCards, winnerList); - - client->GetGui().postRiverRunAnimation1(); - - // Wait for next Hand. - client->GetCallback().SignalNetClientGameInfo(MSG_NET_GAME_CLIENT_HAND_END); - client->SetState(ClientStateWaitHand::Instance()); - } + // Wait for next Hand. + client->GetCallback().SignalNetClientGameInfo(MSG_NET_GAME_SERVER_HAND_END); + client->SetState(ClientStateWaitHand::Instance()); // logging client->GetClientLog()->logPlayerSitsOut(curGame->getActivePlayerList()); client->GetClientLog()->logGameWinner(curGame->getActivePlayerList()); client->GetClientLog()->logAfterHand(); + } else if (tmpPacket->GetMsg()->messagetype() == PokerTHMessage::Type_EndOfHandShowCardsMessage) { + const EndOfHandShowCardsMessage &showCards = tmpPacket->GetMsg()->endofhandshowcardsmessage(); + curGame->getCurrentHand()->getBoard()->collectPot(); + // Reset player sets + ResetPlayerSets(*curGame); + client->GetGui().refreshPot(); + client->GetGui().refreshSet(); + // Synchronize with GUI. + client->GetGui().waitForGuiUpdateDone(); + + // End of Hand, show cards. + list winnerList; + list showList; + int highestValueOfCards = 0; + unsigned numResults = showCards.playerresults_size(); + // Request player info for players if needed. + for (unsigned i = 0; i < numResults; i++) { + const PlayerResult &r = showCards.playerresults(i); + + boost::shared_ptr tmpPlayer = curGame->getPlayerByUniqueId(r.playerid()); + if (!tmpPlayer) + throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); + + int tmpCards[2]; + int bestHandPos[5]; + tmpCards[0] = static_cast(r.resultcard1()); + tmpCards[1] = static_cast(r.resultcard2()); + tmpPlayer->setMyCards(tmpCards); + for (int num = 0; num < 5; num++) { + bestHandPos[num] = r.besthandposition(num); + } + if (r.has_cardsvalue()) { + tmpPlayer->setMyCardsValueInt(r.cardsvalue()); + } + tmpPlayer->setMyBestHandPosition(bestHandPos); + if (tmpPlayer->getMyCardsValueInt() > highestValueOfCards) + highestValueOfCards = tmpPlayer->getMyCardsValueInt(); + tmpPlayer->setMyCash(r.playermoney()); + tmpPlayer->setLastMoneyWon(r.moneywon()); + if (r.moneywon()) + winnerList.push_back(r.playerid()); + showList.push_back(r.playerid()); + } + + curGame->getCurrentHand()->setCurrentRound(GAME_STATE_POST_RIVER); + client->GetClientLog()->setCurrentRound(GAME_STATE_POST_RIVER); + curGame->getCurrentHand()->getCurrentBeRo()->setHighestCardsValue(highestValueOfCards); + curGame->getCurrentHand()->getBoard()->setPot(0); + curGame->getCurrentHand()->getBoard()->setWinners(winnerList); + curGame->getCurrentHand()->getBoard()->setPlayerNeedToShowCards(showList); + + // logging + client->GetClientLog()->logHoleCardsHandName(curGame->getActivePlayerList()); + client->GetClientLog()->logHandWinner(curGame->getActivePlayerList(), highestValueOfCards, winnerList); + + client->GetGui().postRiverRunAnimation1(); + + // Wait for next Hand. + client->GetCallback().SignalNetClientGameInfo(MSG_NET_GAME_CLIENT_HAND_END); + client->SetState(ClientStateWaitHand::Instance()); + + // logging + client->GetClientLog()->logPlayerSitsOut(curGame->getActivePlayerList()); + client->GetClientLog()->logGameWinner(curGame->getActivePlayerList()); + client->GetClientLog()->logAfterHand(); } + // Synchronize with GUI. client->GetGui().waitForGuiUpdateDone(); } diff --git a/src/net/common/clientthread.cpp b/src/net/common/clientthread.cpp index 145c3371..b024f0c1 100644 --- a/src/net/common/clientthread.cpp +++ b/src/net/common/clientthread.cpp @@ -106,21 +106,21 @@ ClientThread::SignalTermination() void ClientThread::SendKickPlayer(unsigned playerId) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_kickPlayerRequestMessage; - KickPlayerRequestMessage_t *netKick = &packet->GetMsg()->choice.kickPlayerRequestMessage; - netKick->gameId = GetGameId(); - netKick->playerId = playerId; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_KickPlayerRequestMessage); + KickPlayerRequestMessage *netKick = packet->GetMsg()->mutable_kickplayerrequestmessage(); + netKick->set_gameid(GetGameId()); + netKick->set_playerid(playerId); m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } void ClientThread::SendLeaveCurrentGame() { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_leaveGameRequestMessage; - LeaveGameRequestMessage_t *netLeave = &packet->GetMsg()->choice.leaveGameRequestMessage; - netLeave->gameId = GetGameId(); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_LeaveGameRequestMessage); + LeaveGameRequestMessage *netLeave = packet->GetMsg()->mutable_leavegamerequestmessage(); + netLeave->set_gameid(GetGameId()); m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } @@ -129,14 +129,12 @@ ClientThread::SendStartEvent(bool fillUpWithCpuPlayers) { // Warning: This function is called in the context of the GUI thread. // Create a network packet for the server start event. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_startEventMessage; - StartEventMessage_t *netStartEvent = &packet->GetMsg()->choice.startEventMessage; - netStartEvent->gameId = GetGameId(); - - netStartEvent->startEventType.present = startEventType_PR_startEvent; - StartEvent_t *start = &netStartEvent->startEventType.choice.startEvent; - start->fillWithComputerPlayers = fillUpWithCpuPlayers; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_StartEventMessage); + StartEventMessage *netStartEvent = packet->GetMsg()->mutable_starteventmessage(); + netStartEvent->set_starteventtype(StartEventMessage::startEvent); + netStartEvent->set_gameid(GetGameId()); + netStartEvent->set_fillwithcomputerplayers(fillUpWithCpuPlayers); m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } @@ -145,19 +143,19 @@ ClientThread::SendPlayerAction() { // Warning: This function is called in the context of the GUI thread. // Create a network packet containing the current player action. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_myActionRequestMessage; - MyActionRequestMessage_t *netMyAction = &packet->GetMsg()->choice.myActionRequestMessage; - netMyAction->gameId = GetGameId(); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_MyActionRequestMessage); + MyActionRequestMessage *netMyAction = packet->GetMsg()->mutable_myactionrequestmessage(); + netMyAction->set_gameid(GetGameId()); boost::shared_ptr myPlayer = GetGame()->getSeatsList()->front(); - netMyAction->handNum = GetGame()->getCurrentHandID(); - netMyAction->gameState = GetGame()->getCurrentHand()->getCurrentRound(); - netMyAction->myAction = myPlayer->getMyAction(); + netMyAction->set_handnum(GetGame()->getCurrentHandID()); + netMyAction->set_gamestate(static_cast(GetGame()->getCurrentHand()->getCurrentRound())); + netMyAction->set_myaction(static_cast(myPlayer->getMyAction())); // Only send last bet if not fold/checked. if (myPlayer->getMyAction() != PLAYER_ACTION_FOLD && myPlayer->getMyAction() != PLAYER_ACTION_CHECK) - netMyAction->myRelativeBet = myPlayer->getMyLastRelativeSet(); + netMyAction->set_myrelativebet(myPlayer->getMyLastRelativeSet()); else - netMyAction->myRelativeBet = 0; + netMyAction->set_myrelativebet(0); // Just dump the packet. m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } @@ -167,15 +165,11 @@ ClientThread::SendGameChatMessage(const std::string &msg) { // Warning: This function is called in the context of the GUI thread. // Create a network packet containing the chat message. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_chatRequestMessage; - ChatRequestMessage_t *netChat = &packet->GetMsg()->choice.chatRequestMessage; - OCTET_STRING_fromBuf(&netChat->chatText, - msg.c_str(), - (int)msg.length()); - - netChat->chatRequestType.present = chatRequestType_PR_chatRequestTypeGame; - netChat->chatRequestType.choice.chatRequestTypeGame.gameId = GetGameId(); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ChatRequestMessage); + ChatRequestMessage *netChat = packet->GetMsg()->mutable_chatrequestmessage(); + netChat->set_targetgameid(GetGameId()); + netChat->set_chattext(msg); // Just dump the packet. m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); @@ -186,14 +180,10 @@ ClientThread::SendLobbyChatMessage(const std::string &msg) { // Warning: This function is called in the context of the GUI thread. // Create a network packet containing the chat message. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_chatRequestMessage; - ChatRequestMessage_t *netChat = &packet->GetMsg()->choice.chatRequestMessage; - OCTET_STRING_fromBuf(&netChat->chatText, - msg.c_str(), - (int)msg.length()); - - netChat->chatRequestType.present = chatRequestType_PR_chatRequestTypeLobby; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ChatRequestMessage); + ChatRequestMessage *netChat = packet->GetMsg()->mutable_chatrequestmessage(); + netChat->set_chattext(msg); // Just dump the packet. m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); @@ -204,15 +194,11 @@ ClientThread::SendPrivateChatMessage(unsigned targetPlayerId, const std::string { // Warning: This function is called in the context of the GUI thread. // Create a network packet containing the chat message. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_chatRequestMessage; - ChatRequestMessage_t *netChat = &packet->GetMsg()->choice.chatRequestMessage; - OCTET_STRING_fromBuf(&netChat->chatText, - msg.c_str(), - (int)msg.length()); - - netChat->chatRequestType.present = chatRequestType_PR_chatRequestTypePrivate; - netChat->chatRequestType.choice.chatRequestTypePrivate.targetPlayerId = targetPlayerId; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ChatRequestMessage); + ChatRequestMessage *netChat = packet->GetMsg()->mutable_chatrequestmessage(); + netChat->set_targetplayerid(targetPlayerId); + netChat->set_chattext(msg); // Just dump the packet. m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); @@ -223,19 +209,14 @@ ClientThread::SendJoinFirstGame(const std::string &password, bool autoLeave) { // Warning: This function is called in the context of the GUI thread. // Create a network packet to request joining a game. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_joinGameRequestMessage; - JoinGameRequestMessage_t *netJoinGame = &packet->GetMsg()->choice.joinGameRequestMessage; - netJoinGame->autoLeave = autoLeave; - netJoinGame->joinGameAction.present = joinGameAction_PR_joinExistingGame; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_JoinExistingGameMessage); + JoinExistingGameMessage *netJoinGame = packet->GetMsg()->mutable_joinexistinggamemessage(); + netJoinGame->set_gameid(1); + netJoinGame->set_autoleave(autoLeave); - JoinExistingGame_t *joinExisting = &netJoinGame->joinGameAction.choice.joinExistingGame; - joinExisting->gameId = 1; if (!password.empty()) { - joinExisting->password = OCTET_STRING_new_fromBuf( - &asn_DEF_UTF8String, - password.c_str(), - (int)password.length()); + netJoinGame->set_password(password); } m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } @@ -245,19 +226,14 @@ ClientThread::SendJoinGame(unsigned gameId, const std::string &password, bool au { // Warning: This function is called in the context of the GUI thread. // Create a network packet to request joining a game. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_joinGameRequestMessage; - JoinGameRequestMessage_t *netJoinGame = &packet->GetMsg()->choice.joinGameRequestMessage; - netJoinGame->autoLeave = autoLeave; - netJoinGame->joinGameAction.present = joinGameAction_PR_joinExistingGame; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_JoinExistingGameMessage); + JoinExistingGameMessage *netJoinGame = packet->GetMsg()->mutable_joinexistinggamemessage(); + netJoinGame->set_gameid(gameId); + netJoinGame->set_autoleave(autoLeave); - JoinExistingGame_t *joinExisting = &netJoinGame->joinGameAction.choice.joinExistingGame; - joinExisting->gameId = gameId; if (!password.empty()) { - joinExisting->password = OCTET_STRING_new_fromBuf( - &asn_DEF_UTF8String, - password.c_str(), - (int)password.length()); + netJoinGame->set_password(password); } m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } @@ -267,14 +243,12 @@ ClientThread::SendRejoinGame(unsigned gameId, bool autoLeave) { // Warning: This function is called in the context of the GUI thread. // Create a network packet to request rejoining a running game. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_joinGameRequestMessage; - JoinGameRequestMessage_t *netJoinGame = &packet->GetMsg()->choice.joinGameRequestMessage; - netJoinGame->autoLeave = autoLeave; - netJoinGame->joinGameAction.present = joinGameAction_PR_rejoinExistingGame; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_RejoinExistingGameMessage); + RejoinExistingGameMessage *netJoinGame = packet->GetMsg()->mutable_rejoinexistinggamemessage(); + netJoinGame->set_gameid(gameId); + netJoinGame->set_autoleave(autoLeave); - RejoinExistingGame_t *rejoinExisting = &netJoinGame->joinGameAction.choice.rejoinExistingGame; - rejoinExisting->gameId = gameId; m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } @@ -283,22 +257,16 @@ ClientThread::SendCreateGame(const GameData &gameData, const std::string &name, { // Warning: This function is called in the context of the GUI thread. // Create a network packet to request creating a new game. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_joinGameRequestMessage; - JoinGameRequestMessage_t *netJoinGame = &packet->GetMsg()->choice.joinGameRequestMessage; - netJoinGame->autoLeave = autoLeave; - netJoinGame->joinGameAction.present = joinGameAction_PR_joinNewGame; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_JoinNewGameMessage); + JoinNewGameMessage *netJoinGame = packet->GetMsg()->mutable_joinnewgamemessage(); + netJoinGame->set_autoleave(autoLeave); + NetGameInfo *gameInfo = netJoinGame->mutable_gameinfo(); + NetPacket::SetGameData(gameData, *gameInfo); + gameInfo->set_gamename(name); - JoinNewGame_t *joinNew = &netJoinGame->joinGameAction.choice.joinNewGame; - NetPacket::SetGameData(gameData, &joinNew->gameInfo); - OCTET_STRING_fromBuf(&joinNew->gameInfo.gameName, - name.c_str(), - (int)name.length()); if (!password.empty()) { - joinNew->password = OCTET_STRING_new_fromBuf( - &asn_DEF_UTF8String, - password.c_str(), - (int)password.length()); + netJoinGame->set_password(password); } m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } @@ -306,80 +274,77 @@ ClientThread::SendCreateGame(const GameData &gameData, const std::string &name, void ClientThread::SendResetTimeout() { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_resetTimeoutMessage; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ResetTimeoutMessage); m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } void ClientThread::SendAskKickPlayer(unsigned playerId) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_askKickPlayerMessage; - AskKickPlayerMessage_t *netAsk = &packet->GetMsg()->choice.askKickPlayerMessage; - netAsk->gameId = GetGameId(); - netAsk->playerId = playerId; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_AskKickPlayerMessage); + AskKickPlayerMessage *netAsk = packet->GetMsg()->mutable_askkickplayermessage(); + netAsk->set_gameid(GetGameId()); + netAsk->set_playerid(playerId); m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } void ClientThread::SendVoteKick(bool doKick) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_voteKickRequestMessage; - VoteKickRequestMessage_t *netVote = &packet->GetMsg()->choice.voteKickRequestMessage; - netVote->gameId = GetGameId(); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_VoteKickRequestMessage); + VoteKickRequestMessage *netVote = packet->GetMsg()->mutable_votekickrequestmessage(); + netVote->set_gameid(GetGameId()); { boost::mutex::scoped_lock lock(m_curPetitionIdMutex); - netVote->petitionId = m_curPetitionId; + netVote->set_petitionid(m_curPetitionId); } - netVote->voteKick = doKick; + netVote->set_votekick(doKick); m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } void ClientThread::SendShowMyCards() { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_showMyCardsRequestMessage; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ShowMyCardsRequestMessage); m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } void ClientThread::SendInvitePlayerToCurrentGame(unsigned playerId) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_invitePlayerToGameMessage; - InvitePlayerToGameMessage_t *netInvite = &packet->GetMsg()->choice.invitePlayerToGameMessage; - netInvite->gameId = GetGameId(); - netInvite->playerId = playerId; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_InvitePlayerToGameMessage); + InvitePlayerToGameMessage *netInvite = packet->GetMsg()->mutable_inviteplayertogamemessage(); + netInvite->set_gameid(GetGameId()); + netInvite->set_playerid(playerId); m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } void ClientThread::SendRejectGameInvitation(unsigned gameId, DenyGameInvitationReason reason) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_rejectGameInvitationMessage; - RejectGameInvitationMessage_t *netReject = &packet->GetMsg()->choice.rejectGameInvitationMessage; - netReject->gameId = gameId; - netReject->myRejectReason = static_cast(reason); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_RejectGameInvitationMessage); + RejectGameInvitationMessage *netReject = packet->GetMsg()->mutable_rejectgameinvitationmessage(); + netReject->set_gameid(gameId); + netReject->set_myrejectreason(static_cast(reason)); m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } void ClientThread::SendReportAvatar(unsigned reportedPlayerId, const std::string &avatarHash) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_reportAvatarMessage; - ReportAvatarMessage_t *netReport = &packet->GetMsg()->choice.reportAvatarMessage; - netReport->reportedPlayerId = reportedPlayerId; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ReportAvatarMessage); + ReportAvatarMessage *netReport = packet->GetMsg()->mutable_reportavatarmessage(); + netReport->set_reportedplayerid(reportedPlayerId); MD5Buf tmpMD5; if (tmpMD5.FromString(avatarHash) && !tmpMD5.IsZero()) { - OCTET_STRING_fromBuf( - &netReport->reportedAvatar, - (const char *)tmpMD5.GetData(), - MD5_DATA_SIZE); + netReport->set_reportedavatarhash(tmpMD5.GetData(), MD5_DATA_SIZE); m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } @@ -388,10 +353,10 @@ ClientThread::SendReportAvatar(unsigned reportedPlayerId, const std::string &ava void ClientThread::SendReportGameName(unsigned reportedGameId) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_reportGameMessage; - ReportGameMessage_t *netReport = &packet->GetMsg()->choice.reportGameMessage; - netReport->reportedGameId = reportedGameId; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ReportGameMessage); + ReportGameMessage *netReport = packet->GetMsg()->mutable_reportgamemessage(); + netReport->set_reportedgameid(reportedGameId); m_ioService->post(boost::bind(&ClientThread::SendSessionPacket, shared_from_this(), packet)); } @@ -625,7 +590,7 @@ ClientThread::InitGame() // TODO //if (GetPlayerDataList().size() != (unsigned)GetStartData().numberOfPlayers) // throw ClientException(__FILE__, __LINE__, ERR_NET_INVALID_PLAYER_COUNT, 0); - m_startData.numberOfPlayers = GetPlayerDataList().size(); + m_startData.numberOfPlayers = (int)GetPlayerDataList().size(); m_game.reset(new Game(&m_gui, factory, GetPlayerDataList(), GetGameData(), GetStartData(), m_curGameNum++, m_clientLog.get())); // Initialize Minimum GUI speed. int minimumGuiSpeed = 1; @@ -680,10 +645,10 @@ void ClientThread::RequestPlayerInfo(unsigned id, bool requestAvatar) { if (find(m_playerInfoRequestList.begin(), m_playerInfoRequestList.end(), id) == m_playerInfoRequestList.end()) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_playerInfoRequestMessage; - PlayerInfoRequestMessage_t *netPlayerInfo = &packet->GetMsg()->choice.playerInfoRequestMessage; - netPlayerInfo->playerId = id; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_PlayerInfoRequestMessage); + PlayerInfoRequestMessage *netPlayerInfo = packet->GetMsg()->mutable_playerinforequestmessage(); + netPlayerInfo->set_playerid(id); GetSender().Send(GetContext().GetSessionData(), packet); m_playerInfoRequestList.push_back(id); @@ -789,13 +754,11 @@ ClientThread::RetrieveAvatarIfNeeded(unsigned id, const PlayerInfo &info) m_avatarDownloader->QueueDownload( id, avatarServerAddress + serverFileName, GetContext().GetCacheDir() + TEMP_AVATAR_FILENAME); } else { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_avatarRequestMessage; - AvatarRequestMessage_t *netAvatar = &packet->GetMsg()->choice.avatarRequestMessage; - netAvatar->requestId = id; - OCTET_STRING_fromBuf(&netAvatar->avatar, - (const char *)info.avatar.GetData(), - MD5_DATA_SIZE); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_AvatarRequestMessage); + AvatarRequestMessage *netAvatar = packet->GetMsg()->mutable_avatarrequestmessage(); + netAvatar->set_requestid(id); + netAvatar->set_avatarhash(info.avatar.GetData(), MD5_DATA_SIZE); GetSender().Send(GetContext().GetSessionData(), packet); } } @@ -894,10 +857,10 @@ ClientThread::UnsubscribeLobbyMsg() { if (GetContext().GetSubscribeLobbyMsg()) { // Send unsubscribe request. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_subscriptionRequestMessage; - SubscriptionRequestMessage_t *netRequest = &packet->GetMsg()->choice.subscriptionRequestMessage; - netRequest->subscriptionAction = subscriptionAction_unsubscribeGameList; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_SubscriptionRequestMessage); + SubscriptionRequestMessage *netRequest = packet->GetMsg()->mutable_subscriptionrequestmessage(); + netRequest->set_subscriptionaction(SubscriptionRequestMessage::unsubscribeGameList); GetSender().Send(GetContext().GetSessionData(), packet); GetContext().SetSubscribeLobbyMsg(false); } @@ -910,10 +873,10 @@ ClientThread::ResubscribeLobbyMsg() // Clear game info map as it is outdated. ClearGameInfoMap(); // Send resubscribe request. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_subscriptionRequestMessage; - SubscriptionRequestMessage_t *netRequest = &packet->GetMsg()->choice.subscriptionRequestMessage; - netRequest->subscriptionAction = subscriptionAction_resubscribeGameList; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_SubscriptionRequestMessage); + SubscriptionRequestMessage *netRequest = packet->GetMsg()->mutable_subscriptionrequestmessage(); + netRequest->set_subscriptionaction(SubscriptionRequestMessage::resubscribeGameList); GetSender().Send(GetContext().GetSessionData(), packet); GetContext().SetSubscribeLobbyMsg(true); } diff --git a/src/net/common/netpacket.cpp b/src/net/common/netpacket.cpp index 16081b13..0f250f1b 100644 --- a/src/net/common/netpacket.cpp +++ b/src/net/common/netpacket.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * PokerTH - The open source texas holdem engine * - * Copyright (C) 2006-2011 Felix Hammer, Florian Thauer, Lothar May * + * Copyright (C) 2006-2012 Felix Hammer, Florian Thauer, Lothar May * * * * This program is free software: you can redistribute it and/or modify * * it under the terms of the GNU Affero General Public License as * @@ -19,42 +19,37 @@ #include #include +#include + using namespace std; -NetPacket::NetPacket(MemAllocType alloc) - : m_msg(NULL) +NetPacket::NetPacket() +{ + m_msg = PokerTHMessage::default_instance().New(); +} + +NetPacket::NetPacket(PokerTHMessage *msg) + : m_msg(msg) { - if (alloc != NoAlloc) - m_msg = (PokerTHMessage_t *)calloc(1, sizeof(PokerTHMessage_t)); } NetPacket::~NetPacket() { - ASN_STRUCT_FREE(asn_DEF_PokerTHMessage, m_msg); + delete m_msg; } boost::shared_ptr -NetPacket::Create(char *data, size_t &dataSize) +NetPacket::Create(char *data, size_t dataSize) { boost::shared_ptr tmpPacket; // Check minimum requirements. if (data && dataSize > 0) { - PokerTHMessage_t *msg = NULL; - asn_dec_rval_t retVal = ber_decode(0, &asn_DEF_PokerTHMessage, (void **)&msg, data, dataSize); - if(retVal.code == RC_OK) { - // ASN.1 BER decoding was successful. - tmpPacket.reset(new NetPacket(NoAlloc)); - tmpPacket->m_msg = msg; - // Consume the bytes. - if (retVal.consumed < dataSize) { - dataSize -= retVal.consumed; - memmove(data, data + retVal.consumed, dataSize); - } else - dataSize = 0; + PokerTHMessage *msg = PokerTHMessage::default_instance().New(); + if (msg->ParseFromArray(data, static_cast(dataSize))) { + tmpPacket.reset(new NetPacket(msg)); } else { - // Free the partially decoded message (if applicable). - ASN_STRUCT_FREE(asn_DEF_PokerTHMessage, msg); + delete msg; } } return tmpPacket; @@ -65,151 +60,123 @@ NetPacket::IsClientActivity() const { bool retVal = false; if (m_msg && - (m_msg->present == PokerTHMessage_PR_initMessage - || m_msg->present == PokerTHMessage_PR_joinGameRequestMessage - || m_msg->present == PokerTHMessage_PR_kickPlayerRequestMessage - || m_msg->present == PokerTHMessage_PR_leaveGameRequestMessage - || m_msg->present == PokerTHMessage_PR_startEventMessage - || m_msg->present == PokerTHMessage_PR_myActionRequestMessage - || m_msg->present == PokerTHMessage_PR_resetTimeoutMessage - || m_msg->present == PokerTHMessage_PR_chatRequestMessage)) { + (m_msg->messagetype() == PokerTHMessage::Type_InitMessage + || m_msg->messagetype() == PokerTHMessage::Type_JoinNewGameMessage + || m_msg->messagetype() == PokerTHMessage::Type_JoinExistingGameMessage + || m_msg->messagetype() == PokerTHMessage::Type_RejoinExistingGameMessage + || m_msg->messagetype() == PokerTHMessage::Type_KickPlayerRequestMessage + || m_msg->messagetype() == PokerTHMessage::Type_LeaveGameRequestMessage + || m_msg->messagetype() == PokerTHMessage::Type_StartEventMessage + || m_msg->messagetype() == PokerTHMessage::Type_MyActionRequestMessage + || m_msg->messagetype() == PokerTHMessage::Type_ResetTimeoutMessage + || m_msg->messagetype() == PokerTHMessage::Type_ChatRequestMessage)) { retVal = true; } return retVal; } -static int -net_packet_print_to_string(const void *buffer, size_t size, void *packetStr) -{ - string *tmpString = (string *)packetStr; - *tmpString += string((const char *)buffer, size); - return 0; -} - string NetPacket::ToString() const { - string packetString; - xer_encode(&asn_DEF_PokerTHMessage, m_msg, XER_F_BASIC, &net_packet_print_to_string, &packetString); - return packetString; + return m_msg ? m_msg->SerializeAsString() : "NULL"; } void -NetPacket::SetGameData(const GameData &inData, NetGameInfo_t *outData) +NetPacket::SetGameData(const GameData &inData, NetGameInfo &outData) { - assert(outData); - - int numManualBlinds = (int)inData.manualBlindsList.size(); - - outData->netGameType = inData.gameType; - outData->maxNumPlayers = inData.maxNumberOfPlayers; - outData->raiseIntervalMode.present = static_cast(inData.raiseIntervalMode); + outData.set_netgametype(static_cast(inData.gameType)); + outData.set_maxnumplayers(inData.maxNumberOfPlayers); + outData.set_raiseintervalmode(static_cast(inData.raiseIntervalMode)); if (inData.raiseIntervalMode == RAISE_ON_HANDNUMBER) { - outData->raiseIntervalMode.present = raiseIntervalMode_PR_raiseEveryHands; - outData->raiseIntervalMode.choice.raiseEveryHands = inData.raiseSmallBlindEveryHandsValue; + outData.set_raiseeveryhands(inData.raiseSmallBlindEveryHandsValue); } else { - outData->raiseIntervalMode.present = raiseIntervalMode_PR_raiseEveryMinutes; - outData->raiseIntervalMode.choice.raiseEveryMinutes = inData.raiseSmallBlindEveryMinutesValue; + outData.set_raiseeveryminutes(inData.raiseSmallBlindEveryMinutesValue); } - outData->endRaiseMode = inData.afterManualBlindsMode; - outData->proposedGuiSpeed = inData.guiSpeed; - outData->delayBetweenHands = inData.delayBetweenHandsSec; - outData->playerActionTimeout = inData.playerActionTimeoutSec; - outData->endRaiseSmallBlindValue = inData.afterMBAlwaysRaiseValue; - outData->firstSmallBlind = inData.firstSmallBlind; - outData->startMoney = inData.startMoney; + outData.set_endraisemode(static_cast(inData.afterManualBlindsMode)); + outData.set_proposedguispeed(inData.guiSpeed); + outData.set_delaybetweenhands(inData.delayBetweenHandsSec); + outData.set_playeractiontimeout(inData.playerActionTimeoutSec); + outData.set_endraisesmallblindvalue(inData.afterMBAlwaysRaiseValue); + outData.set_firstsmallblind(inData.firstSmallBlind); + outData.set_startmoney(inData.startMoney); - if (numManualBlinds) { - list::const_iterator i = inData.manualBlindsList.begin(); - list::const_iterator end = inData.manualBlindsList.end(); - while (i != end) { - long *manualBlind = (long *)calloc(1, sizeof(long)); - *manualBlind = *i; - ASN_SEQUENCE_ADD(&outData->manualBlinds.list, manualBlind); - ++i; - } + BOOST_FOREACH(int manualBlind, inData.manualBlindsList) { + outData.add_manualblinds(manualBlind); } } void -NetPacket::GetGameData(const NetGameInfo_t *inData, GameData &outData) +NetPacket::GetGameData(const NetGameInfo &inData, GameData &outData) { - assert(inData); + int numManualBlinds = inData.manualblinds_size(); - int numManualBlinds = (int)inData->manualBlinds.list.count; - - outData.gameType = static_cast(inData->netGameType); - outData.maxNumberOfPlayers = inData->maxNumPlayers; - outData.raiseIntervalMode = static_cast(inData->raiseIntervalMode.present); + outData.gameType = static_cast(inData.netgametype()); + outData.maxNumberOfPlayers = inData.maxnumplayers(); + outData.raiseIntervalMode = static_cast(inData.raiseintervalmode()); outData.raiseSmallBlindEveryHandsValue = outData.raiseSmallBlindEveryMinutesValue = 0; - if (inData->raiseIntervalMode.present == raiseIntervalMode_PR_raiseEveryHands) - outData.raiseSmallBlindEveryHandsValue = inData->raiseIntervalMode.choice.raiseEveryHands; + if (outData.raiseIntervalMode == RAISE_ON_HANDNUMBER) + outData.raiseSmallBlindEveryHandsValue = inData.raiseeveryhands(); else - outData.raiseSmallBlindEveryMinutesValue = inData->raiseIntervalMode.choice.raiseEveryMinutes; + outData.raiseSmallBlindEveryMinutesValue = inData.raiseeveryminutes(); outData.raiseMode = numManualBlinds > 0 ? MANUAL_BLINDS_ORDER : DOUBLE_BLINDS; - outData.afterManualBlindsMode = static_cast(inData->endRaiseMode); - outData.guiSpeed = inData->proposedGuiSpeed; - outData.delayBetweenHandsSec = inData->delayBetweenHands; - outData.playerActionTimeoutSec = inData->playerActionTimeout; - outData.firstSmallBlind = inData->firstSmallBlind; - outData.afterMBAlwaysRaiseValue = inData->endRaiseSmallBlindValue; - outData.startMoney = inData->startMoney; + outData.afterManualBlindsMode = static_cast(inData.endraisemode()); + outData.guiSpeed = inData.proposedguispeed(); + outData.delayBetweenHandsSec = inData.delaybetweenhands(); + outData.playerActionTimeoutSec = inData.playeractiontimeout(); + outData.firstSmallBlind = inData.firstsmallblind(); + outData.afterMBAlwaysRaiseValue = inData.endraisesmallblindvalue(); + outData.startMoney = inData.startmoney(); - if (numManualBlinds) { - long **manualBlindsPtr = inData->manualBlinds.list.array; - int counter = 0; - for (int i = 0; i < numManualBlinds; i++) { - outData.manualBlindsList.push_back((int)*manualBlindsPtr[i]); - counter++; - } + for (int i = 0; i < numManualBlinds; i++) { + outData.manualBlindsList.push_back(static_cast(inData.manualblinds(i))); } } int -NetPacket::NetErrorToGameError(long netErrorReason) +NetPacket::NetErrorToGameError(ErrorMessage::ErrorReason netErrorReason) { int retVal; switch(netErrorReason) { - case errorReason_errorInitVersionNotSupported : + case ErrorMessage::initVersionNotSupported : retVal = ERR_NET_VERSION_NOT_SUPPORTED; break; - case errorReason_errorInitServerFull : + case ErrorMessage::initServerFull : retVal = ERR_NET_SERVER_FULL; break; - case errorReason_errorInitAuthFailure : + case ErrorMessage::initAuthFailure : retVal = ERR_NET_INVALID_PASSWORD; break; - case errorReason_errorInitPlayerNameInUse : + case ErrorMessage::initPlayerNameInUse : retVal = ERR_NET_PLAYER_NAME_IN_USE; break; - case errorReason_errorInitInvalidPlayerName : + case ErrorMessage::initInvalidPlayerName : retVal = ERR_NET_INVALID_PLAYER_NAME; break; - case errorReason_errorInitServerMaintenance : + case ErrorMessage::initServerMaintenance : retVal = ERR_NET_SERVER_MAINTENANCE; break; - case errorReason_errorInitBlocked : + case ErrorMessage::initBlocked : retVal = ERR_NET_INIT_BLOCKED; break; - case errorReason_errorAvatarTooLarge : + case ErrorMessage::avatarTooLarge : retVal = ERR_NET_AVATAR_TOO_LARGE; break; - case errorReason_errorInvalidPacket : + case ErrorMessage::invalidPacket : retVal = ERR_SOCK_INVALID_PACKET; break; - case errorReason_errorInvalidState : + case ErrorMessage::invalidState : retVal = ERR_SOCK_INVALID_STATE; break; - case errorReason_errorKickedFromServer : + case ErrorMessage::kickedFromServer : retVal = ERR_NET_PLAYER_KICKED; break; - case errorReason_errorBannedFromServer : + case ErrorMessage::bannedFromServer : retVal = ERR_NET_PLAYER_BANNED; break; - case errorReason_errorBlockedByServer : + case ErrorMessage::blockedByServer : retVal = ERR_NET_PLAYER_BLOCKED; break; - case errorReason_errorSessionTimeout : + case ErrorMessage::sessionTimeout : retVal = ERR_NET_SESSION_TIMED_OUT; break; default : @@ -219,55 +186,55 @@ NetPacket::NetErrorToGameError(long netErrorReason) return retVal; } -long +ErrorMessage::ErrorReason NetPacket::GameErrorToNetError(int gameErrorReason) { - int retVal; + ErrorMessage::ErrorReason retVal; switch(gameErrorReason) { case ERR_NET_VERSION_NOT_SUPPORTED : - retVal = errorReason_errorInitVersionNotSupported; + retVal = ErrorMessage::initVersionNotSupported; break; case ERR_NET_SERVER_FULL : - retVal = errorReason_errorInitServerFull; + retVal = ErrorMessage::initServerFull; break; case ERR_NET_INVALID_PASSWORD : - retVal = errorReason_errorInitAuthFailure; + retVal = ErrorMessage::initAuthFailure; break; case ERR_NET_PLAYER_NAME_IN_USE : - retVal = errorReason_errorInitPlayerNameInUse; + retVal = ErrorMessage::initPlayerNameInUse; break; case ERR_NET_INVALID_PLAYER_NAME : - retVal = errorReason_errorInitInvalidPlayerName; + retVal = ErrorMessage::initInvalidPlayerName; break; case ERR_NET_SERVER_MAINTENANCE : - retVal = errorReason_errorInitServerMaintenance; + retVal = ErrorMessage::initServerMaintenance; break; case ERR_NET_INIT_BLOCKED : - retVal = errorReason_errorInitBlocked; + retVal = ErrorMessage::initBlocked; break; case ERR_NET_AVATAR_TOO_LARGE : - retVal = errorReason_errorAvatarTooLarge; + retVal = ErrorMessage::avatarTooLarge; break; case ERR_SOCK_INVALID_PACKET : - retVal = errorReason_errorInvalidPacket; + retVal = ErrorMessage::invalidPacket; break; case ERR_SOCK_INVALID_STATE : - retVal = errorReason_errorInvalidState; + retVal = ErrorMessage::invalidState; break; case ERR_NET_PLAYER_KICKED : - retVal = errorReason_errorKickedFromServer; + retVal = ErrorMessage::kickedFromServer; break; case ERR_NET_PLAYER_BLOCKED : - retVal = errorReason_errorBlockedByServer; + retVal = ErrorMessage::blockedByServer; break; case ERR_NET_PLAYER_BANNED : - retVal = errorReason_errorBannedFromServer; + retVal = ErrorMessage::bannedFromServer; break; case ERR_NET_SESSION_TIMED_OUT : - retVal = errorReason_errorSessionTimeout; + retVal = ErrorMessage::sessionTimeout; break; default : - retVal = errorReason_errorReserved; + retVal = ErrorMessage::reserved; break; } return retVal; diff --git a/src/net/common/receivebuffer.cpp b/src/net/common/receivebuffer.cpp index dd8e4162..c4285c93 100644 --- a/src/net/common/receivebuffer.cpp +++ b/src/net/common/receivebuffer.cpp @@ -80,23 +80,29 @@ ReceiveBuffer::ScanPackets() // This is necessary, because we use TCP. // Packets may be received in multiple chunks or // several packets may be received at once. - if (recvBufUsed) { - try { - // This call will also handle the memmove stuff, i.e. - // buffering for partial packets. - tmpPacket = NetPacket::Create(recvBuf, recvBufUsed); - } catch (const exception &e) { - // Reset buffer on error. - recvBufUsed = 0; - LOG_ERROR(e.what()); + if (recvBufUsed >= NET_HEADER_SIZE) { + // Read the size of the packet (first 4 bytes in network byte order). + size_t packetSize = ntohl(*((uint32_t *)recvBuf)); + if (recvBufUsed >= packetSize + NET_HEADER_SIZE) + { + try { + tmpPacket = NetPacket::Create(&recvBuf[NET_HEADER_SIZE], packetSize); + if (tmpPacket) { + recvBufUsed -= (packetSize + NET_HEADER_SIZE); + if (recvBufUsed) { + memmove(recvBuf, recvBuf + packetSize + NET_HEADER_SIZE, recvBufUsed); + } + } + } catch (const exception &e) { + // Reset buffer on error. + recvBufUsed = 0; + LOG_ERROR(e.what()); + } } } if (tmpPacket) { - //cerr << "IN:" << endl << tmpPacket->ToString() << endl; - if (asn_check_constraints(&asn_DEF_PokerTHMessage, tmpPacket->GetMsg(), NULL, NULL) == 0) - receivedPackets.push_back(tmpPacket); - else - LOG_ERROR("Invalid packet: " << endl << tmpPacket->ToString()); + // TODO check constraints. + receivedPackets.push_back(tmpPacket); } else dataAvailable = false; } while(dataAvailable); diff --git a/src/net/common/senderhelper.cpp b/src/net/common/senderhelper.cpp index fd1df9a0..7856c033 100644 --- a/src/net/common/senderhelper.cpp +++ b/src/net/common/senderhelper.cpp @@ -83,9 +83,10 @@ SenderHelper::SetCloseAfterSend(boost::shared_ptr session) void SenderHelper::InternalStorePacket(SendBuffer &tmpBuffer, boost::shared_ptr packet) { - asn_enc_rval_t e = der_encode(&asn_DEF_PokerTHMessage, packet->GetMsg(), &SendBuffer::EncodeToBuf, &tmpBuffer); - //cerr << "OUT:" << endl << packet->ToString() << endl; - if (e.encoded == -1) - LOG_ERROR("Failed to encode NetPacket: " << packet->GetMsg()->present); + uint32_t packetSize = packet->GetMsg()->ByteSize(); + char *buf = new char[packetSize + NET_HEADER_SIZE]; + *((uint32_t *)buf) = htonl(packetSize); + packet->GetMsg()->SerializeToArray(&buf[NET_HEADER_SIZE], packetSize); + SendBuffer::EncodeToBuf(buf, packetSize + NET_HEADER_SIZE, &tmpBuffer); } diff --git a/src/net/common/servergame.cpp b/src/net/common/servergame.cpp index 7efbf98e..cc01ba50 100644 --- a/src/net/common/servergame.cpp +++ b/src/net/common/servergame.cpp @@ -225,15 +225,15 @@ ServerGame::TimerVoteKick(const boost::system::error_code &ec) abortPetition = true; } if (abortPetition) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_endKickPetitionMessage; - EndKickPetitionMessage_t *netEndPetition = &packet->GetMsg()->choice.endKickPetitionMessage; - netEndPetition->gameId = GetId(); - netEndPetition->petitionId = m_voteKickData->petitionId; - netEndPetition->numVotesAgainstKicking = m_voteKickData->numVotesAgainstKicking; - netEndPetition->numVotesInFavourOfKicking = m_voteKickData->numVotesInFavourOfKicking; - netEndPetition->resultPlayerKicked = doKick; - netEndPetition->petitionEndReason = reason; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_EndKickPetitionMessage); + EndKickPetitionMessage *netEndPetition = packet->GetMsg()->mutable_endkickpetitionmessage(); + netEndPetition->set_gameid(GetId()); + netEndPetition->set_petitionid(m_voteKickData->petitionId); + netEndPetition->set_numvotesagainstkicking(m_voteKickData->numVotesAgainstKicking); + netEndPetition->set_numvotesinfavourofkicking(m_voteKickData->numVotesInFavourOfKicking); + netEndPetition->set_resultplayerkicked(doKick); + netEndPetition->set_petitionendreason(static_cast(reason)); SendToAllPlayers(packet, SessionData::Game); // Perform kick. @@ -469,15 +469,15 @@ ServerGame::InternalAskVoteKick(boost::shared_ptr byWhom, unsigned m_voteKickData->numVotesInFavourOfKicking = 1; m_voteKickData->votedPlayerIds.push_back(playerIdByWhom); - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_startKickPetitionMessage; - StartKickPetitionMessage_t *netStartPetition = &packet->GetMsg()->choice.startKickPetitionMessage; - netStartPetition->gameId = GetId(); - netStartPetition->petitionId = m_voteKickData->petitionId; - netStartPetition->proposingPlayerId = playerIdByWhom; - netStartPetition->kickPlayerId = m_voteKickData->kickPlayerId; - netStartPetition->kickTimeoutSec = timeoutSec; - netStartPetition->numVotesNeededToKick = m_voteKickData->numVotesToKick; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_StartKickPetitionMessage); + StartKickPetitionMessage *netStartPetition = packet->GetMsg()->mutable_startkickpetitionmessage(); + netStartPetition->set_gameid(GetId()); + netStartPetition->set_petitionid(m_voteKickData->petitionId); + netStartPetition->set_proposingplayerid(playerIdByWhom); + netStartPetition->set_kickplayerid(m_voteKickData->kickPlayerId); + netStartPetition->set_kicktimeoutsec(timeoutSec); + netStartPetition->set_numvotesneededtokick(m_voteKickData->numVotesToKick); SendToAllPlayers(packet, SessionData::Game); m_voteKickTimer.expires_from_now( @@ -499,12 +499,12 @@ ServerGame::InternalAskVoteKick(boost::shared_ptr byWhom, unsigned void ServerGame::InternalDenyAskVoteKick(boost::shared_ptr byWhom, unsigned playerIdWho, DenyKickPlayerReason reason) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_askKickDeniedMessage; - AskKickDeniedMessage_t *netKickDenied = &packet->GetMsg()->choice.askKickDeniedMessage; - netKickDenied->gameId = GetId(); - netKickDenied->playerId = playerIdWho; - netKickDenied->kickDeniedReason = reason; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_AskKickDeniedMessage); + AskKickDeniedMessage *netKickDenied = packet->GetMsg()->mutable_askkickdeniedmessage(); + netKickDenied->set_gameid(GetId()); + netKickDenied->set_playerid(playerIdWho); + netKickDenied->set_kickdeniedreason(static_cast(reason)); GetLobbyThread().GetSender().Send(byWhom, packet); } @@ -523,14 +523,14 @@ ServerGame::InternalVoteKick(boost::shared_ptr byWhom, unsigned pet else m_voteKickData->numVotesAgainstKicking++; // Send update notification. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_kickPetitionUpdateMessage; - KickPetitionUpdateMessage_t *netKickUpdate = &packet->GetMsg()->choice.kickPetitionUpdateMessage; - netKickUpdate->gameId = GetId(); - netKickUpdate->petitionId = m_voteKickData->petitionId; - netKickUpdate->numVotesAgainstKicking = m_voteKickData->numVotesAgainstKicking; - netKickUpdate->numVotesInFavourOfKicking = m_voteKickData->numVotesInFavourOfKicking; - netKickUpdate->numVotesNeededToKick = m_voteKickData->numVotesToKick; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_KickPetitionUpdateMessage); + KickPetitionUpdateMessage *netKickUpdate = packet->GetMsg()->mutable_kickpetitionupdatemessage(); + netKickUpdate->set_gameid(GetId()); + netKickUpdate->set_petitionid(m_voteKickData->petitionId); + netKickUpdate->set_numvotesagainstkicking(m_voteKickData->numVotesAgainstKicking); + netKickUpdate->set_numvotesinfavourofkicking(m_voteKickData->numVotesInFavourOfKicking); + netKickUpdate->set_numvotesneededtokick(m_voteKickData->numVotesToKick); SendToAllPlayers(packet, SessionData::Game); } else InternalDenyVoteKick(byWhom, petitionId, VOTE_DENIED_ALREADY_VOTED); @@ -543,15 +543,19 @@ ServerGame::InternalVoteKick(boost::shared_ptr byWhom, unsigned pet void ServerGame::InternalDenyVoteKick(boost::shared_ptr byWhom, unsigned petitionId, DenyVoteReason reason) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_voteKickReplyMessage; - VoteKickReplyMessage_t *netVoteReply = &packet->GetMsg()->choice.voteKickReplyMessage; - netVoteReply->gameId = GetId(); - netVoteReply->petitionId = petitionId; - netVoteReply->voteKickReplyType.present = voteKickReplyType_PR_voteKickDenied; - - VoteKickDenied_t *kickDenied = &netVoteReply->voteKickReplyType.choice.voteKickDenied; - kickDenied->voteKickDeniedReason = reason; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_VoteKickReplyMessage); + VoteKickReplyMessage *netVoteReply = packet->GetMsg()->mutable_votekickreplymessage(); + netVoteReply->set_gameid(GetId()); + netVoteReply->set_petitionid(petitionId); + switch(reason) { + case VOTE_DENIED_ALREADY_VOTED : + netVoteReply->set_votekickreplytype(VoteKickReplyMessage::voteKickDeniedAlreadyVoted); + break; + default: + netVoteReply->set_votekickreplytype(VoteKickReplyMessage::voteKickDeniedInvalid); + break; + } GetLobbyThread().GetSender().Send(byWhom, packet); } @@ -827,14 +831,11 @@ ServerGame::RemovePlayerData(boost::shared_ptr player, int reason) // Notify game state on admin change GetState().NotifyGameAdminChanged(shared_from_this()); // Send "Game Admin Changed" to clients. - boost::shared_ptr adminChanged(new NetPacket(NetPacket::Alloc)); - adminChanged->GetMsg()->present = PokerTHMessage_PR_gamePlayerMessage; - GamePlayerMessage_t *netGameAdmin = &adminChanged->GetMsg()->choice.gamePlayerMessage; - netGameAdmin->gameId = GetId(); - - netGameAdmin->gamePlayerNotification.present = gamePlayerNotification_PR_gameAdminChanged; - GameAdminChanged_t *gameAdmin = &netGameAdmin->gamePlayerNotification.choice.gameAdminChanged; - gameAdmin->newAdminPlayerId = newAdmin->GetUniqueId(); // Choose next player as admin. + boost::shared_ptr adminChanged(new NetPacket); + adminChanged->GetMsg()->set_messagetype(PokerTHMessage::Type_GameAdminChangedMessage); + GameAdminChangedMessage *netGameAdmin = adminChanged->GetMsg()->mutable_gameadminchangedmessage(); + netGameAdmin->set_gameid(GetId()); + netGameAdmin->set_newadminplayerid(newAdmin->GetUniqueId()); // Choose next player as admin. GetSessionManager().SendToAllSessions(GetLobbyThread().GetSender(), adminChanged, SessionData::Game); GetLobbyThread().NotifyGameAdminChanged(GetId(), newAdmin->GetUniqueId()); @@ -844,23 +845,20 @@ ServerGame::RemovePlayerData(boost::shared_ptr player, int reason) player->SetGameAdmin(false); // Send "Player Left" to clients. - boost::shared_ptr thisPlayerLeft(new NetPacket(NetPacket::Alloc)); - thisPlayerLeft->GetMsg()->present = PokerTHMessage_PR_gamePlayerMessage; - GamePlayerMessage_t *netPlayerLeft = &thisPlayerLeft->GetMsg()->choice.gamePlayerMessage; - netPlayerLeft->gameId = GetId(); - - netPlayerLeft->gamePlayerNotification.present = gamePlayerNotification_PR_gamePlayerLeft; - GamePlayerLeft_t *gamePlayer = &netPlayerLeft->gamePlayerNotification.choice.gamePlayerLeft; - gamePlayer->playerId = player->GetUniqueId(); + boost::shared_ptr thisPlayerLeft(new NetPacket); + thisPlayerLeft->GetMsg()->set_messagetype(PokerTHMessage::Type_GamePlayerLeftMessage); + GamePlayerLeftMessage *netPlayerLeft = thisPlayerLeft->GetMsg()->mutable_gameplayerleftmessage(); + netPlayerLeft->set_gameid(GetId()); + netPlayerLeft->set_playerid(player->GetUniqueId()); switch (reason) { case NTF_NET_REMOVED_ON_REQUEST : - gamePlayer->gamePlayerLeftReason = gamePlayerLeftReason_leftOnRequest; + netPlayerLeft->set_gameplayerleftreason(GamePlayerLeftMessage::leftOnRequest); break; case NTF_NET_REMOVED_KICKED : - gamePlayer->gamePlayerLeftReason = gamePlayerLeftReason_leftKicked; + netPlayerLeft->set_gameplayerleftreason(GamePlayerLeftMessage::leftKicked); break; default : - gamePlayer->gamePlayerLeftReason = gamePlayerLeftReason_leftError; + netPlayerLeft->set_gameplayerleftreason(GamePlayerLeftMessage::leftError); break; } GetSessionManager().SendToAllSessions(GetLobbyThread().GetSender(), thisPlayerLeft, SessionData::Game); diff --git a/src/net/common/servergamestate.cpp b/src/net/common/servergamestate.cpp index 04c33294..9036d892 100644 --- a/src/net/common/servergamestate.cpp +++ b/src/net/common/servergamestate.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * PokerTH - The open source texas holdem engine * - * Copyright (C) 2006-2011 Felix Hammer, Florian Thauer, Lothar May * + * Copyright (C) 2006-2012 Felix Hammer, Florian Thauer, Lothar May * * * * This program is free software: you can redistribute it and/or modify * * it under the terms of the GNU Affero General Public License as * @@ -77,18 +77,18 @@ static void SendPlayerAction(ServerGame &server, boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_playersActionDoneMessage; - PlayersActionDoneMessage_t *netActionDone = &packet->GetMsg()->choice.playersActionDoneMessage; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_PlayersActionDoneMessage); + PlayersActionDoneMessage *netActionDone = packet->GetMsg()->mutable_playersactiondonemessage(); - netActionDone->gameId = server.GetId(); - netActionDone->gameState = server.GetCurRound(); - netActionDone->highestSet = server.GetGame().getCurrentHand()->getCurrentBeRo()->getHighestSet(); - netActionDone->minimumRaise = server.GetGame().getCurrentHand()->getCurrentBeRo()->getMinimumRaise(); - netActionDone->playerAction = player->getMyAction(); - netActionDone->playerId = player->getMyUniqueID(); - netActionDone->playerMoney = player->getMyCash(); - netActionDone->totalPlayerBet = player->getMySet(); + netActionDone->set_gameid(server.GetId()); + netActionDone->set_gamestate(static_cast(server.GetCurRound())); + netActionDone->set_highestset(server.GetGame().getCurrentHand()->getCurrentBeRo()->getHighestSet()); + netActionDone->set_minimumraise(server.GetGame().getCurrentHand()->getCurrentBeRo()->getMinimumRaise()); + netActionDone->set_playeraction(static_cast(player->getMyAction())); + netActionDone->set_playerid(player->getMyUniqueID()); + netActionDone->set_playermoney(player->getMyCash()); + netActionDone->set_totalplayerbet(player->getMySet()); server.SendToAllPlayers(packet, SessionData::Game); } @@ -102,33 +102,33 @@ static void SendNewRoundCards(ServerGame &server, Game &curGame, int state) } break; case GAME_STATE_FLOP: { // deal flop cards - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_dealFlopCardsMessage; - DealFlopCardsMessage_t *netDealFlop = &packet->GetMsg()->choice.dealFlopCardsMessage; - netDealFlop->gameId = server.GetId(); - netDealFlop->flopCard1 = cards[0]; - netDealFlop->flopCard2 = cards[1]; - netDealFlop->flopCard3 = cards[2]; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_DealFlopCardsMessage); + DealFlopCardsMessage *netDealFlop = packet->GetMsg()->mutable_dealflopcardsmessage(); + netDealFlop->set_gameid(server.GetId()); + netDealFlop->set_flopcard1(cards[0]); + netDealFlop->set_flopcard2(cards[1]); + netDealFlop->set_flopcard3(cards[2]); server.SendToAllPlayers(packet, SessionData::Game); } break; case GAME_STATE_TURN: { // deal turn card - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_dealTurnCardMessage; - DealTurnCardMessage_t *netDealTurn = &packet->GetMsg()->choice.dealTurnCardMessage; - netDealTurn->gameId = server.GetId(); - netDealTurn->turnCard = cards[3]; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_DealTurnCardMessage); + DealTurnCardMessage *netDealTurn = packet->GetMsg()->mutable_dealturncardmessage(); + netDealTurn->set_gameid(server.GetId()); + netDealTurn->set_turncard(cards[3]); server.SendToAllPlayers(packet, SessionData::Game); } break; case GAME_STATE_RIVER: { // deal river card - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_dealRiverCardMessage; - DealRiverCardMessage_t *netDealRiver = &packet->GetMsg()->choice.dealRiverCardMessage; - netDealRiver->gameId = server.GetId(); - netDealRiver->riverCard = cards[4]; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_DealRiverCardMessage); + DealRiverCardMessage *netDealRiver = packet->GetMsg()->mutable_dealrivercardmessage(); + netDealRiver->set_gameid(server.GetId()); + netDealRiver->set_rivercard(cards[4]); server.SendToAllPlayers(packet, SessionData::Game); } break; @@ -185,27 +185,24 @@ static void PerformPlayerAction(ServerGame &server, boost::shared_ptr tmpPlayer, GameState roundBeforePostRiver) +SetPlayerResult(PlayerResult &playerResult, boost::shared_ptr tmpPlayer, GameState roundBeforePostRiver) { - playerResult.playerId = tmpPlayer->getMyUniqueID(); + playerResult.set_playerid(tmpPlayer->getMyUniqueID()); int tmpCards[2]; int bestHandPos[5]; tmpPlayer->getMyCards(tmpCards); - playerResult.resultCard1 = tmpCards[0]; - playerResult.resultCard2 = tmpCards[1]; + playerResult.set_resultcard1(tmpCards[0]); + playerResult.set_resultcard2(tmpCards[1]); tmpPlayer->getMyBestHandPosition(bestHandPos); for (int num = 0; num < 5; num++) { - long *handPos = (long *)calloc(1, sizeof(long)); - *handPos = bestHandPos[num]; - ASN_SEQUENCE_ADD(&playerResult.bestHandPosition.list, handPos); + playerResult.add_besthandposition(bestHandPos[num]); } if (roundBeforePostRiver == GAME_STATE_RIVER) { - playerResult.cardsValue = (long *)calloc(1, sizeof(long)); - *playerResult.cardsValue = tmpPlayer->getMyCardsValueInt(); + playerResult.set_cardsvalue(tmpPlayer->getMyCardsValueInt()); } - playerResult.moneyWon = tmpPlayer->getLastMoneyWon(); - playerResult.playerMoney = tmpPlayer->getMyCash(); + playerResult.set_moneywon(tmpPlayer->getLastMoneyWon()); + playerResult.set_playermoney(tmpPlayer->getMyCash()); } //----------------------------------------------------------------------------- @@ -226,61 +223,56 @@ AbstractServerGameStateReceiving::ProcessPacket(boost::shared_ptr se if (packet->IsClientActivity()) { session->ResetActivityTimer(); } - if (packet->GetMsg()->present == PokerTHMessage_PR_playerInfoRequestMessage) { + if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_PlayerInfoRequestMessage) { // Delegate to Lobby. - server->GetLobbyThread().HandleGameRetrievePlayerInfo(session, packet->GetMsg()->choice.playerInfoRequestMessage); - } else if (packet->GetMsg()->present == PokerTHMessage_PR_avatarRequestMessage) { + server->GetLobbyThread().HandleGameRetrievePlayerInfo(session, packet->GetMsg()->playerinforequestmessage()); + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_AvatarRequestMessage) { // Delegate to Lobby. - server->GetLobbyThread().HandleGameRetrieveAvatar(session, packet->GetMsg()->choice.avatarRequestMessage); - } else if (packet->GetMsg()->present == PokerTHMessage_PR_leaveGameRequestMessage) { + server->GetLobbyThread().HandleGameRetrieveAvatar(session, packet->GetMsg()->avatarrequestmessage()); + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_LeaveGameRequestMessage) { server->MoveSessionToLobby(session, NTF_NET_REMOVED_ON_REQUEST); - } else if (packet->GetMsg()->present == PokerTHMessage_PR_kickPlayerRequestMessage) { + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_KickPlayerRequestMessage) { // Only admins are allowed to kick, and only in the lobby. // After leaving the lobby, a vote needs to be initiated to kick. - KickPlayerRequestMessage_t *netKickRequest = &packet->GetMsg()->choice.kickPlayerRequestMessage; + const KickPlayerRequestMessage &netKickRequest = packet->GetMsg()->kickplayerrequestmessage(); if (session->GetPlayerData()->IsGameAdmin() && !server->IsRunning() - && netKickRequest->gameId == server->GetId() && server->GetGameData().gameType != GAME_TYPE_RANKING) { - server->KickPlayer(netKickRequest->playerId); + && netKickRequest.gameid() == server->GetId() && server->GetGameData().gameType != GAME_TYPE_RANKING) { + server->KickPlayer(netKickRequest.playerid()); } - } else if (packet->GetMsg()->present == PokerTHMessage_PR_askKickPlayerMessage) { + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_AskKickPlayerMessage) { if (server->GetGameData().gameType != GAME_TYPE_RANKING) { - AskKickPlayerMessage_t *netAskKick = &packet->GetMsg()->choice.askKickPlayerMessage; - server->InternalAskVoteKick(session, netAskKick->playerId, SERVER_VOTE_KICK_TIMEOUT_SEC); + const AskKickPlayerMessage &netAskKick = packet->GetMsg()->askkickplayermessage(); + server->InternalAskVoteKick(session, netAskKick.playerid(), SERVER_VOTE_KICK_TIMEOUT_SEC); } - } else if (packet->GetMsg()->present == PokerTHMessage_PR_voteKickRequestMessage) { - VoteKickRequestMessage_t *netVoteKick = &packet->GetMsg()->choice.voteKickRequestMessage; - server->InternalVoteKick(session, netVoteKick->petitionId, netVoteKick->voteKick ? KICK_VOTE_IN_FAVOUR : KICK_VOTE_AGAINST); + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_VoteKickRequestMessage) { + const VoteKickRequestMessage &netVoteKick = packet->GetMsg()->votekickrequestmessage(); + server->InternalVoteKick(session, netVoteKick.petitionid(), netVoteKick.votekick() ? KICK_VOTE_IN_FAVOUR : KICK_VOTE_AGAINST); } // Chat text is always allowed. - else if (packet->GetMsg()->present == PokerTHMessage_PR_chatRequestMessage) { + else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_ChatRequestMessage) { bool chatSent = false; - ChatRequestMessage_t *netChatRequest = &packet->GetMsg()->choice.chatRequestMessage; + const ChatRequestMessage &netChatRequest = packet->GetMsg()->chatrequestmessage(); // Only forward if this player is known and not a guest. if (session->GetPlayerData()->GetRights() != PLAYER_RIGHTS_GUEST) { // Forward chat text to all players. // TODO: Some limitation needed. - if (netChatRequest->chatRequestType.present == chatRequestType_PR_chatRequestTypeLobby - || netChatRequest->chatRequestType.present == chatRequestType_PR_chatRequestTypePrivate) { + if (!netChatRequest.has_targetgameid()) { if (!server->IsRunning()) { - server->GetLobbyThread().HandleChatRequest(session, *netChatRequest); + server->GetLobbyThread().HandleChatRequest(session, netChatRequest); chatSent = true; } - } else if (netChatRequest->chatRequestType.present == chatRequestType_PR_chatRequestTypeGame) { + } else { boost::shared_ptr tmpPlayer (server->GetPlayerInterfaceFromGame(session->GetPlayerData()->GetUniqueId())); // If we did not find the player, then the game did not start yet. Allow chat for now. // Otherwise, check whether the player is muted. if (!tmpPlayer || !tmpPlayer->isMuted()) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_chatMessage; - ChatMessage_t *netChat = &packet->GetMsg()->choice.chatMessage; - netChat->chatType.present = chatType_PR_chatTypeGame; - ChatTypeGame_t *netGameChat = &netChat->chatType.choice.chatTypeGame; - netGameChat->gameId = server->GetId(); - netGameChat->playerId = session->GetPlayerData()->GetUniqueId(); - OCTET_STRING_fromBuf( - &netChat->chatText, - (char *)netChatRequest->chatText.buf, - netChatRequest->chatText.size); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ChatMessage); + ChatMessage *netChat = packet->GetMsg()->mutable_chatmessage(); + netChat->set_gameid(server->GetId()); + netChat->set_playerid(session->GetPlayerData()->GetUniqueId()); + netChat->set_chattype(ChatMessage::chatTypeGame); + netChat->set_chattext(netChatRequest.chattext()); server->SendToAllPlayers(packet, SessionData::Game); chatSent = true; @@ -291,34 +283,31 @@ AbstractServerGameStateReceiving::ProcessPacket(boost::shared_ptr se server->GetId(), session->GetPlayerData()->GetUniqueId(), session->GetPlayerData()->GetName(), - string((char *)netChatRequest->chatText.buf, netChatRequest->chatText.size)); + netChatRequest.chattext()); //} } } } // Reject chat otherwise. if (!chatSent) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_chatRejectMessage; - ChatRejectMessage_t *netReject = &packet->GetMsg()->choice.chatRejectMessage; - OCTET_STRING_fromBuf( - &netReject->chatText, - (char *)netChatRequest->chatText.buf, - netChatRequest->chatText.size); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ChatRejectMessage); + ChatRejectMessage *netReject = packet->GetMsg()->mutable_chatrejectmessage(); + netReject->set_chattext(netChatRequest.chattext()); server->GetLobbyThread().GetSender().Send(session, packet); } - } else if (packet->GetMsg()->present == PokerTHMessage_PR_subscriptionRequestMessage) { - SubscriptionRequestMessage_t *netSubscription = &packet->GetMsg()->choice.subscriptionRequestMessage; - if (netSubscription->subscriptionAction == subscriptionAction_resubscribeGameList) { + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_SubscriptionRequestMessage) { + const SubscriptionRequestMessage &netSubscription = packet->GetMsg()->subscriptionrequestmessage(); + if (netSubscription.subscriptionaction() == SubscriptionRequestMessage::resubscribeGameList) { if (!session->WantsLobbyMsg()) server->GetLobbyThread().ResubscribeLobbyMsg(session); } else session->ResetWantsLobbyMsg(); - } else if (packet->GetMsg()->present == PokerTHMessage_PR_reportAvatarMessage) { - ReportAvatarMessage_t *netReport = &packet->GetMsg()->choice.reportAvatarMessage; - boost::shared_ptr tmpPlayer = server->GetPlayerDataByUniqueId(netReport->reportedPlayerId); + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_ReportAvatarMessage) { + const ReportAvatarMessage &netReport = packet->GetMsg()->reportavatarmessage(); + boost::shared_ptr tmpPlayer = server->GetPlayerDataByUniqueId(netReport.reportedplayerid()); MD5Buf tmpMD5; - memcpy(tmpMD5.GetData(), netReport->reportedAvatar.buf, MD5_DATA_SIZE); + memcpy(tmpMD5.GetData(), netReport.reportedavatarhash().data(), MD5_DATA_SIZE); if (tmpPlayer && tmpPlayer->GetDBId() && !tmpMD5.IsZero() && tmpPlayer->GetAvatarMD5() == tmpMD5) { if (!server->IsAvatarReported(tmpPlayer->GetUniqueId())) { // Temporarily note that this avatar was reported. @@ -343,25 +332,25 @@ AbstractServerGameStateReceiving::ProcessPacket(boost::shared_ptr se myDBid != 0 ? &myDBid : NULL ); } else { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_reportAvatarAckMessage; - ReportAvatarAckMessage_t *netReportAck = &packet->GetMsg()->choice.reportAvatarAckMessage; - netReportAck->reportedPlayerId = netReport->reportedPlayerId; - netReportAck->reportAvatarResult = reportAvatarResult_avatarReportDuplicate; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ReportAvatarAckMessage); + ReportAvatarAckMessage *netReportAck = packet->GetMsg()->mutable_reportavatarackmessage(); + netReportAck->set_reportedplayerid(netReport.reportedplayerid()); + netReportAck->set_reportavatarresult(ReportAvatarAckMessage::avatarReportDuplicate); server->GetLobbyThread().GetSender().Send(session, packet); } } else { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_reportAvatarAckMessage; - ReportAvatarAckMessage_t *netReportAck = &packet->GetMsg()->choice.reportAvatarAckMessage; - netReportAck->reportedPlayerId = netReport->reportedPlayerId; - netReportAck->reportAvatarResult = reportAvatarResult_avatarReportInvalid; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ReportAvatarAckMessage); + ReportAvatarAckMessage *netReportAck = packet->GetMsg()->mutable_reportavatarackmessage(); + netReportAck->set_reportedplayerid(netReport.reportedplayerid()); + netReportAck->set_reportavatarresult(ReportAvatarAckMessage::avatarReportInvalid); server->GetLobbyThread().GetSender().Send(session, packet); } - } else if (packet->GetMsg()->present == PokerTHMessage_PR_reportGameMessage) { + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_ReportGameMessage) { // Delegate to Lobby. - server->GetLobbyThread().HandleGameReportGame(session, packet->GetMsg()->choice.reportGameMessage); - } else if (packet->GetMsg()->present == PokerTHMessage_PR_joinGameRequestMessage) { + server->GetLobbyThread().HandleGameReportGame(session, packet->GetMsg()->reportgamemessage()); + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_JoinExistingGameMessage) { // Ignore join game requests in this state (may be multiple clicks from the lobby). } else { // Packet processing in subclass. @@ -372,33 +361,27 @@ AbstractServerGameStateReceiving::ProcessPacket(boost::shared_ptr se boost::shared_ptr AbstractServerGameStateReceiving::CreateNetPacketPlayerJoined(unsigned gameId, const PlayerData &playerData) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_gamePlayerMessage; - GamePlayerMessage_t *netGamePlayer = &packet->GetMsg()->choice.gamePlayerMessage; - netGamePlayer->gameId = gameId; - netGamePlayer->gamePlayerNotification.present = gamePlayerNotification_PR_gamePlayerJoined; - GamePlayerJoined_t *playerJoined = &netGamePlayer->gamePlayerNotification.choice.gamePlayerJoined; - playerJoined->playerId = playerData.GetUniqueId(); - playerJoined->isGameAdmin = playerData.IsGameAdmin(); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_GamePlayerJoinedMessage); + GamePlayerJoinedMessage *netGamePlayer = packet->GetMsg()->mutable_gameplayerjoinedmessage(); + netGamePlayer->set_gameid(gameId); + netGamePlayer->set_playerid(playerData.GetUniqueId()); + netGamePlayer->set_isgameadmin(playerData.IsGameAdmin()); return packet; } boost::shared_ptr AbstractServerGameStateReceiving::CreateNetPacketJoinGameAck(const ServerGame &server, const PlayerData &playerData) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_joinGameReplyMessage; - JoinGameReplyMessage_t *netJoinReply = &packet->GetMsg()->choice.joinGameReplyMessage; - netJoinReply->gameId = server.GetId(); - netJoinReply->joinGameResult.present = joinGameResult_PR_joinGameAck; - JoinGameAck_t *joinAck = &netJoinReply->joinGameResult.choice.joinGameAck; - joinAck->areYouGameAdmin = static_cast(playerData.IsGameAdmin()); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_JoinGameAckMessage); + JoinGameAckMessage *netJoinReply = packet->GetMsg()->mutable_joingameackmessage(); + netJoinReply->set_gameid(server.GetId()); + netJoinReply->set_areyougameadmin(playerData.IsGameAdmin()); - NetPacket::SetGameData(server.GetGameData(), &joinAck->gameInfo); - OCTET_STRING_fromBuf( - &joinAck->gameInfo.gameName, - server.GetName().c_str(), - (int)server.GetName().length()); + NetGameInfo *gameInfo = netJoinReply->mutable_gameinfo(); + NetPacket::SetGameData(server.GetGameData(), *gameInfo); + gameInfo->set_gamename(server.GetName()); return packet; } @@ -548,11 +531,11 @@ ServerGameStateInit::TimerAdminWarning(const boost::system::error_code &ec, boos boost::shared_ptr session = server->GetSessionManager().GetSessionByUniquePlayerId(server->GetAdminPlayerId()); if (session) { // Send him a warning. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_timeoutWarningMessage; - TimeoutWarningMessage_t *netWarning = &packet->GetMsg()->choice.timeoutWarningMessage; - netWarning->timeoutReason = NETWORK_TIMEOUT_GAME_ADMIN_IDLE; - netWarning->remainingSeconds = SERVER_GAME_ADMIN_WARNING_REMAINING_SEC; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_TimeoutWarningMessage); + TimeoutWarningMessage *netWarning = packet->GetMsg()->mutable_timeoutwarningmessage(); + netWarning->set_timeoutreason(TimeoutWarningMessage::timeoutInactiveGame); + netWarning->set_remainingseconds(SERVER_GAME_ADMIN_WARNING_REMAINING_SEC); server->GetLobbyThread().GetSender().Send(session, packet); } // Start timeout timer. @@ -598,14 +581,12 @@ ServerGameStateInit::SendStartEvent(ServerGame &server, bool fillWithComputerPla server.GetLobbyThread().NotifyPlayerJoinedGame(server.GetId(), tmpPlayerData->GetUniqueId()); } } - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_startEventMessage; - StartEventMessage_t *netStartEvent = &packet->GetMsg()->choice.startEventMessage; - netStartEvent->gameId = server.GetId(); - - netStartEvent->startEventType.present = startEventType_PR_startEvent; - StartEvent_t *start = &netStartEvent->startEventType.choice.startEvent; - start->fillWithComputerPlayers = fillWithComputerPlayers; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_StartEventMessage); + StartEventMessage *netStartEvent = packet->GetMsg()->mutable_starteventmessage(); + netStartEvent->set_starteventtype(StartEventMessage::startEvent); + netStartEvent->set_gameid(server.GetId()); + netStartEvent->set_fillwithcomputerplayers(fillWithComputerPlayers); // Wait for all players to confirm start of game. server.SendToAllPlayers(packet, SessionData::Game); @@ -618,48 +599,48 @@ ServerGameStateInit::SendStartEvent(ServerGame &server, bool fillWithComputerPla void ServerGameStateInit::InternalProcessPacket(boost::shared_ptr server, boost::shared_ptr session, boost::shared_ptr packet) { - if (packet->GetMsg()->present == PokerTHMessage_PR_startEventMessage) { - StartEventMessage_t *netStartEvent = &packet->GetMsg()->choice.startEventMessage; + if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_StartEventMessage) { + const StartEventMessage &netStartEvent = packet->GetMsg()->starteventmessage(); // Only admins are allowed to start the game. if (session->GetPlayerData()->IsGameAdmin() - && netStartEvent->gameId == server->GetId() - && netStartEvent->startEventType.present == startEventType_PR_startEvent + && netStartEvent.gameid() == server->GetId() + && netStartEvent.starteventtype() == StartEventMessage::startEvent && (server->GetGameData().gameType != GAME_TYPE_RANKING // ranking games need to be full || server->GetGameData().maxNumberOfPlayers == server->GetCurNumberOfPlayers())) { - SendStartEvent(*server, netStartEvent->startEventType.choice.startEvent.fillWithComputerPlayers != 0); + SendStartEvent(*server, netStartEvent.fillwithcomputerplayers()); } else { // kick players who try to start but are not allowed to server->MoveSessionToLobby(session, NTF_NET_REMOVED_START_FAILED); } - } else if (packet->GetMsg()->present == PokerTHMessage_PR_invitePlayerToGameMessage) { - InvitePlayerToGameMessage_t *netInvite = &packet->GetMsg()->choice.invitePlayerToGameMessage; + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_InvitePlayerToGameMessage) { + const InvitePlayerToGameMessage &netInvite = packet->GetMsg()->inviteplayertogamemessage(); // Only invite players which are not already within the group. - if (netInvite->gameId == server->GetId() && !server->IsPlayerConnected(netInvite->playerId)) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_inviteNotifyMessage; - InviteNotifyMessage_t *netInvNotif = &packet->GetMsg()->choice.inviteNotifyMessage; - netInvNotif->gameId = netInvite->gameId; - netInvNotif->playerIdByWhom = session->GetPlayerData()->GetUniqueId(); - netInvNotif->playerIdWho = netInvite->playerId; + if (netInvite.gameid() == server->GetId() && !server->IsPlayerConnected(netInvite.playerid())) { + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_InviteNotifyMessage); + InviteNotifyMessage *netInvNotif = packet->GetMsg()->mutable_invitenotifymessage(); + netInvNotif->set_gameid(netInvite.gameid()); + netInvNotif->set_playeridbywhom(session->GetPlayerData()->GetUniqueId()); + netInvNotif->set_playeridwho(netInvite.playerid()); - bool requestSent = server->GetLobbyThread().SendToLobbyPlayer(netInvite->playerId, packet); + bool requestSent = server->GetLobbyThread().SendToLobbyPlayer(netInvite.playerid(), packet); server->SendToAllPlayers(packet, SessionData::Game); if (requestSent) { // This player has been invited. - server->AddPlayerInvitation(netInvite->playerId); + server->AddPlayerInvitation(netInvite.playerid()); } else { // Player is not in lobby - send reject message. - boost::shared_ptr p2(new NetPacket(NetPacket::Alloc)); - p2->GetMsg()->present = PokerTHMessage_PR_rejectInvNotifyMessage; - RejectInvNotifyMessage_t *netRejNotif = &p2->GetMsg()->choice.rejectInvNotifyMessage; - netRejNotif->gameId = netInvite->gameId; - netRejNotif->playerId = netInvite->playerId; - netRejNotif->playerRejectReason = RejectGameInvReason_busy; + boost::shared_ptr p2(new NetPacket); + p2->GetMsg()->set_messagetype(PokerTHMessage::Type_RejectInvNotifyMessage); + RejectInvNotifyMessage *netRejNotif = p2->GetMsg()->mutable_rejectinvnotifymessage(); + netRejNotif->set_gameid(netInvite.gameid()); + netRejNotif->set_playerid(netInvite.playerid()); + netRejNotif->set_playerrejectreason(RejectGameInvitationMessage::rejectReasonBusy); server->SendToAllPlayers(p2, SessionData::Game); } } - } else if (packet->GetMsg()->present == PokerTHMessage_PR_resetTimeoutMessage) { + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_ResetTimeoutMessage) { if (session->GetPlayerData()->IsGameAdmin()) { RegisterAdminTimer(server); } @@ -712,7 +693,7 @@ ServerGameStateStartGame::HandleNewSession(boost::shared_ptr server, void ServerGameStateStartGame::InternalProcessPacket(boost::shared_ptr server, boost::shared_ptr session, boost::shared_ptr packet) { - if (packet->GetMsg()->present == PokerTHMessage_PR_startEventAckMessage) { + if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_StartEventAckMessage) { session->SetReadyFlag(); if (server->GetSessionManager().CountReadySessions() == server->GetSessionManager().GetRawSessionCount()) { // Everyone is ready. @@ -746,23 +727,18 @@ ServerGameStateStartGame::DoStart(boost::shared_ptr server) server->MoveSessionToLobby(tmpSession, NTF_NET_REMOVED_START_FAILED); } } else { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_gameStartMessage; - GameStartMessage_t *netGameStart = &packet->GetMsg()->choice.gameStartMessage; - netGameStart->gameId = server->GetId(); - netGameStart->startDealerPlayerId = server->GetStartData().startDealerPlayerId; - netGameStart->gameStartMode.present = gameStartMode_PR_gameStartModeInitial; - GameStartModeInitial_t *netStartModeInitial = &netGameStart->gameStartMode.choice.gameStartModeInitial; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_GameStartInitialMessage); + GameStartInitialMessage *netGameStart = packet->GetMsg()->mutable_gamestartinitialmessage(); + netGameStart->set_gameid(server->GetId()); + netGameStart->set_startdealerplayerid(server->GetStartData().startDealerPlayerId); // Send player order to clients. // Assume player list is sorted by number. PlayerDataList::iterator player_i = tmpPlayerList.begin(); PlayerDataList::iterator player_end = tmpPlayerList.end(); while (player_i != player_end) { - NonZeroId_t *playerSlot = (NonZeroId_t *)calloc(1, sizeof(NonZeroId_t)); - *playerSlot = (*player_i)->GetUniqueId(); - ASN_SEQUENCE_ADD(&netStartModeInitial->playerSeats.list, playerSlot); - + netGameStart->add_playerseats((*player_i)->GetUniqueId()); ++player_i; } @@ -794,11 +770,11 @@ AbstractServerGameStateRunning::HandleNewSession(boost::shared_ptr s server->AddRejoinPlayer(session->GetPlayerData()->GetUniqueId()); // Send start event right away. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_startEventMessage; - StartEventMessage_t *netStartEvent = &packet->GetMsg()->choice.startEventMessage; - netStartEvent->gameId = server->GetId(); - netStartEvent->startEventType.present = startEventType_PR_rejoinEvent; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_StartEventMessage); + StartEventMessage *netStartEvent = packet->GetMsg()->mutable_starteventmessage(); + netStartEvent->set_starteventtype(StartEventMessage::rejoinEvent); + netStartEvent->set_gameid(server->GetId()); // Wait for rejoining player to confirm start of game. server->GetLobbyThread().GetSender().Send(session, packet); @@ -812,7 +788,7 @@ AbstractServerGameStateRunning::HandleNewSession(boost::shared_ptr s void AbstractServerGameStateRunning::InternalProcessPacket(boost::shared_ptr server, boost::shared_ptr session, boost::shared_ptr packet) { - if (packet->GetMsg()->present == PokerTHMessage_PR_resetTimeoutMessage) { + if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_ResetTimeoutMessage) { // Reactivate session. server->AddReactivatePlayer(session->GetPlayerData()->GetUniqueId()); } @@ -896,23 +872,21 @@ ServerGameStateHand::EngineLoop(boost::shared_ptr server) && !curGame.getCurrentHand()->getCardsShown() && nonFoldPlayers.size() > 1) { // Send cards of all active players to all players (all in). - boost::shared_ptr allIn(new NetPacket(NetPacket::Alloc)); - allIn->GetMsg()->present = PokerTHMessage_PR_allInShowCardsMessage; - AllInShowCardsMessage_t *netAllInShow = &allIn->GetMsg()->choice.allInShowCardsMessage; - netAllInShow->gameId = server->GetId(); + boost::shared_ptr allIn(new NetPacket); + allIn->GetMsg()->set_messagetype(PokerTHMessage::Type_AllInShowCardsMessage); + AllInShowCardsMessage *netAllInShow = allIn->GetMsg()->mutable_allinshowcardsmessage(); + netAllInShow->set_gameid(server->GetId()); PlayerListConstIterator i = nonFoldPlayers.begin(); PlayerListConstIterator end = nonFoldPlayers.end(); while (i != end) { - PlayerAllIn_t *playerAllIn = (PlayerAllIn_t *)calloc(1, sizeof(PlayerAllIn_t)); - playerAllIn->playerId = (*i)->getMyUniqueID(); + AllInShowCardsMessage::PlayerAllIn *playerAllIn = netAllInShow->add_playersallin(); + playerAllIn->set_playerid((*i)->getMyUniqueID()); int tmpCards[2]; (*i)->getMyCards(tmpCards); - playerAllIn->allInCard1 = tmpCards[0]; - playerAllIn->allInCard2 = tmpCards[1]; - ASN_SEQUENCE_ADD(&netAllInShow->playersAllIn.list, playerAllIn); - + playerAllIn->set_allincard1(tmpCards[0]); + playerAllIn->set_allincard2(tmpCards[1]); ++i; } server->SendToAllPlayers(allIn, SessionData::Game); @@ -944,12 +918,12 @@ ServerGameStateHand::EngineLoop(boost::shared_ptr server) if (!curPlayer->getMyActiveStatus()) throw ServerException(__FILE__, __LINE__, ERR_NET_PLAYER_NOT_ACTIVE, 0); - boost::shared_ptr notification(new NetPacket(NetPacket::Alloc)); - notification->GetMsg()->present = PokerTHMessage_PR_playersTurnMessage; - PlayersTurnMessage_t *netPlayersTurn = ¬ification->GetMsg()->choice.playersTurnMessage; - netPlayersTurn->gameId = server->GetId(); - netPlayersTurn->gameState = curGame.getCurrentHand()->getCurrentRound(); - netPlayersTurn->playerId = curPlayer->getMyUniqueID(); + boost::shared_ptr notification(new NetPacket); + notification->GetMsg()->set_messagetype(PokerTHMessage::Type_PlayersTurnMessage); + PlayersTurnMessage *netPlayersTurn = notification->GetMsg()->mutable_playersturnmessage(); + netPlayersTurn->set_gameid(server->GetId()); + netPlayersTurn->set_gamestate(static_cast(curGame.getCurrentHand()->getCurrentRound())); + netPlayersTurn->set_playerid(curPlayer->getMyUniqueID()); server->SendToAllPlayers(notification, SessionData::Game); // If the player is computer controlled, let the engine act. @@ -985,27 +959,21 @@ ServerGameStateHand::EngineLoop(boost::shared_ptr server) if (nonFoldPlayers.size() == 1) { // End of Hand, but keep cards hidden. boost::shared_ptr player = nonFoldPlayers.front(); - boost::shared_ptr endHand(new NetPacket(NetPacket::Alloc)); - endHand->GetMsg()->present = PokerTHMessage_PR_endOfHandMessage; - EndOfHandMessage_t *netEndHand = &endHand->GetMsg()->choice.endOfHandMessage; - netEndHand->gameId = server->GetId(); - - netEndHand->endOfHandType.present = endOfHandType_PR_endOfHandHideCards; - EndOfHandHideCards_t *endHandHide = &netEndHand->endOfHandType.choice.endOfHandHideCards; - endHandHide->playerId = player->getMyUniqueID(); - endHandHide->moneyWon = player->getLastMoneyWon(); - endHandHide->playerMoney = player->getMyCash(); + boost::shared_ptr endHand(new NetPacket); + endHand->GetMsg()->set_messagetype(PokerTHMessage::Type_EndOfHandHideCardsMessage); + EndOfHandHideCardsMessage *netEndHand = endHand->GetMsg()->mutable_endofhandhidecardsmessage(); + netEndHand->set_gameid(server->GetId()); + netEndHand->set_playerid(player->getMyUniqueID()); + netEndHand->set_moneywon(player->getLastMoneyWon()); + netEndHand->set_playermoney(player->getMyCash()); server->SendToAllPlayers(endHand, SessionData::Game); } else { // End of Hand - show cards. const PlayerIdList showList(curGame.getCurrentHand()->getBoard()->getPlayerNeedToShowCards()); - boost::shared_ptr endHand(new NetPacket(NetPacket::Alloc)); - endHand->GetMsg()->present = PokerTHMessage_PR_endOfHandMessage; - EndOfHandMessage_t *netEndHand = &endHand->GetMsg()->choice.endOfHandMessage; - netEndHand->gameId = server->GetId(); - - netEndHand->endOfHandType.present = endOfHandType_PR_endOfHandShowCards; - EndOfHandShowCards_t *endHandShow = &netEndHand->endOfHandType.choice.endOfHandShowCards; + boost::shared_ptr endHand(new NetPacket); + endHand->GetMsg()->set_messagetype(PokerTHMessage::Type_EndOfHandShowCardsMessage); + EndOfHandShowCardsMessage *netEndHand = endHand->GetMsg()->mutable_endofhandshowcardsmessage(); + netEndHand->set_gameid(server->GetId()); PlayerIdList::const_iterator i = showList.begin(); PlayerIdList::const_iterator end = showList.end(); @@ -1013,10 +981,8 @@ ServerGameStateHand::EngineLoop(boost::shared_ptr server) while (i != end) { boost::shared_ptr tmpPlayer(curGame.getPlayerByUniqueId(*i)); if (tmpPlayer) { - PlayerResult_t *playerResult = (PlayerResult_t *)calloc(1, sizeof(PlayerResult_t)); + PlayerResult *playerResult = netEndHand->add_playerresults(); SetPlayerResult(*playerResult, tmpPlayer, GAME_STATE_RIVER); - - ASN_SEQUENCE_ADD(&endHandShow->playerResults.list, playerResult); } ++i; } @@ -1100,11 +1066,11 @@ void ServerGameStateHand::TimerNextGame(const boost::system::error_code &ec, boost::shared_ptr server, unsigned winnerPlayerId) { if (!ec && &server->GetState() == this) { - boost::shared_ptr endGame(new NetPacket(NetPacket::Alloc)); - endGame->GetMsg()->present = PokerTHMessage_PR_endOfGameMessage; - EndOfGameMessage_t *netEndGame = &endGame->GetMsg()->choice.endOfGameMessage; - netEndGame->gameId = server->GetId(); - netEndGame->winnerPlayerId = winnerPlayerId; + boost::shared_ptr endGame(new NetPacket); + endGame->GetMsg()->set_messagetype(PokerTHMessage::Type_EndOfGameMessage); + EndOfGameMessage *netEndGame = endGame->GetMsg()->mutable_endofgamemessage(); + netEndGame->set_gameid(server->GetId()); + netEndGame->set_winnerplayerid(winnerPlayerId); server->SendToAllPlayers(endGame, SessionData::Game); // Wait for the start of a new game. @@ -1175,16 +1141,15 @@ ServerGameStateHand::StartNewHand(boost::shared_ptr server) bool errorFlag = false; tmpPlayer->getMyCards(cards); - boost::shared_ptr notifyCards(new NetPacket(NetPacket::Alloc)); - notifyCards->GetMsg()->present = PokerTHMessage_PR_handStartMessage; - HandStartMessage_t *netHandStart = ¬ifyCards->GetMsg()->choice.handStartMessage; - netHandStart->gameId = server->GetId(); + boost::shared_ptr notifyCards(new NetPacket); + notifyCards->GetMsg()->set_messagetype(PokerTHMessage::Type_HandStartMessage); + HandStartMessage *netHandStart = notifyCards->GetMsg()->mutable_handstartmessage(); + netHandStart->set_gameid(server->GetId()); string tmpPassword(tmpSession->AuthGetPassword()); if (tmpPassword.empty()) { // encrypt only if password is present - netHandStart->yourCards.present = yourCards_PR_plainCards; - PlainCards_t *plainCards = &netHandStart->yourCards.choice.plainCards; - plainCards->plainCard1 = cards[0]; - plainCards->plainCard2 = cards[1]; + HandStartMessage::PlainCards *plainCards = netHandStart->mutable_plaincards(); + plainCards->set_plaincard1(cards[0]); + plainCards->set_plaincard2(cards[1]); } else { ostringstream cardDataStream; vector tmpCipher; @@ -1199,12 +1164,7 @@ ServerGameStateHand::StartNewHand(boost::shared_ptr server) cardDataStream.str(), tmpCipher) && !tmpCipher.empty()) { - netHandStart->yourCards.present = yourCards_PR_encryptedCards; - EncryptedCards_t *encryptedCards = &netHandStart->yourCards.choice.encryptedCards; - OCTET_STRING_fromBuf( - &encryptedCards->cardData, - (const char *)&tmpCipher[0], - (int)tmpCipher.size()); + netHandStart->set_encryptedcards((const char *)&tmpCipher[0], tmpCipher.size()); } else { server->RemovePlayer(tmpPlayer->getMyUniqueID(), ERR_SOCK_INVALID_STATE); errorFlag = true; @@ -1214,21 +1174,21 @@ ServerGameStateHand::StartNewHand(boost::shared_ptr server) PlayerListIterator player_end = curGame.getSeatsList()->end(); int playerCounter = 0; while (player_i != player_end && playerCounter < server->GetStartData().numberOfPlayers) { - NetPlayerState_t *seatState = (NetPlayerState_t *)calloc(1, sizeof(NetPlayerState_t)); + NetPlayerState seatState; if (!(*player_i)->getMyActiveStatus()) { - *seatState = NetPlayerState_playerStateNoMoney; + seatState = playerStateNoMoney; } else if (!(*player_i)->isSessionActive()) { - *seatState = NetPlayerState_playerStateSessionInactive; + seatState = playerStateSessionInactive; } else { - *seatState = NetPlayerState_playerStateNormal; + seatState = playerStateNormal; } - ASN_SEQUENCE_ADD(&netHandStart->seatStates.list, seatState); + netHandStart->add_seatstates(seatState); ++player_i; ++playerCounter; } if (!errorFlag) { - netHandStart->smallBlind = curGame.getCurrentHand()->getSmallBlind(); + netHandStart->set_smallblind(curGame.getCurrentHand()->getSmallBlind()); server->GetLobbyThread().GetSender().Send(tmpSession, notifyCards); } } @@ -1245,17 +1205,17 @@ ServerGameStateHand::StartNewHand(boost::shared_ptr server) while (i != end) { boost::shared_ptr tmpPlayer = *i; if (tmpPlayer->getMyButton() == BUTTON_SMALL_BLIND) { - boost::shared_ptr notifySmallBlind(new NetPacket(NetPacket::Alloc)); - notifySmallBlind->GetMsg()->present = PokerTHMessage_PR_playersActionDoneMessage; - PlayersActionDoneMessage_t *netSmallBlind = ¬ifySmallBlind->GetMsg()->choice.playersActionDoneMessage; - netSmallBlind->gameId = server->GetId(); - netSmallBlind->gameState = NetGameState_statePreflopSmallBlind; - netSmallBlind->playerId = tmpPlayer->getMyUniqueID(); - netSmallBlind->playerAction = tmpPlayer->getMyAction(); - netSmallBlind->totalPlayerBet = tmpPlayer->getMySet(); - netSmallBlind->playerMoney = tmpPlayer->getMyCash(); - netSmallBlind->highestSet = server->GetGame().getCurrentHand()->getCurrentBeRo()->getHighestSet(); - netSmallBlind->minimumRaise = server->GetGame().getCurrentHand()->getCurrentBeRo()->getMinimumRaise(); + boost::shared_ptr notifySmallBlind(new NetPacket); + notifySmallBlind->GetMsg()->set_messagetype(PokerTHMessage::Type_PlayersActionDoneMessage); + PlayersActionDoneMessage *netSmallBlind = notifySmallBlind->GetMsg()->mutable_playersactiondonemessage(); + netSmallBlind->set_gameid(server->GetId()); + netSmallBlind->set_gamestate(statePreflopSmallBlind); + netSmallBlind->set_playerid(tmpPlayer->getMyUniqueID()); + netSmallBlind->set_playeraction(static_cast(tmpPlayer->getMyAction())); + netSmallBlind->set_totalplayerbet(tmpPlayer->getMySet()); + netSmallBlind->set_playermoney(tmpPlayer->getMyCash()); + netSmallBlind->set_highestset(server->GetGame().getCurrentHand()->getCurrentBeRo()->getHighestSet()); + netSmallBlind->set_minimumraise(server->GetGame().getCurrentHand()->getCurrentBeRo()->getMinimumRaise()); server->SendToAllPlayers(notifySmallBlind, SessionData::Game); break; } @@ -1267,17 +1227,17 @@ ServerGameStateHand::StartNewHand(boost::shared_ptr server) while (i != end) { boost::shared_ptr tmpPlayer = *i; if (tmpPlayer->getMyButton() == BUTTON_BIG_BLIND) { - boost::shared_ptr notifyBigBlind(new NetPacket(NetPacket::Alloc)); - notifyBigBlind->GetMsg()->present = PokerTHMessage_PR_playersActionDoneMessage; - PlayersActionDoneMessage_t *netBigBlind = ¬ifyBigBlind->GetMsg()->choice.playersActionDoneMessage; - netBigBlind->gameId = server->GetId(); - netBigBlind->gameState = NetGameState_statePreflopBigBlind; - netBigBlind->playerId = tmpPlayer->getMyUniqueID(); - netBigBlind->playerAction = tmpPlayer->getMyAction(); - netBigBlind->totalPlayerBet = tmpPlayer->getMySet(); - netBigBlind->playerMoney = tmpPlayer->getMyCash(); - netBigBlind->highestSet = server->GetGame().getCurrentHand()->getCurrentBeRo()->getHighestSet(); - netBigBlind->minimumRaise = server->GetGame().getCurrentHand()->getCurrentBeRo()->getMinimumRaise(); + boost::shared_ptr notifyBigBlind(new NetPacket); + notifyBigBlind->GetMsg()->set_messagetype(PokerTHMessage::Type_PlayersActionDoneMessage); + PlayersActionDoneMessage *netBigBlind = notifyBigBlind->GetMsg()->mutable_playersactiondonemessage(); + netBigBlind->set_gameid(server->GetId()); + netBigBlind->set_gamestate(statePreflopBigBlind); + netBigBlind->set_playerid(tmpPlayer->getMyUniqueID()); + netBigBlind->set_playeraction(static_cast(tmpPlayer->getMyAction())); + netBigBlind->set_totalplayerbet(tmpPlayer->getMySet()); + netBigBlind->set_playermoney(tmpPlayer->getMyCash()); + netBigBlind->set_highestset(server->GetGame().getCurrentHand()->getCurrentBeRo()->getHighestSet()); + netBigBlind->set_minimumraise(server->GetGame().getCurrentHand()->getCurrentBeRo()->getMinimumRaise()); server->SendToAllPlayers(notifyBigBlind, SessionData::Game); break; } @@ -1304,11 +1264,11 @@ ServerGameStateHand::CheckPlayerTimeouts(boost::shared_ptr server) tmpPlayer->setIsSessionActive(false); boost::shared_ptr session = server->GetSessionManager().GetSessionByUniquePlayerId(tmpPlayer->getMyUniqueID()); if (session) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_timeoutWarningMessage; - TimeoutWarningMessage_t *netWarning = &packet->GetMsg()->choice.timeoutWarningMessage; - netWarning->timeoutReason = NETWORK_TIMEOUT_KICK_AFTER_AUTOFOLD; - netWarning->remainingSeconds = actionTimeout * SERVER_GAME_FORCED_TIMEOUT_FACTOR - tmpPlayer->getTimeSecSinceLastRemoteAction(); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_TimeoutWarningMessage); + TimeoutWarningMessage *netWarning = packet->GetMsg()->mutable_timeoutwarningmessage(); + netWarning->set_timeoutreason(TimeoutWarningMessage::timeoutKickAfterAutofold); + netWarning->set_remainingseconds(actionTimeout * SERVER_GAME_FORCED_TIMEOUT_FACTOR - tmpPlayer->getTimeSecSinceLastRemoteAction()); server->GetLobbyThread().GetSender().Send(session, packet); } } @@ -1360,11 +1320,11 @@ ServerGameStateHand::PerformRejoin(boost::shared_ptr server, boost:: boost::shared_ptr rejoinPlayer = curGame.getPlayerByName(session->GetPlayerData()->GetName()); if (rejoinPlayer) { // Notify other clients about id change. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_playerIdChangedMessage; - PlayerIdChangedMessage_t *netIdChanged = &packet->GetMsg()->choice.playerIdChangedMessage; - netIdChanged->oldPlayerId = rejoinPlayer->getMyUniqueID(); - netIdChanged->newPlayerId = session->GetPlayerData()->GetUniqueId(); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_PlayerIdChangedMessage); + PlayerIdChangedMessage *netIdChanged = packet->GetMsg()->mutable_playeridchangedmessage(); + netIdChanged->set_oldplayerid(rejoinPlayer->getMyUniqueID()); + netIdChanged->set_newplayerid(session->GetPlayerData()->GetUniqueId()); server->SendToAllButOnePlayers(packet, session->GetId(), SessionData::Game); // Update the dealer, if necessary. @@ -1378,24 +1338,20 @@ ServerGameStateHand::PerformRejoin(boost::shared_ptr server, boost:: rejoinPlayer->setIsSessionActive(true); // Send game start notification to rejoining client. - packet.reset(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_gameStartMessage; - GameStartMessage_t *netGameStart = &packet->GetMsg()->choice.gameStartMessage; - netGameStart->gameId = server->GetId(); - netGameStart->startDealerPlayerId = curGame.getDealerPosition(); - netGameStart->gameStartMode.present = gameStartMode_PR_gameStartModeRejoin; - GameStartModeRejoin_t *netStartModeRejoin = &netGameStart->gameStartMode.choice.gameStartModeRejoin; - - netStartModeRejoin->handNum = curGame.getCurrentHandID(); + packet.reset(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_GameStartRejoinMessage); + GameStartRejoinMessage *netGameStart = packet->GetMsg()->mutable_gamestartrejoinmessage(); + netGameStart->set_gameid(server->GetId()); + netGameStart->set_startdealerplayerid(curGame.getDealerPosition()); + netGameStart->set_handnum(curGame.getCurrentHandID()); PlayerListIterator player_i = curGame.getSeatsList()->begin(); PlayerListIterator player_end = curGame.getSeatsList()->end(); int player_count = 0; while (player_i != player_end && player_count < server->GetStartData().numberOfPlayers) { boost::shared_ptr tmpPlayer = *player_i; - RejoinPlayerData_t *playerSlot = (RejoinPlayerData_t *)calloc(1, sizeof(RejoinPlayerData_t)); - playerSlot->playerId = tmpPlayer->getMyUniqueID(); - playerSlot->playerMoney = tmpPlayer->getMyCash(); - ASN_SEQUENCE_ADD(&netStartModeRejoin->rejoinPlayerData.list, playerSlot); + GameStartRejoinMessage::RejoinPlayerData *playerSlot = netGameStart->add_rejoinplayerdata(); + playerSlot->set_playerid(tmpPlayer->getMyUniqueID()); + playerSlot->set_playermoney(tmpPlayer->getMyCash()); ++player_i; ++player_count; } @@ -1453,8 +1409,8 @@ ServerGameStateWaitPlayerAction::InternalProcessPacket(boost::shared_ptrGetMsg()->present == PokerTHMessage_PR_myActionRequestMessage) { - MyActionRequestMessage_t *netMyAction = &packet->GetMsg()->choice.myActionRequestMessage; + if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_MyActionRequestMessage) { + MyActionRequestMessage *netMyAction = packet->GetMsg()->mutable_myactionrequestmessage(); // TODO consider game id. Game &curGame = server->GetGame(); @@ -1464,7 +1420,7 @@ ServerGameStateWaitPlayerAction::InternalProcessPacket(boost::shared_ptrgetCurrentRound() != netMyAction->gameState) + if (curGame.getCurrentHand()->getCurrentRound() != netMyAction->gamestate()) code = ACTION_CODE_INVALID_STATE; // Check whether this is the correct player. @@ -1475,20 +1431,20 @@ ServerGameStateWaitPlayerAction::InternalProcessPacket(boost::shared_ptrmyAction == PLAYER_ACTION_CALL && netMyAction->myRelativeBet == 0) { + if (netMyAction->myaction() == PLAYER_ACTION_CALL && netMyAction->myrelativebet() == 0) { if (curGame.getCurrentHand()->getCurrentBeRo()->getHighestSet() >= tmpPlayer->getMySet() + tmpPlayer->getMyCash()) - netMyAction->myAction = PLAYER_ACTION_ALLIN; + netMyAction->set_myaction(actionAllIn); else - netMyAction->myRelativeBet = curGame.getCurrentHand()->getCurrentBeRo()->getHighestSet() - tmpPlayer->getMySet(); + netMyAction->set_myrelativebet(curGame.getCurrentHand()->getCurrentBeRo()->getHighestSet() - tmpPlayer->getMySet()); } - if (netMyAction->myAction == PLAYER_ACTION_ALLIN && netMyAction->myRelativeBet == 0) - netMyAction->myRelativeBet = tmpPlayer->getMyCash(); + if (netMyAction->myaction() == PLAYER_ACTION_ALLIN && netMyAction->myrelativebet() == 0) + netMyAction->set_myrelativebet(tmpPlayer->getMyCash()); // Check whether the action is valid. if (code == ACTION_CODE_VALID && (tmpPlayer->checkMyAction( - netMyAction->myAction, - netMyAction->myRelativeBet, + netMyAction->myaction(), + netMyAction->myrelativebet(), curGame.getCurrentHand()->getCurrentBeRo()->getHighestSet(), curGame.getCurrentHand()->getCurrentBeRo()->getMinimumRaise(), curGame.getCurrentHand()->getSmallBlind()) != 0)) { @@ -1498,18 +1454,18 @@ ServerGameStateWaitPlayerAction::InternalProcessPacket(boost::shared_ptrsetIsSessionActive(true); tmpPlayer->markRemoteAction(); - PerformPlayerAction(*server, tmpPlayer, static_cast(netMyAction->myAction), netMyAction->myRelativeBet); + PerformPlayerAction(*server, tmpPlayer, static_cast(netMyAction->myaction()), netMyAction->myrelativebet()); server->SetState(ServerGameStateHand::Instance()); } else { // Send reject message. - boost::shared_ptr reject(new NetPacket(NetPacket::Alloc)); - reject->GetMsg()->present = PokerTHMessage_PR_yourActionRejectedMessage; - YourActionRejectedMessage_t *netActionRejected = &reject->GetMsg()->choice.yourActionRejectedMessage; - netActionRejected->gameId = server->GetId(); - netActionRejected->gameState = netMyAction->gameState; - netActionRejected->yourAction = netMyAction->myAction; - netActionRejected->yourRelativeBet = netMyAction->myRelativeBet; - netActionRejected->rejectionReason = code; + boost::shared_ptr reject(new NetPacket); + reject->GetMsg()->set_messagetype(PokerTHMessage::Type_YourActionRejectedMessage); + YourActionRejectedMessage *netActionRejected = reject->GetMsg()->mutable_youractionrejectedmessage(); + netActionRejected->set_gameid(server->GetId()); + netActionRejected->set_gamestate(netMyAction->gamestate()); + netActionRejected->set_youraction(netMyAction->myaction()); + netActionRejected->set_yourrelativebet(netMyAction->myrelativebet()); + netActionRejected->set_rejectionreason(static_cast(code)); server->GetLobbyThread().GetSender().Send(session, reject); } } @@ -1587,15 +1543,15 @@ ServerGameStateWaitNextHand::InternalProcessPacket(boost::shared_ptr { AbstractServerGameStateRunning::InternalProcessPacket(server, session, packet); - if (packet->GetMsg()->present == PokerTHMessage_PR_showMyCardsRequestMessage) { + if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_ShowMyCardsRequestMessage) { Game &curGame = server->GetGame(); - boost::shared_ptr show(new NetPacket(NetPacket::Alloc)); - show->GetMsg()->present = PokerTHMessage_PR_afterHandShowCardsMessage; + boost::shared_ptr show(new NetPacket); + show->GetMsg()->set_messagetype(PokerTHMessage::Type_AfterHandShowCardsMessage); - AfterHandShowCardsMessage_t *netShowCards = &show->GetMsg()->choice.afterHandShowCardsMessage; + AfterHandShowCardsMessage *netShowCards = show->GetMsg()->mutable_afterhandshowcardsmessage(); boost::shared_ptr tmpPlayer(curGame.getPlayerByUniqueId(session->GetPlayerData()->GetUniqueId())); if (tmpPlayer) { - SetPlayerResult(netShowCards->playerResult, tmpPlayer, curGame.getCurrentHand()->getRoundBeforePostRiver()); + SetPlayerResult(*netShowCards->mutable_playerresult(), tmpPlayer, curGame.getCurrentHand()->getRoundBeforePostRiver()); server->SendToAllPlayers(show, SessionData::Game); } } diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index b32c5df1..8ba8acbd 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1,6 +1,6 @@ /***************************************************************************** * PokerTH - The open source texas holdem engine * - * Copyright (C) 2006-2011 Felix Hammer, Florian Thauer, Lothar May * + * Copyright (C) 2006-2012 Felix Hammer, Florian Thauer, Lothar May * * * * This program is free software: you can redistribute it and/or modify * * it under the terms of the GNU Affero General Public License as * @@ -266,28 +266,28 @@ ServerLobbyThread::AddConnection(boost::shared_ptr sock) sessionData->SetClientAddr(ipAddress); hasClientIp = true; - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_announceMessage; - AnnounceMessage_t *netAnnounce = &packet->GetMsg()->choice.announceMessage; - netAnnounce->protocolVersion.major = NET_VERSION_MAJOR; - netAnnounce->protocolVersion.minor = NET_VERSION_MINOR; - netAnnounce->latestGameVersion.major = POKERTH_VERSION_MAJOR; - netAnnounce->latestGameVersion.minor = POKERTH_VERSION_MINOR; - netAnnounce->latestBetaRevision = POKERTH_BETA_REVISION; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_AnnounceMessage); + AnnounceMessage *netAnnounce = packet->GetMsg()->mutable_announcemessage(); + netAnnounce->mutable_protocolversion()->set_major(NET_VERSION_MAJOR); + netAnnounce->mutable_protocolversion()->set_minor(NET_VERSION_MINOR); + netAnnounce->mutable_latestgameversion()->set_major(POKERTH_VERSION_MAJOR); + netAnnounce->mutable_latestgameversion()->set_minor(POKERTH_VERSION_MINOR); + netAnnounce->set_latestbetarevision(POKERTH_BETA_REVISION); switch (GetServerMode()) { case SERVER_MODE_LAN: - netAnnounce->serverType = serverType_serverTypeLAN; + netAnnounce->set_servertype(AnnounceMessage::serverTypeLAN); break; case SERVER_MODE_INTERNET_NOAUTH: - netAnnounce->serverType = serverType_serverTypeInternetNoAuth; + netAnnounce->set_servertype(AnnounceMessage::serverTypeInternetNoAuth); break; case SERVER_MODE_INTERNET_AUTH: - netAnnounce->serverType = serverType_serverTypeInternetAuth; + netAnnounce->set_servertype(AnnounceMessage::serverTypeInternetAuth); break; } { boost::mutex::scoped_lock lock(m_statMutex); - netAnnounce->numPlayersOnServer = m_statData.numberOfPlayersOnServer; + netAnnounce->set_numplayersonserver(m_statData.numberOfPlayersOnServer); } GetSender().Send(sessionData, packet); sessionData->GetReceiveBuffer().StartAsyncRead(sessionData); @@ -309,31 +309,29 @@ void ServerLobbyThread::ReAddSession(boost::shared_ptr session, int reason, unsigned gameId) { if (session && session->GetPlayerData()) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_gamePlayerMessage; - GamePlayerMessage_t *netPlayerMsg = &packet->GetMsg()->choice.gamePlayerMessage; - netPlayerMsg->gameId = gameId; - netPlayerMsg->gamePlayerNotification.present = gamePlayerNotification_PR_removedFromGame; - RemovedFromGame_t *removed = &netPlayerMsg->gamePlayerNotification.choice.removedFromGame; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_RemovedFromGameMessage); + RemovedFromGameMessage *removed = packet->GetMsg()->mutable_removedfromgamemessage(); + removed->set_gameid(gameId); switch (reason) { case NTF_NET_REMOVED_GAME_FULL : - removed->removedFromGameReason = removedFromGameReason_gameIsFull; + removed->set_removedfromgamereason(RemovedFromGameMessage::gameIsFull); break; case NTF_NET_REMOVED_ALREADY_RUNNING : - removed->removedFromGameReason = removedFromGameReason_gameIsRunning; + removed->set_removedfromgamereason(RemovedFromGameMessage::gameIsRunning); break; case NTF_NET_REMOVED_KICKED : - removed->removedFromGameReason = removedFromGameReason_kickedFromGame; + removed->set_removedfromgamereason(RemovedFromGameMessage::kickedFromGame); break; case NTF_NET_REMOVED_TIMEOUT : - removed->removedFromGameReason = removedFromGameReason_gameTimeout; + removed->set_removedfromgamereason(RemovedFromGameMessage::gameTimeout); break; case NTF_NET_REMOVED_START_FAILED : - removed->removedFromGameReason = removedFromGameReason_removedStartFailed; + removed->set_removedfromgamereason(RemovedFromGameMessage::removedStartFailed); break; default : - removed->removedFromGameReason = removedFromGameReason_removedOnRequest; + removed->set_removedfromgamereason(RemovedFromGameMessage::removedOnRequest); break; } GetSender().Send(session, packet); @@ -417,14 +415,11 @@ void ServerLobbyThread::NotifyPlayerJoinedGame(unsigned gameId, unsigned playerId) { // Send notification to players in lobby. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_gameListMessage; - GameListMessage_t *netListMsg = &packet->GetMsg()->choice.gameListMessage; - netListMsg->gameId = gameId; - - netListMsg->gameListNotification.present = gameListNotification_PR_gameListPlayerJoined; - GameListPlayerJoined_t *playerJoined = &netListMsg->gameListNotification.choice.gameListPlayerJoined; - playerJoined->playerId = playerId; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_GameListPlayerJoinedMessage); + GameListPlayerJoinedMessage *netListMsg = packet->GetMsg()->mutable_gamelistplayerjoinedmessage(); + netListMsg->set_gameid(gameId); + netListMsg->set_playerid(playerId); m_sessionManager.SendLobbyMsgToAllSessions(GetSender(), packet, SessionData::Established); m_gameSessionManager.SendLobbyMsgToAllSessions(GetSender(), packet, SessionData::Game); @@ -434,14 +429,11 @@ void ServerLobbyThread::NotifyPlayerLeftGame(unsigned gameId, unsigned playerId) { // Send notification to players in lobby. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_gameListMessage; - GameListMessage_t *netListMsg = &packet->GetMsg()->choice.gameListMessage; - netListMsg->gameId = gameId; - - netListMsg->gameListNotification.present = gameListNotification_PR_gameListPlayerLeft; - GameListPlayerLeft_t *playerLeft = &netListMsg->gameListNotification.choice.gameListPlayerLeft; - playerLeft->playerId = playerId; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_GameListPlayerLeftMessage); + GameListPlayerLeftMessage *netListMsg = packet->GetMsg()->mutable_gamelistplayerleftmessage(); + netListMsg->set_gameid(gameId); + netListMsg->set_playerid(playerId); m_sessionManager.SendLobbyMsgToAllSessions(GetSender(), packet, SessionData::Established); m_gameSessionManager.SendLobbyMsgToAllSessions(GetSender(), packet, SessionData::Game); @@ -451,14 +443,12 @@ void ServerLobbyThread::NotifyGameAdminChanged(unsigned gameId, unsigned newAdminPlayerId) { // Send notification to players in lobby. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_gameListMessage; - GameListMessage_t *netListMsg = &packet->GetMsg()->choice.gameListMessage; - netListMsg->gameId = gameId; - - netListMsg->gameListNotification.present = gameListNotification_PR_gameListAdminChanged; - GameListAdminChanged_t *adminChanged = &netListMsg->gameListNotification.choice.gameListAdminChanged; - adminChanged->newAdminPlayerId = newAdminPlayerId; + // Send notification to players in lobby. + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_GameListAdminChangedMessage); + GameListAdminChangedMessage *netListMsg = packet->GetMsg()->mutable_gamelistadminchangedmessage(); + netListMsg->set_gameid(gameId); + netListMsg->set_newadminplayerid(newAdminPlayerId); m_sessionManager.SendLobbyMsgToAllSessions(GetSender(), packet, SessionData::Established); m_gameSessionManager.SendLobbyMsgToAllSessions(GetSender(), packet, SessionData::Game); @@ -481,28 +471,28 @@ ServerLobbyThread::NotifyReopeningGame(unsigned gameId) } void -ServerLobbyThread::HandleGameRetrievePlayerInfo(boost::shared_ptr session, const PlayerInfoRequestMessage_t &playerInfoRequest) +ServerLobbyThread::HandleGameRetrievePlayerInfo(boost::shared_ptr session, const PlayerInfoRequestMessage &playerInfoRequest) { // Someone within a game requested player info. HandleNetPacketRetrievePlayerInfo(session, playerInfoRequest); } void -ServerLobbyThread::HandleGameRetrieveAvatar(boost::shared_ptr session, const AvatarRequestMessage_t &retrieveAvatar) +ServerLobbyThread::HandleGameRetrieveAvatar(boost::shared_ptr session, const AvatarRequestMessage &retrieveAvatar) { // Someone within a game requested an avatar. HandleNetPacketRetrieveAvatar(session, retrieveAvatar); } void -ServerLobbyThread::HandleGameReportGame(boost::shared_ptr session, const ReportGameMessage_t &reportGame) +ServerLobbyThread::HandleGameReportGame(boost::shared_ptr session, const ReportGameMessage &reportGame) { // Someone within a game reportet a game name. HandleNetPacketReportGame(session, reportGame); } void -ServerLobbyThread::HandleChatRequest(boost::shared_ptr session, const ChatRequestMessage_t &chatRequest) +ServerLobbyThread::HandleChatRequest(boost::shared_ptr session, const ChatRequestMessage &chatRequest) { // Someone within a game sent a lobby message. HandleNetPacketChatRequest(session, chatRequest); @@ -584,14 +574,11 @@ ServerLobbyThread::MutePlayerInGame(unsigned playerId) void ServerLobbyThread::SendGlobalChat(const string &message) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_chatMessage; - ChatMessage_t *netChat = &packet->GetMsg()->choice.chatMessage; - netChat->chatType.present = chatType_PR_chatTypeBroadcast; - OCTET_STRING_fromBuf( - &netChat->chatText, - message.c_str(), - (int)message.length()); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ChatMessage); + ChatMessage *netChat = packet->GetMsg()->mutable_chatmessage(); + netChat->set_chattype(ChatMessage::chatTypeBroadcast); + netChat->set_chattext(message); m_sessionManager.SendToAllSessions(GetSender(), packet, SessionData::Established); m_gameSessionManager.SendToAllSessions(GetSender(), packet, SessionData::Game); @@ -600,14 +587,11 @@ ServerLobbyThread::SendGlobalChat(const string &message) void ServerLobbyThread::SendGlobalMsgBox(const string &message) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_dialogMessage; - DialogMessage_t *netDialog = &packet->GetMsg()->choice.dialogMessage; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_DialogMessage); + DialogMessage *netDialog = packet->GetMsg()->mutable_dialogmessage(); + netDialog->set_notificationtext(message); - OCTET_STRING_fromBuf( - &netDialog->notificationText, - message.c_str(), - (int)message.length()); m_sessionManager.SendToAllSessions(GetSender(), packet, SessionData::Established); m_gameSessionManager.SendToAllSessions(GetSender(), packet, SessionData::Game); } @@ -615,14 +599,11 @@ ServerLobbyThread::SendGlobalMsgBox(const string &message) void ServerLobbyThread::SendChatBotMsg(const std::string &message) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_chatMessage; - ChatMessage_t *netChat = &packet->GetMsg()->choice.chatMessage; - netChat->chatType.present = chatType_PR_chatTypeBot; - OCTET_STRING_fromBuf( - &netChat->chatText, - message.c_str(), - (int)message.length()); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ChatMessage); + ChatMessage *netChat = packet->GetMsg()->mutable_chatmessage(); + netChat->set_chattype(ChatMessage::chatTypeBot); + netChat->set_chattext(message); m_sessionManager.SendLobbyMsgToAllSessions(GetSender(), packet, SessionData::Established); m_gameSessionManager.SendLobbyMsgToAllSessions(GetSender(), packet, SessionData::Game); @@ -636,14 +617,12 @@ ServerLobbyThread::SendChatBotMsg(const std::string &message) void ServerLobbyThread::SendChatBotMsg(unsigned gameId, const std::string &message) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_chatMessage; - ChatMessage_t *netChat = &packet->GetMsg()->choice.chatMessage; - netChat->chatType.present = chatType_PR_chatTypeBot; - OCTET_STRING_fromBuf( - &netChat->chatText, - message.c_str(), - (int)message.length()); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ChatMessage); + ChatMessage *netChat = packet->GetMsg()->mutable_chatmessage(); + netChat->set_chattype(ChatMessage::chatTypeBot); + netChat->set_gameid(gameId); + netChat->set_chattext(message); GameMap::const_iterator pos = m_gameMap.find(gameId); if (pos != m_gameMap.end()) { @@ -888,72 +867,61 @@ ServerLobbyThread::HandlePacket(boost::shared_ptr session, boost::s session->ResetActivityTimer(); if (session->GetState() == SessionData::Init) { - if (packet->GetMsg()->present == PokerTHMessage_PR_initMessage) - HandleNetPacketInit(session, packet->GetMsg()->choice.initMessage); - else if (packet->GetMsg()->present == PokerTHMessage_PR_authMessage) { - AuthMessage_t *authMsg = &packet->GetMsg()->choice.authMessage; - if (authMsg->present == AuthMessage_PR_authClientResponse) - HandleNetPacketAuthClientResponse(session, authMsg->choice.authClientResponse); - else - SessionError(session, ERR_SOCK_INVALID_STATE); - } else if (packet->GetMsg()->present == PokerTHMessage_PR_avatarReplyMessage) { - AvatarReplyMessage_t *avatarReply = &packet->GetMsg()->choice.avatarReplyMessage; - if (avatarReply->avatarResult.present == avatarResult_PR_avatarHeader) - HandleNetPacketAvatarHeader(session, avatarReply->requestId, avatarReply->avatarResult.choice.avatarHeader); - else if (avatarReply->avatarResult.present == avatarResult_PR_unknownAvatar) - HandleNetPacketUnknownAvatar(session, avatarReply->requestId, avatarReply->avatarResult.choice.unknownAvatar); - else - SessionError(session, ERR_SOCK_INVALID_STATE); - } else + if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_InitMessage) { + HandleNetPacketInit(session, packet->GetMsg()->initmessage()); + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_AuthClientResponseMessage) { + HandleNetPacketAuthClientResponse(session, packet->GetMsg()->authclientresponsemessage()); + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_AvatarHeaderMessage) { + HandleNetPacketAvatarHeader(session, packet->GetMsg()->avatarheadermessage()); + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_UnknownAvatarMessage) { + HandleNetPacketUnknownAvatar(session, packet->GetMsg()->unknownavatarmessage()); + } else { SessionError(session, ERR_SOCK_INVALID_STATE); + } } else if (session->GetState() == SessionData::ReceivingAvatar) { - if (packet->GetMsg()->present == PokerTHMessage_PR_avatarReplyMessage) { - AvatarReplyMessage_t *avatarReply = &packet->GetMsg()->choice.avatarReplyMessage; - if (avatarReply->avatarResult.present == avatarResult_PR_avatarData) - HandleNetPacketAvatarFile(session, avatarReply->requestId, avatarReply->avatarResult.choice.avatarData); - else if (avatarReply->avatarResult.present == avatarResult_PR_avatarEnd) - HandleNetPacketAvatarEnd(session, avatarReply->requestId, avatarReply->avatarResult.choice.avatarEnd); - else - SessionError(session, ERR_SOCK_INVALID_STATE); - } else + if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_AvatarDataMessage) { + HandleNetPacketAvatarFile(session, packet->GetMsg()->avatardatamessage()); + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_AvatarEndMessage) { + HandleNetPacketAvatarEnd(session, packet->GetMsg()->avatarendmessage()); + } else { SessionError(session, ERR_SOCK_INVALID_STATE); + } } else { - if (packet->GetMsg()->present == PokerTHMessage_PR_playerInfoRequestMessage) - HandleNetPacketRetrievePlayerInfo(session, packet->GetMsg()->choice.playerInfoRequestMessage); - else if (packet->GetMsg()->present == PokerTHMessage_PR_avatarRequestMessage) - HandleNetPacketRetrieveAvatar(session, packet->GetMsg()->choice.avatarRequestMessage); - else if (packet->GetMsg()->present == PokerTHMessage_PR_resetTimeoutMessage) + if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_PlayerInfoRequestMessage) + HandleNetPacketRetrievePlayerInfo(session, packet->GetMsg()->playerinforequestmessage()); + else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_AvatarRequestMessage) + HandleNetPacketRetrieveAvatar(session, packet->GetMsg()->avatarrequestmessage()); + else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_ResetTimeoutMessage) {} - else if (packet->GetMsg()->present == PokerTHMessage_PR_subscriptionRequestMessage) { - SubscriptionRequestMessage_t *subscriptionRequest = &packet->GetMsg()->choice.subscriptionRequestMessage; - if (subscriptionRequest->subscriptionAction == subscriptionAction_resubscribeGameList) + else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_SubscriptionRequestMessage) { + const SubscriptionRequestMessage &subscriptionRequest = packet->GetMsg()->subscriptionrequestmessage(); + if (subscriptionRequest.subscriptionaction() == SubscriptionRequestMessage::resubscribeGameList) InternalResubscribeMsg(session); else session->ResetWantsLobbyMsg(); - } else if (packet->GetMsg()->present == PokerTHMessage_PR_joinGameRequestMessage) { - JoinGameRequestMessage_t *joinRequest = &packet->GetMsg()->choice.joinGameRequestMessage; - if (joinRequest->joinGameAction.present == joinGameAction_PR_joinNewGame) - HandleNetPacketCreateGame(session, joinRequest->autoLeave, joinRequest->joinGameAction.choice.joinNewGame); - else if (joinRequest->joinGameAction.present == joinGameAction_PR_joinExistingGame) - HandleNetPacketJoinGame(session, joinRequest->autoLeave, joinRequest->joinGameAction.choice.joinExistingGame); - else if (joinRequest->joinGameAction.present == joinGameAction_PR_rejoinExistingGame) - HandleNetPacketRejoinGame(session, joinRequest->autoLeave, joinRequest->joinGameAction.choice.rejoinExistingGame); - } else if (packet->GetMsg()->present == PokerTHMessage_PR_chatRequestMessage) { - HandleNetPacketChatRequest(session, packet->GetMsg()->choice.chatRequestMessage); - } else if (packet->GetMsg()->present == PokerTHMessage_PR_rejectGameInvitationMessage) { - HandleNetPacketRejectGameInvitation(session, packet->GetMsg()->choice.rejectGameInvitationMessage); - } else if (packet->GetMsg()->present == PokerTHMessage_PR_reportGameMessage) { - HandleNetPacketReportGame(session, packet->GetMsg()->choice.reportGameMessage); - } else if (packet->GetMsg()->present == PokerTHMessage_PR_leaveGameRequestMessage) { + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_JoinNewGameMessage) { + HandleNetPacketCreateGame(session, packet->GetMsg()->joinnewgamemessage()); + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_JoinExistingGameMessage) { + HandleNetPacketJoinGame(session, packet->GetMsg()->joinexistinggamemessage()); + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_RejoinExistingGameMessage) { + HandleNetPacketRejoinGame(session, packet->GetMsg()->rejoinexistinggamemessage()); + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_ChatRequestMessage) { + HandleNetPacketChatRequest(session, packet->GetMsg()->chatrequestmessage()); + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_RejectGameInvitationMessage) { + HandleNetPacketRejectGameInvitation(session, packet->GetMsg()->rejectgameinvitationmessage()); + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_ReportGameMessage) { + HandleNetPacketReportGame(session, packet->GetMsg()->reportgamemessage()); + } else if (packet->GetMsg()->messagetype() == PokerTHMessage::Type_LeaveGameRequestMessage) { // Ignore "leave game" in this state. - } else + } else { SessionError(session, ERR_SOCK_INVALID_STATE); + } } } } void -ServerLobbyThread::HandleNetPacketInit(boost::shared_ptr session, const InitMessage_t &initMessage) +ServerLobbyThread::HandleNetPacketInit(boost::shared_ptr session, const InitMessage &initMessage) { LOG_VERBOSE("Received init for session #" << session->GetId() << "."); @@ -976,7 +944,7 @@ ServerLobbyThread::HandleNetPacketInit(boost::shared_ptr session, c } // Check the protocol version. - if (initMessage.requestedVersion.major != NET_VERSION_MAJOR + if (initMessage.requestedversion().major() != NET_VERSION_MAJOR || session->GetPlayerData()) { // Has this session already sent an init? SessionError(session, ERR_NET_VERSION_NOT_SUPPORTED); return; @@ -984,8 +952,8 @@ ServerLobbyThread::HandleNetPacketInit(boost::shared_ptr session, c #ifndef POKERTH_OFFICIAL_SERVER // Check (clear text) server password (skip for official server, they are open to everyone). string serverPassword; - if (initMessage.authServerPassword) { - serverPassword = STL_STRING_FROM_OCTET_STRING(*initMessage.authServerPassword); + if (initMessage.has_authserverpassword()) { + serverPassword = initMessage.authserverpassword(); } if (serverPassword != m_serverConfig.readConfigString("ServerPassword")) { SessionError(session, ERR_NET_INVALID_PASSWORD); @@ -997,9 +965,8 @@ ServerLobbyThread::HandleNetPacketInit(boost::shared_ptr session, c MD5Buf avatarMD5; bool noAuth = false; bool validGuest = false; - if (initMessage.login.present == login_PR_guestLogin) { - const GuestLogin_t *guestLogin = &initMessage.login.choice.guestLogin; - playerName = STL_STRING_FROM_OCTET_STRING(guestLogin->nickName); + if (initMessage.login() == InitMessage::guestLogin) { + playerName = initMessage.nickname(); // Verify guest player name. if (playerName.length() > sizeof(SERVER_GUEST_PLAYER_NAME - 1) && playerName.substr(0, sizeof(SERVER_GUEST_PLAYER_NAME) - 1) == SERVER_GUEST_PLAYER_NAME) { @@ -1015,21 +982,21 @@ ServerLobbyThread::HandleNetPacketInit(boost::shared_ptr session, c } } #ifdef POKERTH_OFFICIAL_SERVER - else if (initMessage.login.present == login_PR_authenticatedLogin) { - const AuthenticatedLogin_t *authLogin = &initMessage.login.choice.authenticatedLogin; - string inAuthData((const char *)authLogin->clientUserData.buf, authLogin->clientUserData.size); - if (authLogin->avatar) - memcpy(avatarMD5.GetData(), authLogin->avatar->buf, MD5_DATA_SIZE); + else if (initMessage.login() == InitMessage::authenticatedLogin) { + string inAuthData(initMessage.clientuserdata()); + if (initMessage.has_avatarhash()) { + memcpy(avatarMD5.GetData(), initMessage.avatarhash().data(), MD5_DATA_SIZE); + } session->CreateServerAuthSession(m_authContext); if (session->AuthStep(1, inAuthData)) playerName = session->AuthGetUser(); } #else - else if (initMessage.login.present == login_PR_unauthenticatedLogin) { - const UnauthenticatedLogin_t *noauthLogin = &initMessage.login.choice.unauthenticatedLogin; - playerName = STL_STRING_FROM_OCTET_STRING(noauthLogin->nickName); - if (noauthLogin->avatar) - memcpy(avatarMD5.GetData(), noauthLogin->avatar->buf, MD5_DATA_SIZE); + else if (initMessage.login() == InitMessage::unauthenticatedLogin) { + playerName = initMessage.nickname(); + if (initMessage.has_avatarhash()) { + memcpy(avatarMD5.GetData(), initMessage.avatarhash().data(), MD5_DATA_SIZE); + } noAuth = true; } #endif @@ -1065,8 +1032,8 @@ ServerLobbyThread::HandleNetPacketInit(boost::shared_ptr session, c new PlayerData(GetNextUniquePlayerId(), 0, PLAYER_TYPE_HUMAN, validGuest ? PLAYER_RIGHTS_GUEST : PLAYER_RIGHTS_NORMAL, false)); tmpPlayerData->SetName(playerName); tmpPlayerData->SetAvatarMD5(avatarMD5); - if (initMessage.myLastSessionId) { - tmpPlayerData->SetOldGuid(STL_STRING_FROM_OCTET_STRING(*initMessage.myLastSessionId)); + if (initMessage.has_mylastsessionid()) { + tmpPlayerData->SetOldGuid(initMessage.mylastsessionid()); } // Set player data for session. @@ -1080,22 +1047,17 @@ ServerLobbyThread::HandleNetPacketInit(boost::shared_ptr session, c } void -ServerLobbyThread::HandleNetPacketAuthClientResponse(boost::shared_ptr session, const AuthClientResponse_t &clientResponse) +ServerLobbyThread::HandleNetPacketAuthClientResponse(boost::shared_ptr session, const AuthClientResponseMessage &clientResponse) { if (session && session->GetPlayerData() && session->AuthGetCurStepNum() == 1) { - string authData = STL_STRING_FROM_OCTET_STRING(clientResponse.clientResponse); + string authData = clientResponse.clientresponse(); if (session->AuthStep(2, authData)) { string outVerification(session->AuthGetNextOutMsg()); - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_authMessage; - AuthMessage_t *netAuth = &packet->GetMsg()->choice.authMessage; - netAuth->present = AuthMessage_PR_authServerVerification; - AuthServerVerification_t *verification = &netAuth->choice.authServerVerification; - OCTET_STRING_fromBuf( - &verification->serverVerification, - (char *)outVerification.c_str(), - (int)outVerification.size()); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_AuthServerVerificationMessage); + AuthServerVerificationMessage *verification = packet->GetMsg()->mutable_authserververificationmessage(); + verification->set_serververification(outVerification); GetSender().Send(session, packet); // The last message is only for server verification. // We are done now, the user has logged in. @@ -1106,14 +1068,14 @@ ServerLobbyThread::HandleNetPacketAuthClientResponse(boost::shared_ptr session, unsigned /*requestId*/, const AvatarHeader_t &avatarHeader) +ServerLobbyThread::HandleNetPacketAvatarHeader(boost::shared_ptr session, const AvatarHeaderMessage &avatarHeader) { if (session->GetPlayerData()) { - if (avatarHeader.avatarSize >= MIN_AVATAR_FILE_SIZE && avatarHeader.avatarSize <= MAX_AVATAR_FILE_SIZE) { + if (avatarHeader.avatarsize() >= MIN_AVATAR_FILE_SIZE && avatarHeader.avatarsize() <= MAX_AVATAR_FILE_SIZE) { boost::shared_ptr tmpAvatarFile(new AvatarFile); - tmpAvatarFile->fileData.reserve(avatarHeader.avatarSize); - tmpAvatarFile->fileType = static_cast(avatarHeader.avatarType); - tmpAvatarFile->reportedSize = avatarHeader.avatarSize; + tmpAvatarFile->fileData.reserve(avatarHeader.avatarsize()); + tmpAvatarFile->fileType = static_cast(avatarHeader.avatartype()); + tmpAvatarFile->reportedSize = avatarHeader.avatarsize(); // Ignore request id for now. session->GetPlayerData()->SetNetAvatarFile(tmpAvatarFile); @@ -1126,7 +1088,7 @@ ServerLobbyThread::HandleNetPacketAvatarHeader(boost::shared_ptr se } void -ServerLobbyThread::HandleNetPacketUnknownAvatar(boost::shared_ptr session, unsigned /*requestId*/, const UnknownAvatar_t &/*unknownAvatar*/) +ServerLobbyThread::HandleNetPacketUnknownAvatar(boost::shared_ptr session, const UnknownAvatarMessage &/*unknownAvatar*/) { if (session->GetPlayerData()) { // Free memory (just in case). @@ -1138,18 +1100,19 @@ ServerLobbyThread::HandleNetPacketUnknownAvatar(boost::shared_ptr s } void -ServerLobbyThread::HandleNetPacketAvatarFile(boost::shared_ptr session, unsigned /*requestId*/, const AvatarData_t &avatarData) +ServerLobbyThread::HandleNetPacketAvatarFile(boost::shared_ptr session, const AvatarDataMessage &avatarData) { if (session->GetPlayerData()) { boost::shared_ptr tmpAvatar = session->GetPlayerData()->GetNetAvatarFile(); - if (tmpAvatar.get() && tmpAvatar->fileData.size() + avatarData.avatarBlock.size <= tmpAvatar->reportedSize) { - std::copy(&avatarData.avatarBlock.buf[0], &avatarData.avatarBlock.buf[avatarData.avatarBlock.size], back_inserter(tmpAvatar->fileData)); + const string &avatarBlock = avatarData.avatarblock(); + if (tmpAvatar && tmpAvatar->fileData.size() + avatarBlock.size() <= tmpAvatar->reportedSize) { + std::copy(&avatarBlock[0], &avatarBlock[avatarBlock.size()], back_inserter(tmpAvatar->fileData)); } } } void -ServerLobbyThread::HandleNetPacketAvatarEnd(boost::shared_ptr session, unsigned /*requestId*/, const AvatarEnd_t &/*avatarEnd*/) +ServerLobbyThread::HandleNetPacketAvatarEnd(boost::shared_ptr session, const AvatarEndMessage &/*avatarEnd*/) { if (session->GetPlayerData()) { boost::shared_ptr tmpAvatar = session->GetPlayerData()->GetNetAvatarFile(); @@ -1179,12 +1142,12 @@ ServerLobbyThread::HandleNetPacketAvatarEnd(boost::shared_ptr sessi } void -ServerLobbyThread::HandleNetPacketRetrievePlayerInfo(boost::shared_ptr session, const PlayerInfoRequestMessage_t &playerInfoRequest) +ServerLobbyThread::HandleNetPacketRetrievePlayerInfo(boost::shared_ptr session, const PlayerInfoRequestMessage &playerInfoRequest) { // Find player in lobby or in a game. - boost::shared_ptr tmpSession = m_sessionManager.GetSessionByUniquePlayerId(playerInfoRequest.playerId); + boost::shared_ptr tmpSession = m_sessionManager.GetSessionByUniquePlayerId(playerInfoRequest.playerid()); if (!tmpSession) { - tmpSession = m_gameSessionManager.GetSessionByUniquePlayerId(playerInfoRequest.playerId); + tmpSession = m_gameSessionManager.GetSessionByUniquePlayerId(playerInfoRequest.playerid()); } boost::shared_ptr tmpPlayer; if (tmpSession) { @@ -1193,59 +1156,48 @@ ServerLobbyThread::HandleNetPacketRetrievePlayerInfo(boost::shared_ptrsecond; } - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_playerInfoReplyMessage; - PlayerInfoReplyMessage_t *netPlayerInfoReply = &packet->GetMsg()->choice.playerInfoReplyMessage; - netPlayerInfoReply->playerId = playerInfoRequest.playerId; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_PlayerInfoReplyMessage); + PlayerInfoReplyMessage *netPlayerInfoReply = packet->GetMsg()->mutable_playerinforeplymessage(); + netPlayerInfoReply->set_playerid(playerInfoRequest.playerid()); if (tmpPlayer) { // Send player info to client. - netPlayerInfoReply->playerInfoResult.present = playerInfoResult_PR_playerInfoData; - PlayerInfoData *data = &netPlayerInfoReply->playerInfoResult.choice.playerInfoData; + PlayerInfoReplyMessage::PlayerInfoData *data = netPlayerInfoReply->mutable_playerinfodata(); - data->isHuman = tmpPlayer->GetType() == PLAYER_TYPE_HUMAN; - data->playerRights = static_cast(tmpPlayer->GetRights()); - OCTET_STRING_fromBuf( - &data->playerName, - tmpPlayer->GetName().c_str(), - (int)tmpPlayer->GetName().length()); + data->set_playername(tmpPlayer->GetName()); + data->set_ishuman(tmpPlayer->GetType() == PLAYER_TYPE_HUMAN); + data->set_playerrights(static_cast(tmpPlayer->GetRights())); if (!tmpPlayer->GetCountry().empty()) { - data->countryCode = OCTET_STRING_new_fromBuf( - &asn_DEF_UTF8String, - tmpPlayer->GetCountry().c_str(), - (int)tmpPlayer->GetCountry().length()); + data->set_countrycode(tmpPlayer->GetCountry()); } if (!tmpPlayer->GetAvatarMD5().IsZero()) { - data->avatarData = (struct PlayerInfoData::avatarData *)calloc(1, sizeof(struct PlayerInfoData::avatarData)); - data->avatarData->avatarType = static_cast(AvatarManager::GetAvatarFileType(tmpPlayer->GetAvatarFile())); - OCTET_STRING_fromBuf( - &data->avatarData->avatar, - (char *)tmpPlayer->GetAvatarMD5().GetData(), - MD5_DATA_SIZE); + PlayerInfoReplyMessage::PlayerInfoData::AvatarData *avatarData = data->mutable_avatardata(); + avatarData->set_avatartype(static_cast(AvatarManager::GetAvatarFileType(tmpPlayer->GetAvatarFile()))); + avatarData->set_avatarhash(tmpPlayer->GetAvatarMD5().GetData(), MD5_DATA_SIZE); } } else { - // Unknown player id - notify client. - netPlayerInfoReply->playerInfoResult.present = playerInfoResult_PR_unknownPlayerInfo; + // Unknown player id - do not set any data. } GetSender().Send(session, packet); } void -ServerLobbyThread::HandleNetPacketRetrieveAvatar(boost::shared_ptr session, const AvatarRequestMessage_t &retrieveAvatar) +ServerLobbyThread::HandleNetPacketRetrieveAvatar(boost::shared_ptr session, const AvatarRequestMessage &retrieveAvatar) { bool avatarFound = false; string tmpFile; MD5Buf tmpMD5; - memcpy(tmpMD5.GetData(), retrieveAvatar.avatar.buf, MD5_DATA_SIZE); + memcpy(tmpMD5.GetData(), retrieveAvatar.avatarhash().data(), MD5_DATA_SIZE); if (GetAvatarManager().GetAvatarFileName(tmpMD5, tmpFile)) { NetPacketList tmpPackets; - if (GetAvatarManager().AvatarFileToNetPackets(tmpFile, retrieveAvatar.requestId, tmpPackets) == 0) { + if (GetAvatarManager().AvatarFileToNetPackets(tmpFile, retrieveAvatar.requestid(), tmpPackets) == 0) { avatarFound = true; GetSender().Send(session, tmpPackets); } else @@ -1254,29 +1206,28 @@ ServerLobbyThread::HandleNetPacketRetrieveAvatar(boost::shared_ptr if (!avatarFound) { // Notify client we didn't find the avatar. - boost::shared_ptr unknownAvatar(new NetPacket(NetPacket::Alloc)); - unknownAvatar->GetMsg()->present = PokerTHMessage_PR_avatarReplyMessage; - AvatarReplyMessage_t *netAvatarReply = &unknownAvatar->GetMsg()->choice.avatarReplyMessage; - netAvatarReply->requestId = retrieveAvatar.requestId; - netAvatarReply->avatarResult.present = avatarResult_PR_unknownAvatar; + boost::shared_ptr unknownAvatar(new NetPacket); + unknownAvatar->GetMsg()->set_messagetype(PokerTHMessage::Type_UnknownAvatarMessage); + UnknownAvatarMessage *netAvatarReply = unknownAvatar->GetMsg()->mutable_unknownavatarmessage(); + netAvatarReply->set_requestid(retrieveAvatar.requestid()); GetSender().Send(session, unknownAvatar); } } void -ServerLobbyThread::HandleNetPacketCreateGame(boost::shared_ptr session, bool autoLeave, const JoinNewGame_t &newGame) +ServerLobbyThread::HandleNetPacketCreateGame(boost::shared_ptr session, const JoinNewGameMessage &newGame) { LOG_VERBOSE("Creating new game, initiated by session #" << session->GetId() << "."); string password; - if (newGame.password) - password = string((char *)newGame.password->buf, newGame.password->size); + if (newGame.has_password()) + password = newGame.password(); // Create a new game. GameData tmpData; - NetPacket::GetGameData(&newGame.gameInfo, tmpData); - string gameName(STL_STRING_FROM_OCTET_STRING(newGame.gameInfo.gameName)); + NetPacket::GetGameData(newGame.gameinfo(), tmpData); + string gameName(newGame.gameinfo().gamename()); // Always trim the game name. boost::trim(gameName); boost::replace_all(gameName, "\n", " "); @@ -1314,81 +1265,78 @@ ServerLobbyThread::HandleNetPacketCreateGame(boost::shared_ptr sess // Add game to list of games. InternalAddGame(game); - MoveSessionToGame(game, session, autoLeave); + MoveSessionToGame(game, session, newGame.autoleave()); } } void -ServerLobbyThread::HandleNetPacketJoinGame(boost::shared_ptr session, bool autoLeave, const JoinExistingGame_t &joinGame) +ServerLobbyThread::HandleNetPacketJoinGame(boost::shared_ptr session, const JoinExistingGameMessage &joinGame) { string password; - if (joinGame.password) - password = string((char *)joinGame.password->buf, joinGame.password->size); + if (joinGame.has_password()) + password = joinGame.password(); // Join an existing game. - GameMap::iterator pos = m_gameMap.find(joinGame.gameId); + GameMap::iterator pos = m_gameMap.find(joinGame.gameid()); if (pos != m_gameMap.end()) { boost::shared_ptr game = pos->second; const GameData &tmpData = game->GetGameData(); if (session->GetPlayerData()->GetRights() == PLAYER_RIGHTS_GUEST && tmpData.gameType != GAME_TYPE_NORMAL) { - SendJoinGameFailed(session, joinGame.gameId, NTF_NET_JOIN_GUEST_FORBIDDEN); + SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_GUEST_FORBIDDEN); } else if (tmpData.gameType == GAME_TYPE_INVITE_ONLY && !game->IsPlayerInvited(session->GetPlayerData()->GetUniqueId())) { - SendJoinGameFailed(session, joinGame.gameId, NTF_NET_JOIN_NOT_INVITED); + SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_NOT_INVITED); } else if (!game->CheckPassword(password)) { - SendJoinGameFailed(session, joinGame.gameId, NTF_NET_JOIN_INVALID_PASSWORD); + SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_INVALID_PASSWORD); } else if (tmpData.gameType == GAME_TYPE_RANKING && session->GetClientAddr() != SERVER_ADDRESS_LOCALHOST_STR && session->GetClientAddr() != SERVER_ADDRESS_LOCALHOST_STR_V4V6 && session->GetClientAddr() != SERVER_ADDRESS_LOCALHOST_STR_V4 && game->IsClientAddressConnected(session->GetClientAddr())) { - SendJoinGameFailed(session, joinGame.gameId, NTF_NET_JOIN_IP_BLOCKED); + SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_IP_BLOCKED); } else { - MoveSessionToGame(game, session, autoLeave); + MoveSessionToGame(game, session, joinGame.autoleave()); } } else { - SendJoinGameFailed(session, joinGame.gameId, NTF_NET_JOIN_GAME_INVALID); + SendJoinGameFailed(session, joinGame.gameid(), NTF_NET_JOIN_GAME_INVALID); } } void -ServerLobbyThread::HandleNetPacketRejoinGame(boost::shared_ptr session, bool autoLeave, const RejoinExistingGame_t &rejoinGame) +ServerLobbyThread::HandleNetPacketRejoinGame(boost::shared_ptr session, const RejoinExistingGameMessage &rejoinGame) { // Rejoin a running game. - GameMap::iterator pos = m_gameMap.find(rejoinGame.gameId); + GameMap::iterator pos = m_gameMap.find(rejoinGame.gameid()); if (pos != m_gameMap.end()) { boost::shared_ptr game = pos->second; - MoveSessionToGame(game, session, autoLeave); + MoveSessionToGame(game, session, rejoinGame.autoleave()); } else { - SendJoinGameFailed(session, rejoinGame.gameId, NTF_NET_JOIN_GAME_INVALID); + SendJoinGameFailed(session, rejoinGame.gameid(), NTF_NET_JOIN_GAME_INVALID); } } void -ServerLobbyThread::HandleNetPacketChatRequest(boost::shared_ptr session, const ChatRequestMessage_t &chatRequest) +ServerLobbyThread::HandleNetPacketChatRequest(boost::shared_ptr session, const ChatRequestMessage &chatRequest) { bool chatSent = false; // Guests are not allowed to chat. if (session->GetPlayerData() && session->GetPlayerData()->GetRights() != PLAYER_RIGHTS_GUEST) { - if (chatRequest.chatRequestType.present == chatRequestType_PR_chatRequestTypeLobby) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_chatMessage; - ChatMessage_t *netChat = &packet->GetMsg()->choice.chatMessage; - netChat->chatType.present = chatType_PR_chatTypeLobby; - ChatTypeLobby_t *netLobbyChat = &netChat->chatType.choice.chatTypeLobby; - netLobbyChat->playerId = session->GetPlayerData()->GetUniqueId(); - OCTET_STRING_fromBuf( - &netChat->chatText, - (char *)chatRequest.chatText.buf, - chatRequest.chatText.size); + if (!chatRequest.has_targetgameid() && !chatRequest.has_targetplayerid()) { + string chatMsg(chatRequest.chattext()); + + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ChatMessage); + ChatMessage *netChat = packet->GetMsg()->mutable_chatmessage(); + netChat->set_chattype(ChatMessage::chatTypeLobby); + netChat->set_playerid(session->GetPlayerData()->GetUniqueId()); + netChat->set_chattext(chatMsg); m_sessionManager.SendLobbyMsgToAllSessions(GetSender(), packet, SessionData::Established); m_gameSessionManager.SendLobbyMsgToAllSessions(GetSender(), packet, SessionData::Game); - string chatMsg = STL_STRING_FROM_OCTET_STRING(chatRequest.chatText); // Send the message to the chat cleaner bot. m_chatCleanerManager->HandleLobbyChatText( session->GetPlayerData()->GetUniqueId(), @@ -1400,26 +1348,22 @@ ServerLobbyThread::HandleNetPacketChatRequest(boost::shared_ptr ses session->GetPlayerData()->GetName(), chatMsg); chatSent = true; - } else if (chatRequest.chatRequestType.present == chatRequestType_PR_chatRequestTypePrivate) { - const ChatRequestTypePrivate_t *netPrivateChat = &chatRequest.chatRequestType.choice.chatRequestTypePrivate; - boost::shared_ptr targetSession = m_sessionManager.GetSessionByUniquePlayerId(netPrivateChat->targetPlayerId); + } else if (!chatRequest.has_targetgameid() && chatRequest.has_targetplayerid()) { + boost::shared_ptr targetSession = m_sessionManager.GetSessionByUniquePlayerId(chatRequest.targetplayerid()); if (!targetSession) - targetSession = m_gameSessionManager.GetSessionByUniquePlayerId(netPrivateChat->targetPlayerId); + targetSession = m_gameSessionManager.GetSessionByUniquePlayerId(chatRequest.targetplayerid()); if (targetSession && targetSession->GetPlayerData()) { // Only allow private messages to players which are not in running games. boost::shared_ptr tmpGame = targetSession->GetGame(); if (!tmpGame || !tmpGame->IsRunning()) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_chatMessage; - ChatMessage_t *netChat = &packet->GetMsg()->choice.chatMessage; - netChat->chatType.present = chatType_PR_chatTypePrivate; - ChatTypePrivate_t *netPrivateChat = &netChat->chatType.choice.chatTypePrivate; - netPrivateChat->playerId = session->GetPlayerData()->GetUniqueId(); - OCTET_STRING_fromBuf( - &netChat->chatText, - (char *)chatRequest.chatText.buf, - chatRequest.chatText.size); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ChatMessage); + ChatMessage *netChat = packet->GetMsg()->mutable_chatmessage(); + netChat->set_chattype(ChatMessage::chatTypePrivate); + netChat->set_playerid(session->GetPlayerData()->GetUniqueId()); + netChat->set_chattext(chatRequest.chattext()); + GetSender().Send(targetSession, packet); chatSent = true; } @@ -1428,37 +1372,34 @@ ServerLobbyThread::HandleNetPacketChatRequest(boost::shared_ptr ses } // Other chat types are not allowed in the lobby. if (!chatSent) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_chatRejectMessage; - ChatRejectMessage_t *netReject = &packet->GetMsg()->choice.chatRejectMessage; - OCTET_STRING_fromBuf( - &netReject->chatText, - (char *)chatRequest.chatText.buf, - chatRequest.chatText.size); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ChatRejectMessage); + ChatRejectMessage *netReject = packet->GetMsg()->mutable_chatrejectmessage(); + netReject->set_chattext(chatRequest.chattext()); GetSender().Send(session, packet); } } void -ServerLobbyThread::HandleNetPacketRejectGameInvitation(boost::shared_ptr session, const RejectGameInvitationMessage_t &reject) +ServerLobbyThread::HandleNetPacketRejectGameInvitation(boost::shared_ptr session, const RejectGameInvitationMessage &reject) { - GameMap::iterator pos = m_gameMap.find(reject.gameId); + GameMap::iterator pos = m_gameMap.find(reject.gameid()); if (pos != m_gameMap.end() && session->GetPlayerData()) { ServerGame &game = *pos->second; unsigned tmpPlayerId = session->GetPlayerData()->GetUniqueId(); if (game.IsPlayerInvited(tmpPlayerId)) { // If he actively rejects, he is no longer invited. - if (reject.myRejectReason == RejectGameInvReason_no) { + if (reject.myrejectreason() == RejectGameInvitationMessage::rejectReasonNo) { game.RemovePlayerInvitation(tmpPlayerId); } // Send reject notification. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_rejectInvNotifyMessage; - RejectInvNotifyMessage_t *netReject = &packet->GetMsg()->choice.rejectInvNotifyMessage; - netReject->gameId = reject.gameId; - netReject->playerId = tmpPlayerId; - netReject->playerRejectReason = reject.myRejectReason; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_RejectInvNotifyMessage); + RejectInvNotifyMessage *netReject = packet->GetMsg()->mutable_rejectinvnotifymessage(); + netReject->set_gameid(reject.gameid()); + netReject->set_playerid(tmpPlayerId); + netReject->set_playerrejectreason(reject.myrejectreason()); game.SendToAllPlayers(packet, SessionData::Game); } @@ -1466,9 +1407,9 @@ ServerLobbyThread::HandleNetPacketRejectGameInvitation(boost::shared_ptr session, const ReportGameMessage_t &report) +ServerLobbyThread::HandleNetPacketReportGame(boost::shared_ptr session, const ReportGameMessage &report) { - GameMap::iterator pos = m_gameMap.find(report.reportedGameId); + GameMap::iterator pos = m_gameMap.find(report.reportedgameid()); if (pos != m_gameMap.end() && session->GetPlayerData()) { boost::shared_ptr tmpGame(pos->second); @@ -1487,19 +1428,19 @@ ServerLobbyThread::HandleNetPacketReportGame(boost::shared_ptr sess reporterDBId != 0 ? &reporterDBId : NULL ); } else { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_reportGameAckMessage; - ReportGameAckMessage_t *netReportAck = &packet->GetMsg()->choice.reportGameAckMessage; - netReportAck->reportedGameId = report.reportedGameId; - netReportAck->reportGameResult = reportGameResult_gameReportDuplicate; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ReportGameAckMessage); + ReportGameAckMessage *netReportAck = packet->GetMsg()->mutable_reportgameackmessage(); + netReportAck->set_reportedgameid(report.reportedgameid()); + netReportAck->set_reportgameresult(ReportGameAckMessage::gameReportDuplicate); GetSender().Send(session, packet); } } else { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_reportGameAckMessage; - ReportGameAckMessage_t *netReportAck = &packet->GetMsg()->choice.reportGameAckMessage; - netReportAck->reportedGameId = report.reportedGameId; - netReportAck->reportGameResult = reportGameResult_gameReportInvalid; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ReportGameAckMessage); + ReportGameAckMessage *netReportAck = packet->GetMsg()->mutable_reportgameackmessage(); + netReportAck->set_reportedgameid(report.reportedgameid()); + netReportAck->set_reportgameresult(ReportGameAckMessage::gameReportInvalid); GetSender().Send(session, packet); } } @@ -1511,15 +1452,10 @@ ServerLobbyThread::AuthChallenge(boost::shared_ptr session, const s session->AuthSetPassword(secret); // For this auth session. string outChallenge(session->AuthGetNextOutMsg()); - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_authMessage; - AuthMessage_t *netAuth = &packet->GetMsg()->choice.authMessage; - netAuth->present = AuthMessage_PR_authServerChallenge; - AuthServerChallenge_t *challenge = &netAuth->choice.authServerChallenge; - OCTET_STRING_fromBuf( - &challenge->serverChallenge, - (char *)outChallenge.c_str(), - (int)outChallenge.size()); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_AuthServerChallengeMessage); + AuthServerChallengeMessage *challenge = packet->GetMsg()->mutable_authserverchallengemessage(); + challenge->set_serverchallenge(outChallenge); GetSender().Send(session, packet); } } @@ -1612,17 +1548,13 @@ ServerLobbyThread::EstablishSession(boost::shared_ptr session) session->GetPlayerData()->SetGuid(string((char *)&sessionGuid, boost::uuids::uuid::static_size())); // Send ACK to client. - boost::shared_ptr ack(new NetPacket(NetPacket::Alloc)); - ack->GetMsg()->present = PokerTHMessage_PR_initAckMessage; - InitAckMessage_t *netInitAck = &ack->GetMsg()->choice.initAckMessage; - OCTET_STRING_fromBuf( - &netInitAck->yourSessionId, - session->GetPlayerData()->GetGuid().c_str(), - session->GetPlayerData()->GetGuid().size()); - netInitAck->yourPlayerId = session->GetPlayerData()->GetUniqueId(); + boost::shared_ptr ack(new NetPacket); + ack->GetMsg()->set_messagetype(PokerTHMessage::Type_InitAckMessage); + InitAckMessage *netInitAck = ack->GetMsg()->mutable_initackmessage(); + netInitAck->set_yoursessionid(session->GetPlayerData()->GetGuid()); + netInitAck->set_yourplayerid(session->GetPlayerData()->GetUniqueId()); if (rejoinGameId != 0) { - netInitAck->rejoinGameId = (NonZeroId_t *)calloc(1, sizeof(NonZeroId_t)); - *netInitAck->rejoinGameId = rejoinGameId; + netInitAck->set_rejoingameid(rejoinGameId); } GetSender().Send(session, ack); @@ -1677,11 +1609,11 @@ ServerLobbyThread::SendReportAvatarResult(unsigned byPlayerId, unsigned reported if (!session) session = m_gameSessionManager.GetSessionByUniquePlayerId(byPlayerId); if (session) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_reportAvatarAckMessage; - ReportAvatarAckMessage_t *netReportAck = &packet->GetMsg()->choice.reportAvatarAckMessage; - netReportAck->reportedPlayerId = reportedPlayerId; - netReportAck->reportAvatarResult = success ? reportAvatarResult_avatarReportAccepted : reportAvatarResult_avatarReportInvalid; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ReportAvatarAckMessage); + ReportAvatarAckMessage *netReportAck = packet->GetMsg()->mutable_reportavatarackmessage(); + netReportAck->set_reportedplayerid(reportedPlayerId); + netReportAck->set_reportavatarresult(success ? ReportAvatarAckMessage::avatarReportAccepted : ReportAvatarAckMessage::avatarReportInvalid); GetSender().Send(session, packet); } } @@ -1693,11 +1625,11 @@ ServerLobbyThread::SendReportGameResult(unsigned byPlayerId, unsigned reportedGa if (!session) session = m_gameSessionManager.GetSessionByUniquePlayerId(byPlayerId); if (session) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_reportGameAckMessage; - ReportGameAckMessage_t *netReportAck = &packet->GetMsg()->choice.reportGameAckMessage; - netReportAck->reportedGameId = reportedGameId; - netReportAck->reportGameResult = success ? reportGameResult_gameReportAccepted : reportGameResult_gameReportInvalid; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ReportGameAckMessage); + ReportGameAckMessage *netReportAck = packet->GetMsg()->mutable_reportgameackmessage(); + netReportAck->set_reportedgameid(reportedGameId); + netReportAck->set_reportgameresult(success ? ReportGameAckMessage::gameReportAccepted : ReportGameAckMessage::gameReportInvalid); GetSender().Send(session, packet); } } @@ -1714,14 +1646,12 @@ ServerLobbyThread::RequestPlayerAvatar(boost::shared_ptr session) if (!session->GetPlayerData()) throw ServerException(__FILE__, __LINE__, ERR_NET_INVALID_SESSION, 0); // Ask the client to send its avatar. - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_avatarRequestMessage; - AvatarRequestMessage_t *netAvatarRequest = &packet->GetMsg()->choice.avatarRequestMessage; - netAvatarRequest->requestId = session->GetPlayerData()->GetUniqueId(); - OCTET_STRING_fromBuf( - &netAvatarRequest->avatar, - (char *)session->GetPlayerData()->GetAvatarMD5().GetData(), - MD5_DATA_SIZE); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_AvatarRequestMessage); + AvatarRequestMessage *netAvatarRequest = packet->GetMsg()->mutable_avatarrequestmessage(); + netAvatarRequest->set_requestid(session->GetPlayerData()->GetUniqueId()); + netAvatarRequest->set_avatarhash(session->GetPlayerData()->GetAvatarMD5().GetData(), MD5_DATA_SIZE); + GetSender().Send(session, packet); } @@ -1918,11 +1848,11 @@ ServerLobbyThread::HandleReAddedSession(boost::shared_ptr session) void ServerLobbyThread::SessionTimeoutWarning(boost::shared_ptr session, unsigned remainingSec) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_timeoutWarningMessage; - TimeoutWarningMessage_t *netWarning = &packet->GetMsg()->choice.timeoutWarningMessage; - netWarning->timeoutReason = timeoutReason_timeoutNoDataReceived; - netWarning->remainingSeconds = remainingSec; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_TimeoutWarningMessage); + TimeoutWarningMessage *netWarning = packet->GetMsg()->mutable_timeoutwarningmessage(); + netWarning->set_timeoutreason(TimeoutWarningMessage::timeoutNoDataReceived); + netWarning->set_remainingseconds(remainingSec); GetSender().Send(session, packet); if (session->GetGame() && session->GetPlayerData()) { @@ -1949,57 +1879,54 @@ void ServerLobbyThread::SendError(boost::shared_ptr s, int errorCode) { LOG_VERBOSE("Sending error code " << errorCode << " to session #" << s->GetId() << "."); - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_errorMessage; - ErrorMessage_t *netError = &packet->GetMsg()->choice.errorMessage; - netError->errorReason = NetPacket::GameErrorToNetError(errorCode); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_ErrorMessage); + ErrorMessage *netError = packet->GetMsg()->mutable_errormessage(); + netError->set_errorreason(NetPacket::GameErrorToNetError(errorCode)); GetSender().Send(s, packet); } void ServerLobbyThread::SendJoinGameFailed(boost::shared_ptr s, unsigned gameId, int reason) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_joinGameReplyMessage; - JoinGameReplyMessage_t *netJoinReply = &packet->GetMsg()->choice.joinGameReplyMessage; - netJoinReply->gameId = gameId; - - netJoinReply->joinGameResult.present = joinGameResult_PR_joinGameFailed; - JoinGameFailed_t *joinFailed = &netJoinReply->joinGameResult.choice.joinGameFailed; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_JoinGameFailedMessage); + JoinGameFailedMessage *netJoinFailed = packet->GetMsg()->mutable_joingamefailedmessage(); + netJoinFailed->set_gameid(gameId); switch (reason) { case NTF_NET_JOIN_GAME_FULL : - joinFailed->joinGameFailureReason = joinGameFailureReason_gameIsFull; + netJoinFailed->set_joingamefailurereason(JoinGameFailedMessage::gameIsFull); break; case NTF_NET_JOIN_ALREADY_RUNNING : - joinFailed->joinGameFailureReason = joinGameFailureReason_gameIsRunning; + netJoinFailed->set_joingamefailurereason(JoinGameFailedMessage::gameIsRunning); break; case NTF_NET_JOIN_INVALID_PASSWORD : - joinFailed->joinGameFailureReason = joinGameFailureReason_invalidPassword; + netJoinFailed->set_joingamefailurereason(JoinGameFailedMessage::invalidPassword); break; case NTF_NET_JOIN_GUEST_FORBIDDEN : - joinFailed->joinGameFailureReason = joinGameFailureReason_notAllowedAsGuest; + netJoinFailed->set_joingamefailurereason(JoinGameFailedMessage::notAllowedAsGuest); break; case NTF_NET_JOIN_NOT_INVITED : - joinFailed->joinGameFailureReason = joinGameFailureReason_notInvited; + netJoinFailed->set_joingamefailurereason(JoinGameFailedMessage::notInvited); break; case NTF_NET_JOIN_GAME_NAME_IN_USE : - joinFailed->joinGameFailureReason = joinGameFailureReason_gameNameInUse; + netJoinFailed->set_joingamefailurereason(JoinGameFailedMessage::gameNameInUse); break; case NTF_NET_JOIN_GAME_BAD_NAME : - joinFailed->joinGameFailureReason = joinGameFailureReason_badGameName; + netJoinFailed->set_joingamefailurereason(JoinGameFailedMessage::badGameName); break; case NTF_NET_JOIN_INVALID_SETTINGS : - joinFailed->joinGameFailureReason = joinGameFailureReason_invalidSettings; + netJoinFailed->set_joingamefailurereason(JoinGameFailedMessage::invalidSettings); break; case NTF_NET_JOIN_IP_BLOCKED : - joinFailed->joinGameFailureReason = joinGameFailureReason_ipAddressBlocked; + netJoinFailed->set_joingamefailurereason(JoinGameFailedMessage::ipAddressBlocked); break; case NTF_NET_JOIN_REJOIN_FAILED : - joinFailed->joinGameFailureReason = joinGameFailureReason_rejoinFailed; + netJoinFailed->set_joingamefailurereason(JoinGameFailedMessage::rejoinFailed); break; default : - joinFailed->joinGameFailureReason = joinGameFailureReason_invalidGame; + netJoinFailed->set_joingamefailurereason(JoinGameFailedMessage::invalidGame); break; } GetSender().Send(s, packet); @@ -2055,14 +1982,13 @@ void ServerLobbyThread::BroadcastStatisticsUpdate(const ServerStats &stats) { if (stats.numberOfPlayersOnServer) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_statisticsMessage; - StatisticsMessage_t *netStatistics = &packet->GetMsg()->choice.statisticsMessage; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_StatisticsMessage); + StatisticsMessage *netStatistics = packet->GetMsg()->mutable_statisticsmessage(); - StatisticsData_t *data = (StatisticsData_t *)calloc(1, sizeof(struct StatisticsData)); - data->statisticsType = statisticsType_statNumberOfPlayers; - data->statisticsValue = m_sessionManager.GetRawSessionCount() + m_gameSessionManager.GetRawSessionCount(); - ASN_SEQUENCE_ADD(&netStatistics->statisticsData.list, data); + StatisticsMessage::StatisticsData *data = netStatistics->add_statisticsdata(); + data->set_statisticstype(StatisticsMessage::StatisticsData::statNumberOfPlayers); + data->set_statisticsvalue(m_sessionManager.GetRawSessionCount() + m_gameSessionManager.GetRawSessionCount()); m_sessionManager.SendLobbyMsgToAllSessions(GetSender(), packet, SessionData::Established); m_gameSessionManager.SendLobbyMsgToAllSessions(GetSender(), packet, SessionData::Game); @@ -2166,51 +2092,43 @@ ServerLobbyThread::GetPlayerId(const string &name) const boost::shared_ptr ServerLobbyThread::CreateNetPacketPlayerListNew(unsigned playerId) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_playerListMessage; - PlayerListMessage_t *netPlayerList = &packet->GetMsg()->choice.playerListMessage; - netPlayerList->playerId = playerId; - netPlayerList->playerListNotification = playerListNotification_playerListNew; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_PlayerListMessage); + PlayerListMessage *netPlayerList = packet->GetMsg()->mutable_playerlistmessage(); + netPlayerList->set_playerid(playerId); + netPlayerList->set_playerlistnotification(PlayerListMessage::playerListNew); return packet; } boost::shared_ptr ServerLobbyThread::CreateNetPacketPlayerListLeft(unsigned playerId) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_playerListMessage; - PlayerListMessage_t *netPlayerList = &packet->GetMsg()->choice.playerListMessage; - netPlayerList->playerId = playerId; - netPlayerList->playerListNotification = playerListNotification_playerListLeft; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_PlayerListMessage); + PlayerListMessage *netPlayerList = packet->GetMsg()->mutable_playerlistmessage(); + netPlayerList->set_playerid(playerId); + netPlayerList->set_playerlistnotification(PlayerListMessage::playerListLeft); return packet; } boost::shared_ptr ServerLobbyThread::CreateNetPacketGameListNew(const ServerGame &game) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_gameListMessage; - GameListMessage_t *netGameList = &packet->GetMsg()->choice.gameListMessage; - netGameList->gameId = game.GetId(); - - netGameList->gameListNotification.present = gameListNotification_PR_gameListNew; - GameListNew_t *gameNew = &netGameList->gameListNotification.choice.gameListNew; - gameNew->adminPlayerId = game.GetAdminPlayerId(); - gameNew->gameMode = game.IsRunning() ? NetGameMode_gameStarted : NetGameMode_gameCreated; - NetPacket::SetGameData(game.GetGameData(), &gameNew->gameInfo); - OCTET_STRING_fromBuf( - &gameNew->gameInfo.gameName, - game.GetName().c_str(), - (int)game.GetName().length()); - gameNew->isPrivate = game.IsPasswordProtected(); + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_GameListNewMessage); + GameListNewMessage *netGameList = packet->GetMsg()->mutable_gamelistnewmessage(); + netGameList->set_gameid(game.GetId()); + netGameList->set_adminplayerid(game.GetAdminPlayerId()); + netGameList->set_gamemode(game.IsRunning() ? gameStarted : gameCreated); + NetPacket::SetGameData(game.GetGameData(), *netGameList->mutable_gameinfo()); + netGameList->mutable_gameinfo()->set_gamename(game.GetName()); + netGameList->set_isprivate(game.IsPasswordProtected()); PlayerIdList tmpList = game.GetPlayerIdList(); PlayerIdList::const_iterator i = tmpList.begin(); PlayerIdList::const_iterator end = tmpList.end(); while (i != end) { - NonZeroId_t *playerId = (NonZeroId_t *)calloc(1, sizeof(NonZeroId_t)); - *playerId = *i; - ASN_SEQUENCE_ADD(&gameNew->playerIds.list, playerId); + netGameList->add_playerids(*i); ++i; } @@ -2220,15 +2138,11 @@ ServerLobbyThread::CreateNetPacketGameListNew(const ServerGame &game) boost::shared_ptr ServerLobbyThread::CreateNetPacketGameListUpdate(unsigned gameId, GameMode mode) { - boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); - packet->GetMsg()->present = PokerTHMessage_PR_gameListMessage; - GameListMessage_t *netGameList = &packet->GetMsg()->choice.gameListMessage; - netGameList->gameId = gameId; - - netGameList->gameListNotification.present = gameListNotification_PR_gameListUpdate; - GameListUpdate_t *gameUpdate = &netGameList->gameListNotification.choice.gameListUpdate; - - gameUpdate->gameMode = mode; + boost::shared_ptr packet(new NetPacket); + packet->GetMsg()->set_messagetype(PokerTHMessage::Type_GameListUpdateMessage); + GameListUpdateMessage *netGameList = packet->GetMsg()->mutable_gamelistupdatemessage(); + netGameList->set_gameid(gameId); + netGameList->set_gamemode(static_cast(mode)); return packet; } diff --git a/src/net/netpacket.h b/src/net/netpacket.h index 72cfd82b..2f486dfe 100644 --- a/src/net/netpacket.h +++ b/src/net/netpacket.h @@ -1,6 +1,6 @@ /***************************************************************************** * PokerTH - The open source texas holdem engine * - * Copyright (C) 2006-2011 Felix Hammer, Florian Thauer, Lothar May * + * Copyright (C) 2006-2012 Felix Hammer, Florian Thauer, Lothar May * * * * This program is free software: you can redistribute it and/or modify * * it under the terms of the GNU Affero General Public License as * @@ -23,12 +23,14 @@ #include #include -#include +#include #include #define NET_VERSION_MAJOR 5 #define NET_VERSION_MINOR 1 +#define NET_HEADER_SIZE 4 + #define MAX_FILE_DATA_SIZE 256 #define MAX_PACKET_SIZE 384 #define MAX_CHAT_TEXT_SIZE 128 @@ -40,22 +42,20 @@ #define MAX_NUM_PLAYER_RESULTS MAX_NUMBER_OF_PLAYERS #define MAX_NUM_PLAYER_CARDS MAX_NUMBER_OF_PLAYERS*/ -#define STL_STRING_FROM_OCTET_STRING(_a) (string((const char *)(_a).buf, (_a).size)) - -// This is just a wrapper class for the ASN.1 structure. +// This is just a wrapper class for the protocol buffer. class NetPacket { public: - enum MemAllocType { NoAlloc = 0, Alloc }; - NetPacket(MemAllocType alloc = NoAlloc); + NetPacket(); + NetPacket(PokerTHMessage *msg); ~NetPacket(); - static boost::shared_ptr Create(char *data, size_t &dataSize); + static boost::shared_ptr Create(char *data, size_t dataSize); - const PokerTHMessage_t *GetMsg() const { + const PokerTHMessage *GetMsg() const { return m_msg; } - PokerTHMessage_t *GetMsg() { + PokerTHMessage *GetMsg() { return m_msg; } @@ -63,14 +63,14 @@ public: std::string ToString() const; - static void SetGameData(const GameData &inData, NetGameInfo_t *outData); - static void GetGameData(const NetGameInfo_t *inData, GameData &outData); + static void SetGameData(const GameData &inData, NetGameInfo &outData); + static void GetGameData(const NetGameInfo &inData, GameData &outData); - static int NetErrorToGameError(long netErrorReason); - static long GameErrorToNetError(int gameErrorReason); + static int NetErrorToGameError(ErrorMessage::ErrorReason netErrorReason); + static ErrorMessage::ErrorReason GameErrorToNetError(int gameErrorReason); private: - PokerTHMessage_t *m_msg; + PokerTHMessage *m_msg; }; typedef std::list > NetPacketList; diff --git a/src/net/serverlobbythread.h b/src/net/serverlobbythread.h index d6950f8d..94df95ec 100644 --- a/src/net/serverlobbythread.h +++ b/src/net/serverlobbythread.h @@ -71,10 +71,10 @@ public: void NotifyReopeningGame(unsigned gameId); void DispatchPacket(boost::shared_ptr session, boost::shared_ptr packet); - void HandleGameRetrievePlayerInfo(boost::shared_ptr session, const PlayerInfoRequestMessage_t &playerInfoRequest); - void HandleGameRetrieveAvatar(boost::shared_ptr session, const AvatarRequestMessage_t &retrieveAvatar); - void HandleGameReportGame(boost::shared_ptr session, const ReportGameMessage_t &reportGame); - void HandleChatRequest(boost::shared_ptr session, const ChatRequestMessage_t &chatRequest); + void HandleGameRetrievePlayerInfo(boost::shared_ptr session, const PlayerInfoRequestMessage &playerInfoRequest); + void HandleGameRetrieveAvatar(boost::shared_ptr session, const AvatarRequestMessage &retrieveAvatar); + void HandleGameReportGame(boost::shared_ptr session, const ReportGameMessage &reportGame); + void HandleChatRequest(boost::shared_ptr session, const ChatRequestMessage &chatRequest); bool KickPlayerByName(const std::string &playerName); bool RemoveGameByPlayerName(const std::string &playerName); @@ -129,20 +129,20 @@ protected: void InitChatCleaner(); void HandlePacket(boost::shared_ptr session, boost::shared_ptr packet); - void HandleNetPacketInit(boost::shared_ptr session, const InitMessage_t &initMessage); - void HandleNetPacketAuthClientResponse(boost::shared_ptr session, const AuthClientResponse_t &clientResponse); - void HandleNetPacketAvatarHeader(boost::shared_ptr session, unsigned requestId, const AvatarHeader_t &avatarHeader); - void HandleNetPacketUnknownAvatar(boost::shared_ptr session, unsigned requestId, const UnknownAvatar_t &unknownAvatar); - void HandleNetPacketAvatarFile(boost::shared_ptr session, unsigned requestId, const AvatarData_t &avatarData); - void HandleNetPacketAvatarEnd(boost::shared_ptr session, unsigned requestId, const AvatarEnd_t &avatarEnd); - void HandleNetPacketRetrievePlayerInfo(boost::shared_ptr session, const PlayerInfoRequestMessage_t &playerInfoRequest); - void HandleNetPacketRetrieveAvatar(boost::shared_ptr session, const AvatarRequestMessage_t &retrieveAvatar); - void HandleNetPacketCreateGame(boost::shared_ptr session, bool autoLeave, const JoinNewGame_t &newGame); - void HandleNetPacketJoinGame(boost::shared_ptr session, bool autoLeave, const JoinExistingGame_t &joinGame); - void HandleNetPacketRejoinGame(boost::shared_ptr session, bool autoLeave, const RejoinExistingGame_t &rejoinGame); - void HandleNetPacketChatRequest(boost::shared_ptr session, const ChatRequestMessage_t &chatRequest); - void HandleNetPacketRejectGameInvitation(boost::shared_ptr session, const RejectGameInvitationMessage_t &reject); - void HandleNetPacketReportGame(boost::shared_ptr session, const ReportGameMessage_t &report); + void HandleNetPacketInit(boost::shared_ptr session, const InitMessage &initMessage); + void HandleNetPacketAuthClientResponse(boost::shared_ptr session, const AuthClientResponseMessage &clientResponse); + void HandleNetPacketAvatarHeader(boost::shared_ptr session, const AvatarHeaderMessage &avatarHeader); + void HandleNetPacketUnknownAvatar(boost::shared_ptr session, const UnknownAvatarMessage &unknownAvatar); + void HandleNetPacketAvatarFile(boost::shared_ptr session, const AvatarDataMessage &avatarData); + void HandleNetPacketAvatarEnd(boost::shared_ptr session, const AvatarEndMessage &avatarEnd); + void HandleNetPacketRetrievePlayerInfo(boost::shared_ptr session, const PlayerInfoRequestMessage &playerInfoRequest); + void HandleNetPacketRetrieveAvatar(boost::shared_ptr session, const AvatarRequestMessage &retrieveAvatar); + void HandleNetPacketCreateGame(boost::shared_ptr session, const JoinNewGameMessage &newGame); + void HandleNetPacketJoinGame(boost::shared_ptr session, const JoinExistingGameMessage &joinGame); + void HandleNetPacketRejoinGame(boost::shared_ptr session, const RejoinExistingGameMessage &rejoinGame); + void HandleNetPacketChatRequest(boost::shared_ptr session, const ChatRequestMessage &chatRequest); + void HandleNetPacketRejectGameInvitation(boost::shared_ptr session, const RejectGameInvitationMessage &reject); + void HandleNetPacketReportGame(boost::shared_ptr session, const ReportGameMessage &report); // TODO would be better to use state pattern here. void AuthChallenge(boost::shared_ptr session, const std::string &secret); void CheckAvatarBlacklist(boost::shared_ptr session); diff --git a/src/net/socket_helper.h b/src/net/socket_helper.h index 09938cdf..396fffd3 100644 --- a/src/net/socket_helper.h +++ b/src/net/socket_helper.h @@ -21,15 +21,12 @@ #ifdef _WIN32 -#ifdef __GNUC__ /* mingw provides stdint.h */ #include typedef uint16_t u_int16_t; typedef uint32_t u_int32_t; -#else -typedef unsigned __int16 u_int16_t; -typedef unsigned __int32 u_int32_t; -typedef __int16 int16_t; -typedef __int32 int32_t; +#ifndef __GNUC__ /* ssize_t not defined in MSVC */ +typedef _W64 int ssize_t; +#define _SSIZE_T_ #endif typedef unsigned char u_char; diff --git a/src/third_party/protobuf/pokerth.pb.cc b/src/third_party/protobuf/pokerth.pb.cc new file mode 100644 index 00000000..a99cfa19 --- /dev/null +++ b/src/third_party/protobuf/pokerth.pb.cc @@ -0,0 +1,30998 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! + +#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION +#include "pokerth.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +namespace { + +const ::google::protobuf::Descriptor* NetGameInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + NetGameInfo_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* NetGameInfo_NetGameType_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* NetGameInfo_RaiseIntervalMode_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* NetGameInfo_EndRaiseMode_descriptor_ = NULL; +const ::google::protobuf::Descriptor* PlayerResult_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PlayerResult_reflection_ = NULL; +const ::google::protobuf::Descriptor* AnnounceMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AnnounceMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* AnnounceMessage_Version_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AnnounceMessage_Version_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* AnnounceMessage_ServerType_descriptor_ = NULL; +const ::google::protobuf::Descriptor* InitMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + InitMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* InitMessage_LoginType_descriptor_ = NULL; +const ::google::protobuf::Descriptor* AuthServerChallengeMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AuthServerChallengeMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* AuthClientResponseMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AuthClientResponseMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* AuthServerVerificationMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AuthServerVerificationMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* InitAckMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + InitAckMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* AvatarRequestMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AvatarRequestMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* AvatarHeaderMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AvatarHeaderMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* AvatarDataMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AvatarDataMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* AvatarEndMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AvatarEndMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* UnknownAvatarMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + UnknownAvatarMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* PlayerListMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PlayerListMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* PlayerListMessage_PlayerListNotification_descriptor_ = NULL; +const ::google::protobuf::Descriptor* GameListNewMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GameListNewMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* GameListUpdateMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GameListUpdateMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* GameListPlayerJoinedMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GameListPlayerJoinedMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* GameListPlayerLeftMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GameListPlayerLeftMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* GameListAdminChangedMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GameListAdminChangedMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* PlayerInfoRequestMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PlayerInfoRequestMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* PlayerInfoReplyMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PlayerInfoReplyMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* PlayerInfoReplyMessage_PlayerInfoData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PlayerInfoReplyMessage_PlayerInfoData_reflection_ = NULL; +const ::google::protobuf::Descriptor* PlayerInfoReplyMessage_PlayerInfoData_AvatarData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PlayerInfoReplyMessage_PlayerInfoData_AvatarData_reflection_ = NULL; +const ::google::protobuf::Descriptor* SubscriptionRequestMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + SubscriptionRequestMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* SubscriptionRequestMessage_SubscriptionAction_descriptor_ = NULL; +const ::google::protobuf::Descriptor* JoinExistingGameMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + JoinExistingGameMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* JoinNewGameMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + JoinNewGameMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* RejoinExistingGameMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RejoinExistingGameMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* JoinGameAckMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + JoinGameAckMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* JoinGameFailedMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + JoinGameFailedMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* JoinGameFailedMessage_JoinGameFailureReason_descriptor_ = NULL; +const ::google::protobuf::Descriptor* GamePlayerJoinedMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GamePlayerJoinedMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* GamePlayerLeftMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GamePlayerLeftMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* GamePlayerLeftMessage_GamePlayerLeftReason_descriptor_ = NULL; +const ::google::protobuf::Descriptor* GameAdminChangedMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GameAdminChangedMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* RemovedFromGameMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RemovedFromGameMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* RemovedFromGameMessage_RemovedFromGameReason_descriptor_ = NULL; +const ::google::protobuf::Descriptor* KickPlayerRequestMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + KickPlayerRequestMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* LeaveGameRequestMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + LeaveGameRequestMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* InvitePlayerToGameMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + InvitePlayerToGameMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* InviteNotifyMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + InviteNotifyMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* RejectGameInvitationMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RejectGameInvitationMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* RejectGameInvitationMessage_RejectGameInvReason_descriptor_ = NULL; +const ::google::protobuf::Descriptor* RejectInvNotifyMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + RejectInvNotifyMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* StartEventMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + StartEventMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* StartEventMessage_StartEventType_descriptor_ = NULL; +const ::google::protobuf::Descriptor* StartEventAckMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + StartEventAckMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* GameStartInitialMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GameStartInitialMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* GameStartRejoinMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GameStartRejoinMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* GameStartRejoinMessage_RejoinPlayerData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GameStartRejoinMessage_RejoinPlayerData_reflection_ = NULL; +const ::google::protobuf::Descriptor* HandStartMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + HandStartMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* HandStartMessage_PlainCards_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + HandStartMessage_PlainCards_reflection_ = NULL; +const ::google::protobuf::Descriptor* PlayersTurnMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PlayersTurnMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* MyActionRequestMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + MyActionRequestMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* YourActionRejectedMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + YourActionRejectedMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* YourActionRejectedMessage_RejectionReason_descriptor_ = NULL; +const ::google::protobuf::Descriptor* PlayersActionDoneMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PlayersActionDoneMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* DealFlopCardsMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DealFlopCardsMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* DealTurnCardMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DealTurnCardMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* DealRiverCardMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DealRiverCardMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* AllInShowCardsMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AllInShowCardsMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* AllInShowCardsMessage_PlayerAllIn_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AllInShowCardsMessage_PlayerAllIn_reflection_ = NULL; +const ::google::protobuf::Descriptor* EndOfHandShowCardsMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + EndOfHandShowCardsMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* EndOfHandHideCardsMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + EndOfHandHideCardsMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* ShowMyCardsRequestMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ShowMyCardsRequestMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* AfterHandShowCardsMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AfterHandShowCardsMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* EndOfGameMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + EndOfGameMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* PlayerIdChangedMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PlayerIdChangedMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* AskKickPlayerMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AskKickPlayerMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* AskKickDeniedMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + AskKickDeniedMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* AskKickDeniedMessage_KickDeniedReason_descriptor_ = NULL; +const ::google::protobuf::Descriptor* StartKickPetitionMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + StartKickPetitionMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* VoteKickRequestMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + VoteKickRequestMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* VoteKickReplyMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + VoteKickReplyMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* VoteKickReplyMessage_VoteKickReplyType_descriptor_ = NULL; +const ::google::protobuf::Descriptor* KickPetitionUpdateMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + KickPetitionUpdateMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* EndKickPetitionMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + EndKickPetitionMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* EndKickPetitionMessage_PetitionEndReason_descriptor_ = NULL; +const ::google::protobuf::Descriptor* StatisticsMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + StatisticsMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* StatisticsMessage_StatisticsData_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + StatisticsMessage_StatisticsData_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* StatisticsMessage_StatisticsData_StatisticsType_descriptor_ = NULL; +const ::google::protobuf::Descriptor* ChatRequestMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ChatRequestMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* ChatMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ChatMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* ChatMessage_ChatType_descriptor_ = NULL; +const ::google::protobuf::Descriptor* ChatRejectMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ChatRejectMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* DialogMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + DialogMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* TimeoutWarningMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + TimeoutWarningMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* TimeoutWarningMessage_TimeoutReason_descriptor_ = NULL; +const ::google::protobuf::Descriptor* ResetTimeoutMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ResetTimeoutMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* ReportAvatarMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReportAvatarMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* ReportAvatarAckMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReportAvatarAckMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* ReportAvatarAckMessage_ReportAvatarResult_descriptor_ = NULL; +const ::google::protobuf::Descriptor* ReportGameMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReportGameMessage_reflection_ = NULL; +const ::google::protobuf::Descriptor* ReportGameAckMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ReportGameAckMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* ReportGameAckMessage_ReportGameResult_descriptor_ = NULL; +const ::google::protobuf::Descriptor* ErrorMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ErrorMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* ErrorMessage_ErrorReason_descriptor_ = NULL; +const ::google::protobuf::Descriptor* PokerTHMessage_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + PokerTHMessage_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* PokerTHMessage_PokerTHMessageType_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* NetGameMode_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* NetGameState_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* NetPlayerAction_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* NetPlayerState_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* PlayerInfoRights_descriptor_ = NULL; +const ::google::protobuf::EnumDescriptor* NetAvatarType_descriptor_ = NULL; + +} // namespace + + +void protobuf_AssignDesc_pokerth_2eproto() { + protobuf_AddDesc_pokerth_2eproto(); + const ::google::protobuf::FileDescriptor* file = + ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( + "pokerth.proto"); + GOOGLE_CHECK(file != NULL); + NetGameInfo_descriptor_ = file->message_type(0); + static const int NetGameInfo_offsets_[14] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, gamename_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, netgametype_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, maxnumplayers_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, raiseintervalmode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, raiseeveryhands_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, raiseeveryminutes_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, endraisemode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, endraisesmallblindvalue_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, proposedguispeed_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, delaybetweenhands_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, playeractiontimeout_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, firstsmallblind_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, startmoney_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, manualblinds_), + }; + NetGameInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + NetGameInfo_descriptor_, + NetGameInfo::default_instance_, + NetGameInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(NetGameInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(NetGameInfo)); + NetGameInfo_NetGameType_descriptor_ = NetGameInfo_descriptor_->enum_type(0); + NetGameInfo_RaiseIntervalMode_descriptor_ = NetGameInfo_descriptor_->enum_type(1); + NetGameInfo_EndRaiseMode_descriptor_ = NetGameInfo_descriptor_->enum_type(2); + PlayerResult_descriptor_ = file->message_type(1); + static const int PlayerResult_offsets_[7] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerResult, playerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerResult, resultcard1_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerResult, resultcard2_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerResult, besthandposition_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerResult, moneywon_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerResult, playermoney_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerResult, cardsvalue_), + }; + PlayerResult_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PlayerResult_descriptor_, + PlayerResult::default_instance_, + PlayerResult_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerResult, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerResult, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PlayerResult)); + AnnounceMessage_descriptor_ = file->message_type(2); + static const int AnnounceMessage_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AnnounceMessage, protocolversion_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AnnounceMessage, latestgameversion_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AnnounceMessage, latestbetarevision_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AnnounceMessage, servertype_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AnnounceMessage, numplayersonserver_), + }; + AnnounceMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AnnounceMessage_descriptor_, + AnnounceMessage::default_instance_, + AnnounceMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AnnounceMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AnnounceMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AnnounceMessage)); + AnnounceMessage_Version_descriptor_ = AnnounceMessage_descriptor_->nested_type(0); + static const int AnnounceMessage_Version_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AnnounceMessage_Version, major_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AnnounceMessage_Version, minor_), + }; + AnnounceMessage_Version_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AnnounceMessage_Version_descriptor_, + AnnounceMessage_Version::default_instance_, + AnnounceMessage_Version_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AnnounceMessage_Version, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AnnounceMessage_Version, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AnnounceMessage_Version)); + AnnounceMessage_ServerType_descriptor_ = AnnounceMessage_descriptor_->enum_type(0); + InitMessage_descriptor_ = file->message_type(3); + static const int InitMessage_offsets_[8] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitMessage, requestedversion_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitMessage, buildid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitMessage, mylastsessionid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitMessage, authserverpassword_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitMessage, login_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitMessage, nickname_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitMessage, clientuserdata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitMessage, avatarhash_), + }; + InitMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + InitMessage_descriptor_, + InitMessage::default_instance_, + InitMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(InitMessage)); + InitMessage_LoginType_descriptor_ = InitMessage_descriptor_->enum_type(0); + AuthServerChallengeMessage_descriptor_ = file->message_type(4); + static const int AuthServerChallengeMessage_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthServerChallengeMessage, serverchallenge_), + }; + AuthServerChallengeMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AuthServerChallengeMessage_descriptor_, + AuthServerChallengeMessage::default_instance_, + AuthServerChallengeMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthServerChallengeMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthServerChallengeMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AuthServerChallengeMessage)); + AuthClientResponseMessage_descriptor_ = file->message_type(5); + static const int AuthClientResponseMessage_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthClientResponseMessage, clientresponse_), + }; + AuthClientResponseMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AuthClientResponseMessage_descriptor_, + AuthClientResponseMessage::default_instance_, + AuthClientResponseMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthClientResponseMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthClientResponseMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AuthClientResponseMessage)); + AuthServerVerificationMessage_descriptor_ = file->message_type(6); + static const int AuthServerVerificationMessage_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthServerVerificationMessage, serververification_), + }; + AuthServerVerificationMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AuthServerVerificationMessage_descriptor_, + AuthServerVerificationMessage::default_instance_, + AuthServerVerificationMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthServerVerificationMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthServerVerificationMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AuthServerVerificationMessage)); + InitAckMessage_descriptor_ = file->message_type(7); + static const int InitAckMessage_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitAckMessage, yoursessionid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitAckMessage, yourplayerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitAckMessage, youravatarhash_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitAckMessage, rejoingameid_), + }; + InitAckMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + InitAckMessage_descriptor_, + InitAckMessage::default_instance_, + InitAckMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitAckMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InitAckMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(InitAckMessage)); + AvatarRequestMessage_descriptor_ = file->message_type(8); + static const int AvatarRequestMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarRequestMessage, requestid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarRequestMessage, avatarhash_), + }; + AvatarRequestMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AvatarRequestMessage_descriptor_, + AvatarRequestMessage::default_instance_, + AvatarRequestMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarRequestMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarRequestMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AvatarRequestMessage)); + AvatarHeaderMessage_descriptor_ = file->message_type(9); + static const int AvatarHeaderMessage_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarHeaderMessage, requestid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarHeaderMessage, avatartype_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarHeaderMessage, avatarsize_), + }; + AvatarHeaderMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AvatarHeaderMessage_descriptor_, + AvatarHeaderMessage::default_instance_, + AvatarHeaderMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarHeaderMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarHeaderMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AvatarHeaderMessage)); + AvatarDataMessage_descriptor_ = file->message_type(10); + static const int AvatarDataMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarDataMessage, requestid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarDataMessage, avatarblock_), + }; + AvatarDataMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AvatarDataMessage_descriptor_, + AvatarDataMessage::default_instance_, + AvatarDataMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarDataMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarDataMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AvatarDataMessage)); + AvatarEndMessage_descriptor_ = file->message_type(11); + static const int AvatarEndMessage_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarEndMessage, requestid_), + }; + AvatarEndMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AvatarEndMessage_descriptor_, + AvatarEndMessage::default_instance_, + AvatarEndMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarEndMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AvatarEndMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AvatarEndMessage)); + UnknownAvatarMessage_descriptor_ = file->message_type(12); + static const int UnknownAvatarMessage_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UnknownAvatarMessage, requestid_), + }; + UnknownAvatarMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + UnknownAvatarMessage_descriptor_, + UnknownAvatarMessage::default_instance_, + UnknownAvatarMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UnknownAvatarMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UnknownAvatarMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(UnknownAvatarMessage)); + PlayerListMessage_descriptor_ = file->message_type(13); + static const int PlayerListMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerListMessage, playerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerListMessage, playerlistnotification_), + }; + PlayerListMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PlayerListMessage_descriptor_, + PlayerListMessage::default_instance_, + PlayerListMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerListMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerListMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PlayerListMessage)); + PlayerListMessage_PlayerListNotification_descriptor_ = PlayerListMessage_descriptor_->enum_type(0); + GameListNewMessage_descriptor_ = file->message_type(14); + static const int GameListNewMessage_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListNewMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListNewMessage, gamemode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListNewMessage, isprivate_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListNewMessage, playerids_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListNewMessage, adminplayerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListNewMessage, gameinfo_), + }; + GameListNewMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GameListNewMessage_descriptor_, + GameListNewMessage::default_instance_, + GameListNewMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListNewMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListNewMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GameListNewMessage)); + GameListUpdateMessage_descriptor_ = file->message_type(15); + static const int GameListUpdateMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListUpdateMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListUpdateMessage, gamemode_), + }; + GameListUpdateMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GameListUpdateMessage_descriptor_, + GameListUpdateMessage::default_instance_, + GameListUpdateMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListUpdateMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListUpdateMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GameListUpdateMessage)); + GameListPlayerJoinedMessage_descriptor_ = file->message_type(16); + static const int GameListPlayerJoinedMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListPlayerJoinedMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListPlayerJoinedMessage, playerid_), + }; + GameListPlayerJoinedMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GameListPlayerJoinedMessage_descriptor_, + GameListPlayerJoinedMessage::default_instance_, + GameListPlayerJoinedMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListPlayerJoinedMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListPlayerJoinedMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GameListPlayerJoinedMessage)); + GameListPlayerLeftMessage_descriptor_ = file->message_type(17); + static const int GameListPlayerLeftMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListPlayerLeftMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListPlayerLeftMessage, playerid_), + }; + GameListPlayerLeftMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GameListPlayerLeftMessage_descriptor_, + GameListPlayerLeftMessage::default_instance_, + GameListPlayerLeftMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListPlayerLeftMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListPlayerLeftMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GameListPlayerLeftMessage)); + GameListAdminChangedMessage_descriptor_ = file->message_type(18); + static const int GameListAdminChangedMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListAdminChangedMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListAdminChangedMessage, newadminplayerid_), + }; + GameListAdminChangedMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GameListAdminChangedMessage_descriptor_, + GameListAdminChangedMessage::default_instance_, + GameListAdminChangedMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListAdminChangedMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameListAdminChangedMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GameListAdminChangedMessage)); + PlayerInfoRequestMessage_descriptor_ = file->message_type(19); + static const int PlayerInfoRequestMessage_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoRequestMessage, playerid_), + }; + PlayerInfoRequestMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PlayerInfoRequestMessage_descriptor_, + PlayerInfoRequestMessage::default_instance_, + PlayerInfoRequestMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoRequestMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoRequestMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PlayerInfoRequestMessage)); + PlayerInfoReplyMessage_descriptor_ = file->message_type(20); + static const int PlayerInfoReplyMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoReplyMessage, playerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoReplyMessage, playerinfodata_), + }; + PlayerInfoReplyMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PlayerInfoReplyMessage_descriptor_, + PlayerInfoReplyMessage::default_instance_, + PlayerInfoReplyMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoReplyMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoReplyMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PlayerInfoReplyMessage)); + PlayerInfoReplyMessage_PlayerInfoData_descriptor_ = PlayerInfoReplyMessage_descriptor_->nested_type(0); + static const int PlayerInfoReplyMessage_PlayerInfoData_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoReplyMessage_PlayerInfoData, playername_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoReplyMessage_PlayerInfoData, ishuman_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoReplyMessage_PlayerInfoData, playerrights_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoReplyMessage_PlayerInfoData, countrycode_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoReplyMessage_PlayerInfoData, avatardata_), + }; + PlayerInfoReplyMessage_PlayerInfoData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PlayerInfoReplyMessage_PlayerInfoData_descriptor_, + PlayerInfoReplyMessage_PlayerInfoData::default_instance_, + PlayerInfoReplyMessage_PlayerInfoData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoReplyMessage_PlayerInfoData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoReplyMessage_PlayerInfoData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PlayerInfoReplyMessage_PlayerInfoData)); + PlayerInfoReplyMessage_PlayerInfoData_AvatarData_descriptor_ = PlayerInfoReplyMessage_PlayerInfoData_descriptor_->nested_type(0); + static const int PlayerInfoReplyMessage_PlayerInfoData_AvatarData_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoReplyMessage_PlayerInfoData_AvatarData, avatartype_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoReplyMessage_PlayerInfoData_AvatarData, avatarhash_), + }; + PlayerInfoReplyMessage_PlayerInfoData_AvatarData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PlayerInfoReplyMessage_PlayerInfoData_AvatarData_descriptor_, + PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance_, + PlayerInfoReplyMessage_PlayerInfoData_AvatarData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoReplyMessage_PlayerInfoData_AvatarData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerInfoReplyMessage_PlayerInfoData_AvatarData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PlayerInfoReplyMessage_PlayerInfoData_AvatarData)); + SubscriptionRequestMessage_descriptor_ = file->message_type(21); + static const int SubscriptionRequestMessage_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscriptionRequestMessage, subscriptionaction_), + }; + SubscriptionRequestMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + SubscriptionRequestMessage_descriptor_, + SubscriptionRequestMessage::default_instance_, + SubscriptionRequestMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscriptionRequestMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(SubscriptionRequestMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(SubscriptionRequestMessage)); + SubscriptionRequestMessage_SubscriptionAction_descriptor_ = SubscriptionRequestMessage_descriptor_->enum_type(0); + JoinExistingGameMessage_descriptor_ = file->message_type(22); + static const int JoinExistingGameMessage_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinExistingGameMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinExistingGameMessage, password_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinExistingGameMessage, autoleave_), + }; + JoinExistingGameMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + JoinExistingGameMessage_descriptor_, + JoinExistingGameMessage::default_instance_, + JoinExistingGameMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinExistingGameMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinExistingGameMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(JoinExistingGameMessage)); + JoinNewGameMessage_descriptor_ = file->message_type(23); + static const int JoinNewGameMessage_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinNewGameMessage, gameinfo_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinNewGameMessage, password_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinNewGameMessage, autoleave_), + }; + JoinNewGameMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + JoinNewGameMessage_descriptor_, + JoinNewGameMessage::default_instance_, + JoinNewGameMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinNewGameMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinNewGameMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(JoinNewGameMessage)); + RejoinExistingGameMessage_descriptor_ = file->message_type(24); + static const int RejoinExistingGameMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RejoinExistingGameMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RejoinExistingGameMessage, autoleave_), + }; + RejoinExistingGameMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RejoinExistingGameMessage_descriptor_, + RejoinExistingGameMessage::default_instance_, + RejoinExistingGameMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RejoinExistingGameMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RejoinExistingGameMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RejoinExistingGameMessage)); + JoinGameAckMessage_descriptor_ = file->message_type(25); + static const int JoinGameAckMessage_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinGameAckMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinGameAckMessage, areyougameadmin_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinGameAckMessage, gameinfo_), + }; + JoinGameAckMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + JoinGameAckMessage_descriptor_, + JoinGameAckMessage::default_instance_, + JoinGameAckMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinGameAckMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinGameAckMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(JoinGameAckMessage)); + JoinGameFailedMessage_descriptor_ = file->message_type(26); + static const int JoinGameFailedMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinGameFailedMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinGameFailedMessage, joingamefailurereason_), + }; + JoinGameFailedMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + JoinGameFailedMessage_descriptor_, + JoinGameFailedMessage::default_instance_, + JoinGameFailedMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinGameFailedMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JoinGameFailedMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(JoinGameFailedMessage)); + JoinGameFailedMessage_JoinGameFailureReason_descriptor_ = JoinGameFailedMessage_descriptor_->enum_type(0); + GamePlayerJoinedMessage_descriptor_ = file->message_type(27); + static const int GamePlayerJoinedMessage_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GamePlayerJoinedMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GamePlayerJoinedMessage, playerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GamePlayerJoinedMessage, isgameadmin_), + }; + GamePlayerJoinedMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GamePlayerJoinedMessage_descriptor_, + GamePlayerJoinedMessage::default_instance_, + GamePlayerJoinedMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GamePlayerJoinedMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GamePlayerJoinedMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GamePlayerJoinedMessage)); + GamePlayerLeftMessage_descriptor_ = file->message_type(28); + static const int GamePlayerLeftMessage_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GamePlayerLeftMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GamePlayerLeftMessage, playerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GamePlayerLeftMessage, gameplayerleftreason_), + }; + GamePlayerLeftMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GamePlayerLeftMessage_descriptor_, + GamePlayerLeftMessage::default_instance_, + GamePlayerLeftMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GamePlayerLeftMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GamePlayerLeftMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GamePlayerLeftMessage)); + GamePlayerLeftMessage_GamePlayerLeftReason_descriptor_ = GamePlayerLeftMessage_descriptor_->enum_type(0); + GameAdminChangedMessage_descriptor_ = file->message_type(29); + static const int GameAdminChangedMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAdminChangedMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAdminChangedMessage, newadminplayerid_), + }; + GameAdminChangedMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GameAdminChangedMessage_descriptor_, + GameAdminChangedMessage::default_instance_, + GameAdminChangedMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAdminChangedMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAdminChangedMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GameAdminChangedMessage)); + RemovedFromGameMessage_descriptor_ = file->message_type(30); + static const int RemovedFromGameMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemovedFromGameMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemovedFromGameMessage, removedfromgamereason_), + }; + RemovedFromGameMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RemovedFromGameMessage_descriptor_, + RemovedFromGameMessage::default_instance_, + RemovedFromGameMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemovedFromGameMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RemovedFromGameMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RemovedFromGameMessage)); + RemovedFromGameMessage_RemovedFromGameReason_descriptor_ = RemovedFromGameMessage_descriptor_->enum_type(0); + KickPlayerRequestMessage_descriptor_ = file->message_type(31); + static const int KickPlayerRequestMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KickPlayerRequestMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KickPlayerRequestMessage, playerid_), + }; + KickPlayerRequestMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + KickPlayerRequestMessage_descriptor_, + KickPlayerRequestMessage::default_instance_, + KickPlayerRequestMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KickPlayerRequestMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KickPlayerRequestMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(KickPlayerRequestMessage)); + LeaveGameRequestMessage_descriptor_ = file->message_type(32); + static const int LeaveGameRequestMessage_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LeaveGameRequestMessage, gameid_), + }; + LeaveGameRequestMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + LeaveGameRequestMessage_descriptor_, + LeaveGameRequestMessage::default_instance_, + LeaveGameRequestMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LeaveGameRequestMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LeaveGameRequestMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(LeaveGameRequestMessage)); + InvitePlayerToGameMessage_descriptor_ = file->message_type(33); + static const int InvitePlayerToGameMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InvitePlayerToGameMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InvitePlayerToGameMessage, playerid_), + }; + InvitePlayerToGameMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + InvitePlayerToGameMessage_descriptor_, + InvitePlayerToGameMessage::default_instance_, + InvitePlayerToGameMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InvitePlayerToGameMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InvitePlayerToGameMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(InvitePlayerToGameMessage)); + InviteNotifyMessage_descriptor_ = file->message_type(34); + static const int InviteNotifyMessage_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InviteNotifyMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InviteNotifyMessage, playeridwho_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InviteNotifyMessage, playeridbywhom_), + }; + InviteNotifyMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + InviteNotifyMessage_descriptor_, + InviteNotifyMessage::default_instance_, + InviteNotifyMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InviteNotifyMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(InviteNotifyMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(InviteNotifyMessage)); + RejectGameInvitationMessage_descriptor_ = file->message_type(35); + static const int RejectGameInvitationMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RejectGameInvitationMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RejectGameInvitationMessage, myrejectreason_), + }; + RejectGameInvitationMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RejectGameInvitationMessage_descriptor_, + RejectGameInvitationMessage::default_instance_, + RejectGameInvitationMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RejectGameInvitationMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RejectGameInvitationMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RejectGameInvitationMessage)); + RejectGameInvitationMessage_RejectGameInvReason_descriptor_ = RejectGameInvitationMessage_descriptor_->enum_type(0); + RejectInvNotifyMessage_descriptor_ = file->message_type(36); + static const int RejectInvNotifyMessage_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RejectInvNotifyMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RejectInvNotifyMessage, playerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RejectInvNotifyMessage, playerrejectreason_), + }; + RejectInvNotifyMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + RejectInvNotifyMessage_descriptor_, + RejectInvNotifyMessage::default_instance_, + RejectInvNotifyMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RejectInvNotifyMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(RejectInvNotifyMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(RejectInvNotifyMessage)); + StartEventMessage_descriptor_ = file->message_type(37); + static const int StartEventMessage_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartEventMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartEventMessage, starteventtype_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartEventMessage, fillwithcomputerplayers_), + }; + StartEventMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + StartEventMessage_descriptor_, + StartEventMessage::default_instance_, + StartEventMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartEventMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartEventMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(StartEventMessage)); + StartEventMessage_StartEventType_descriptor_ = StartEventMessage_descriptor_->enum_type(0); + StartEventAckMessage_descriptor_ = file->message_type(38); + static const int StartEventAckMessage_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartEventAckMessage, gameid_), + }; + StartEventAckMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + StartEventAckMessage_descriptor_, + StartEventAckMessage::default_instance_, + StartEventAckMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartEventAckMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartEventAckMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(StartEventAckMessage)); + GameStartInitialMessage_descriptor_ = file->message_type(39); + static const int GameStartInitialMessage_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStartInitialMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStartInitialMessage, startdealerplayerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStartInitialMessage, playerseats_), + }; + GameStartInitialMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GameStartInitialMessage_descriptor_, + GameStartInitialMessage::default_instance_, + GameStartInitialMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStartInitialMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStartInitialMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GameStartInitialMessage)); + GameStartRejoinMessage_descriptor_ = file->message_type(40); + static const int GameStartRejoinMessage_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStartRejoinMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStartRejoinMessage, startdealerplayerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStartRejoinMessage, handnum_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStartRejoinMessage, rejoinplayerdata_), + }; + GameStartRejoinMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GameStartRejoinMessage_descriptor_, + GameStartRejoinMessage::default_instance_, + GameStartRejoinMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStartRejoinMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStartRejoinMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GameStartRejoinMessage)); + GameStartRejoinMessage_RejoinPlayerData_descriptor_ = GameStartRejoinMessage_descriptor_->nested_type(0); + static const int GameStartRejoinMessage_RejoinPlayerData_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStartRejoinMessage_RejoinPlayerData, playerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStartRejoinMessage_RejoinPlayerData, playermoney_), + }; + GameStartRejoinMessage_RejoinPlayerData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GameStartRejoinMessage_RejoinPlayerData_descriptor_, + GameStartRejoinMessage_RejoinPlayerData::default_instance_, + GameStartRejoinMessage_RejoinPlayerData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStartRejoinMessage_RejoinPlayerData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameStartRejoinMessage_RejoinPlayerData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GameStartRejoinMessage_RejoinPlayerData)); + HandStartMessage_descriptor_ = file->message_type(41); + static const int HandStartMessage_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HandStartMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HandStartMessage, plaincards_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HandStartMessage, encryptedcards_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HandStartMessage, smallblind_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HandStartMessage, seatstates_), + }; + HandStartMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + HandStartMessage_descriptor_, + HandStartMessage::default_instance_, + HandStartMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HandStartMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HandStartMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(HandStartMessage)); + HandStartMessage_PlainCards_descriptor_ = HandStartMessage_descriptor_->nested_type(0); + static const int HandStartMessage_PlainCards_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HandStartMessage_PlainCards, plaincard1_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HandStartMessage_PlainCards, plaincard2_), + }; + HandStartMessage_PlainCards_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + HandStartMessage_PlainCards_descriptor_, + HandStartMessage_PlainCards::default_instance_, + HandStartMessage_PlainCards_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HandStartMessage_PlainCards, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(HandStartMessage_PlainCards, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(HandStartMessage_PlainCards)); + PlayersTurnMessage_descriptor_ = file->message_type(42); + static const int PlayersTurnMessage_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayersTurnMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayersTurnMessage, playerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayersTurnMessage, gamestate_), + }; + PlayersTurnMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PlayersTurnMessage_descriptor_, + PlayersTurnMessage::default_instance_, + PlayersTurnMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayersTurnMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayersTurnMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PlayersTurnMessage)); + MyActionRequestMessage_descriptor_ = file->message_type(43); + static const int MyActionRequestMessage_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MyActionRequestMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MyActionRequestMessage, handnum_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MyActionRequestMessage, gamestate_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MyActionRequestMessage, myaction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MyActionRequestMessage, myrelativebet_), + }; + MyActionRequestMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + MyActionRequestMessage_descriptor_, + MyActionRequestMessage::default_instance_, + MyActionRequestMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MyActionRequestMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MyActionRequestMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(MyActionRequestMessage)); + YourActionRejectedMessage_descriptor_ = file->message_type(44); + static const int YourActionRejectedMessage_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(YourActionRejectedMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(YourActionRejectedMessage, gamestate_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(YourActionRejectedMessage, youraction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(YourActionRejectedMessage, yourrelativebet_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(YourActionRejectedMessage, rejectionreason_), + }; + YourActionRejectedMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + YourActionRejectedMessage_descriptor_, + YourActionRejectedMessage::default_instance_, + YourActionRejectedMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(YourActionRejectedMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(YourActionRejectedMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(YourActionRejectedMessage)); + YourActionRejectedMessage_RejectionReason_descriptor_ = YourActionRejectedMessage_descriptor_->enum_type(0); + PlayersActionDoneMessage_descriptor_ = file->message_type(45); + static const int PlayersActionDoneMessage_offsets_[8] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayersActionDoneMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayersActionDoneMessage, playerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayersActionDoneMessage, gamestate_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayersActionDoneMessage, playeraction_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayersActionDoneMessage, totalplayerbet_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayersActionDoneMessage, playermoney_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayersActionDoneMessage, highestset_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayersActionDoneMessage, minimumraise_), + }; + PlayersActionDoneMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PlayersActionDoneMessage_descriptor_, + PlayersActionDoneMessage::default_instance_, + PlayersActionDoneMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayersActionDoneMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayersActionDoneMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PlayersActionDoneMessage)); + DealFlopCardsMessage_descriptor_ = file->message_type(46); + static const int DealFlopCardsMessage_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DealFlopCardsMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DealFlopCardsMessage, flopcard1_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DealFlopCardsMessage, flopcard2_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DealFlopCardsMessage, flopcard3_), + }; + DealFlopCardsMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DealFlopCardsMessage_descriptor_, + DealFlopCardsMessage::default_instance_, + DealFlopCardsMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DealFlopCardsMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DealFlopCardsMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DealFlopCardsMessage)); + DealTurnCardMessage_descriptor_ = file->message_type(47); + static const int DealTurnCardMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DealTurnCardMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DealTurnCardMessage, turncard_), + }; + DealTurnCardMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DealTurnCardMessage_descriptor_, + DealTurnCardMessage::default_instance_, + DealTurnCardMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DealTurnCardMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DealTurnCardMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DealTurnCardMessage)); + DealRiverCardMessage_descriptor_ = file->message_type(48); + static const int DealRiverCardMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DealRiverCardMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DealRiverCardMessage, rivercard_), + }; + DealRiverCardMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DealRiverCardMessage_descriptor_, + DealRiverCardMessage::default_instance_, + DealRiverCardMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DealRiverCardMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DealRiverCardMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DealRiverCardMessage)); + AllInShowCardsMessage_descriptor_ = file->message_type(49); + static const int AllInShowCardsMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AllInShowCardsMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AllInShowCardsMessage, playersallin_), + }; + AllInShowCardsMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AllInShowCardsMessage_descriptor_, + AllInShowCardsMessage::default_instance_, + AllInShowCardsMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AllInShowCardsMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AllInShowCardsMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AllInShowCardsMessage)); + AllInShowCardsMessage_PlayerAllIn_descriptor_ = AllInShowCardsMessage_descriptor_->nested_type(0); + static const int AllInShowCardsMessage_PlayerAllIn_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AllInShowCardsMessage_PlayerAllIn, playerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AllInShowCardsMessage_PlayerAllIn, allincard1_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AllInShowCardsMessage_PlayerAllIn, allincard2_), + }; + AllInShowCardsMessage_PlayerAllIn_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AllInShowCardsMessage_PlayerAllIn_descriptor_, + AllInShowCardsMessage_PlayerAllIn::default_instance_, + AllInShowCardsMessage_PlayerAllIn_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AllInShowCardsMessage_PlayerAllIn, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AllInShowCardsMessage_PlayerAllIn, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AllInShowCardsMessage_PlayerAllIn)); + EndOfHandShowCardsMessage_descriptor_ = file->message_type(50); + static const int EndOfHandShowCardsMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndOfHandShowCardsMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndOfHandShowCardsMessage, playerresults_), + }; + EndOfHandShowCardsMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + EndOfHandShowCardsMessage_descriptor_, + EndOfHandShowCardsMessage::default_instance_, + EndOfHandShowCardsMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndOfHandShowCardsMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndOfHandShowCardsMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(EndOfHandShowCardsMessage)); + EndOfHandHideCardsMessage_descriptor_ = file->message_type(51); + static const int EndOfHandHideCardsMessage_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndOfHandHideCardsMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndOfHandHideCardsMessage, playerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndOfHandHideCardsMessage, moneywon_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndOfHandHideCardsMessage, playermoney_), + }; + EndOfHandHideCardsMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + EndOfHandHideCardsMessage_descriptor_, + EndOfHandHideCardsMessage::default_instance_, + EndOfHandHideCardsMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndOfHandHideCardsMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndOfHandHideCardsMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(EndOfHandHideCardsMessage)); + ShowMyCardsRequestMessage_descriptor_ = file->message_type(52); + static const int ShowMyCardsRequestMessage_offsets_[1] = { + }; + ShowMyCardsRequestMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ShowMyCardsRequestMessage_descriptor_, + ShowMyCardsRequestMessage::default_instance_, + ShowMyCardsRequestMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ShowMyCardsRequestMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ShowMyCardsRequestMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ShowMyCardsRequestMessage)); + AfterHandShowCardsMessage_descriptor_ = file->message_type(53); + static const int AfterHandShowCardsMessage_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AfterHandShowCardsMessage, playerresult_), + }; + AfterHandShowCardsMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AfterHandShowCardsMessage_descriptor_, + AfterHandShowCardsMessage::default_instance_, + AfterHandShowCardsMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AfterHandShowCardsMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AfterHandShowCardsMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AfterHandShowCardsMessage)); + EndOfGameMessage_descriptor_ = file->message_type(54); + static const int EndOfGameMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndOfGameMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndOfGameMessage, winnerplayerid_), + }; + EndOfGameMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + EndOfGameMessage_descriptor_, + EndOfGameMessage::default_instance_, + EndOfGameMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndOfGameMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndOfGameMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(EndOfGameMessage)); + PlayerIdChangedMessage_descriptor_ = file->message_type(55); + static const int PlayerIdChangedMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerIdChangedMessage, oldplayerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerIdChangedMessage, newplayerid_), + }; + PlayerIdChangedMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PlayerIdChangedMessage_descriptor_, + PlayerIdChangedMessage::default_instance_, + PlayerIdChangedMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerIdChangedMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PlayerIdChangedMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PlayerIdChangedMessage)); + AskKickPlayerMessage_descriptor_ = file->message_type(56); + static const int AskKickPlayerMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AskKickPlayerMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AskKickPlayerMessage, playerid_), + }; + AskKickPlayerMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AskKickPlayerMessage_descriptor_, + AskKickPlayerMessage::default_instance_, + AskKickPlayerMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AskKickPlayerMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AskKickPlayerMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AskKickPlayerMessage)); + AskKickDeniedMessage_descriptor_ = file->message_type(57); + static const int AskKickDeniedMessage_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AskKickDeniedMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AskKickDeniedMessage, playerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AskKickDeniedMessage, kickdeniedreason_), + }; + AskKickDeniedMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + AskKickDeniedMessage_descriptor_, + AskKickDeniedMessage::default_instance_, + AskKickDeniedMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AskKickDeniedMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AskKickDeniedMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(AskKickDeniedMessage)); + AskKickDeniedMessage_KickDeniedReason_descriptor_ = AskKickDeniedMessage_descriptor_->enum_type(0); + StartKickPetitionMessage_descriptor_ = file->message_type(58); + static const int StartKickPetitionMessage_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartKickPetitionMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartKickPetitionMessage, petitionid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartKickPetitionMessage, proposingplayerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartKickPetitionMessage, kickplayerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartKickPetitionMessage, kicktimeoutsec_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartKickPetitionMessage, numvotesneededtokick_), + }; + StartKickPetitionMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + StartKickPetitionMessage_descriptor_, + StartKickPetitionMessage::default_instance_, + StartKickPetitionMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartKickPetitionMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StartKickPetitionMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(StartKickPetitionMessage)); + VoteKickRequestMessage_descriptor_ = file->message_type(59); + static const int VoteKickRequestMessage_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VoteKickRequestMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VoteKickRequestMessage, petitionid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VoteKickRequestMessage, votekick_), + }; + VoteKickRequestMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + VoteKickRequestMessage_descriptor_, + VoteKickRequestMessage::default_instance_, + VoteKickRequestMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VoteKickRequestMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VoteKickRequestMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(VoteKickRequestMessage)); + VoteKickReplyMessage_descriptor_ = file->message_type(60); + static const int VoteKickReplyMessage_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VoteKickReplyMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VoteKickReplyMessage, petitionid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VoteKickReplyMessage, votekickreplytype_), + }; + VoteKickReplyMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + VoteKickReplyMessage_descriptor_, + VoteKickReplyMessage::default_instance_, + VoteKickReplyMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VoteKickReplyMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(VoteKickReplyMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(VoteKickReplyMessage)); + VoteKickReplyMessage_VoteKickReplyType_descriptor_ = VoteKickReplyMessage_descriptor_->enum_type(0); + KickPetitionUpdateMessage_descriptor_ = file->message_type(61); + static const int KickPetitionUpdateMessage_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KickPetitionUpdateMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KickPetitionUpdateMessage, petitionid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KickPetitionUpdateMessage, numvotesagainstkicking_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KickPetitionUpdateMessage, numvotesinfavourofkicking_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KickPetitionUpdateMessage, numvotesneededtokick_), + }; + KickPetitionUpdateMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + KickPetitionUpdateMessage_descriptor_, + KickPetitionUpdateMessage::default_instance_, + KickPetitionUpdateMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KickPetitionUpdateMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KickPetitionUpdateMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(KickPetitionUpdateMessage)); + EndKickPetitionMessage_descriptor_ = file->message_type(62); + static const int EndKickPetitionMessage_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndKickPetitionMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndKickPetitionMessage, petitionid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndKickPetitionMessage, numvotesagainstkicking_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndKickPetitionMessage, numvotesinfavourofkicking_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndKickPetitionMessage, resultplayerkicked_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndKickPetitionMessage, petitionendreason_), + }; + EndKickPetitionMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + EndKickPetitionMessage_descriptor_, + EndKickPetitionMessage::default_instance_, + EndKickPetitionMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndKickPetitionMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EndKickPetitionMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(EndKickPetitionMessage)); + EndKickPetitionMessage_PetitionEndReason_descriptor_ = EndKickPetitionMessage_descriptor_->enum_type(0); + StatisticsMessage_descriptor_ = file->message_type(63); + static const int StatisticsMessage_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StatisticsMessage, statisticsdata_), + }; + StatisticsMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + StatisticsMessage_descriptor_, + StatisticsMessage::default_instance_, + StatisticsMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StatisticsMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StatisticsMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(StatisticsMessage)); + StatisticsMessage_StatisticsData_descriptor_ = StatisticsMessage_descriptor_->nested_type(0); + static const int StatisticsMessage_StatisticsData_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StatisticsMessage_StatisticsData, statisticstype_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StatisticsMessage_StatisticsData, statisticsvalue_), + }; + StatisticsMessage_StatisticsData_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + StatisticsMessage_StatisticsData_descriptor_, + StatisticsMessage_StatisticsData::default_instance_, + StatisticsMessage_StatisticsData_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StatisticsMessage_StatisticsData, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StatisticsMessage_StatisticsData, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(StatisticsMessage_StatisticsData)); + StatisticsMessage_StatisticsData_StatisticsType_descriptor_ = StatisticsMessage_StatisticsData_descriptor_->enum_type(0); + ChatRequestMessage_descriptor_ = file->message_type(64); + static const int ChatRequestMessage_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChatRequestMessage, targetgameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChatRequestMessage, targetplayerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChatRequestMessage, chattext_), + }; + ChatRequestMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ChatRequestMessage_descriptor_, + ChatRequestMessage::default_instance_, + ChatRequestMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChatRequestMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChatRequestMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ChatRequestMessage)); + ChatMessage_descriptor_ = file->message_type(65); + static const int ChatMessage_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChatMessage, gameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChatMessage, playerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChatMessage, chattype_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChatMessage, chattext_), + }; + ChatMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ChatMessage_descriptor_, + ChatMessage::default_instance_, + ChatMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChatMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChatMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ChatMessage)); + ChatMessage_ChatType_descriptor_ = ChatMessage_descriptor_->enum_type(0); + ChatRejectMessage_descriptor_ = file->message_type(66); + static const int ChatRejectMessage_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChatRejectMessage, chattext_), + }; + ChatRejectMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ChatRejectMessage_descriptor_, + ChatRejectMessage::default_instance_, + ChatRejectMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChatRejectMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ChatRejectMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ChatRejectMessage)); + DialogMessage_descriptor_ = file->message_type(67); + static const int DialogMessage_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DialogMessage, notificationtext_), + }; + DialogMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + DialogMessage_descriptor_, + DialogMessage::default_instance_, + DialogMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DialogMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DialogMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(DialogMessage)); + TimeoutWarningMessage_descriptor_ = file->message_type(68); + static const int TimeoutWarningMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeoutWarningMessage, timeoutreason_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeoutWarningMessage, remainingseconds_), + }; + TimeoutWarningMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + TimeoutWarningMessage_descriptor_, + TimeoutWarningMessage::default_instance_, + TimeoutWarningMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeoutWarningMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TimeoutWarningMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(TimeoutWarningMessage)); + TimeoutWarningMessage_TimeoutReason_descriptor_ = TimeoutWarningMessage_descriptor_->enum_type(0); + ResetTimeoutMessage_descriptor_ = file->message_type(69); + static const int ResetTimeoutMessage_offsets_[1] = { + }; + ResetTimeoutMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ResetTimeoutMessage_descriptor_, + ResetTimeoutMessage::default_instance_, + ResetTimeoutMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResetTimeoutMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ResetTimeoutMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ResetTimeoutMessage)); + ReportAvatarMessage_descriptor_ = file->message_type(70); + static const int ReportAvatarMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportAvatarMessage, reportedplayerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportAvatarMessage, reportedavatarhash_), + }; + ReportAvatarMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReportAvatarMessage_descriptor_, + ReportAvatarMessage::default_instance_, + ReportAvatarMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportAvatarMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportAvatarMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReportAvatarMessage)); + ReportAvatarAckMessage_descriptor_ = file->message_type(71); + static const int ReportAvatarAckMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportAvatarAckMessage, reportedplayerid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportAvatarAckMessage, reportavatarresult_), + }; + ReportAvatarAckMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReportAvatarAckMessage_descriptor_, + ReportAvatarAckMessage::default_instance_, + ReportAvatarAckMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportAvatarAckMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportAvatarAckMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReportAvatarAckMessage)); + ReportAvatarAckMessage_ReportAvatarResult_descriptor_ = ReportAvatarAckMessage_descriptor_->enum_type(0); + ReportGameMessage_descriptor_ = file->message_type(72); + static const int ReportGameMessage_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportGameMessage, reportedgameid_), + }; + ReportGameMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReportGameMessage_descriptor_, + ReportGameMessage::default_instance_, + ReportGameMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportGameMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportGameMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReportGameMessage)); + ReportGameAckMessage_descriptor_ = file->message_type(73); + static const int ReportGameAckMessage_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportGameAckMessage, reportedgameid_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportGameAckMessage, reportgameresult_), + }; + ReportGameAckMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ReportGameAckMessage_descriptor_, + ReportGameAckMessage::default_instance_, + ReportGameAckMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportGameAckMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReportGameAckMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ReportGameAckMessage)); + ReportGameAckMessage_ReportGameResult_descriptor_ = ReportGameAckMessage_descriptor_->enum_type(0); + ErrorMessage_descriptor_ = file->message_type(74); + static const int ErrorMessage_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ErrorMessage, errorreason_), + }; + ErrorMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ErrorMessage_descriptor_, + ErrorMessage::default_instance_, + ErrorMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ErrorMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ErrorMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ErrorMessage)); + ErrorMessage_ErrorReason_descriptor_ = ErrorMessage_descriptor_->enum_type(0); + PokerTHMessage_descriptor_ = file->message_type(75); + static const int PokerTHMessage_offsets_[74] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, messagetype_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, announcemessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, initmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, authserverchallengemessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, authclientresponsemessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, authserververificationmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, initackmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, avatarrequestmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, avatarheadermessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, avatardatamessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, avatarendmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, unknownavatarmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, playerlistmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, gamelistnewmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, gamelistupdatemessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, gamelistplayerjoinedmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, gamelistplayerleftmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, gamelistadminchangedmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, playerinforequestmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, playerinforeplymessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, subscriptionrequestmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, joinexistinggamemessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, joinnewgamemessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, rejoinexistinggamemessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, joingameackmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, joingamefailedmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, gameplayerjoinedmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, gameplayerleftmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, gameadminchangedmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, removedfromgamemessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, kickplayerrequestmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, leavegamerequestmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, inviteplayertogamemessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, invitenotifymessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, rejectgameinvitationmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, rejectinvnotifymessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, starteventmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, starteventackmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, gamestartinitialmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, gamestartrejoinmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, handstartmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, playersturnmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, myactionrequestmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, youractionrejectedmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, playersactiondonemessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, dealflopcardsmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, dealturncardmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, dealrivercardmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, allinshowcardsmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, endofhandshowcardsmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, endofhandhidecardsmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, showmycardsrequestmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, afterhandshowcardsmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, endofgamemessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, playeridchangedmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, askkickplayermessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, askkickdeniedmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, startkickpetitionmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, votekickrequestmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, votekickreplymessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, kickpetitionupdatemessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, endkickpetitionmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, statisticsmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, chatrequestmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, chatmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, chatrejectmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, dialogmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, timeoutwarningmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, resettimeoutmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, reportavatarmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, reportavatarackmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, reportgamemessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, reportgameackmessage_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, errormessage_), + }; + PokerTHMessage_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + PokerTHMessage_descriptor_, + PokerTHMessage::default_instance_, + PokerTHMessage_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PokerTHMessage, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(PokerTHMessage)); + PokerTHMessage_PokerTHMessageType_descriptor_ = PokerTHMessage_descriptor_->enum_type(0); + NetGameMode_descriptor_ = file->enum_type(0); + NetGameState_descriptor_ = file->enum_type(1); + NetPlayerAction_descriptor_ = file->enum_type(2); + NetPlayerState_descriptor_ = file->enum_type(3); + PlayerInfoRights_descriptor_ = file->enum_type(4); + NetAvatarType_descriptor_ = file->enum_type(5); +} + +namespace { + +GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); +inline void protobuf_AssignDescriptorsOnce() { + ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, + &protobuf_AssignDesc_pokerth_2eproto); +} + +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + NetGameInfo_descriptor_, &NetGameInfo::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PlayerResult_descriptor_, &PlayerResult::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AnnounceMessage_descriptor_, &AnnounceMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AnnounceMessage_Version_descriptor_, &AnnounceMessage_Version::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + InitMessage_descriptor_, &InitMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AuthServerChallengeMessage_descriptor_, &AuthServerChallengeMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AuthClientResponseMessage_descriptor_, &AuthClientResponseMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AuthServerVerificationMessage_descriptor_, &AuthServerVerificationMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + InitAckMessage_descriptor_, &InitAckMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AvatarRequestMessage_descriptor_, &AvatarRequestMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AvatarHeaderMessage_descriptor_, &AvatarHeaderMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AvatarDataMessage_descriptor_, &AvatarDataMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AvatarEndMessage_descriptor_, &AvatarEndMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + UnknownAvatarMessage_descriptor_, &UnknownAvatarMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PlayerListMessage_descriptor_, &PlayerListMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GameListNewMessage_descriptor_, &GameListNewMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GameListUpdateMessage_descriptor_, &GameListUpdateMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GameListPlayerJoinedMessage_descriptor_, &GameListPlayerJoinedMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GameListPlayerLeftMessage_descriptor_, &GameListPlayerLeftMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GameListAdminChangedMessage_descriptor_, &GameListAdminChangedMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PlayerInfoRequestMessage_descriptor_, &PlayerInfoRequestMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PlayerInfoReplyMessage_descriptor_, &PlayerInfoReplyMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PlayerInfoReplyMessage_PlayerInfoData_descriptor_, &PlayerInfoReplyMessage_PlayerInfoData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PlayerInfoReplyMessage_PlayerInfoData_AvatarData_descriptor_, &PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + SubscriptionRequestMessage_descriptor_, &SubscriptionRequestMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + JoinExistingGameMessage_descriptor_, &JoinExistingGameMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + JoinNewGameMessage_descriptor_, &JoinNewGameMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RejoinExistingGameMessage_descriptor_, &RejoinExistingGameMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + JoinGameAckMessage_descriptor_, &JoinGameAckMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + JoinGameFailedMessage_descriptor_, &JoinGameFailedMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GamePlayerJoinedMessage_descriptor_, &GamePlayerJoinedMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GamePlayerLeftMessage_descriptor_, &GamePlayerLeftMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GameAdminChangedMessage_descriptor_, &GameAdminChangedMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RemovedFromGameMessage_descriptor_, &RemovedFromGameMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + KickPlayerRequestMessage_descriptor_, &KickPlayerRequestMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + LeaveGameRequestMessage_descriptor_, &LeaveGameRequestMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + InvitePlayerToGameMessage_descriptor_, &InvitePlayerToGameMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + InviteNotifyMessage_descriptor_, &InviteNotifyMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RejectGameInvitationMessage_descriptor_, &RejectGameInvitationMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + RejectInvNotifyMessage_descriptor_, &RejectInvNotifyMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + StartEventMessage_descriptor_, &StartEventMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + StartEventAckMessage_descriptor_, &StartEventAckMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GameStartInitialMessage_descriptor_, &GameStartInitialMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GameStartRejoinMessage_descriptor_, &GameStartRejoinMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GameStartRejoinMessage_RejoinPlayerData_descriptor_, &GameStartRejoinMessage_RejoinPlayerData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + HandStartMessage_descriptor_, &HandStartMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + HandStartMessage_PlainCards_descriptor_, &HandStartMessage_PlainCards::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PlayersTurnMessage_descriptor_, &PlayersTurnMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + MyActionRequestMessage_descriptor_, &MyActionRequestMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + YourActionRejectedMessage_descriptor_, &YourActionRejectedMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PlayersActionDoneMessage_descriptor_, &PlayersActionDoneMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DealFlopCardsMessage_descriptor_, &DealFlopCardsMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DealTurnCardMessage_descriptor_, &DealTurnCardMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DealRiverCardMessage_descriptor_, &DealRiverCardMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AllInShowCardsMessage_descriptor_, &AllInShowCardsMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AllInShowCardsMessage_PlayerAllIn_descriptor_, &AllInShowCardsMessage_PlayerAllIn::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + EndOfHandShowCardsMessage_descriptor_, &EndOfHandShowCardsMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + EndOfHandHideCardsMessage_descriptor_, &EndOfHandHideCardsMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ShowMyCardsRequestMessage_descriptor_, &ShowMyCardsRequestMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AfterHandShowCardsMessage_descriptor_, &AfterHandShowCardsMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + EndOfGameMessage_descriptor_, &EndOfGameMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PlayerIdChangedMessage_descriptor_, &PlayerIdChangedMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AskKickPlayerMessage_descriptor_, &AskKickPlayerMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + AskKickDeniedMessage_descriptor_, &AskKickDeniedMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + StartKickPetitionMessage_descriptor_, &StartKickPetitionMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + VoteKickRequestMessage_descriptor_, &VoteKickRequestMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + VoteKickReplyMessage_descriptor_, &VoteKickReplyMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + KickPetitionUpdateMessage_descriptor_, &KickPetitionUpdateMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + EndKickPetitionMessage_descriptor_, &EndKickPetitionMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + StatisticsMessage_descriptor_, &StatisticsMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + StatisticsMessage_StatisticsData_descriptor_, &StatisticsMessage_StatisticsData::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ChatRequestMessage_descriptor_, &ChatRequestMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ChatMessage_descriptor_, &ChatMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ChatRejectMessage_descriptor_, &ChatRejectMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + DialogMessage_descriptor_, &DialogMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + TimeoutWarningMessage_descriptor_, &TimeoutWarningMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ResetTimeoutMessage_descriptor_, &ResetTimeoutMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReportAvatarMessage_descriptor_, &ReportAvatarMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReportAvatarAckMessage_descriptor_, &ReportAvatarAckMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReportGameMessage_descriptor_, &ReportGameMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ReportGameAckMessage_descriptor_, &ReportGameAckMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ErrorMessage_descriptor_, &ErrorMessage::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + PokerTHMessage_descriptor_, &PokerTHMessage::default_instance()); +} + +} // namespace + +void protobuf_ShutdownFile_pokerth_2eproto() { + delete NetGameInfo::default_instance_; + delete NetGameInfo_reflection_; + delete PlayerResult::default_instance_; + delete PlayerResult_reflection_; + delete AnnounceMessage::default_instance_; + delete AnnounceMessage_reflection_; + delete AnnounceMessage_Version::default_instance_; + delete AnnounceMessage_Version_reflection_; + delete InitMessage::default_instance_; + delete InitMessage_reflection_; + delete AuthServerChallengeMessage::default_instance_; + delete AuthServerChallengeMessage_reflection_; + delete AuthClientResponseMessage::default_instance_; + delete AuthClientResponseMessage_reflection_; + delete AuthServerVerificationMessage::default_instance_; + delete AuthServerVerificationMessage_reflection_; + delete InitAckMessage::default_instance_; + delete InitAckMessage_reflection_; + delete AvatarRequestMessage::default_instance_; + delete AvatarRequestMessage_reflection_; + delete AvatarHeaderMessage::default_instance_; + delete AvatarHeaderMessage_reflection_; + delete AvatarDataMessage::default_instance_; + delete AvatarDataMessage_reflection_; + delete AvatarEndMessage::default_instance_; + delete AvatarEndMessage_reflection_; + delete UnknownAvatarMessage::default_instance_; + delete UnknownAvatarMessage_reflection_; + delete PlayerListMessage::default_instance_; + delete PlayerListMessage_reflection_; + delete GameListNewMessage::default_instance_; + delete GameListNewMessage_reflection_; + delete GameListUpdateMessage::default_instance_; + delete GameListUpdateMessage_reflection_; + delete GameListPlayerJoinedMessage::default_instance_; + delete GameListPlayerJoinedMessage_reflection_; + delete GameListPlayerLeftMessage::default_instance_; + delete GameListPlayerLeftMessage_reflection_; + delete GameListAdminChangedMessage::default_instance_; + delete GameListAdminChangedMessage_reflection_; + delete PlayerInfoRequestMessage::default_instance_; + delete PlayerInfoRequestMessage_reflection_; + delete PlayerInfoReplyMessage::default_instance_; + delete PlayerInfoReplyMessage_reflection_; + delete PlayerInfoReplyMessage_PlayerInfoData::default_instance_; + delete PlayerInfoReplyMessage_PlayerInfoData_reflection_; + delete PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance_; + delete PlayerInfoReplyMessage_PlayerInfoData_AvatarData_reflection_; + delete SubscriptionRequestMessage::default_instance_; + delete SubscriptionRequestMessage_reflection_; + delete JoinExistingGameMessage::default_instance_; + delete JoinExistingGameMessage_reflection_; + delete JoinNewGameMessage::default_instance_; + delete JoinNewGameMessage_reflection_; + delete RejoinExistingGameMessage::default_instance_; + delete RejoinExistingGameMessage_reflection_; + delete JoinGameAckMessage::default_instance_; + delete JoinGameAckMessage_reflection_; + delete JoinGameFailedMessage::default_instance_; + delete JoinGameFailedMessage_reflection_; + delete GamePlayerJoinedMessage::default_instance_; + delete GamePlayerJoinedMessage_reflection_; + delete GamePlayerLeftMessage::default_instance_; + delete GamePlayerLeftMessage_reflection_; + delete GameAdminChangedMessage::default_instance_; + delete GameAdminChangedMessage_reflection_; + delete RemovedFromGameMessage::default_instance_; + delete RemovedFromGameMessage_reflection_; + delete KickPlayerRequestMessage::default_instance_; + delete KickPlayerRequestMessage_reflection_; + delete LeaveGameRequestMessage::default_instance_; + delete LeaveGameRequestMessage_reflection_; + delete InvitePlayerToGameMessage::default_instance_; + delete InvitePlayerToGameMessage_reflection_; + delete InviteNotifyMessage::default_instance_; + delete InviteNotifyMessage_reflection_; + delete RejectGameInvitationMessage::default_instance_; + delete RejectGameInvitationMessage_reflection_; + delete RejectInvNotifyMessage::default_instance_; + delete RejectInvNotifyMessage_reflection_; + delete StartEventMessage::default_instance_; + delete StartEventMessage_reflection_; + delete StartEventAckMessage::default_instance_; + delete StartEventAckMessage_reflection_; + delete GameStartInitialMessage::default_instance_; + delete GameStartInitialMessage_reflection_; + delete GameStartRejoinMessage::default_instance_; + delete GameStartRejoinMessage_reflection_; + delete GameStartRejoinMessage_RejoinPlayerData::default_instance_; + delete GameStartRejoinMessage_RejoinPlayerData_reflection_; + delete HandStartMessage::default_instance_; + delete HandStartMessage_reflection_; + delete HandStartMessage_PlainCards::default_instance_; + delete HandStartMessage_PlainCards_reflection_; + delete PlayersTurnMessage::default_instance_; + delete PlayersTurnMessage_reflection_; + delete MyActionRequestMessage::default_instance_; + delete MyActionRequestMessage_reflection_; + delete YourActionRejectedMessage::default_instance_; + delete YourActionRejectedMessage_reflection_; + delete PlayersActionDoneMessage::default_instance_; + delete PlayersActionDoneMessage_reflection_; + delete DealFlopCardsMessage::default_instance_; + delete DealFlopCardsMessage_reflection_; + delete DealTurnCardMessage::default_instance_; + delete DealTurnCardMessage_reflection_; + delete DealRiverCardMessage::default_instance_; + delete DealRiverCardMessage_reflection_; + delete AllInShowCardsMessage::default_instance_; + delete AllInShowCardsMessage_reflection_; + delete AllInShowCardsMessage_PlayerAllIn::default_instance_; + delete AllInShowCardsMessage_PlayerAllIn_reflection_; + delete EndOfHandShowCardsMessage::default_instance_; + delete EndOfHandShowCardsMessage_reflection_; + delete EndOfHandHideCardsMessage::default_instance_; + delete EndOfHandHideCardsMessage_reflection_; + delete ShowMyCardsRequestMessage::default_instance_; + delete ShowMyCardsRequestMessage_reflection_; + delete AfterHandShowCardsMessage::default_instance_; + delete AfterHandShowCardsMessage_reflection_; + delete EndOfGameMessage::default_instance_; + delete EndOfGameMessage_reflection_; + delete PlayerIdChangedMessage::default_instance_; + delete PlayerIdChangedMessage_reflection_; + delete AskKickPlayerMessage::default_instance_; + delete AskKickPlayerMessage_reflection_; + delete AskKickDeniedMessage::default_instance_; + delete AskKickDeniedMessage_reflection_; + delete StartKickPetitionMessage::default_instance_; + delete StartKickPetitionMessage_reflection_; + delete VoteKickRequestMessage::default_instance_; + delete VoteKickRequestMessage_reflection_; + delete VoteKickReplyMessage::default_instance_; + delete VoteKickReplyMessage_reflection_; + delete KickPetitionUpdateMessage::default_instance_; + delete KickPetitionUpdateMessage_reflection_; + delete EndKickPetitionMessage::default_instance_; + delete EndKickPetitionMessage_reflection_; + delete StatisticsMessage::default_instance_; + delete StatisticsMessage_reflection_; + delete StatisticsMessage_StatisticsData::default_instance_; + delete StatisticsMessage_StatisticsData_reflection_; + delete ChatRequestMessage::default_instance_; + delete ChatRequestMessage_reflection_; + delete ChatMessage::default_instance_; + delete ChatMessage_reflection_; + delete ChatRejectMessage::default_instance_; + delete ChatRejectMessage_reflection_; + delete DialogMessage::default_instance_; + delete DialogMessage_reflection_; + delete TimeoutWarningMessage::default_instance_; + delete TimeoutWarningMessage_reflection_; + delete ResetTimeoutMessage::default_instance_; + delete ResetTimeoutMessage_reflection_; + delete ReportAvatarMessage::default_instance_; + delete ReportAvatarMessage_reflection_; + delete ReportAvatarAckMessage::default_instance_; + delete ReportAvatarAckMessage_reflection_; + delete ReportGameMessage::default_instance_; + delete ReportGameMessage_reflection_; + delete ReportGameAckMessage::default_instance_; + delete ReportGameAckMessage_reflection_; + delete ErrorMessage::default_instance_; + delete ErrorMessage_reflection_; + delete PokerTHMessage::default_instance_; + delete PokerTHMessage_reflection_; +} + +void protobuf_AddDesc_pokerth_2eproto() { + static bool already_here = false; + if (already_here) return; + already_here = true; + GOOGLE_PROTOBUF_VERIFY_VERSION; + + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + "\n\rpokerth.proto\"\242\005\n\013NetGameInfo\022\020\n\010gameN" + "ame\030\001 \002(\t\022-\n\013netGameType\030\002 \002(\0162\030.NetGame" + "Info.NetGameType\022\025\n\rmaxNumPlayers\030\003 \002(\r\022" + "9\n\021raiseIntervalMode\030\004 \002(\0162\036.NetGameInfo" + ".RaiseIntervalMode\022\027\n\017raiseEveryHands\030\005 " + "\001(\r\022\031\n\021raiseEveryMinutes\030\006 \001(\r\022/\n\014endRai" + "seMode\030\007 \002(\0162\031.NetGameInfo.EndRaiseMode\022" + "\037\n\027endRaiseSmallBlindValue\030\010 \001(\r\022\030\n\020prop" + "osedGuiSpeed\030\t \002(\r\022\031\n\021delayBetweenHands\030" + "\n \002(\r\022\033\n\023playerActionTimeout\030\013 \002(\r\022\027\n\017fi" + "rstSmallBlind\030\014 \002(\r\022\022\n\nstartMoney\030\r \002(\r\022" + "\030\n\014manualBlinds\030\016 \003(\rB\002\020\001\"Z\n\013NetGameType" + "\022\016\n\nnormalGame\020\001\022\026\n\022registeredOnlyGame\020\002" + "\022\022\n\016inviteOnlyGame\020\003\022\017\n\013rankingGame\020\004\";\n" + "\021RaiseIntervalMode\022\022\n\016raiseOnHandNum\020\001\022\022" + "\n\016raiseOnMinutes\020\002\"H\n\014EndRaiseMode\022\020\n\014do" + "ubleBlinds\020\001\022\023\n\017raiseByEndValue\020\002\022\021\n\rkee" + "pLastBlind\020\003\"\243\001\n\014PlayerResult\022\020\n\010playerI" + "d\030\001 \002(\r\022\023\n\013resultCard1\030\002 \002(\r\022\023\n\013resultCa" + "rd2\030\003 \002(\r\022\034\n\020bestHandPosition\030\004 \003(\rB\002\020\001\022" + "\020\n\010moneyWon\030\005 \002(\r\022\023\n\013playerMoney\030\006 \002(\r\022\022" + "\n\ncardsValue\030\007 \001(\r\"\346\002\n\017AnnounceMessage\0221" + "\n\017protocolVersion\030\001 \002(\0132\030.AnnounceMessag" + "e.Version\0223\n\021latestGameVersion\030\002 \002(\0132\030.A" + "nnounceMessage.Version\022\032\n\022latestBetaRevi" + "sion\030\003 \002(\r\022/\n\nserverType\030\004 \002(\0162\033.Announc" + "eMessage.ServerType\022\032\n\022numPlayersOnServe" + "r\030\005 \002(\r\032\'\n\007Version\022\r\n\005major\030\001 \002(\r\022\r\n\005min" + "or\030\002 \002(\r\"Y\n\nServerType\022\021\n\rserverTypeLAN\020" + "\000\022\034\n\030serverTypeInternetNoAuth\020\001\022\032\n\026serve" + "rTypeInternetAuth\020\002\"\273\002\n\013InitMessage\0222\n\020r" + "equestedVersion\030\001 \002(\0132\030.AnnounceMessage." + "Version\022\017\n\007buildId\030\002 \002(\r\022\027\n\017myLastSessio" + "nId\030\003 \001(\014\022\032\n\022authServerPassword\030\004 \001(\t\022%\n" + "\005login\030\005 \002(\0162\026.InitMessage.LoginType\022\020\n\010" + "nickName\030\006 \001(\t\022\026\n\016clientUserData\030\007 \001(\014\022\022" + "\n\navatarHash\030\010 \001(\014\"M\n\tLoginType\022\016\n\nguest" + "Login\020\000\022\026\n\022authenticatedLogin\020\001\022\030\n\024unaut" + "henticatedLogin\020\002\"5\n\032AuthServerChallenge" + "Message\022\027\n\017serverChallenge\030\001 \002(\014\"3\n\031Auth" + "ClientResponseMessage\022\026\n\016clientResponse\030" + "\001 \002(\014\";\n\035AuthServerVerificationMessage\022\032" + "\n\022serverVerification\030\001 \002(\014\"k\n\016InitAckMes" + "sage\022\025\n\ryourSessionId\030\001 \002(\014\022\024\n\014yourPlaye" + "rId\030\002 \002(\r\022\026\n\016yourAvatarHash\030\003 \001(\014\022\024\n\014rej" + "oinGameId\030\004 \001(\r\"=\n\024AvatarRequestMessage\022" + "\021\n\trequestId\030\001 \002(\r\022\022\n\navatarHash\030\002 \002(\014\"`" + "\n\023AvatarHeaderMessage\022\021\n\trequestId\030\001 \002(\r" + "\022\"\n\navatarType\030\002 \002(\0162\016.NetAvatarType\022\022\n\n" + "avatarSize\030\003 \002(\r\";\n\021AvatarDataMessage\022\021\n" + "\trequestId\030\001 \002(\r\022\023\n\013avatarBlock\030\002 \002(\014\"%\n" + "\020AvatarEndMessage\022\021\n\trequestId\030\001 \002(\r\")\n\024" + "UnknownAvatarMessage\022\021\n\trequestId\030\001 \002(\r\"" + "\261\001\n\021PlayerListMessage\022\020\n\010playerId\030\001 \002(\r\022" + "I\n\026playerListNotification\030\002 \002(\0162).Player" + "ListMessage.PlayerListNotification\"\?\n\026Pl" + "ayerListNotification\022\021\n\rplayerListNew\020\000\022" + "\022\n\016playerListLeft\020\001\"\245\001\n\022GameListNewMessa" + "ge\022\016\n\006gameId\030\001 \002(\r\022\036\n\010gameMode\030\002 \002(\0162\014.N" + "etGameMode\022\021\n\tisPrivate\030\003 \002(\010\022\025\n\tplayerI" + "ds\030\004 \003(\rB\002\020\001\022\025\n\radminPlayerId\030\005 \002(\r\022\036\n\010g" + "ameInfo\030\006 \002(\0132\014.NetGameInfo\"G\n\025GameListU" + "pdateMessage\022\016\n\006gameId\030\001 \002(\r\022\036\n\010gameMode" + "\030\002 \002(\0162\014.NetGameMode\"\?\n\033GameListPlayerJo" + "inedMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030" + "\002 \002(\r\"=\n\031GameListPlayerLeftMessage\022\016\n\006ga" + "meId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\"G\n\033GameList" + "AdminChangedMessage\022\016\n\006gameId\030\001 \002(\r\022\030\n\020n" + "ewAdminPlayerId\030\002 \002(\r\",\n\030PlayerInfoReque" + "stMessage\022\020\n\010playerId\030\001 \002(\r\"\355\002\n\026PlayerIn" + "foReplyMessage\022\020\n\010playerId\030\001 \002(\r\022>\n\016play" + "erInfoData\030\002 \001(\0132&.PlayerInfoReplyMessag" + "e.PlayerInfoData\032\200\002\n\016PlayerInfoData\022\022\n\np" + "layerName\030\001 \002(\t\022\017\n\007isHuman\030\002 \002(\010\022\'\n\014play" + "erRights\030\003 \002(\0162\021.PlayerInfoRights\022\023\n\013cou" + "ntryCode\030\004 \001(\t\022E\n\navatarData\030\005 \001(\01321.Pla" + "yerInfoReplyMessage.PlayerInfoData.Avata" + "rData\032D\n\nAvatarData\022\"\n\navatarType\030\001 \002(\0162" + "\016.NetAvatarType\022\022\n\navatarHash\030\002 \002(\014\"\260\001\n\032" + "SubscriptionRequestMessage\022J\n\022subscripti" + "onAction\030\001 \002(\0162..SubscriptionRequestMess" + "age.SubscriptionAction\"F\n\022SubscriptionAc" + "tion\022\027\n\023unsubscribeGameList\020\001\022\027\n\023resubsc" + "ribeGameList\020\002\"N\n\027JoinExistingGameMessag" + "e\022\016\n\006gameId\030\001 \002(\r\022\020\n\010password\030\002 \001(\t\022\021\n\ta" + "utoLeave\030\003 \001(\010\"Y\n\022JoinNewGameMessage\022\036\n\010" + "gameInfo\030\001 \002(\0132\014.NetGameInfo\022\020\n\010password" + "\030\002 \001(\t\022\021\n\tautoLeave\030\003 \001(\010\">\n\031RejoinExist" + "ingGameMessage\022\016\n\006gameId\030\001 \002(\r\022\021\n\tautoLe" + "ave\030\002 \001(\010\"]\n\022JoinGameAckMessage\022\016\n\006gameI" + "d\030\001 \002(\r\022\027\n\017areYouGameAdmin\030\002 \002(\010\022\036\n\010game" + "Info\030\003 \002(\0132\014.NetGameInfo\"\337\002\n\025JoinGameFai" + "ledMessage\022\016\n\006gameId\030\001 \002(\r\022K\n\025joinGameFa" + "ilureReason\030\002 \002(\0162,.JoinGameFailedMessag" + "e.JoinGameFailureReason\"\350\001\n\025JoinGameFail" + "ureReason\022\017\n\013invalidGame\020\001\022\016\n\ngameIsFull" + "\020\002\022\021\n\rgameIsRunning\020\003\022\023\n\017invalidPassword" + "\020\004\022\025\n\021notAllowedAsGuest\020\005\022\016\n\nnotInvited\020" + "\006\022\021\n\rgameNameInUse\020\007\022\017\n\013badGameName\020\010\022\023\n" + "\017invalidSettings\020\t\022\024\n\020ipAddressBlocked\020\n" + "\022\020\n\014rejoinFailed\020\013\"P\n\027GamePlayerJoinedMe" + "ssage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022" + "\023\n\013isGameAdmin\030\003 \002(\010\"\316\001\n\025GamePlayerLeftM" + "essage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r" + "\022I\n\024gamePlayerLeftReason\030\003 \002(\0162+.GamePla" + "yerLeftMessage.GamePlayerLeftReason\"H\n\024G" + "amePlayerLeftReason\022\021\n\rleftOnRequest\020\000\022\016" + "\n\nleftKicked\020\001\022\r\n\tleftError\020\002\"C\n\027GameAdm" + "inChangedMessage\022\016\n\006gameId\030\001 \002(\r\022\030\n\020newA" + "dminPlayerId\030\002 \002(\r\"\206\002\n\026RemovedFromGameMe" + "ssage\022\016\n\006gameId\030\001 \002(\r\022L\n\025removedFromGame" + "Reason\030\002 \002(\0162-.RemovedFromGameMessage.Re" + "movedFromGameReason\"\215\001\n\025RemovedFromGameR" + "eason\022\024\n\020removedOnRequest\020\000\022\022\n\016kickedFro" + "mGame\020\001\022\016\n\ngameIsFull\020\002\022\021\n\rgameIsRunning" + "\020\003\022\017\n\013gameTimeout\020\004\022\026\n\022removedStartFaile" + "d\020\005\"<\n\030KickPlayerRequestMessage\022\016\n\006gameI" + "d\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\")\n\027LeaveGameRe" + "questMessage\022\016\n\006gameId\030\001 \002(\r\"=\n\031InvitePl" + "ayerToGameMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010pla" + "yerId\030\002 \002(\r\"R\n\023InviteNotifyMessage\022\016\n\006ga" + "meId\030\001 \002(\r\022\023\n\013playerIdWho\030\002 \002(\r\022\026\n\016playe" + "rIdByWhom\030\003 \002(\r\"\270\001\n\033RejectGameInvitation" + "Message\022\016\n\006gameId\030\001 \002(\r\022H\n\016myRejectReaso" + "n\030\002 \002(\01620.RejectGameInvitationMessage.Re" + "jectGameInvReason\"\?\n\023RejectGameInvReason" + "\022\022\n\016rejectReasonNo\020\000\022\024\n\020rejectReasonBusy" + "\020\001\"\210\001\n\026RejectInvNotifyMessage\022\016\n\006gameId\030" + "\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022L\n\022playerRejectR" + "eason\030\003 \002(\01620.RejectGameInvitationMessag" + "e.RejectGameInvReason\"\262\001\n\021StartEventMess" + "age\022\016\n\006gameId\030\001 \002(\r\0229\n\016startEventType\030\002 " + "\002(\0162!.StartEventMessage.StartEventType\022\037" + "\n\027fillWithComputerPlayers\030\003 \001(\010\"1\n\016Start" + "EventType\022\016\n\nstartEvent\020\000\022\017\n\013rejoinEvent" + "\020\001\"&\n\024StartEventAckMessage\022\016\n\006gameId\030\001 \002" + "(\r\"_\n\027GameStartInitialMessage\022\016\n\006gameId\030" + "\001 \002(\r\022\033\n\023startDealerPlayerId\030\002 \002(\r\022\027\n\013pl" + "ayerSeats\030\003 \003(\rB\002\020\001\"\325\001\n\026GameStartRejoinM" + "essage\022\016\n\006gameId\030\001 \002(\r\022\033\n\023startDealerPla" + "yerId\030\002 \002(\r\022\017\n\007handNum\030\003 \002(\r\022B\n\020rejoinPl" + "ayerData\030\004 \003(\0132(.GameStartRejoinMessage." + "RejoinPlayerData\0329\n\020RejoinPlayerData\022\020\n\010" + "playerId\030\001 \002(\r\022\023\n\013playerMoney\030\002 \002(\r\"\333\001\n\020" + "HandStartMessage\022\016\n\006gameId\030\001 \002(\r\0220\n\nplai" + "nCards\030\002 \001(\0132\034.HandStartMessage.PlainCar" + "ds\022\026\n\016encryptedCards\030\003 \001(\014\022\022\n\nsmallBlind" + "\030\004 \002(\r\022#\n\nseatStates\030\005 \003(\0162\017.NetPlayerSt" + "ate\0324\n\nPlainCards\022\022\n\nplainCard1\030\001 \002(\r\022\022\n" + "\nplainCard2\030\002 \002(\r\"X\n\022PlayersTurnMessage\022" + "\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022 \n\tgam" + "eState\030\003 \002(\0162\r.NetGameState\"\226\001\n\026MyAction" + "RequestMessage\022\016\n\006gameId\030\001 \002(\r\022\017\n\007handNu" + "m\030\002 \002(\r\022 \n\tgameState\030\003 \002(\0162\r.NetGameStat" + "e\022\"\n\010myAction\030\004 \002(\0162\020.NetPlayerAction\022\025\n" + "\rmyRelativeBet\030\005 \002(\r\"\271\002\n\031YourActionRejec" + "tedMessage\022\016\n\006gameId\030\001 \002(\r\022 \n\tgameState\030" + "\002 \002(\0162\r.NetGameState\022$\n\nyourAction\030\003 \002(\016" + "2\020.NetPlayerAction\022\027\n\017yourRelativeBet\030\004 " + "\002(\r\022C\n\017rejectionReason\030\005 \002(\0162*.YourActio" + "nRejectedMessage.RejectionReason\"f\n\017Reje" + "ctionReason\022\034\n\030rejectedInvalidGameState\020" + "\001\022\027\n\023rejectedNotYourTurn\020\002\022\034\n\030rejectedAc" + "tionNotAllowed\020\003\"\335\001\n\030PlayersActionDoneMe" + "ssage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022" + " \n\tgameState\030\003 \002(\0162\r.NetGameState\022&\n\014pla" + "yerAction\030\004 \002(\0162\020.NetPlayerAction\022\026\n\016tot" + "alPlayerBet\030\005 \002(\r\022\023\n\013playerMoney\030\006 \002(\r\022\022" + "\n\nhighestSet\030\007 \002(\r\022\024\n\014minimumRaise\030\010 \002(\r" + "\"_\n\024DealFlopCardsMessage\022\016\n\006gameId\030\001 \002(\r" + "\022\021\n\tflopCard1\030\002 \002(\r\022\021\n\tflopCard2\030\003 \002(\r\022\021" + "\n\tflopCard3\030\004 \002(\r\"7\n\023DealTurnCardMessage" + "\022\016\n\006gameId\030\001 \002(\r\022\020\n\010turnCard\030\002 \002(\r\"9\n\024De" + "alRiverCardMessage\022\016\n\006gameId\030\001 \002(\r\022\021\n\tri" + "verCard\030\002 \002(\r\"\252\001\n\025AllInShowCardsMessage\022" + "\016\n\006gameId\030\001 \002(\r\0228\n\014playersAllIn\030\002 \003(\0132\"." + "AllInShowCardsMessage.PlayerAllIn\032G\n\013Pla" + "yerAllIn\022\020\n\010playerId\030\001 \002(\r\022\022\n\nallInCard1" + "\030\002 \002(\r\022\022\n\nallInCard2\030\003 \002(\r\"Q\n\031EndOfHandS" + "howCardsMessage\022\016\n\006gameId\030\001 \002(\r\022$\n\rplaye" + "rResults\030\002 \003(\0132\r.PlayerResult\"d\n\031EndOfHa" + "ndHideCardsMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010pl" + "ayerId\030\002 \002(\r\022\020\n\010moneyWon\030\003 \002(\r\022\023\n\013player" + "Money\030\004 \002(\r\"\033\n\031ShowMyCardsRequestMessage" + "\"@\n\031AfterHandShowCardsMessage\022#\n\014playerR" + "esult\030\001 \002(\0132\r.PlayerResult\":\n\020EndOfGameM" + "essage\022\016\n\006gameId\030\001 \002(\r\022\026\n\016winnerPlayerId" + "\030\002 \002(\r\"B\n\026PlayerIdChangedMessage\022\023\n\013oldP" + "layerId\030\001 \002(\r\022\023\n\013newPlayerId\030\002 \002(\r\"8\n\024As" + "kKickPlayerMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010pl" + "ayerId\030\002 \002(\r\"\247\002\n\024AskKickDeniedMessage\022\016\n" + "\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022@\n\020kickD" + "eniedReason\030\003 \002(\0162&.AskKickDeniedMessage" + ".KickDeniedReason\"\252\001\n\020KickDeniedReason\022\036" + "\n\032kickDeniedInvalidGameState\020\000\022\031\n\025kickDe" + "niedNotPossible\020\001\022\033\n\027kickDeniedTryAgainL" + "ater\020\002\022\037\n\033kickDeniedAlreadyInProgress\020\003\022" + "\035\n\031kickDeniedInvalidPlayerId\020\004\"\245\001\n\030Start" + "KickPetitionMessage\022\016\n\006gameId\030\001 \002(\r\022\022\n\np" + "etitionId\030\002 \002(\r\022\031\n\021proposingPlayerId\030\003 \002" + "(\r\022\024\n\014kickPlayerId\030\004 \002(\r\022\026\n\016kickTimeoutS" + "ec\030\005 \002(\r\022\034\n\024numVotesNeededToKick\030\006 \002(\r\"N" + "\n\026VoteKickRequestMessage\022\016\n\006gameId\030\001 \002(\r" + "\022\022\n\npetitionId\030\002 \002(\r\022\020\n\010voteKick\030\003 \002(\010\"\337" + "\001\n\024VoteKickReplyMessage\022\016\n\006gameId\030\001 \002(\r\022" + "\022\n\npetitionId\030\002 \002(\r\022B\n\021voteKickReplyType" + "\030\003 \002(\0162\'.VoteKickReplyMessage.VoteKickRe" + "plyType\"_\n\021VoteKickReplyType\022\017\n\013voteKick" + "Ack\020\000\022\031\n\025voteKickDeniedInvalid\020\001\022\036\n\032vote" + "KickDeniedAlreadyVoted\020\002\"\240\001\n\031KickPetitio" + "nUpdateMessage\022\016\n\006gameId\030\001 \002(\r\022\022\n\npetiti" + "onId\030\002 \002(\r\022\036\n\026numVotesAgainstKicking\030\003 \002" + "(\r\022!\n\031numVotesInFavourOfKicking\030\004 \002(\r\022\034\n" + "\024numVotesNeededToKick\030\005 \002(\r\"\344\002\n\026EndKickP" + "etitionMessage\022\016\n\006gameId\030\001 \002(\r\022\022\n\npetiti" + "onId\030\002 \002(\r\022\036\n\026numVotesAgainstKicking\030\003 \002" + "(\r\022!\n\031numVotesInFavourOfKicking\030\004 \002(\r\022\032\n" + "\022resultPlayerKicked\030\005 \002(\r\022D\n\021petitionEnd" + "Reason\030\006 \002(\0162).EndKickPetitionMessage.Pe" + "titionEndReason\"\200\001\n\021PetitionEndReason\022\032\n" + "\026petitionEndEnoughVotes\020\000\022\034\n\030petitionEnd" + "TooFewPlayers\020\001\022\031\n\025petitionEndPlayerLeft" + "\020\002\022\026\n\022petitionEndTimeout\020\003\"\357\001\n\021Statistic" + "sMessage\0229\n\016statisticsData\030\001 \003(\0132!.Stati" + "sticsMessage.StatisticsData\032\236\001\n\016Statisti" + "csData\022H\n\016statisticsType\030\001 \002(\01620.Statist" + "icsMessage.StatisticsData.StatisticsType" + "\022\027\n\017statisticsValue\030\002 \002(\r\")\n\016StatisticsT" + "ype\022\027\n\023statNumberOfPlayers\020\001\"T\n\022ChatRequ" + "estMessage\022\024\n\014targetGameId\030\001 \001(\r\022\026\n\016targ" + "etPlayerId\030\002 \001(\r\022\020\n\010chatText\030\003 \002(\t\"\330\001\n\013C" + "hatMessage\022\016\n\006gameId\030\001 \001(\r\022\020\n\010playerId\030\002" + " \001(\r\022\'\n\010chatType\030\003 \002(\0162\025.ChatMessage.Cha" + "tType\022\020\n\010chatText\030\004 \002(\t\"l\n\010ChatType\022\021\n\rc" + "hatTypeLobby\020\000\022\020\n\014chatTypeGame\020\001\022\017\n\013chat" + "TypeBot\020\002\022\025\n\021chatTypeBroadcast\020\003\022\023\n\017chat" + "TypePrivate\020\004\"%\n\021ChatRejectMessage\022\020\n\010ch" + "atText\030\001 \002(\t\")\n\rDialogMessage\022\030\n\020notific" + "ationText\030\001 \002(\t\"\321\001\n\025TimeoutWarningMessag" + "e\022;\n\rtimeoutReason\030\001 \002(\0162$.TimeoutWarnin" + "gMessage.TimeoutReason\022\030\n\020remainingSecon" + "ds\030\002 \002(\r\"a\n\rTimeoutReason\022\031\n\025timeoutNoDa" + "taReceived\020\000\022\027\n\023timeoutInactiveGame\020\001\022\034\n" + "\030timeoutKickAfterAutofold\020\002\"\025\n\023ResetTime" + "outMessage\"K\n\023ReportAvatarMessage\022\030\n\020rep" + "ortedPlayerId\030\001 \002(\r\022\032\n\022reportedAvatarHas" + "h\030\002 \002(\014\"\336\001\n\026ReportAvatarAckMessage\022\030\n\020re" + "portedPlayerId\030\001 \002(\r\022F\n\022reportAvatarResu" + "lt\030\002 \002(\0162*.ReportAvatarAckMessage.Report" + "AvatarResult\"b\n\022ReportAvatarResult\022\030\n\024av" + "atarReportAccepted\020\000\022\031\n\025avatarReportDupl" + "icate\020\001\022\027\n\023avatarReportInvalid\020\002\"+\n\021Repo" + "rtGameMessage\022\026\n\016reportedGameId\030\001 \002(\r\"\314\001" + "\n\024ReportGameAckMessage\022\026\n\016reportedGameId" + "\030\001 \002(\r\022@\n\020reportGameResult\030\002 \002(\0162&.Repor" + "tGameAckMessage.ReportGameResult\"Z\n\020Repo" + "rtGameResult\022\026\n\022gameReportAccepted\020\000\022\027\n\023" + "gameReportDuplicate\020\001\022\025\n\021gameReportInval" + "id\020\002\"\220\003\n\014ErrorMessage\022.\n\013errorReason\030\001 \002" + "(\0162\031.ErrorMessage.ErrorReason\"\317\002\n\013ErrorR" + "eason\022\014\n\010reserved\020\000\022\033\n\027initVersionNotSup" + "ported\020\001\022\022\n\016initServerFull\020\002\022\023\n\017initAuth" + "Failure\020\003\022\027\n\023initPlayerNameInUse\020\004\022\031\n\025in" + "itInvalidPlayerName\020\005\022\031\n\025initServerMaint" + "enance\020\006\022\017\n\013initBlocked\020\007\022\022\n\016avatarTooLa" + "rge\020\010\022\021\n\rinvalidPacket\020\t\022\020\n\014invalidState" + "\020\n\022\024\n\020kickedFromServer\020\013\022\024\n\020bannedFromSe" + "rver\020\014\022\023\n\017blockedByServer\020\r\022\022\n\016sessionTi" + "meout\020\016\"\3771\n\016PokerTHMessage\0227\n\013messageTyp" + "e\030\001 \002(\0162\".PokerTHMessage.PokerTHMessageT" + "ype\022)\n\017announceMessage\030\002 \001(\0132\020.AnnounceM" + "essage\022!\n\013initMessage\030\003 \001(\0132\014.InitMessag" + "e\022\?\n\032authServerChallengeMessage\030\004 \001(\0132\033." + "AuthServerChallengeMessage\022=\n\031authClient" + "ResponseMessage\030\005 \001(\0132\032.AuthClientRespon" + "seMessage\022E\n\035authServerVerificationMessa" + "ge\030\006 \001(\0132\036.AuthServerVerificationMessage" + "\022\'\n\016initAckMessage\030\007 \001(\0132\017.InitAckMessag" + "e\0223\n\024avatarRequestMessage\030\010 \001(\0132\025.Avatar" + "RequestMessage\0221\n\023avatarHeaderMessage\030\t " + "\001(\0132\024.AvatarHeaderMessage\022-\n\021avatarDataM" + "essage\030\n \001(\0132\022.AvatarDataMessage\022+\n\020avat" + "arEndMessage\030\013 \001(\0132\021.AvatarEndMessage\0223\n" + "\024unknownAvatarMessage\030\014 \001(\0132\025.UnknownAva" + "tarMessage\022-\n\021playerListMessage\030\r \001(\0132\022." + "PlayerListMessage\022/\n\022gameListNewMessage\030" + "\016 \001(\0132\023.GameListNewMessage\0225\n\025gameListUp" + "dateMessage\030\017 \001(\0132\026.GameListUpdateMessag" + "e\022A\n\033gameListPlayerJoinedMessage\030\020 \001(\0132\034" + ".GameListPlayerJoinedMessage\022=\n\031gameList" + "PlayerLeftMessage\030\021 \001(\0132\032.GameListPlayer" + "LeftMessage\022A\n\033gameListAdminChangedMessa" + "ge\030\022 \001(\0132\034.GameListAdminChangedMessage\022;" + "\n\030playerInfoRequestMessage\030\023 \001(\0132\031.Playe" + "rInfoRequestMessage\0227\n\026playerInfoReplyMe" + "ssage\030\024 \001(\0132\027.PlayerInfoReplyMessage\022\?\n\032" + "subscriptionRequestMessage\030\025 \001(\0132\033.Subsc" + "riptionRequestMessage\0229\n\027joinExistingGam" + "eMessage\030\026 \001(\0132\030.JoinExistingGameMessage" + "\022/\n\022joinNewGameMessage\030\027 \001(\0132\023.JoinNewGa" + "meMessage\022=\n\031rejoinExistingGameMessage\030\030" + " \001(\0132\032.RejoinExistingGameMessage\022/\n\022join" + "GameAckMessage\030\031 \001(\0132\023.JoinGameAckMessag" + "e\0225\n\025joinGameFailedMessage\030\032 \001(\0132\026.JoinG" + "ameFailedMessage\0229\n\027gamePlayerJoinedMess" + "age\030\033 \001(\0132\030.GamePlayerJoinedMessage\0225\n\025g" + "amePlayerLeftMessage\030\034 \001(\0132\026.GamePlayerL" + "eftMessage\0229\n\027gameAdminChangedMessage\030\035 " + "\001(\0132\030.GameAdminChangedMessage\0227\n\026removed" + "FromGameMessage\030\036 \001(\0132\027.RemovedFromGameM" + "essage\022;\n\030kickPlayerRequestMessage\030\037 \001(\013" + "2\031.KickPlayerRequestMessage\0229\n\027leaveGame" + "RequestMessage\030 \001(\0132\030.LeaveGameRequestM" + "essage\022=\n\031invitePlayerToGameMessage\030! \001(" + "\0132\032.InvitePlayerToGameMessage\0221\n\023inviteN" + "otifyMessage\030\" \001(\0132\024.InviteNotifyMessage" + "\022A\n\033rejectGameInvitationMessage\030# \001(\0132\034." + "RejectGameInvitationMessage\0227\n\026rejectInv" + "NotifyMessage\030$ \001(\0132\027.RejectInvNotifyMes" + "sage\022-\n\021startEventMessage\030% \001(\0132\022.StartE" + "ventMessage\0223\n\024startEventAckMessage\030& \001(" + "\0132\025.StartEventAckMessage\0229\n\027gameStartIni" + "tialMessage\030\' \001(\0132\030.GameStartInitialMess" + "age\0227\n\026gameStartRejoinMessage\030( \001(\0132\027.Ga" + "meStartRejoinMessage\022+\n\020handStartMessage" + "\030) \001(\0132\021.HandStartMessage\022/\n\022playersTurn" + "Message\030* \001(\0132\023.PlayersTurnMessage\0227\n\026my" + "ActionRequestMessage\030+ \001(\0132\027.MyActionReq" + "uestMessage\022=\n\031yourActionRejectedMessage" + "\030, \001(\0132\032.YourActionRejectedMessage\022;\n\030pl" + "ayersActionDoneMessage\030- \001(\0132\031.PlayersAc" + "tionDoneMessage\0223\n\024dealFlopCardsMessage\030" + ". \001(\0132\025.DealFlopCardsMessage\0221\n\023dealTurn" + "CardMessage\030/ \001(\0132\024.DealTurnCardMessage\022" + "3\n\024dealRiverCardMessage\0300 \001(\0132\025.DealRive" + "rCardMessage\0225\n\025allInShowCardsMessage\0301 " + "\001(\0132\026.AllInShowCardsMessage\022=\n\031endOfHand" + "ShowCardsMessage\0302 \001(\0132\032.EndOfHandShowCa" + "rdsMessage\022=\n\031endOfHandHideCardsMessage\030" + "3 \001(\0132\032.EndOfHandHideCardsMessage\022=\n\031sho" + "wMyCardsRequestMessage\0304 \001(\0132\032.ShowMyCar" + "dsRequestMessage\022=\n\031afterHandShowCardsMe" + "ssage\0305 \001(\0132\032.AfterHandShowCardsMessage\022" + "+\n\020endOfGameMessage\0306 \001(\0132\021.EndOfGameMes" + "sage\0227\n\026playerIdChangedMessage\0307 \001(\0132\027.P" + "layerIdChangedMessage\0223\n\024askKickPlayerMe" + "ssage\0308 \001(\0132\025.AskKickPlayerMessage\0223\n\024as" + "kKickDeniedMessage\0309 \001(\0132\025.AskKickDenied" + "Message\022;\n\030startKickPetitionMessage\030: \001(" + "\0132\031.StartKickPetitionMessage\0227\n\026voteKick" + "RequestMessage\030; \001(\0132\027.VoteKickRequestMe" + "ssage\0223\n\024voteKickReplyMessage\030< \001(\0132\025.Vo" + "teKickReplyMessage\022=\n\031kickPetitionUpdate" + "Message\030= \001(\0132\032.KickPetitionUpdateMessag" + "e\0227\n\026endKickPetitionMessage\030> \001(\0132\027.EndK" + "ickPetitionMessage\022-\n\021statisticsMessage\030" + "\? \001(\0132\022.StatisticsMessage\022/\n\022chatRequest" + "Message\030@ \001(\0132\023.ChatRequestMessage\022!\n\013ch" + "atMessage\030A \001(\0132\014.ChatMessage\022-\n\021chatRej" + "ectMessage\030B \001(\0132\022.ChatRejectMessage\022%\n\r" + "dialogMessage\030C \001(\0132\016.DialogMessage\0225\n\025t" + "imeoutWarningMessage\030D \001(\0132\026.TimeoutWarn" + "ingMessage\0221\n\023resetTimeoutMessage\030E \001(\0132" + "\024.ResetTimeoutMessage\0221\n\023reportAvatarMes" + "sage\030F \001(\0132\024.ReportAvatarMessage\0227\n\026repo" + "rtAvatarAckMessage\030G \001(\0132\027.ReportAvatarA" + "ckMessage\022-\n\021reportGameMessage\030H \001(\0132\022.R" + "eportGameMessage\0223\n\024reportGameAckMessage" + "\030I \001(\0132\025.ReportGameAckMessage\022#\n\014errorMe" + "ssage\030J \001(\0132\r.ErrorMessage\"\244\022\n\022PokerTHMe" + "ssageType\022\030\n\024Type_AnnounceMessage\020\001\022\024\n\020T" + "ype_InitMessage\020\002\022#\n\037Type_AuthServerChal" + "lengeMessage\020\003\022\"\n\036Type_AuthClientRespons" + "eMessage\020\004\022&\n\"Type_AuthServerVerificatio" + "nMessage\020\005\022\027\n\023Type_InitAckMessage\020\006\022\035\n\031T" + "ype_AvatarRequestMessage\020\007\022\034\n\030Type_Avata" + "rHeaderMessage\020\010\022\032\n\026Type_AvatarDataMessa" + "ge\020\t\022\031\n\025Type_AvatarEndMessage\020\n\022\035\n\031Type_" + "UnknownAvatarMessage\020\013\022\032\n\026Type_PlayerLis" + "tMessage\020\014\022\033\n\027Type_GameListNewMessage\020\r\022" + "\036\n\032Type_GameListUpdateMessage\020\016\022$\n Type_" + "GameListPlayerJoinedMessage\020\017\022\"\n\036Type_Ga" + "meListPlayerLeftMessage\020\020\022$\n Type_GameLi" + "stAdminChangedMessage\020\021\022!\n\035Type_PlayerIn" + "foRequestMessage\020\022\022\037\n\033Type_PlayerInfoRep" + "lyMessage\020\023\022#\n\037Type_SubscriptionRequestM" + "essage\020\024\022 \n\034Type_JoinExistingGameMessage" + "\020\025\022\033\n\027Type_JoinNewGameMessage\020\026\022\"\n\036Type_" + "RejoinExistingGameMessage\020\027\022\033\n\027Type_Join" + "GameAckMessage\020\030\022\036\n\032Type_JoinGameFailedM" + "essage\020\031\022 \n\034Type_GamePlayerJoinedMessage" + "\020\032\022\036\n\032Type_GamePlayerLeftMessage\020\033\022 \n\034Ty" + "pe_GameAdminChangedMessage\020\034\022\037\n\033Type_Rem" + "ovedFromGameMessage\020\035\022!\n\035Type_KickPlayer" + "RequestMessage\020\036\022 \n\034Type_LeaveGameReques" + "tMessage\020\037\022\"\n\036Type_InvitePlayerToGameMes" + "sage\020 \022\034\n\030Type_InviteNotifyMessage\020!\022$\n " + "Type_RejectGameInvitationMessage\020\"\022\037\n\033Ty" + "pe_RejectInvNotifyMessage\020#\022\032\n\026Type_Star" + "tEventMessage\020$\022\035\n\031Type_StartEventAckMes" + "sage\020%\022 \n\034Type_GameStartInitialMessage\020&" + "\022\037\n\033Type_GameStartRejoinMessage\020\'\022\031\n\025Typ" + "e_HandStartMessage\020(\022\033\n\027Type_PlayersTurn" + "Message\020)\022\037\n\033Type_MyActionRequestMessage" + "\020*\022\"\n\036Type_YourActionRejectedMessage\020+\022!" + "\n\035Type_PlayersActionDoneMessage\020,\022\035\n\031Typ" + "e_DealFlopCardsMessage\020-\022\034\n\030Type_DealTur" + "nCardMessage\020.\022\035\n\031Type_DealRiverCardMess" + "age\020/\022\036\n\032Type_AllInShowCardsMessage\0200\022\"\n" + "\036Type_EndOfHandShowCardsMessage\0201\022\"\n\036Typ" + "e_EndOfHandHideCardsMessage\0202\022\"\n\036Type_Sh" + "owMyCardsRequestMessage\0203\022\"\n\036Type_AfterH" + "andShowCardsMessage\0204\022\031\n\025Type_EndOfGameM" + "essage\0205\022\037\n\033Type_PlayerIdChangedMessage\020" + "6\022\035\n\031Type_AskKickPlayerMessage\0207\022\035\n\031Type" + "_AskKickDeniedMessage\0208\022!\n\035Type_StartKic" + "kPetitionMessage\0209\022\037\n\033Type_VoteKickReque" + "stMessage\020:\022\035\n\031Type_VoteKickReplyMessage" + "\020;\022\"\n\036Type_KickPetitionUpdateMessage\020<\022\037" + "\n\033Type_EndKickPetitionMessage\020=\022\032\n\026Type_" + "StatisticsMessage\020>\022\033\n\027Type_ChatRequestM" + "essage\020\?\022\024\n\020Type_ChatMessage\020@\022\032\n\026Type_C" + "hatRejectMessage\020A\022\026\n\022Type_DialogMessage" + "\020B\022\036\n\032Type_TimeoutWarningMessage\020C\022\034\n\030Ty" + "pe_ResetTimeoutMessage\020D\022\034\n\030Type_ReportA" + "vatarMessage\020E\022\037\n\033Type_ReportAvatarAckMe" + "ssage\020F\022\032\n\026Type_ReportGameMessage\020G\022\035\n\031T" + "ype_ReportGameAckMessage\020H\022\025\n\021Type_Error" + "Message\020I*\?\n\013NetGameMode\022\017\n\013gameCreated\020" + "\001\022\017\n\013gameStarted\020\002\022\016\n\ngameClosed\020\003*\204\001\n\014N" + "etGameState\022\020\n\014statePreflop\020\000\022\r\n\tstateFl" + "op\020\001\022\r\n\tstateTurn\020\002\022\016\n\nstateRiver\020\003\022\032\n\026s" + "tatePreflopSmallBlind\020\004\022\030\n\024statePreflopB" + "igBlind\020\005*\203\001\n\017NetPlayerAction\022\016\n\nactionN" + "one\020\000\022\016\n\nactionFold\020\001\022\017\n\013actionCheck\020\002\022\016" + "\n\nactionCall\020\003\022\r\n\tactionBet\020\004\022\017\n\013actionR" + "aise\020\005\022\017\n\013actionAllIn\020\006*_\n\016NetPlayerStat" + "e\022\025\n\021playerStateNormal\020\000\022\036\n\032playerStateS" + "essionInactive\020\001\022\026\n\022playerStateNoMoney\020\002" + "*X\n\020PlayerInfoRights\022\025\n\021playerRightsGues" + "t\020\001\022\026\n\022playerRightsNormal\020\002\022\025\n\021playerRig" + "htsAdmin\020\003*K\n\rNetAvatarType\022\022\n\016avatarIma" + "gePng\020\000\022\022\n\016avatarImageJpg\020\001\022\022\n\016avatarIma" + "geGif\020\002", 17727); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "pokerth.proto", &protobuf_RegisterTypes); + NetGameInfo::default_instance_ = new NetGameInfo(); + PlayerResult::default_instance_ = new PlayerResult(); + AnnounceMessage::default_instance_ = new AnnounceMessage(); + AnnounceMessage_Version::default_instance_ = new AnnounceMessage_Version(); + InitMessage::default_instance_ = new InitMessage(); + AuthServerChallengeMessage::default_instance_ = new AuthServerChallengeMessage(); + AuthClientResponseMessage::default_instance_ = new AuthClientResponseMessage(); + AuthServerVerificationMessage::default_instance_ = new AuthServerVerificationMessage(); + InitAckMessage::default_instance_ = new InitAckMessage(); + AvatarRequestMessage::default_instance_ = new AvatarRequestMessage(); + AvatarHeaderMessage::default_instance_ = new AvatarHeaderMessage(); + AvatarDataMessage::default_instance_ = new AvatarDataMessage(); + AvatarEndMessage::default_instance_ = new AvatarEndMessage(); + UnknownAvatarMessage::default_instance_ = new UnknownAvatarMessage(); + PlayerListMessage::default_instance_ = new PlayerListMessage(); + GameListNewMessage::default_instance_ = new GameListNewMessage(); + GameListUpdateMessage::default_instance_ = new GameListUpdateMessage(); + GameListPlayerJoinedMessage::default_instance_ = new GameListPlayerJoinedMessage(); + GameListPlayerLeftMessage::default_instance_ = new GameListPlayerLeftMessage(); + GameListAdminChangedMessage::default_instance_ = new GameListAdminChangedMessage(); + PlayerInfoRequestMessage::default_instance_ = new PlayerInfoRequestMessage(); + PlayerInfoReplyMessage::default_instance_ = new PlayerInfoReplyMessage(); + PlayerInfoReplyMessage_PlayerInfoData::default_instance_ = new PlayerInfoReplyMessage_PlayerInfoData(); + PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance_ = new PlayerInfoReplyMessage_PlayerInfoData_AvatarData(); + SubscriptionRequestMessage::default_instance_ = new SubscriptionRequestMessage(); + JoinExistingGameMessage::default_instance_ = new JoinExistingGameMessage(); + JoinNewGameMessage::default_instance_ = new JoinNewGameMessage(); + RejoinExistingGameMessage::default_instance_ = new RejoinExistingGameMessage(); + JoinGameAckMessage::default_instance_ = new JoinGameAckMessage(); + JoinGameFailedMessage::default_instance_ = new JoinGameFailedMessage(); + GamePlayerJoinedMessage::default_instance_ = new GamePlayerJoinedMessage(); + GamePlayerLeftMessage::default_instance_ = new GamePlayerLeftMessage(); + GameAdminChangedMessage::default_instance_ = new GameAdminChangedMessage(); + RemovedFromGameMessage::default_instance_ = new RemovedFromGameMessage(); + KickPlayerRequestMessage::default_instance_ = new KickPlayerRequestMessage(); + LeaveGameRequestMessage::default_instance_ = new LeaveGameRequestMessage(); + InvitePlayerToGameMessage::default_instance_ = new InvitePlayerToGameMessage(); + InviteNotifyMessage::default_instance_ = new InviteNotifyMessage(); + RejectGameInvitationMessage::default_instance_ = new RejectGameInvitationMessage(); + RejectInvNotifyMessage::default_instance_ = new RejectInvNotifyMessage(); + StartEventMessage::default_instance_ = new StartEventMessage(); + StartEventAckMessage::default_instance_ = new StartEventAckMessage(); + GameStartInitialMessage::default_instance_ = new GameStartInitialMessage(); + GameStartRejoinMessage::default_instance_ = new GameStartRejoinMessage(); + GameStartRejoinMessage_RejoinPlayerData::default_instance_ = new GameStartRejoinMessage_RejoinPlayerData(); + HandStartMessage::default_instance_ = new HandStartMessage(); + HandStartMessage_PlainCards::default_instance_ = new HandStartMessage_PlainCards(); + PlayersTurnMessage::default_instance_ = new PlayersTurnMessage(); + MyActionRequestMessage::default_instance_ = new MyActionRequestMessage(); + YourActionRejectedMessage::default_instance_ = new YourActionRejectedMessage(); + PlayersActionDoneMessage::default_instance_ = new PlayersActionDoneMessage(); + DealFlopCardsMessage::default_instance_ = new DealFlopCardsMessage(); + DealTurnCardMessage::default_instance_ = new DealTurnCardMessage(); + DealRiverCardMessage::default_instance_ = new DealRiverCardMessage(); + AllInShowCardsMessage::default_instance_ = new AllInShowCardsMessage(); + AllInShowCardsMessage_PlayerAllIn::default_instance_ = new AllInShowCardsMessage_PlayerAllIn(); + EndOfHandShowCardsMessage::default_instance_ = new EndOfHandShowCardsMessage(); + EndOfHandHideCardsMessage::default_instance_ = new EndOfHandHideCardsMessage(); + ShowMyCardsRequestMessage::default_instance_ = new ShowMyCardsRequestMessage(); + AfterHandShowCardsMessage::default_instance_ = new AfterHandShowCardsMessage(); + EndOfGameMessage::default_instance_ = new EndOfGameMessage(); + PlayerIdChangedMessage::default_instance_ = new PlayerIdChangedMessage(); + AskKickPlayerMessage::default_instance_ = new AskKickPlayerMessage(); + AskKickDeniedMessage::default_instance_ = new AskKickDeniedMessage(); + StartKickPetitionMessage::default_instance_ = new StartKickPetitionMessage(); + VoteKickRequestMessage::default_instance_ = new VoteKickRequestMessage(); + VoteKickReplyMessage::default_instance_ = new VoteKickReplyMessage(); + KickPetitionUpdateMessage::default_instance_ = new KickPetitionUpdateMessage(); + EndKickPetitionMessage::default_instance_ = new EndKickPetitionMessage(); + StatisticsMessage::default_instance_ = new StatisticsMessage(); + StatisticsMessage_StatisticsData::default_instance_ = new StatisticsMessage_StatisticsData(); + ChatRequestMessage::default_instance_ = new ChatRequestMessage(); + ChatMessage::default_instance_ = new ChatMessage(); + ChatRejectMessage::default_instance_ = new ChatRejectMessage(); + DialogMessage::default_instance_ = new DialogMessage(); + TimeoutWarningMessage::default_instance_ = new TimeoutWarningMessage(); + ResetTimeoutMessage::default_instance_ = new ResetTimeoutMessage(); + ReportAvatarMessage::default_instance_ = new ReportAvatarMessage(); + ReportAvatarAckMessage::default_instance_ = new ReportAvatarAckMessage(); + ReportGameMessage::default_instance_ = new ReportGameMessage(); + ReportGameAckMessage::default_instance_ = new ReportGameAckMessage(); + ErrorMessage::default_instance_ = new ErrorMessage(); + PokerTHMessage::default_instance_ = new PokerTHMessage(); + NetGameInfo::default_instance_->InitAsDefaultInstance(); + PlayerResult::default_instance_->InitAsDefaultInstance(); + AnnounceMessage::default_instance_->InitAsDefaultInstance(); + AnnounceMessage_Version::default_instance_->InitAsDefaultInstance(); + InitMessage::default_instance_->InitAsDefaultInstance(); + AuthServerChallengeMessage::default_instance_->InitAsDefaultInstance(); + AuthClientResponseMessage::default_instance_->InitAsDefaultInstance(); + AuthServerVerificationMessage::default_instance_->InitAsDefaultInstance(); + InitAckMessage::default_instance_->InitAsDefaultInstance(); + AvatarRequestMessage::default_instance_->InitAsDefaultInstance(); + AvatarHeaderMessage::default_instance_->InitAsDefaultInstance(); + AvatarDataMessage::default_instance_->InitAsDefaultInstance(); + AvatarEndMessage::default_instance_->InitAsDefaultInstance(); + UnknownAvatarMessage::default_instance_->InitAsDefaultInstance(); + PlayerListMessage::default_instance_->InitAsDefaultInstance(); + GameListNewMessage::default_instance_->InitAsDefaultInstance(); + GameListUpdateMessage::default_instance_->InitAsDefaultInstance(); + GameListPlayerJoinedMessage::default_instance_->InitAsDefaultInstance(); + GameListPlayerLeftMessage::default_instance_->InitAsDefaultInstance(); + GameListAdminChangedMessage::default_instance_->InitAsDefaultInstance(); + PlayerInfoRequestMessage::default_instance_->InitAsDefaultInstance(); + PlayerInfoReplyMessage::default_instance_->InitAsDefaultInstance(); + PlayerInfoReplyMessage_PlayerInfoData::default_instance_->InitAsDefaultInstance(); + PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance_->InitAsDefaultInstance(); + SubscriptionRequestMessage::default_instance_->InitAsDefaultInstance(); + JoinExistingGameMessage::default_instance_->InitAsDefaultInstance(); + JoinNewGameMessage::default_instance_->InitAsDefaultInstance(); + RejoinExistingGameMessage::default_instance_->InitAsDefaultInstance(); + JoinGameAckMessage::default_instance_->InitAsDefaultInstance(); + JoinGameFailedMessage::default_instance_->InitAsDefaultInstance(); + GamePlayerJoinedMessage::default_instance_->InitAsDefaultInstance(); + GamePlayerLeftMessage::default_instance_->InitAsDefaultInstance(); + GameAdminChangedMessage::default_instance_->InitAsDefaultInstance(); + RemovedFromGameMessage::default_instance_->InitAsDefaultInstance(); + KickPlayerRequestMessage::default_instance_->InitAsDefaultInstance(); + LeaveGameRequestMessage::default_instance_->InitAsDefaultInstance(); + InvitePlayerToGameMessage::default_instance_->InitAsDefaultInstance(); + InviteNotifyMessage::default_instance_->InitAsDefaultInstance(); + RejectGameInvitationMessage::default_instance_->InitAsDefaultInstance(); + RejectInvNotifyMessage::default_instance_->InitAsDefaultInstance(); + StartEventMessage::default_instance_->InitAsDefaultInstance(); + StartEventAckMessage::default_instance_->InitAsDefaultInstance(); + GameStartInitialMessage::default_instance_->InitAsDefaultInstance(); + GameStartRejoinMessage::default_instance_->InitAsDefaultInstance(); + GameStartRejoinMessage_RejoinPlayerData::default_instance_->InitAsDefaultInstance(); + HandStartMessage::default_instance_->InitAsDefaultInstance(); + HandStartMessage_PlainCards::default_instance_->InitAsDefaultInstance(); + PlayersTurnMessage::default_instance_->InitAsDefaultInstance(); + MyActionRequestMessage::default_instance_->InitAsDefaultInstance(); + YourActionRejectedMessage::default_instance_->InitAsDefaultInstance(); + PlayersActionDoneMessage::default_instance_->InitAsDefaultInstance(); + DealFlopCardsMessage::default_instance_->InitAsDefaultInstance(); + DealTurnCardMessage::default_instance_->InitAsDefaultInstance(); + DealRiverCardMessage::default_instance_->InitAsDefaultInstance(); + AllInShowCardsMessage::default_instance_->InitAsDefaultInstance(); + AllInShowCardsMessage_PlayerAllIn::default_instance_->InitAsDefaultInstance(); + EndOfHandShowCardsMessage::default_instance_->InitAsDefaultInstance(); + EndOfHandHideCardsMessage::default_instance_->InitAsDefaultInstance(); + ShowMyCardsRequestMessage::default_instance_->InitAsDefaultInstance(); + AfterHandShowCardsMessage::default_instance_->InitAsDefaultInstance(); + EndOfGameMessage::default_instance_->InitAsDefaultInstance(); + PlayerIdChangedMessage::default_instance_->InitAsDefaultInstance(); + AskKickPlayerMessage::default_instance_->InitAsDefaultInstance(); + AskKickDeniedMessage::default_instance_->InitAsDefaultInstance(); + StartKickPetitionMessage::default_instance_->InitAsDefaultInstance(); + VoteKickRequestMessage::default_instance_->InitAsDefaultInstance(); + VoteKickReplyMessage::default_instance_->InitAsDefaultInstance(); + KickPetitionUpdateMessage::default_instance_->InitAsDefaultInstance(); + EndKickPetitionMessage::default_instance_->InitAsDefaultInstance(); + StatisticsMessage::default_instance_->InitAsDefaultInstance(); + StatisticsMessage_StatisticsData::default_instance_->InitAsDefaultInstance(); + ChatRequestMessage::default_instance_->InitAsDefaultInstance(); + ChatMessage::default_instance_->InitAsDefaultInstance(); + ChatRejectMessage::default_instance_->InitAsDefaultInstance(); + DialogMessage::default_instance_->InitAsDefaultInstance(); + TimeoutWarningMessage::default_instance_->InitAsDefaultInstance(); + ResetTimeoutMessage::default_instance_->InitAsDefaultInstance(); + ReportAvatarMessage::default_instance_->InitAsDefaultInstance(); + ReportAvatarAckMessage::default_instance_->InitAsDefaultInstance(); + ReportGameMessage::default_instance_->InitAsDefaultInstance(); + ReportGameAckMessage::default_instance_->InitAsDefaultInstance(); + ErrorMessage::default_instance_->InitAsDefaultInstance(); + PokerTHMessage::default_instance_->InitAsDefaultInstance(); + ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_pokerth_2eproto); +} + +// Force AddDescriptors() to be called at static initialization time. +struct StaticDescriptorInitializer_pokerth_2eproto { + StaticDescriptorInitializer_pokerth_2eproto() { + protobuf_AddDesc_pokerth_2eproto(); + } +} static_descriptor_initializer_pokerth_2eproto_; + +const ::google::protobuf::EnumDescriptor* NetGameMode_descriptor() { + protobuf_AssignDescriptorsOnce(); + return NetGameMode_descriptor_; +} +bool NetGameMode_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* NetGameState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return NetGameState_descriptor_; +} +bool NetGameState_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* NetPlayerAction_descriptor() { + protobuf_AssignDescriptorsOnce(); + return NetPlayerAction_descriptor_; +} +bool NetPlayerAction_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* NetPlayerState_descriptor() { + protobuf_AssignDescriptorsOnce(); + return NetPlayerState_descriptor_; +} +bool NetPlayerState_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* PlayerInfoRights_descriptor() { + protobuf_AssignDescriptorsOnce(); + return PlayerInfoRights_descriptor_; +} +bool PlayerInfoRights_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +const ::google::protobuf::EnumDescriptor* NetAvatarType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return NetAvatarType_descriptor_; +} +bool NetAvatarType_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* NetGameInfo_NetGameType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return NetGameInfo_NetGameType_descriptor_; +} +bool NetGameInfo_NetGameType_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const NetGameInfo_NetGameType NetGameInfo::normalGame; +const NetGameInfo_NetGameType NetGameInfo::registeredOnlyGame; +const NetGameInfo_NetGameType NetGameInfo::inviteOnlyGame; +const NetGameInfo_NetGameType NetGameInfo::rankingGame; +const NetGameInfo_NetGameType NetGameInfo::NetGameType_MIN; +const NetGameInfo_NetGameType NetGameInfo::NetGameType_MAX; +const int NetGameInfo::NetGameType_ARRAYSIZE; +#endif // _MSC_VER +const ::google::protobuf::EnumDescriptor* NetGameInfo_RaiseIntervalMode_descriptor() { + protobuf_AssignDescriptorsOnce(); + return NetGameInfo_RaiseIntervalMode_descriptor_; +} +bool NetGameInfo_RaiseIntervalMode_IsValid(int value) { + switch(value) { + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const NetGameInfo_RaiseIntervalMode NetGameInfo::raiseOnHandNum; +const NetGameInfo_RaiseIntervalMode NetGameInfo::raiseOnMinutes; +const NetGameInfo_RaiseIntervalMode NetGameInfo::RaiseIntervalMode_MIN; +const NetGameInfo_RaiseIntervalMode NetGameInfo::RaiseIntervalMode_MAX; +const int NetGameInfo::RaiseIntervalMode_ARRAYSIZE; +#endif // _MSC_VER +const ::google::protobuf::EnumDescriptor* NetGameInfo_EndRaiseMode_descriptor() { + protobuf_AssignDescriptorsOnce(); + return NetGameInfo_EndRaiseMode_descriptor_; +} +bool NetGameInfo_EndRaiseMode_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const NetGameInfo_EndRaiseMode NetGameInfo::doubleBlinds; +const NetGameInfo_EndRaiseMode NetGameInfo::raiseByEndValue; +const NetGameInfo_EndRaiseMode NetGameInfo::keepLastBlind; +const NetGameInfo_EndRaiseMode NetGameInfo::EndRaiseMode_MIN; +const NetGameInfo_EndRaiseMode NetGameInfo::EndRaiseMode_MAX; +const int NetGameInfo::EndRaiseMode_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int NetGameInfo::kGameNameFieldNumber; +const int NetGameInfo::kNetGameTypeFieldNumber; +const int NetGameInfo::kMaxNumPlayersFieldNumber; +const int NetGameInfo::kRaiseIntervalModeFieldNumber; +const int NetGameInfo::kRaiseEveryHandsFieldNumber; +const int NetGameInfo::kRaiseEveryMinutesFieldNumber; +const int NetGameInfo::kEndRaiseModeFieldNumber; +const int NetGameInfo::kEndRaiseSmallBlindValueFieldNumber; +const int NetGameInfo::kProposedGuiSpeedFieldNumber; +const int NetGameInfo::kDelayBetweenHandsFieldNumber; +const int NetGameInfo::kPlayerActionTimeoutFieldNumber; +const int NetGameInfo::kFirstSmallBlindFieldNumber; +const int NetGameInfo::kStartMoneyFieldNumber; +const int NetGameInfo::kManualBlindsFieldNumber; +#endif // !_MSC_VER + +NetGameInfo::NetGameInfo() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void NetGameInfo::InitAsDefaultInstance() { +} + +NetGameInfo::NetGameInfo(const NetGameInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void NetGameInfo::SharedCtor() { + _cached_size_ = 0; + gamename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + netgametype_ = 1; + maxnumplayers_ = 0u; + raiseintervalmode_ = 1; + raiseeveryhands_ = 0u; + raiseeveryminutes_ = 0u; + endraisemode_ = 1; + endraisesmallblindvalue_ = 0u; + proposedguispeed_ = 0u; + delaybetweenhands_ = 0u; + playeractiontimeout_ = 0u; + firstsmallblind_ = 0u; + startmoney_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +NetGameInfo::~NetGameInfo() { + SharedDtor(); +} + +void NetGameInfo::SharedDtor() { + if (gamename_ != &::google::protobuf::internal::kEmptyString) { + delete gamename_; + } + if (this != default_instance_) { + } +} + +void NetGameInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* NetGameInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return NetGameInfo_descriptor_; +} + +const NetGameInfo& NetGameInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +NetGameInfo* NetGameInfo::default_instance_ = NULL; + +NetGameInfo* NetGameInfo::New() const { + return new NetGameInfo; +} + +void NetGameInfo::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_gamename()) { + if (gamename_ != &::google::protobuf::internal::kEmptyString) { + gamename_->clear(); + } + } + netgametype_ = 1; + maxnumplayers_ = 0u; + raiseintervalmode_ = 1; + raiseeveryhands_ = 0u; + raiseeveryminutes_ = 0u; + endraisemode_ = 1; + endraisesmallblindvalue_ = 0u; + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + proposedguispeed_ = 0u; + delaybetweenhands_ = 0u; + playeractiontimeout_ = 0u; + firstsmallblind_ = 0u; + startmoney_ = 0u; + } + manualblinds_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool NetGameInfo::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string gameName = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_gamename())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->gamename().data(), this->gamename().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_netGameType; + break; + } + + // required .NetGameInfo.NetGameType netGameType = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_netGameType: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::NetGameInfo_NetGameType_IsValid(value)) { + set_netgametype(static_cast< ::NetGameInfo_NetGameType >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_maxNumPlayers; + break; + } + + // required uint32 maxNumPlayers = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_maxNumPlayers: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &maxnumplayers_))); + set_has_maxnumplayers(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_raiseIntervalMode; + break; + } + + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_raiseIntervalMode: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::NetGameInfo_RaiseIntervalMode_IsValid(value)) { + set_raiseintervalmode(static_cast< ::NetGameInfo_RaiseIntervalMode >(value)); + } else { + mutable_unknown_fields()->AddVarint(4, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_raiseEveryHands; + break; + } + + // optional uint32 raiseEveryHands = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_raiseEveryHands: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &raiseeveryhands_))); + set_has_raiseeveryhands(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_raiseEveryMinutes; + break; + } + + // optional uint32 raiseEveryMinutes = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_raiseEveryMinutes: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &raiseeveryminutes_))); + set_has_raiseeveryminutes(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(56)) goto parse_endRaiseMode; + break; + } + + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_endRaiseMode: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::NetGameInfo_EndRaiseMode_IsValid(value)) { + set_endraisemode(static_cast< ::NetGameInfo_EndRaiseMode >(value)); + } else { + mutable_unknown_fields()->AddVarint(7, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(64)) goto parse_endRaiseSmallBlindValue; + break; + } + + // optional uint32 endRaiseSmallBlindValue = 8; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_endRaiseSmallBlindValue: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &endraisesmallblindvalue_))); + set_has_endraisesmallblindvalue(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(72)) goto parse_proposedGuiSpeed; + break; + } + + // required uint32 proposedGuiSpeed = 9; + case 9: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_proposedGuiSpeed: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &proposedguispeed_))); + set_has_proposedguispeed(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(80)) goto parse_delayBetweenHands; + break; + } + + // required uint32 delayBetweenHands = 10; + case 10: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_delayBetweenHands: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &delaybetweenhands_))); + set_has_delaybetweenhands(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(88)) goto parse_playerActionTimeout; + break; + } + + // required uint32 playerActionTimeout = 11; + case 11: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerActionTimeout: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playeractiontimeout_))); + set_has_playeractiontimeout(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(96)) goto parse_firstSmallBlind; + break; + } + + // required uint32 firstSmallBlind = 12; + case 12: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_firstSmallBlind: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &firstsmallblind_))); + set_has_firstsmallblind(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(104)) goto parse_startMoney; + break; + } + + // required uint32 startMoney = 13; + case 13: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_startMoney: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &startmoney_))); + set_has_startmoney(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(114)) goto parse_manualBlinds; + break; + } + + // repeated uint32 manualBlinds = 14 [packed = true]; + case 14: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_manualBlinds: + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_manualblinds()))); + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 114, input, this->mutable_manualblinds()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void NetGameInfo::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string gameName = 1; + if (has_gamename()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->gamename().data(), this->gamename().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->gamename(), output); + } + + // required .NetGameInfo.NetGameType netGameType = 2; + if (has_netgametype()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->netgametype(), output); + } + + // required uint32 maxNumPlayers = 3; + if (has_maxnumplayers()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->maxnumplayers(), output); + } + + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; + if (has_raiseintervalmode()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->raiseintervalmode(), output); + } + + // optional uint32 raiseEveryHands = 5; + if (has_raiseeveryhands()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->raiseeveryhands(), output); + } + + // optional uint32 raiseEveryMinutes = 6; + if (has_raiseeveryminutes()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->raiseeveryminutes(), output); + } + + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; + if (has_endraisemode()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 7, this->endraisemode(), output); + } + + // optional uint32 endRaiseSmallBlindValue = 8; + if (has_endraisesmallblindvalue()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->endraisesmallblindvalue(), output); + } + + // required uint32 proposedGuiSpeed = 9; + if (has_proposedguispeed()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->proposedguispeed(), output); + } + + // required uint32 delayBetweenHands = 10; + if (has_delaybetweenhands()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->delaybetweenhands(), output); + } + + // required uint32 playerActionTimeout = 11; + if (has_playeractiontimeout()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(11, this->playeractiontimeout(), output); + } + + // required uint32 firstSmallBlind = 12; + if (has_firstsmallblind()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->firstsmallblind(), output); + } + + // required uint32 startMoney = 13; + if (has_startmoney()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(13, this->startmoney(), output); + } + + // repeated uint32 manualBlinds = 14 [packed = true]; + if (this->manualblinds_size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteTag(14, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_manualblinds_cached_byte_size_); + } + for (int i = 0; i < this->manualblinds_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( + this->manualblinds(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* NetGameInfo::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string gameName = 1; + if (has_gamename()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->gamename().data(), this->gamename().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->gamename(), target); + } + + // required .NetGameInfo.NetGameType netGameType = 2; + if (has_netgametype()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->netgametype(), target); + } + + // required uint32 maxNumPlayers = 3; + if (has_maxnumplayers()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->maxnumplayers(), target); + } + + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; + if (has_raiseintervalmode()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->raiseintervalmode(), target); + } + + // optional uint32 raiseEveryHands = 5; + if (has_raiseeveryhands()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->raiseeveryhands(), target); + } + + // optional uint32 raiseEveryMinutes = 6; + if (has_raiseeveryminutes()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->raiseeveryminutes(), target); + } + + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; + if (has_endraisemode()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 7, this->endraisemode(), target); + } + + // optional uint32 endRaiseSmallBlindValue = 8; + if (has_endraisesmallblindvalue()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->endraisesmallblindvalue(), target); + } + + // required uint32 proposedGuiSpeed = 9; + if (has_proposedguispeed()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->proposedguispeed(), target); + } + + // required uint32 delayBetweenHands = 10; + if (has_delaybetweenhands()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->delaybetweenhands(), target); + } + + // required uint32 playerActionTimeout = 11; + if (has_playeractiontimeout()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(11, this->playeractiontimeout(), target); + } + + // required uint32 firstSmallBlind = 12; + if (has_firstsmallblind()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->firstsmallblind(), target); + } + + // required uint32 startMoney = 13; + if (has_startmoney()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(13, this->startmoney(), target); + } + + // repeated uint32 manualBlinds = 14 [packed = true]; + if (this->manualblinds_size() > 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + 14, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( + _manualblinds_cached_byte_size_, target); + } + for (int i = 0; i < this->manualblinds_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32NoTagToArray(this->manualblinds(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int NetGameInfo::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string gameName = 1; + if (has_gamename()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->gamename()); + } + + // required .NetGameInfo.NetGameType netGameType = 2; + if (has_netgametype()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->netgametype()); + } + + // required uint32 maxNumPlayers = 3; + if (has_maxnumplayers()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->maxnumplayers()); + } + + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; + if (has_raiseintervalmode()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->raiseintervalmode()); + } + + // optional uint32 raiseEveryHands = 5; + if (has_raiseeveryhands()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->raiseeveryhands()); + } + + // optional uint32 raiseEveryMinutes = 6; + if (has_raiseeveryminutes()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->raiseeveryminutes()); + } + + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; + if (has_endraisemode()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->endraisemode()); + } + + // optional uint32 endRaiseSmallBlindValue = 8; + if (has_endraisesmallblindvalue()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->endraisesmallblindvalue()); + } + + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + // required uint32 proposedGuiSpeed = 9; + if (has_proposedguispeed()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->proposedguispeed()); + } + + // required uint32 delayBetweenHands = 10; + if (has_delaybetweenhands()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->delaybetweenhands()); + } + + // required uint32 playerActionTimeout = 11; + if (has_playeractiontimeout()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playeractiontimeout()); + } + + // required uint32 firstSmallBlind = 12; + if (has_firstsmallblind()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->firstsmallblind()); + } + + // required uint32 startMoney = 13; + if (has_startmoney()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->startmoney()); + } + + } + // repeated uint32 manualBlinds = 14 [packed = true]; + { + int data_size = 0; + for (int i = 0; i < this->manualblinds_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->manualblinds(i)); + } + if (data_size > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + } + _manualblinds_cached_byte_size_ = data_size; + total_size += data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void NetGameInfo::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const NetGameInfo* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void NetGameInfo::MergeFrom(const NetGameInfo& from) { + GOOGLE_CHECK_NE(&from, this); + manualblinds_.MergeFrom(from.manualblinds_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gamename()) { + set_gamename(from.gamename()); + } + if (from.has_netgametype()) { + set_netgametype(from.netgametype()); + } + if (from.has_maxnumplayers()) { + set_maxnumplayers(from.maxnumplayers()); + } + if (from.has_raiseintervalmode()) { + set_raiseintervalmode(from.raiseintervalmode()); + } + if (from.has_raiseeveryhands()) { + set_raiseeveryhands(from.raiseeveryhands()); + } + if (from.has_raiseeveryminutes()) { + set_raiseeveryminutes(from.raiseeveryminutes()); + } + if (from.has_endraisemode()) { + set_endraisemode(from.endraisemode()); + } + if (from.has_endraisesmallblindvalue()) { + set_endraisesmallblindvalue(from.endraisesmallblindvalue()); + } + } + if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { + if (from.has_proposedguispeed()) { + set_proposedguispeed(from.proposedguispeed()); + } + if (from.has_delaybetweenhands()) { + set_delaybetweenhands(from.delaybetweenhands()); + } + if (from.has_playeractiontimeout()) { + set_playeractiontimeout(from.playeractiontimeout()); + } + if (from.has_firstsmallblind()) { + set_firstsmallblind(from.firstsmallblind()); + } + if (from.has_startmoney()) { + set_startmoney(from.startmoney()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void NetGameInfo::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void NetGameInfo::CopyFrom(const NetGameInfo& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool NetGameInfo::IsInitialized() const { + if ((_has_bits_[0] & 0x00001f4f) != 0x00001f4f) return false; + + return true; +} + +void NetGameInfo::Swap(NetGameInfo* other) { + if (other != this) { + std::swap(gamename_, other->gamename_); + std::swap(netgametype_, other->netgametype_); + std::swap(maxnumplayers_, other->maxnumplayers_); + std::swap(raiseintervalmode_, other->raiseintervalmode_); + std::swap(raiseeveryhands_, other->raiseeveryhands_); + std::swap(raiseeveryminutes_, other->raiseeveryminutes_); + std::swap(endraisemode_, other->endraisemode_); + std::swap(endraisesmallblindvalue_, other->endraisesmallblindvalue_); + std::swap(proposedguispeed_, other->proposedguispeed_); + std::swap(delaybetweenhands_, other->delaybetweenhands_); + std::swap(playeractiontimeout_, other->playeractiontimeout_); + std::swap(firstsmallblind_, other->firstsmallblind_); + std::swap(startmoney_, other->startmoney_); + manualblinds_.Swap(&other->manualblinds_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata NetGameInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = NetGameInfo_descriptor_; + metadata.reflection = NetGameInfo_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int PlayerResult::kPlayerIdFieldNumber; +const int PlayerResult::kResultCard1FieldNumber; +const int PlayerResult::kResultCard2FieldNumber; +const int PlayerResult::kBestHandPositionFieldNumber; +const int PlayerResult::kMoneyWonFieldNumber; +const int PlayerResult::kPlayerMoneyFieldNumber; +const int PlayerResult::kCardsValueFieldNumber; +#endif // !_MSC_VER + +PlayerResult::PlayerResult() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void PlayerResult::InitAsDefaultInstance() { +} + +PlayerResult::PlayerResult(const PlayerResult& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void PlayerResult::SharedCtor() { + _cached_size_ = 0; + playerid_ = 0u; + resultcard1_ = 0u; + resultcard2_ = 0u; + moneywon_ = 0u; + playermoney_ = 0u; + cardsvalue_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PlayerResult::~PlayerResult() { + SharedDtor(); +} + +void PlayerResult::SharedDtor() { + if (this != default_instance_) { + } +} + +void PlayerResult::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PlayerResult::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PlayerResult_descriptor_; +} + +const PlayerResult& PlayerResult::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +PlayerResult* PlayerResult::default_instance_ = NULL; + +PlayerResult* PlayerResult::New() const { + return new PlayerResult; +} + +void PlayerResult::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + playerid_ = 0u; + resultcard1_ = 0u; + resultcard2_ = 0u; + moneywon_ = 0u; + playermoney_ = 0u; + cardsvalue_ = 0u; + } + besthandposition_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool PlayerResult::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 playerId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_resultCard1; + break; + } + + // required uint32 resultCard1 = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_resultCard1: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &resultcard1_))); + set_has_resultcard1(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_resultCard2; + break; + } + + // required uint32 resultCard2 = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_resultCard2: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &resultcard2_))); + set_has_resultcard2(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_bestHandPosition; + break; + } + + // repeated uint32 bestHandPosition = 4 [packed = true]; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_bestHandPosition: + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_besthandposition()))); + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 34, input, this->mutable_besthandposition()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_moneyWon; + break; + } + + // required uint32 moneyWon = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_moneyWon: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &moneywon_))); + set_has_moneywon(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_playerMoney; + break; + } + + // required uint32 playerMoney = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerMoney: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playermoney_))); + set_has_playermoney(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(56)) goto parse_cardsValue; + break; + } + + // optional uint32 cardsValue = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_cardsValue: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &cardsvalue_))); + set_has_cardsvalue(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void PlayerResult::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 playerId = 1; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); + } + + // required uint32 resultCard1 = 2; + if (has_resultcard1()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->resultcard1(), output); + } + + // required uint32 resultCard2 = 3; + if (has_resultcard2()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->resultcard2(), output); + } + + // repeated uint32 bestHandPosition = 4 [packed = true]; + if (this->besthandposition_size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_besthandposition_cached_byte_size_); + } + for (int i = 0; i < this->besthandposition_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( + this->besthandposition(i), output); + } + + // required uint32 moneyWon = 5; + if (has_moneywon()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->moneywon(), output); + } + + // required uint32 playerMoney = 6; + if (has_playermoney()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->playermoney(), output); + } + + // optional uint32 cardsValue = 7; + if (has_cardsvalue()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->cardsvalue(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* PlayerResult::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 playerId = 1; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->playerid(), target); + } + + // required uint32 resultCard1 = 2; + if (has_resultcard1()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->resultcard1(), target); + } + + // required uint32 resultCard2 = 3; + if (has_resultcard2()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->resultcard2(), target); + } + + // repeated uint32 bestHandPosition = 4 [packed = true]; + if (this->besthandposition_size() > 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + 4, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( + _besthandposition_cached_byte_size_, target); + } + for (int i = 0; i < this->besthandposition_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32NoTagToArray(this->besthandposition(i), target); + } + + // required uint32 moneyWon = 5; + if (has_moneywon()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->moneywon(), target); + } + + // required uint32 playerMoney = 6; + if (has_playermoney()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->playermoney(), target); + } + + // optional uint32 cardsValue = 7; + if (has_cardsvalue()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->cardsvalue(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int PlayerResult::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 playerId = 1; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + // required uint32 resultCard1 = 2; + if (has_resultcard1()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->resultcard1()); + } + + // required uint32 resultCard2 = 3; + if (has_resultcard2()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->resultcard2()); + } + + // required uint32 moneyWon = 5; + if (has_moneywon()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->moneywon()); + } + + // required uint32 playerMoney = 6; + if (has_playermoney()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playermoney()); + } + + // optional uint32 cardsValue = 7; + if (has_cardsvalue()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->cardsvalue()); + } + + } + // repeated uint32 bestHandPosition = 4 [packed = true]; + { + int data_size = 0; + for (int i = 0; i < this->besthandposition_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->besthandposition(i)); + } + if (data_size > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + } + _besthandposition_cached_byte_size_ = data_size; + total_size += data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PlayerResult::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const PlayerResult* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void PlayerResult::MergeFrom(const PlayerResult& from) { + GOOGLE_CHECK_NE(&from, this); + besthandposition_.MergeFrom(from.besthandposition_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + if (from.has_resultcard1()) { + set_resultcard1(from.resultcard1()); + } + if (from.has_resultcard2()) { + set_resultcard2(from.resultcard2()); + } + if (from.has_moneywon()) { + set_moneywon(from.moneywon()); + } + if (from.has_playermoney()) { + set_playermoney(from.playermoney()); + } + if (from.has_cardsvalue()) { + set_cardsvalue(from.cardsvalue()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void PlayerResult::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PlayerResult::CopyFrom(const PlayerResult& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayerResult::IsInitialized() const { + if ((_has_bits_[0] & 0x00000037) != 0x00000037) return false; + + return true; +} + +void PlayerResult::Swap(PlayerResult* other) { + if (other != this) { + std::swap(playerid_, other->playerid_); + std::swap(resultcard1_, other->resultcard1_); + std::swap(resultcard2_, other->resultcard2_); + besthandposition_.Swap(&other->besthandposition_); + std::swap(moneywon_, other->moneywon_); + std::swap(playermoney_, other->playermoney_); + std::swap(cardsvalue_, other->cardsvalue_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata PlayerResult::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PlayerResult_descriptor_; + metadata.reflection = PlayerResult_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* AnnounceMessage_ServerType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return AnnounceMessage_ServerType_descriptor_; +} +bool AnnounceMessage_ServerType_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const AnnounceMessage_ServerType AnnounceMessage::serverTypeLAN; +const AnnounceMessage_ServerType AnnounceMessage::serverTypeInternetNoAuth; +const AnnounceMessage_ServerType AnnounceMessage::serverTypeInternetAuth; +const AnnounceMessage_ServerType AnnounceMessage::ServerType_MIN; +const AnnounceMessage_ServerType AnnounceMessage::ServerType_MAX; +const int AnnounceMessage::ServerType_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int AnnounceMessage_Version::kMajorFieldNumber; +const int AnnounceMessage_Version::kMinorFieldNumber; +#endif // !_MSC_VER + +AnnounceMessage_Version::AnnounceMessage_Version() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AnnounceMessage_Version::InitAsDefaultInstance() { +} + +AnnounceMessage_Version::AnnounceMessage_Version(const AnnounceMessage_Version& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AnnounceMessage_Version::SharedCtor() { + _cached_size_ = 0; + major_ = 0u; + minor_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AnnounceMessage_Version::~AnnounceMessage_Version() { + SharedDtor(); +} + +void AnnounceMessage_Version::SharedDtor() { + if (this != default_instance_) { + } +} + +void AnnounceMessage_Version::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AnnounceMessage_Version::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AnnounceMessage_Version_descriptor_; +} + +const AnnounceMessage_Version& AnnounceMessage_Version::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +AnnounceMessage_Version* AnnounceMessage_Version::default_instance_ = NULL; + +AnnounceMessage_Version* AnnounceMessage_Version::New() const { + return new AnnounceMessage_Version; +} + +void AnnounceMessage_Version::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + major_ = 0u; + minor_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AnnounceMessage_Version::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 major = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &major_))); + set_has_major(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_minor; + break; + } + + // required uint32 minor = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_minor: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &minor_))); + set_has_minor(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AnnounceMessage_Version::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 major = 1; + if (has_major()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->major(), output); + } + + // required uint32 minor = 2; + if (has_minor()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->minor(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AnnounceMessage_Version::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 major = 1; + if (has_major()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->major(), target); + } + + // required uint32 minor = 2; + if (has_minor()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->minor(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AnnounceMessage_Version::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 major = 1; + if (has_major()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->major()); + } + + // required uint32 minor = 2; + if (has_minor()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->minor()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AnnounceMessage_Version::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AnnounceMessage_Version* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AnnounceMessage_Version::MergeFrom(const AnnounceMessage_Version& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_major()) { + set_major(from.major()); + } + if (from.has_minor()) { + set_minor(from.minor()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AnnounceMessage_Version::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AnnounceMessage_Version::CopyFrom(const AnnounceMessage_Version& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AnnounceMessage_Version::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void AnnounceMessage_Version::Swap(AnnounceMessage_Version* other) { + if (other != this) { + std::swap(major_, other->major_); + std::swap(minor_, other->minor_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AnnounceMessage_Version::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AnnounceMessage_Version_descriptor_; + metadata.reflection = AnnounceMessage_Version_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int AnnounceMessage::kProtocolVersionFieldNumber; +const int AnnounceMessage::kLatestGameVersionFieldNumber; +const int AnnounceMessage::kLatestBetaRevisionFieldNumber; +const int AnnounceMessage::kServerTypeFieldNumber; +const int AnnounceMessage::kNumPlayersOnServerFieldNumber; +#endif // !_MSC_VER + +AnnounceMessage::AnnounceMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AnnounceMessage::InitAsDefaultInstance() { + protocolversion_ = const_cast< ::AnnounceMessage_Version*>(&::AnnounceMessage_Version::default_instance()); + latestgameversion_ = const_cast< ::AnnounceMessage_Version*>(&::AnnounceMessage_Version::default_instance()); +} + +AnnounceMessage::AnnounceMessage(const AnnounceMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AnnounceMessage::SharedCtor() { + _cached_size_ = 0; + protocolversion_ = NULL; + latestgameversion_ = NULL; + latestbetarevision_ = 0u; + servertype_ = 0; + numplayersonserver_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AnnounceMessage::~AnnounceMessage() { + SharedDtor(); +} + +void AnnounceMessage::SharedDtor() { + if (this != default_instance_) { + delete protocolversion_; + delete latestgameversion_; + } +} + +void AnnounceMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AnnounceMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AnnounceMessage_descriptor_; +} + +const AnnounceMessage& AnnounceMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +AnnounceMessage* AnnounceMessage::default_instance_ = NULL; + +AnnounceMessage* AnnounceMessage::New() const { + return new AnnounceMessage; +} + +void AnnounceMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_protocolversion()) { + if (protocolversion_ != NULL) protocolversion_->::AnnounceMessage_Version::Clear(); + } + if (has_latestgameversion()) { + if (latestgameversion_ != NULL) latestgameversion_->::AnnounceMessage_Version::Clear(); + } + latestbetarevision_ = 0u; + servertype_ = 0; + numplayersonserver_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AnnounceMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .AnnounceMessage.Version protocolVersion = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_protocolversion())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_latestGameVersion; + break; + } + + // required .AnnounceMessage.Version latestGameVersion = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_latestGameVersion: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_latestgameversion())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_latestBetaRevision; + break; + } + + // required uint32 latestBetaRevision = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_latestBetaRevision: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &latestbetarevision_))); + set_has_latestbetarevision(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_serverType; + break; + } + + // required .AnnounceMessage.ServerType serverType = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_serverType: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::AnnounceMessage_ServerType_IsValid(value)) { + set_servertype(static_cast< ::AnnounceMessage_ServerType >(value)); + } else { + mutable_unknown_fields()->AddVarint(4, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_numPlayersOnServer; + break; + } + + // required uint32 numPlayersOnServer = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_numPlayersOnServer: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &numplayersonserver_))); + set_has_numplayersonserver(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AnnounceMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .AnnounceMessage.Version protocolVersion = 1; + if (has_protocolversion()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->protocolversion(), output); + } + + // required .AnnounceMessage.Version latestGameVersion = 2; + if (has_latestgameversion()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->latestgameversion(), output); + } + + // required uint32 latestBetaRevision = 3; + if (has_latestbetarevision()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->latestbetarevision(), output); + } + + // required .AnnounceMessage.ServerType serverType = 4; + if (has_servertype()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->servertype(), output); + } + + // required uint32 numPlayersOnServer = 5; + if (has_numplayersonserver()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->numplayersonserver(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AnnounceMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .AnnounceMessage.Version protocolVersion = 1; + if (has_protocolversion()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->protocolversion(), target); + } + + // required .AnnounceMessage.Version latestGameVersion = 2; + if (has_latestgameversion()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->latestgameversion(), target); + } + + // required uint32 latestBetaRevision = 3; + if (has_latestbetarevision()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->latestbetarevision(), target); + } + + // required .AnnounceMessage.ServerType serverType = 4; + if (has_servertype()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->servertype(), target); + } + + // required uint32 numPlayersOnServer = 5; + if (has_numplayersonserver()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->numplayersonserver(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AnnounceMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .AnnounceMessage.Version protocolVersion = 1; + if (has_protocolversion()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->protocolversion()); + } + + // required .AnnounceMessage.Version latestGameVersion = 2; + if (has_latestgameversion()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->latestgameversion()); + } + + // required uint32 latestBetaRevision = 3; + if (has_latestbetarevision()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->latestbetarevision()); + } + + // required .AnnounceMessage.ServerType serverType = 4; + if (has_servertype()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->servertype()); + } + + // required uint32 numPlayersOnServer = 5; + if (has_numplayersonserver()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->numplayersonserver()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AnnounceMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AnnounceMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AnnounceMessage::MergeFrom(const AnnounceMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_protocolversion()) { + mutable_protocolversion()->::AnnounceMessage_Version::MergeFrom(from.protocolversion()); + } + if (from.has_latestgameversion()) { + mutable_latestgameversion()->::AnnounceMessage_Version::MergeFrom(from.latestgameversion()); + } + if (from.has_latestbetarevision()) { + set_latestbetarevision(from.latestbetarevision()); + } + if (from.has_servertype()) { + set_servertype(from.servertype()); + } + if (from.has_numplayersonserver()) { + set_numplayersonserver(from.numplayersonserver()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AnnounceMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AnnounceMessage::CopyFrom(const AnnounceMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AnnounceMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; + + if (has_protocolversion()) { + if (!this->protocolversion().IsInitialized()) return false; + } + if (has_latestgameversion()) { + if (!this->latestgameversion().IsInitialized()) return false; + } + return true; +} + +void AnnounceMessage::Swap(AnnounceMessage* other) { + if (other != this) { + std::swap(protocolversion_, other->protocolversion_); + std::swap(latestgameversion_, other->latestgameversion_); + std::swap(latestbetarevision_, other->latestbetarevision_); + std::swap(servertype_, other->servertype_); + std::swap(numplayersonserver_, other->numplayersonserver_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AnnounceMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AnnounceMessage_descriptor_; + metadata.reflection = AnnounceMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* InitMessage_LoginType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return InitMessage_LoginType_descriptor_; +} +bool InitMessage_LoginType_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const InitMessage_LoginType InitMessage::guestLogin; +const InitMessage_LoginType InitMessage::authenticatedLogin; +const InitMessage_LoginType InitMessage::unauthenticatedLogin; +const InitMessage_LoginType InitMessage::LoginType_MIN; +const InitMessage_LoginType InitMessage::LoginType_MAX; +const int InitMessage::LoginType_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int InitMessage::kRequestedVersionFieldNumber; +const int InitMessage::kBuildIdFieldNumber; +const int InitMessage::kMyLastSessionIdFieldNumber; +const int InitMessage::kAuthServerPasswordFieldNumber; +const int InitMessage::kLoginFieldNumber; +const int InitMessage::kNickNameFieldNumber; +const int InitMessage::kClientUserDataFieldNumber; +const int InitMessage::kAvatarHashFieldNumber; +#endif // !_MSC_VER + +InitMessage::InitMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void InitMessage::InitAsDefaultInstance() { + requestedversion_ = const_cast< ::AnnounceMessage_Version*>(&::AnnounceMessage_Version::default_instance()); +} + +InitMessage::InitMessage(const InitMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void InitMessage::SharedCtor() { + _cached_size_ = 0; + requestedversion_ = NULL; + buildid_ = 0u; + mylastsessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + authserverpassword_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + login_ = 0; + nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + clientuserdata_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +InitMessage::~InitMessage() { + SharedDtor(); +} + +void InitMessage::SharedDtor() { + if (mylastsessionid_ != &::google::protobuf::internal::kEmptyString) { + delete mylastsessionid_; + } + if (authserverpassword_ != &::google::protobuf::internal::kEmptyString) { + delete authserverpassword_; + } + if (nickname_ != &::google::protobuf::internal::kEmptyString) { + delete nickname_; + } + if (clientuserdata_ != &::google::protobuf::internal::kEmptyString) { + delete clientuserdata_; + } + if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { + delete avatarhash_; + } + if (this != default_instance_) { + delete requestedversion_; + } +} + +void InitMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* InitMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return InitMessage_descriptor_; +} + +const InitMessage& InitMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +InitMessage* InitMessage::default_instance_ = NULL; + +InitMessage* InitMessage::New() const { + return new InitMessage; +} + +void InitMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_requestedversion()) { + if (requestedversion_ != NULL) requestedversion_->::AnnounceMessage_Version::Clear(); + } + buildid_ = 0u; + if (has_mylastsessionid()) { + if (mylastsessionid_ != &::google::protobuf::internal::kEmptyString) { + mylastsessionid_->clear(); + } + } + if (has_authserverpassword()) { + if (authserverpassword_ != &::google::protobuf::internal::kEmptyString) { + authserverpassword_->clear(); + } + } + login_ = 0; + if (has_nickname()) { + if (nickname_ != &::google::protobuf::internal::kEmptyString) { + nickname_->clear(); + } + } + if (has_clientuserdata()) { + if (clientuserdata_ != &::google::protobuf::internal::kEmptyString) { + clientuserdata_->clear(); + } + } + if (has_avatarhash()) { + if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { + avatarhash_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool InitMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .AnnounceMessage.Version requestedVersion = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_requestedversion())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_buildId; + break; + } + + // required uint32 buildId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_buildId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &buildid_))); + set_has_buildid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_myLastSessionId; + break; + } + + // optional bytes myLastSessionId = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_myLastSessionId: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_mylastsessionid())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_authServerPassword; + break; + } + + // optional string authServerPassword = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_authServerPassword: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_authserverpassword())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->authserverpassword().data(), this->authserverpassword().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_login; + break; + } + + // required .InitMessage.LoginType login = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_login: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::InitMessage_LoginType_IsValid(value)) { + set_login(static_cast< ::InitMessage_LoginType >(value)); + } else { + mutable_unknown_fields()->AddVarint(5, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(50)) goto parse_nickName; + break; + } + + // optional string nickName = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_nickName: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_nickname())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->nickname().data(), this->nickname().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(58)) goto parse_clientUserData; + break; + } + + // optional bytes clientUserData = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_clientUserData: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_clientuserdata())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(66)) goto parse_avatarHash; + break; + } + + // optional bytes avatarHash = 8; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_avatarHash: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_avatarhash())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void InitMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .AnnounceMessage.Version requestedVersion = 1; + if (has_requestedversion()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->requestedversion(), output); + } + + // required uint32 buildId = 2; + if (has_buildid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->buildid(), output); + } + + // optional bytes myLastSessionId = 3; + if (has_mylastsessionid()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->mylastsessionid(), output); + } + + // optional string authServerPassword = 4; + if (has_authserverpassword()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->authserverpassword().data(), this->authserverpassword().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->authserverpassword(), output); + } + + // required .InitMessage.LoginType login = 5; + if (has_login()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 5, this->login(), output); + } + + // optional string nickName = 6; + if (has_nickname()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->nickname().data(), this->nickname().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 6, this->nickname(), output); + } + + // optional bytes clientUserData = 7; + if (has_clientuserdata()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 7, this->clientuserdata(), output); + } + + // optional bytes avatarHash = 8; + if (has_avatarhash()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 8, this->avatarhash(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* InitMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .AnnounceMessage.Version requestedVersion = 1; + if (has_requestedversion()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->requestedversion(), target); + } + + // required uint32 buildId = 2; + if (has_buildid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->buildid(), target); + } + + // optional bytes myLastSessionId = 3; + if (has_mylastsessionid()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->mylastsessionid(), target); + } + + // optional string authServerPassword = 4; + if (has_authserverpassword()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->authserverpassword().data(), this->authserverpassword().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->authserverpassword(), target); + } + + // required .InitMessage.LoginType login = 5; + if (has_login()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 5, this->login(), target); + } + + // optional string nickName = 6; + if (has_nickname()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->nickname().data(), this->nickname().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 6, this->nickname(), target); + } + + // optional bytes clientUserData = 7; + if (has_clientuserdata()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 7, this->clientuserdata(), target); + } + + // optional bytes avatarHash = 8; + if (has_avatarhash()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 8, this->avatarhash(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int InitMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .AnnounceMessage.Version requestedVersion = 1; + if (has_requestedversion()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->requestedversion()); + } + + // required uint32 buildId = 2; + if (has_buildid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->buildid()); + } + + // optional bytes myLastSessionId = 3; + if (has_mylastsessionid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->mylastsessionid()); + } + + // optional string authServerPassword = 4; + if (has_authserverpassword()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->authserverpassword()); + } + + // required .InitMessage.LoginType login = 5; + if (has_login()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->login()); + } + + // optional string nickName = 6; + if (has_nickname()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->nickname()); + } + + // optional bytes clientUserData = 7; + if (has_clientuserdata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->clientuserdata()); + } + + // optional bytes avatarHash = 8; + if (has_avatarhash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->avatarhash()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void InitMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const InitMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void InitMessage::MergeFrom(const InitMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_requestedversion()) { + mutable_requestedversion()->::AnnounceMessage_Version::MergeFrom(from.requestedversion()); + } + if (from.has_buildid()) { + set_buildid(from.buildid()); + } + if (from.has_mylastsessionid()) { + set_mylastsessionid(from.mylastsessionid()); + } + if (from.has_authserverpassword()) { + set_authserverpassword(from.authserverpassword()); + } + if (from.has_login()) { + set_login(from.login()); + } + if (from.has_nickname()) { + set_nickname(from.nickname()); + } + if (from.has_clientuserdata()) { + set_clientuserdata(from.clientuserdata()); + } + if (from.has_avatarhash()) { + set_avatarhash(from.avatarhash()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void InitMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InitMessage::CopyFrom(const InitMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InitMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000013) != 0x00000013) return false; + + if (has_requestedversion()) { + if (!this->requestedversion().IsInitialized()) return false; + } + return true; +} + +void InitMessage::Swap(InitMessage* other) { + if (other != this) { + std::swap(requestedversion_, other->requestedversion_); + std::swap(buildid_, other->buildid_); + std::swap(mylastsessionid_, other->mylastsessionid_); + std::swap(authserverpassword_, other->authserverpassword_); + std::swap(login_, other->login_); + std::swap(nickname_, other->nickname_); + std::swap(clientuserdata_, other->clientuserdata_); + std::swap(avatarhash_, other->avatarhash_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata InitMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = InitMessage_descriptor_; + metadata.reflection = InitMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AuthServerChallengeMessage::kServerChallengeFieldNumber; +#endif // !_MSC_VER + +AuthServerChallengeMessage::AuthServerChallengeMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AuthServerChallengeMessage::InitAsDefaultInstance() { +} + +AuthServerChallengeMessage::AuthServerChallengeMessage(const AuthServerChallengeMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AuthServerChallengeMessage::SharedCtor() { + _cached_size_ = 0; + serverchallenge_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AuthServerChallengeMessage::~AuthServerChallengeMessage() { + SharedDtor(); +} + +void AuthServerChallengeMessage::SharedDtor() { + if (serverchallenge_ != &::google::protobuf::internal::kEmptyString) { + delete serverchallenge_; + } + if (this != default_instance_) { + } +} + +void AuthServerChallengeMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AuthServerChallengeMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AuthServerChallengeMessage_descriptor_; +} + +const AuthServerChallengeMessage& AuthServerChallengeMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +AuthServerChallengeMessage* AuthServerChallengeMessage::default_instance_ = NULL; + +AuthServerChallengeMessage* AuthServerChallengeMessage::New() const { + return new AuthServerChallengeMessage; +} + +void AuthServerChallengeMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_serverchallenge()) { + if (serverchallenge_ != &::google::protobuf::internal::kEmptyString) { + serverchallenge_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AuthServerChallengeMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes serverChallenge = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_serverchallenge())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AuthServerChallengeMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes serverChallenge = 1; + if (has_serverchallenge()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->serverchallenge(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AuthServerChallengeMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes serverChallenge = 1; + if (has_serverchallenge()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->serverchallenge(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AuthServerChallengeMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes serverChallenge = 1; + if (has_serverchallenge()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->serverchallenge()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AuthServerChallengeMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AuthServerChallengeMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AuthServerChallengeMessage::MergeFrom(const AuthServerChallengeMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_serverchallenge()) { + set_serverchallenge(from.serverchallenge()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AuthServerChallengeMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AuthServerChallengeMessage::CopyFrom(const AuthServerChallengeMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AuthServerChallengeMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void AuthServerChallengeMessage::Swap(AuthServerChallengeMessage* other) { + if (other != this) { + std::swap(serverchallenge_, other->serverchallenge_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AuthServerChallengeMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AuthServerChallengeMessage_descriptor_; + metadata.reflection = AuthServerChallengeMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AuthClientResponseMessage::kClientResponseFieldNumber; +#endif // !_MSC_VER + +AuthClientResponseMessage::AuthClientResponseMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AuthClientResponseMessage::InitAsDefaultInstance() { +} + +AuthClientResponseMessage::AuthClientResponseMessage(const AuthClientResponseMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AuthClientResponseMessage::SharedCtor() { + _cached_size_ = 0; + clientresponse_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AuthClientResponseMessage::~AuthClientResponseMessage() { + SharedDtor(); +} + +void AuthClientResponseMessage::SharedDtor() { + if (clientresponse_ != &::google::protobuf::internal::kEmptyString) { + delete clientresponse_; + } + if (this != default_instance_) { + } +} + +void AuthClientResponseMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AuthClientResponseMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AuthClientResponseMessage_descriptor_; +} + +const AuthClientResponseMessage& AuthClientResponseMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +AuthClientResponseMessage* AuthClientResponseMessage::default_instance_ = NULL; + +AuthClientResponseMessage* AuthClientResponseMessage::New() const { + return new AuthClientResponseMessage; +} + +void AuthClientResponseMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_clientresponse()) { + if (clientresponse_ != &::google::protobuf::internal::kEmptyString) { + clientresponse_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AuthClientResponseMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes clientResponse = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_clientresponse())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AuthClientResponseMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes clientResponse = 1; + if (has_clientresponse()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->clientresponse(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AuthClientResponseMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes clientResponse = 1; + if (has_clientresponse()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->clientresponse(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AuthClientResponseMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes clientResponse = 1; + if (has_clientresponse()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->clientresponse()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AuthClientResponseMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AuthClientResponseMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AuthClientResponseMessage::MergeFrom(const AuthClientResponseMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_clientresponse()) { + set_clientresponse(from.clientresponse()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AuthClientResponseMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AuthClientResponseMessage::CopyFrom(const AuthClientResponseMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AuthClientResponseMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void AuthClientResponseMessage::Swap(AuthClientResponseMessage* other) { + if (other != this) { + std::swap(clientresponse_, other->clientresponse_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AuthClientResponseMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AuthClientResponseMessage_descriptor_; + metadata.reflection = AuthClientResponseMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AuthServerVerificationMessage::kServerVerificationFieldNumber; +#endif // !_MSC_VER + +AuthServerVerificationMessage::AuthServerVerificationMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AuthServerVerificationMessage::InitAsDefaultInstance() { +} + +AuthServerVerificationMessage::AuthServerVerificationMessage(const AuthServerVerificationMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AuthServerVerificationMessage::SharedCtor() { + _cached_size_ = 0; + serververification_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AuthServerVerificationMessage::~AuthServerVerificationMessage() { + SharedDtor(); +} + +void AuthServerVerificationMessage::SharedDtor() { + if (serververification_ != &::google::protobuf::internal::kEmptyString) { + delete serververification_; + } + if (this != default_instance_) { + } +} + +void AuthServerVerificationMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AuthServerVerificationMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AuthServerVerificationMessage_descriptor_; +} + +const AuthServerVerificationMessage& AuthServerVerificationMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +AuthServerVerificationMessage* AuthServerVerificationMessage::default_instance_ = NULL; + +AuthServerVerificationMessage* AuthServerVerificationMessage::New() const { + return new AuthServerVerificationMessage; +} + +void AuthServerVerificationMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_serververification()) { + if (serververification_ != &::google::protobuf::internal::kEmptyString) { + serververification_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AuthServerVerificationMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes serverVerification = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_serververification())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AuthServerVerificationMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes serverVerification = 1; + if (has_serververification()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->serververification(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AuthServerVerificationMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes serverVerification = 1; + if (has_serververification()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->serververification(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AuthServerVerificationMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes serverVerification = 1; + if (has_serververification()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->serververification()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AuthServerVerificationMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AuthServerVerificationMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AuthServerVerificationMessage::MergeFrom(const AuthServerVerificationMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_serververification()) { + set_serververification(from.serververification()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AuthServerVerificationMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AuthServerVerificationMessage::CopyFrom(const AuthServerVerificationMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AuthServerVerificationMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void AuthServerVerificationMessage::Swap(AuthServerVerificationMessage* other) { + if (other != this) { + std::swap(serververification_, other->serververification_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AuthServerVerificationMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AuthServerVerificationMessage_descriptor_; + metadata.reflection = AuthServerVerificationMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int InitAckMessage::kYourSessionIdFieldNumber; +const int InitAckMessage::kYourPlayerIdFieldNumber; +const int InitAckMessage::kYourAvatarHashFieldNumber; +const int InitAckMessage::kRejoinGameIdFieldNumber; +#endif // !_MSC_VER + +InitAckMessage::InitAckMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void InitAckMessage::InitAsDefaultInstance() { +} + +InitAckMessage::InitAckMessage(const InitAckMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void InitAckMessage::SharedCtor() { + _cached_size_ = 0; + yoursessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + yourplayerid_ = 0u; + youravatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + rejoingameid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +InitAckMessage::~InitAckMessage() { + SharedDtor(); +} + +void InitAckMessage::SharedDtor() { + if (yoursessionid_ != &::google::protobuf::internal::kEmptyString) { + delete yoursessionid_; + } + if (youravatarhash_ != &::google::protobuf::internal::kEmptyString) { + delete youravatarhash_; + } + if (this != default_instance_) { + } +} + +void InitAckMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* InitAckMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return InitAckMessage_descriptor_; +} + +const InitAckMessage& InitAckMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +InitAckMessage* InitAckMessage::default_instance_ = NULL; + +InitAckMessage* InitAckMessage::New() const { + return new InitAckMessage; +} + +void InitAckMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_yoursessionid()) { + if (yoursessionid_ != &::google::protobuf::internal::kEmptyString) { + yoursessionid_->clear(); + } + } + yourplayerid_ = 0u; + if (has_youravatarhash()) { + if (youravatarhash_ != &::google::protobuf::internal::kEmptyString) { + youravatarhash_->clear(); + } + } + rejoingameid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool InitAckMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required bytes yourSessionId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_yoursessionid())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_yourPlayerId; + break; + } + + // required uint32 yourPlayerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_yourPlayerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &yourplayerid_))); + set_has_yourplayerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_yourAvatarHash; + break; + } + + // optional bytes yourAvatarHash = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_yourAvatarHash: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_youravatarhash())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_rejoinGameId; + break; + } + + // optional uint32 rejoinGameId = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_rejoinGameId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &rejoingameid_))); + set_has_rejoingameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void InitAckMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required bytes yourSessionId = 1; + if (has_yoursessionid()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 1, this->yoursessionid(), output); + } + + // required uint32 yourPlayerId = 2; + if (has_yourplayerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->yourplayerid(), output); + } + + // optional bytes yourAvatarHash = 3; + if (has_youravatarhash()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->youravatarhash(), output); + } + + // optional uint32 rejoinGameId = 4; + if (has_rejoingameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->rejoingameid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* InitAckMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required bytes yourSessionId = 1; + if (has_yoursessionid()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 1, this->yoursessionid(), target); + } + + // required uint32 yourPlayerId = 2; + if (has_yourplayerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->yourplayerid(), target); + } + + // optional bytes yourAvatarHash = 3; + if (has_youravatarhash()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->youravatarhash(), target); + } + + // optional uint32 rejoinGameId = 4; + if (has_rejoingameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->rejoingameid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int InitAckMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required bytes yourSessionId = 1; + if (has_yoursessionid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->yoursessionid()); + } + + // required uint32 yourPlayerId = 2; + if (has_yourplayerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->yourplayerid()); + } + + // optional bytes yourAvatarHash = 3; + if (has_youravatarhash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->youravatarhash()); + } + + // optional uint32 rejoinGameId = 4; + if (has_rejoingameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->rejoingameid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void InitAckMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const InitAckMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void InitAckMessage::MergeFrom(const InitAckMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_yoursessionid()) { + set_yoursessionid(from.yoursessionid()); + } + if (from.has_yourplayerid()) { + set_yourplayerid(from.yourplayerid()); + } + if (from.has_youravatarhash()) { + set_youravatarhash(from.youravatarhash()); + } + if (from.has_rejoingameid()) { + set_rejoingameid(from.rejoingameid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void InitAckMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InitAckMessage::CopyFrom(const InitAckMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InitAckMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void InitAckMessage::Swap(InitAckMessage* other) { + if (other != this) { + std::swap(yoursessionid_, other->yoursessionid_); + std::swap(yourplayerid_, other->yourplayerid_); + std::swap(youravatarhash_, other->youravatarhash_); + std::swap(rejoingameid_, other->rejoingameid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata InitAckMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = InitAckMessage_descriptor_; + metadata.reflection = InitAckMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AvatarRequestMessage::kRequestIdFieldNumber; +const int AvatarRequestMessage::kAvatarHashFieldNumber; +#endif // !_MSC_VER + +AvatarRequestMessage::AvatarRequestMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AvatarRequestMessage::InitAsDefaultInstance() { +} + +AvatarRequestMessage::AvatarRequestMessage(const AvatarRequestMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AvatarRequestMessage::SharedCtor() { + _cached_size_ = 0; + requestid_ = 0u; + avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AvatarRequestMessage::~AvatarRequestMessage() { + SharedDtor(); +} + +void AvatarRequestMessage::SharedDtor() { + if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { + delete avatarhash_; + } + if (this != default_instance_) { + } +} + +void AvatarRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AvatarRequestMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AvatarRequestMessage_descriptor_; +} + +const AvatarRequestMessage& AvatarRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +AvatarRequestMessage* AvatarRequestMessage::default_instance_ = NULL; + +AvatarRequestMessage* AvatarRequestMessage::New() const { + return new AvatarRequestMessage; +} + +void AvatarRequestMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + requestid_ = 0u; + if (has_avatarhash()) { + if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { + avatarhash_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AvatarRequestMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 requestId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &requestid_))); + set_has_requestid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_avatarHash; + break; + } + + // required bytes avatarHash = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_avatarHash: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_avatarhash())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AvatarRequestMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 requestId = 1; + if (has_requestid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); + } + + // required bytes avatarHash = 2; + if (has_avatarhash()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->avatarhash(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AvatarRequestMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 requestId = 1; + if (has_requestid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->requestid(), target); + } + + // required bytes avatarHash = 2; + if (has_avatarhash()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->avatarhash(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AvatarRequestMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 requestId = 1; + if (has_requestid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->requestid()); + } + + // required bytes avatarHash = 2; + if (has_avatarhash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->avatarhash()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AvatarRequestMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AvatarRequestMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AvatarRequestMessage::MergeFrom(const AvatarRequestMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_requestid()) { + set_requestid(from.requestid()); + } + if (from.has_avatarhash()) { + set_avatarhash(from.avatarhash()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AvatarRequestMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AvatarRequestMessage::CopyFrom(const AvatarRequestMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AvatarRequestMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void AvatarRequestMessage::Swap(AvatarRequestMessage* other) { + if (other != this) { + std::swap(requestid_, other->requestid_); + std::swap(avatarhash_, other->avatarhash_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AvatarRequestMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AvatarRequestMessage_descriptor_; + metadata.reflection = AvatarRequestMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AvatarHeaderMessage::kRequestIdFieldNumber; +const int AvatarHeaderMessage::kAvatarTypeFieldNumber; +const int AvatarHeaderMessage::kAvatarSizeFieldNumber; +#endif // !_MSC_VER + +AvatarHeaderMessage::AvatarHeaderMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AvatarHeaderMessage::InitAsDefaultInstance() { +} + +AvatarHeaderMessage::AvatarHeaderMessage(const AvatarHeaderMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AvatarHeaderMessage::SharedCtor() { + _cached_size_ = 0; + requestid_ = 0u; + avatartype_ = 0; + avatarsize_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AvatarHeaderMessage::~AvatarHeaderMessage() { + SharedDtor(); +} + +void AvatarHeaderMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void AvatarHeaderMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AvatarHeaderMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AvatarHeaderMessage_descriptor_; +} + +const AvatarHeaderMessage& AvatarHeaderMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +AvatarHeaderMessage* AvatarHeaderMessage::default_instance_ = NULL; + +AvatarHeaderMessage* AvatarHeaderMessage::New() const { + return new AvatarHeaderMessage; +} + +void AvatarHeaderMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + requestid_ = 0u; + avatartype_ = 0; + avatarsize_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AvatarHeaderMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 requestId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &requestid_))); + set_has_requestid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_avatarType; + break; + } + + // required .NetAvatarType avatarType = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_avatarType: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (NetAvatarType_IsValid(value)) { + set_avatartype(static_cast< NetAvatarType >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_avatarSize; + break; + } + + // required uint32 avatarSize = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_avatarSize: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &avatarsize_))); + set_has_avatarsize(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AvatarHeaderMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 requestId = 1; + if (has_requestid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); + } + + // required .NetAvatarType avatarType = 2; + if (has_avatartype()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->avatartype(), output); + } + + // required uint32 avatarSize = 3; + if (has_avatarsize()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->avatarsize(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AvatarHeaderMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 requestId = 1; + if (has_requestid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->requestid(), target); + } + + // required .NetAvatarType avatarType = 2; + if (has_avatartype()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->avatartype(), target); + } + + // required uint32 avatarSize = 3; + if (has_avatarsize()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->avatarsize(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AvatarHeaderMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 requestId = 1; + if (has_requestid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->requestid()); + } + + // required .NetAvatarType avatarType = 2; + if (has_avatartype()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->avatartype()); + } + + // required uint32 avatarSize = 3; + if (has_avatarsize()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->avatarsize()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AvatarHeaderMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AvatarHeaderMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AvatarHeaderMessage::MergeFrom(const AvatarHeaderMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_requestid()) { + set_requestid(from.requestid()); + } + if (from.has_avatartype()) { + set_avatartype(from.avatartype()); + } + if (from.has_avatarsize()) { + set_avatarsize(from.avatarsize()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AvatarHeaderMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AvatarHeaderMessage::CopyFrom(const AvatarHeaderMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AvatarHeaderMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void AvatarHeaderMessage::Swap(AvatarHeaderMessage* other) { + if (other != this) { + std::swap(requestid_, other->requestid_); + std::swap(avatartype_, other->avatartype_); + std::swap(avatarsize_, other->avatarsize_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AvatarHeaderMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AvatarHeaderMessage_descriptor_; + metadata.reflection = AvatarHeaderMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AvatarDataMessage::kRequestIdFieldNumber; +const int AvatarDataMessage::kAvatarBlockFieldNumber; +#endif // !_MSC_VER + +AvatarDataMessage::AvatarDataMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AvatarDataMessage::InitAsDefaultInstance() { +} + +AvatarDataMessage::AvatarDataMessage(const AvatarDataMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AvatarDataMessage::SharedCtor() { + _cached_size_ = 0; + requestid_ = 0u; + avatarblock_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AvatarDataMessage::~AvatarDataMessage() { + SharedDtor(); +} + +void AvatarDataMessage::SharedDtor() { + if (avatarblock_ != &::google::protobuf::internal::kEmptyString) { + delete avatarblock_; + } + if (this != default_instance_) { + } +} + +void AvatarDataMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AvatarDataMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AvatarDataMessage_descriptor_; +} + +const AvatarDataMessage& AvatarDataMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +AvatarDataMessage* AvatarDataMessage::default_instance_ = NULL; + +AvatarDataMessage* AvatarDataMessage::New() const { + return new AvatarDataMessage; +} + +void AvatarDataMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + requestid_ = 0u; + if (has_avatarblock()) { + if (avatarblock_ != &::google::protobuf::internal::kEmptyString) { + avatarblock_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AvatarDataMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 requestId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &requestid_))); + set_has_requestid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_avatarBlock; + break; + } + + // required bytes avatarBlock = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_avatarBlock: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_avatarblock())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AvatarDataMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 requestId = 1; + if (has_requestid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); + } + + // required bytes avatarBlock = 2; + if (has_avatarblock()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->avatarblock(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AvatarDataMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 requestId = 1; + if (has_requestid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->requestid(), target); + } + + // required bytes avatarBlock = 2; + if (has_avatarblock()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->avatarblock(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AvatarDataMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 requestId = 1; + if (has_requestid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->requestid()); + } + + // required bytes avatarBlock = 2; + if (has_avatarblock()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->avatarblock()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AvatarDataMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AvatarDataMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AvatarDataMessage::MergeFrom(const AvatarDataMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_requestid()) { + set_requestid(from.requestid()); + } + if (from.has_avatarblock()) { + set_avatarblock(from.avatarblock()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AvatarDataMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AvatarDataMessage::CopyFrom(const AvatarDataMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AvatarDataMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void AvatarDataMessage::Swap(AvatarDataMessage* other) { + if (other != this) { + std::swap(requestid_, other->requestid_); + std::swap(avatarblock_, other->avatarblock_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AvatarDataMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AvatarDataMessage_descriptor_; + metadata.reflection = AvatarDataMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AvatarEndMessage::kRequestIdFieldNumber; +#endif // !_MSC_VER + +AvatarEndMessage::AvatarEndMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AvatarEndMessage::InitAsDefaultInstance() { +} + +AvatarEndMessage::AvatarEndMessage(const AvatarEndMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AvatarEndMessage::SharedCtor() { + _cached_size_ = 0; + requestid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AvatarEndMessage::~AvatarEndMessage() { + SharedDtor(); +} + +void AvatarEndMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void AvatarEndMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AvatarEndMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AvatarEndMessage_descriptor_; +} + +const AvatarEndMessage& AvatarEndMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +AvatarEndMessage* AvatarEndMessage::default_instance_ = NULL; + +AvatarEndMessage* AvatarEndMessage::New() const { + return new AvatarEndMessage; +} + +void AvatarEndMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + requestid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AvatarEndMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 requestId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &requestid_))); + set_has_requestid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AvatarEndMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 requestId = 1; + if (has_requestid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AvatarEndMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 requestId = 1; + if (has_requestid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->requestid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AvatarEndMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 requestId = 1; + if (has_requestid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->requestid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AvatarEndMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AvatarEndMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AvatarEndMessage::MergeFrom(const AvatarEndMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_requestid()) { + set_requestid(from.requestid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AvatarEndMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AvatarEndMessage::CopyFrom(const AvatarEndMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AvatarEndMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void AvatarEndMessage::Swap(AvatarEndMessage* other) { + if (other != this) { + std::swap(requestid_, other->requestid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AvatarEndMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AvatarEndMessage_descriptor_; + metadata.reflection = AvatarEndMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int UnknownAvatarMessage::kRequestIdFieldNumber; +#endif // !_MSC_VER + +UnknownAvatarMessage::UnknownAvatarMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void UnknownAvatarMessage::InitAsDefaultInstance() { +} + +UnknownAvatarMessage::UnknownAvatarMessage(const UnknownAvatarMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void UnknownAvatarMessage::SharedCtor() { + _cached_size_ = 0; + requestid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +UnknownAvatarMessage::~UnknownAvatarMessage() { + SharedDtor(); +} + +void UnknownAvatarMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void UnknownAvatarMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* UnknownAvatarMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return UnknownAvatarMessage_descriptor_; +} + +const UnknownAvatarMessage& UnknownAvatarMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +UnknownAvatarMessage* UnknownAvatarMessage::default_instance_ = NULL; + +UnknownAvatarMessage* UnknownAvatarMessage::New() const { + return new UnknownAvatarMessage; +} + +void UnknownAvatarMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + requestid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool UnknownAvatarMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 requestId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &requestid_))); + set_has_requestid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void UnknownAvatarMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 requestId = 1; + if (has_requestid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* UnknownAvatarMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 requestId = 1; + if (has_requestid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->requestid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int UnknownAvatarMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 requestId = 1; + if (has_requestid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->requestid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void UnknownAvatarMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const UnknownAvatarMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void UnknownAvatarMessage::MergeFrom(const UnknownAvatarMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_requestid()) { + set_requestid(from.requestid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void UnknownAvatarMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void UnknownAvatarMessage::CopyFrom(const UnknownAvatarMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UnknownAvatarMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void UnknownAvatarMessage::Swap(UnknownAvatarMessage* other) { + if (other != this) { + std::swap(requestid_, other->requestid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata UnknownAvatarMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = UnknownAvatarMessage_descriptor_; + metadata.reflection = UnknownAvatarMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* PlayerListMessage_PlayerListNotification_descriptor() { + protobuf_AssignDescriptorsOnce(); + return PlayerListMessage_PlayerListNotification_descriptor_; +} +bool PlayerListMessage_PlayerListNotification_IsValid(int value) { + switch(value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const PlayerListMessage_PlayerListNotification PlayerListMessage::playerListNew; +const PlayerListMessage_PlayerListNotification PlayerListMessage::playerListLeft; +const PlayerListMessage_PlayerListNotification PlayerListMessage::PlayerListNotification_MIN; +const PlayerListMessage_PlayerListNotification PlayerListMessage::PlayerListNotification_MAX; +const int PlayerListMessage::PlayerListNotification_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int PlayerListMessage::kPlayerIdFieldNumber; +const int PlayerListMessage::kPlayerListNotificationFieldNumber; +#endif // !_MSC_VER + +PlayerListMessage::PlayerListMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void PlayerListMessage::InitAsDefaultInstance() { +} + +PlayerListMessage::PlayerListMessage(const PlayerListMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void PlayerListMessage::SharedCtor() { + _cached_size_ = 0; + playerid_ = 0u; + playerlistnotification_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PlayerListMessage::~PlayerListMessage() { + SharedDtor(); +} + +void PlayerListMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void PlayerListMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PlayerListMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PlayerListMessage_descriptor_; +} + +const PlayerListMessage& PlayerListMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +PlayerListMessage* PlayerListMessage::default_instance_ = NULL; + +PlayerListMessage* PlayerListMessage::New() const { + return new PlayerListMessage; +} + +void PlayerListMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + playerid_ = 0u; + playerlistnotification_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool PlayerListMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 playerId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerListNotification; + break; + } + + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerListNotification: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::PlayerListMessage_PlayerListNotification_IsValid(value)) { + set_playerlistnotification(static_cast< ::PlayerListMessage_PlayerListNotification >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void PlayerListMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 playerId = 1; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); + } + + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; + if (has_playerlistnotification()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->playerlistnotification(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* PlayerListMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 playerId = 1; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->playerid(), target); + } + + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; + if (has_playerlistnotification()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->playerlistnotification(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int PlayerListMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 playerId = 1; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; + if (has_playerlistnotification()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->playerlistnotification()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PlayerListMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const PlayerListMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void PlayerListMessage::MergeFrom(const PlayerListMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + if (from.has_playerlistnotification()) { + set_playerlistnotification(from.playerlistnotification()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void PlayerListMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PlayerListMessage::CopyFrom(const PlayerListMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayerListMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void PlayerListMessage::Swap(PlayerListMessage* other) { + if (other != this) { + std::swap(playerid_, other->playerid_); + std::swap(playerlistnotification_, other->playerlistnotification_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata PlayerListMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PlayerListMessage_descriptor_; + metadata.reflection = PlayerListMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GameListNewMessage::kGameIdFieldNumber; +const int GameListNewMessage::kGameModeFieldNumber; +const int GameListNewMessage::kIsPrivateFieldNumber; +const int GameListNewMessage::kPlayerIdsFieldNumber; +const int GameListNewMessage::kAdminPlayerIdFieldNumber; +const int GameListNewMessage::kGameInfoFieldNumber; +#endif // !_MSC_VER + +GameListNewMessage::GameListNewMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GameListNewMessage::InitAsDefaultInstance() { + gameinfo_ = const_cast< ::NetGameInfo*>(&::NetGameInfo::default_instance()); +} + +GameListNewMessage::GameListNewMessage(const GameListNewMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GameListNewMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + gamemode_ = 1; + isprivate_ = false; + adminplayerid_ = 0u; + gameinfo_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GameListNewMessage::~GameListNewMessage() { + SharedDtor(); +} + +void GameListNewMessage::SharedDtor() { + if (this != default_instance_) { + delete gameinfo_; + } +} + +void GameListNewMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GameListNewMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GameListNewMessage_descriptor_; +} + +const GameListNewMessage& GameListNewMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +GameListNewMessage* GameListNewMessage::default_instance_ = NULL; + +GameListNewMessage* GameListNewMessage::New() const { + return new GameListNewMessage; +} + +void GameListNewMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + gamemode_ = 1; + isprivate_ = false; + adminplayerid_ = 0u; + if (has_gameinfo()) { + if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); + } + } + playerids_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GameListNewMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_gameMode; + break; + } + + // required .NetGameMode gameMode = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_gameMode: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (NetGameMode_IsValid(value)) { + set_gamemode(static_cast< NetGameMode >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_isPrivate; + break; + } + + // required bool isPrivate = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_isPrivate: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &isprivate_))); + set_has_isprivate(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_playerIds; + break; + } + + // repeated uint32 playerIds = 4 [packed = true]; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_playerIds: + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_playerids()))); + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 34, input, this->mutable_playerids()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_adminPlayerId; + break; + } + + // required uint32 adminPlayerId = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_adminPlayerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &adminplayerid_))); + set_has_adminplayerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(50)) goto parse_gameInfo; + break; + } + + // required .NetGameInfo gameInfo = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_gameInfo: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_gameinfo())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GameListNewMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required .NetGameMode gameMode = 2; + if (has_gamemode()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->gamemode(), output); + } + + // required bool isPrivate = 3; + if (has_isprivate()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->isprivate(), output); + } + + // repeated uint32 playerIds = 4 [packed = true]; + if (this->playerids_size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteTag(4, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_playerids_cached_byte_size_); + } + for (int i = 0; i < this->playerids_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( + this->playerids(i), output); + } + + // required uint32 adminPlayerId = 5; + if (has_adminplayerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->adminplayerid(), output); + } + + // required .NetGameInfo gameInfo = 6; + if (has_gameinfo()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->gameinfo(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GameListNewMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required .NetGameMode gameMode = 2; + if (has_gamemode()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->gamemode(), target); + } + + // required bool isPrivate = 3; + if (has_isprivate()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->isprivate(), target); + } + + // repeated uint32 playerIds = 4 [packed = true]; + if (this->playerids_size() > 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + 4, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( + _playerids_cached_byte_size_, target); + } + for (int i = 0; i < this->playerids_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32NoTagToArray(this->playerids(i), target); + } + + // required uint32 adminPlayerId = 5; + if (has_adminplayerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->adminplayerid(), target); + } + + // required .NetGameInfo gameInfo = 6; + if (has_gameinfo()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 6, this->gameinfo(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GameListNewMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required .NetGameMode gameMode = 2; + if (has_gamemode()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamemode()); + } + + // required bool isPrivate = 3; + if (has_isprivate()) { + total_size += 1 + 1; + } + + // required uint32 adminPlayerId = 5; + if (has_adminplayerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->adminplayerid()); + } + + // required .NetGameInfo gameInfo = 6; + if (has_gameinfo()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gameinfo()); + } + + } + // repeated uint32 playerIds = 4 [packed = true]; + { + int data_size = 0; + for (int i = 0; i < this->playerids_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->playerids(i)); + } + if (data_size > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + } + _playerids_cached_byte_size_ = data_size; + total_size += data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GameListNewMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GameListNewMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GameListNewMessage::MergeFrom(const GameListNewMessage& from) { + GOOGLE_CHECK_NE(&from, this); + playerids_.MergeFrom(from.playerids_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_gamemode()) { + set_gamemode(from.gamemode()); + } + if (from.has_isprivate()) { + set_isprivate(from.isprivate()); + } + if (from.has_adminplayerid()) { + set_adminplayerid(from.adminplayerid()); + } + if (from.has_gameinfo()) { + mutable_gameinfo()->::NetGameInfo::MergeFrom(from.gameinfo()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GameListNewMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GameListNewMessage::CopyFrom(const GameListNewMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameListNewMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000037) != 0x00000037) return false; + + if (has_gameinfo()) { + if (!this->gameinfo().IsInitialized()) return false; + } + return true; +} + +void GameListNewMessage::Swap(GameListNewMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(gamemode_, other->gamemode_); + std::swap(isprivate_, other->isprivate_); + playerids_.Swap(&other->playerids_); + std::swap(adminplayerid_, other->adminplayerid_); + std::swap(gameinfo_, other->gameinfo_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GameListNewMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GameListNewMessage_descriptor_; + metadata.reflection = GameListNewMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GameListUpdateMessage::kGameIdFieldNumber; +const int GameListUpdateMessage::kGameModeFieldNumber; +#endif // !_MSC_VER + +GameListUpdateMessage::GameListUpdateMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GameListUpdateMessage::InitAsDefaultInstance() { +} + +GameListUpdateMessage::GameListUpdateMessage(const GameListUpdateMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GameListUpdateMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + gamemode_ = 1; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GameListUpdateMessage::~GameListUpdateMessage() { + SharedDtor(); +} + +void GameListUpdateMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void GameListUpdateMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GameListUpdateMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GameListUpdateMessage_descriptor_; +} + +const GameListUpdateMessage& GameListUpdateMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +GameListUpdateMessage* GameListUpdateMessage::default_instance_ = NULL; + +GameListUpdateMessage* GameListUpdateMessage::New() const { + return new GameListUpdateMessage; +} + +void GameListUpdateMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + gamemode_ = 1; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GameListUpdateMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_gameMode; + break; + } + + // required .NetGameMode gameMode = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_gameMode: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (NetGameMode_IsValid(value)) { + set_gamemode(static_cast< NetGameMode >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GameListUpdateMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required .NetGameMode gameMode = 2; + if (has_gamemode()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->gamemode(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GameListUpdateMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required .NetGameMode gameMode = 2; + if (has_gamemode()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->gamemode(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GameListUpdateMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required .NetGameMode gameMode = 2; + if (has_gamemode()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamemode()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GameListUpdateMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GameListUpdateMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GameListUpdateMessage::MergeFrom(const GameListUpdateMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_gamemode()) { + set_gamemode(from.gamemode()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GameListUpdateMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GameListUpdateMessage::CopyFrom(const GameListUpdateMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameListUpdateMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void GameListUpdateMessage::Swap(GameListUpdateMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(gamemode_, other->gamemode_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GameListUpdateMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GameListUpdateMessage_descriptor_; + metadata.reflection = GameListUpdateMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GameListPlayerJoinedMessage::kGameIdFieldNumber; +const int GameListPlayerJoinedMessage::kPlayerIdFieldNumber; +#endif // !_MSC_VER + +GameListPlayerJoinedMessage::GameListPlayerJoinedMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GameListPlayerJoinedMessage::InitAsDefaultInstance() { +} + +GameListPlayerJoinedMessage::GameListPlayerJoinedMessage(const GameListPlayerJoinedMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GameListPlayerJoinedMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + playerid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GameListPlayerJoinedMessage::~GameListPlayerJoinedMessage() { + SharedDtor(); +} + +void GameListPlayerJoinedMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void GameListPlayerJoinedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GameListPlayerJoinedMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GameListPlayerJoinedMessage_descriptor_; +} + +const GameListPlayerJoinedMessage& GameListPlayerJoinedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +GameListPlayerJoinedMessage* GameListPlayerJoinedMessage::default_instance_ = NULL; + +GameListPlayerJoinedMessage* GameListPlayerJoinedMessage::New() const { + return new GameListPlayerJoinedMessage; +} + +void GameListPlayerJoinedMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + playerid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GameListPlayerJoinedMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerId; + break; + } + + // required uint32 playerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GameListPlayerJoinedMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GameListPlayerJoinedMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->playerid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GameListPlayerJoinedMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GameListPlayerJoinedMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GameListPlayerJoinedMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GameListPlayerJoinedMessage::MergeFrom(const GameListPlayerJoinedMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GameListPlayerJoinedMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GameListPlayerJoinedMessage::CopyFrom(const GameListPlayerJoinedMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameListPlayerJoinedMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void GameListPlayerJoinedMessage::Swap(GameListPlayerJoinedMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(playerid_, other->playerid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GameListPlayerJoinedMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GameListPlayerJoinedMessage_descriptor_; + metadata.reflection = GameListPlayerJoinedMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GameListPlayerLeftMessage::kGameIdFieldNumber; +const int GameListPlayerLeftMessage::kPlayerIdFieldNumber; +#endif // !_MSC_VER + +GameListPlayerLeftMessage::GameListPlayerLeftMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GameListPlayerLeftMessage::InitAsDefaultInstance() { +} + +GameListPlayerLeftMessage::GameListPlayerLeftMessage(const GameListPlayerLeftMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GameListPlayerLeftMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + playerid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GameListPlayerLeftMessage::~GameListPlayerLeftMessage() { + SharedDtor(); +} + +void GameListPlayerLeftMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void GameListPlayerLeftMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GameListPlayerLeftMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GameListPlayerLeftMessage_descriptor_; +} + +const GameListPlayerLeftMessage& GameListPlayerLeftMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +GameListPlayerLeftMessage* GameListPlayerLeftMessage::default_instance_ = NULL; + +GameListPlayerLeftMessage* GameListPlayerLeftMessage::New() const { + return new GameListPlayerLeftMessage; +} + +void GameListPlayerLeftMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + playerid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GameListPlayerLeftMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerId; + break; + } + + // required uint32 playerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GameListPlayerLeftMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GameListPlayerLeftMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->playerid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GameListPlayerLeftMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GameListPlayerLeftMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GameListPlayerLeftMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GameListPlayerLeftMessage::MergeFrom(const GameListPlayerLeftMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GameListPlayerLeftMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GameListPlayerLeftMessage::CopyFrom(const GameListPlayerLeftMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameListPlayerLeftMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void GameListPlayerLeftMessage::Swap(GameListPlayerLeftMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(playerid_, other->playerid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GameListPlayerLeftMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GameListPlayerLeftMessage_descriptor_; + metadata.reflection = GameListPlayerLeftMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GameListAdminChangedMessage::kGameIdFieldNumber; +const int GameListAdminChangedMessage::kNewAdminPlayerIdFieldNumber; +#endif // !_MSC_VER + +GameListAdminChangedMessage::GameListAdminChangedMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GameListAdminChangedMessage::InitAsDefaultInstance() { +} + +GameListAdminChangedMessage::GameListAdminChangedMessage(const GameListAdminChangedMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GameListAdminChangedMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + newadminplayerid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GameListAdminChangedMessage::~GameListAdminChangedMessage() { + SharedDtor(); +} + +void GameListAdminChangedMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void GameListAdminChangedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GameListAdminChangedMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GameListAdminChangedMessage_descriptor_; +} + +const GameListAdminChangedMessage& GameListAdminChangedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +GameListAdminChangedMessage* GameListAdminChangedMessage::default_instance_ = NULL; + +GameListAdminChangedMessage* GameListAdminChangedMessage::New() const { + return new GameListAdminChangedMessage; +} + +void GameListAdminChangedMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + newadminplayerid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GameListAdminChangedMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_newAdminPlayerId; + break; + } + + // required uint32 newAdminPlayerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_newAdminPlayerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &newadminplayerid_))); + set_has_newadminplayerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GameListAdminChangedMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 newAdminPlayerId = 2; + if (has_newadminplayerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->newadminplayerid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GameListAdminChangedMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 newAdminPlayerId = 2; + if (has_newadminplayerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->newadminplayerid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GameListAdminChangedMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 newAdminPlayerId = 2; + if (has_newadminplayerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->newadminplayerid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GameListAdminChangedMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GameListAdminChangedMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GameListAdminChangedMessage::MergeFrom(const GameListAdminChangedMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_newadminplayerid()) { + set_newadminplayerid(from.newadminplayerid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GameListAdminChangedMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GameListAdminChangedMessage::CopyFrom(const GameListAdminChangedMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameListAdminChangedMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void GameListAdminChangedMessage::Swap(GameListAdminChangedMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(newadminplayerid_, other->newadminplayerid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GameListAdminChangedMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GameListAdminChangedMessage_descriptor_; + metadata.reflection = GameListAdminChangedMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int PlayerInfoRequestMessage::kPlayerIdFieldNumber; +#endif // !_MSC_VER + +PlayerInfoRequestMessage::PlayerInfoRequestMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void PlayerInfoRequestMessage::InitAsDefaultInstance() { +} + +PlayerInfoRequestMessage::PlayerInfoRequestMessage(const PlayerInfoRequestMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void PlayerInfoRequestMessage::SharedCtor() { + _cached_size_ = 0; + playerid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PlayerInfoRequestMessage::~PlayerInfoRequestMessage() { + SharedDtor(); +} + +void PlayerInfoRequestMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void PlayerInfoRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PlayerInfoRequestMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PlayerInfoRequestMessage_descriptor_; +} + +const PlayerInfoRequestMessage& PlayerInfoRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +PlayerInfoRequestMessage* PlayerInfoRequestMessage::default_instance_ = NULL; + +PlayerInfoRequestMessage* PlayerInfoRequestMessage::New() const { + return new PlayerInfoRequestMessage; +} + +void PlayerInfoRequestMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + playerid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool PlayerInfoRequestMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 playerId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void PlayerInfoRequestMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 playerId = 1; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* PlayerInfoRequestMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 playerId = 1; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->playerid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int PlayerInfoRequestMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 playerId = 1; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PlayerInfoRequestMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const PlayerInfoRequestMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void PlayerInfoRequestMessage::MergeFrom(const PlayerInfoRequestMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void PlayerInfoRequestMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PlayerInfoRequestMessage::CopyFrom(const PlayerInfoRequestMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayerInfoRequestMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void PlayerInfoRequestMessage::Swap(PlayerInfoRequestMessage* other) { + if (other != this) { + std::swap(playerid_, other->playerid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata PlayerInfoRequestMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PlayerInfoRequestMessage_descriptor_; + metadata.reflection = PlayerInfoRequestMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int PlayerInfoReplyMessage_PlayerInfoData_AvatarData::kAvatarTypeFieldNumber; +const int PlayerInfoReplyMessage_PlayerInfoData_AvatarData::kAvatarHashFieldNumber; +#endif // !_MSC_VER + +PlayerInfoReplyMessage_PlayerInfoData_AvatarData::PlayerInfoReplyMessage_PlayerInfoData_AvatarData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::InitAsDefaultInstance() { +} + +PlayerInfoReplyMessage_PlayerInfoData_AvatarData::PlayerInfoReplyMessage_PlayerInfoData_AvatarData(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SharedCtor() { + _cached_size_ = 0; + avatartype_ = 0; + avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PlayerInfoReplyMessage_PlayerInfoData_AvatarData::~PlayerInfoReplyMessage_PlayerInfoData_AvatarData() { + SharedDtor(); +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SharedDtor() { + if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { + delete avatarhash_; + } + if (this != default_instance_) { + } +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PlayerInfoReplyMessage_PlayerInfoData_AvatarData_descriptor_; +} + +const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance_ = NULL; + +PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::New() const { + return new PlayerInfoReplyMessage_PlayerInfoData_AvatarData; +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + avatartype_ = 0; + if (has_avatarhash()) { + if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { + avatarhash_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .NetAvatarType avatarType = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (NetAvatarType_IsValid(value)) { + set_avatartype(static_cast< NetAvatarType >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_avatarHash; + break; + } + + // required bytes avatarHash = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_avatarHash: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_avatarhash())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .NetAvatarType avatarType = 1; + if (has_avatartype()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->avatartype(), output); + } + + // required bytes avatarHash = 2; + if (has_avatarhash()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->avatarhash(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .NetAvatarType avatarType = 1; + if (has_avatartype()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->avatartype(), target); + } + + // required bytes avatarHash = 2; + if (has_avatarhash()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->avatarhash(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int PlayerInfoReplyMessage_PlayerInfoData_AvatarData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .NetAvatarType avatarType = 1; + if (has_avatartype()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->avatartype()); + } + + // required bytes avatarHash = 2; + if (has_avatarhash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->avatarhash()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const PlayerInfoReplyMessage_PlayerInfoData_AvatarData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::MergeFrom(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_avatartype()) { + set_avatartype(from.avatartype()); + } + if (from.has_avatarhash()) { + set_avatarhash(from.avatarhash()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::CopyFrom(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::Swap(PlayerInfoReplyMessage_PlayerInfoData_AvatarData* other) { + if (other != this) { + std::swap(avatartype_, other->avatartype_); + std::swap(avatarhash_, other->avatarhash_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata PlayerInfoReplyMessage_PlayerInfoData_AvatarData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PlayerInfoReplyMessage_PlayerInfoData_AvatarData_descriptor_; + metadata.reflection = PlayerInfoReplyMessage_PlayerInfoData_AvatarData_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int PlayerInfoReplyMessage_PlayerInfoData::kPlayerNameFieldNumber; +const int PlayerInfoReplyMessage_PlayerInfoData::kIsHumanFieldNumber; +const int PlayerInfoReplyMessage_PlayerInfoData::kPlayerRightsFieldNumber; +const int PlayerInfoReplyMessage_PlayerInfoData::kCountryCodeFieldNumber; +const int PlayerInfoReplyMessage_PlayerInfoData::kAvatarDataFieldNumber; +#endif // !_MSC_VER + +PlayerInfoReplyMessage_PlayerInfoData::PlayerInfoReplyMessage_PlayerInfoData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void PlayerInfoReplyMessage_PlayerInfoData::InitAsDefaultInstance() { + avatardata_ = const_cast< ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData*>(&::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance()); +} + +PlayerInfoReplyMessage_PlayerInfoData::PlayerInfoReplyMessage_PlayerInfoData(const PlayerInfoReplyMessage_PlayerInfoData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void PlayerInfoReplyMessage_PlayerInfoData::SharedCtor() { + _cached_size_ = 0; + playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ishuman_ = false; + playerrights_ = 1; + countrycode_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + avatardata_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PlayerInfoReplyMessage_PlayerInfoData::~PlayerInfoReplyMessage_PlayerInfoData() { + SharedDtor(); +} + +void PlayerInfoReplyMessage_PlayerInfoData::SharedDtor() { + if (playername_ != &::google::protobuf::internal::kEmptyString) { + delete playername_; + } + if (countrycode_ != &::google::protobuf::internal::kEmptyString) { + delete countrycode_; + } + if (this != default_instance_) { + delete avatardata_; + } +} + +void PlayerInfoReplyMessage_PlayerInfoData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PlayerInfoReplyMessage_PlayerInfoData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PlayerInfoReplyMessage_PlayerInfoData_descriptor_; +} + +const PlayerInfoReplyMessage_PlayerInfoData& PlayerInfoReplyMessage_PlayerInfoData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage_PlayerInfoData::default_instance_ = NULL; + +PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage_PlayerInfoData::New() const { + return new PlayerInfoReplyMessage_PlayerInfoData; +} + +void PlayerInfoReplyMessage_PlayerInfoData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_playername()) { + if (playername_ != &::google::protobuf::internal::kEmptyString) { + playername_->clear(); + } + } + ishuman_ = false; + playerrights_ = 1; + if (has_countrycode()) { + if (countrycode_ != &::google::protobuf::internal::kEmptyString) { + countrycode_->clear(); + } + } + if (has_avatardata()) { + if (avatardata_ != NULL) avatardata_->::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool PlayerInfoReplyMessage_PlayerInfoData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string playerName = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_playername())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->playername().data(), this->playername().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_isHuman; + break; + } + + // required bool isHuman = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_isHuman: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &ishuman_))); + set_has_ishuman(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_playerRights; + break; + } + + // required .PlayerInfoRights playerRights = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerRights: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (PlayerInfoRights_IsValid(value)) { + set_playerrights(static_cast< PlayerInfoRights >(value)); + } else { + mutable_unknown_fields()->AddVarint(3, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_countryCode; + break; + } + + // optional string countryCode = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_countryCode: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_countrycode())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->countrycode().data(), this->countrycode().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_avatarData; + break; + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_avatarData: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_avatardata())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void PlayerInfoReplyMessage_PlayerInfoData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string playerName = 1; + if (has_playername()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->playername().data(), this->playername().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->playername(), output); + } + + // required bool isHuman = 2; + if (has_ishuman()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->ishuman(), output); + } + + // required .PlayerInfoRights playerRights = 3; + if (has_playerrights()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->playerrights(), output); + } + + // optional string countryCode = 4; + if (has_countrycode()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->countrycode().data(), this->countrycode().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->countrycode(), output); + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; + if (has_avatardata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->avatardata(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* PlayerInfoReplyMessage_PlayerInfoData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string playerName = 1; + if (has_playername()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->playername().data(), this->playername().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->playername(), target); + } + + // required bool isHuman = 2; + if (has_ishuman()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->ishuman(), target); + } + + // required .PlayerInfoRights playerRights = 3; + if (has_playerrights()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->playerrights(), target); + } + + // optional string countryCode = 4; + if (has_countrycode()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->countrycode().data(), this->countrycode().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->countrycode(), target); + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; + if (has_avatardata()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->avatardata(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int PlayerInfoReplyMessage_PlayerInfoData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string playerName = 1; + if (has_playername()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->playername()); + } + + // required bool isHuman = 2; + if (has_ishuman()) { + total_size += 1 + 1; + } + + // required .PlayerInfoRights playerRights = 3; + if (has_playerrights()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->playerrights()); + } + + // optional string countryCode = 4; + if (has_countrycode()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->countrycode()); + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; + if (has_avatardata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->avatardata()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PlayerInfoReplyMessage_PlayerInfoData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const PlayerInfoReplyMessage_PlayerInfoData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void PlayerInfoReplyMessage_PlayerInfoData::MergeFrom(const PlayerInfoReplyMessage_PlayerInfoData& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_playername()) { + set_playername(from.playername()); + } + if (from.has_ishuman()) { + set_ishuman(from.ishuman()); + } + if (from.has_playerrights()) { + set_playerrights(from.playerrights()); + } + if (from.has_countrycode()) { + set_countrycode(from.countrycode()); + } + if (from.has_avatardata()) { + mutable_avatardata()->::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::MergeFrom(from.avatardata()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void PlayerInfoReplyMessage_PlayerInfoData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PlayerInfoReplyMessage_PlayerInfoData::CopyFrom(const PlayerInfoReplyMessage_PlayerInfoData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayerInfoReplyMessage_PlayerInfoData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + if (has_avatardata()) { + if (!this->avatardata().IsInitialized()) return false; + } + return true; +} + +void PlayerInfoReplyMessage_PlayerInfoData::Swap(PlayerInfoReplyMessage_PlayerInfoData* other) { + if (other != this) { + std::swap(playername_, other->playername_); + std::swap(ishuman_, other->ishuman_); + std::swap(playerrights_, other->playerrights_); + std::swap(countrycode_, other->countrycode_); + std::swap(avatardata_, other->avatardata_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata PlayerInfoReplyMessage_PlayerInfoData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PlayerInfoReplyMessage_PlayerInfoData_descriptor_; + metadata.reflection = PlayerInfoReplyMessage_PlayerInfoData_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int PlayerInfoReplyMessage::kPlayerIdFieldNumber; +const int PlayerInfoReplyMessage::kPlayerInfoDataFieldNumber; +#endif // !_MSC_VER + +PlayerInfoReplyMessage::PlayerInfoReplyMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void PlayerInfoReplyMessage::InitAsDefaultInstance() { + playerinfodata_ = const_cast< ::PlayerInfoReplyMessage_PlayerInfoData*>(&::PlayerInfoReplyMessage_PlayerInfoData::default_instance()); +} + +PlayerInfoReplyMessage::PlayerInfoReplyMessage(const PlayerInfoReplyMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void PlayerInfoReplyMessage::SharedCtor() { + _cached_size_ = 0; + playerid_ = 0u; + playerinfodata_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PlayerInfoReplyMessage::~PlayerInfoReplyMessage() { + SharedDtor(); +} + +void PlayerInfoReplyMessage::SharedDtor() { + if (this != default_instance_) { + delete playerinfodata_; + } +} + +void PlayerInfoReplyMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PlayerInfoReplyMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PlayerInfoReplyMessage_descriptor_; +} + +const PlayerInfoReplyMessage& PlayerInfoReplyMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +PlayerInfoReplyMessage* PlayerInfoReplyMessage::default_instance_ = NULL; + +PlayerInfoReplyMessage* PlayerInfoReplyMessage::New() const { + return new PlayerInfoReplyMessage; +} + +void PlayerInfoReplyMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + playerid_ = 0u; + if (has_playerinfodata()) { + if (playerinfodata_ != NULL) playerinfodata_->::PlayerInfoReplyMessage_PlayerInfoData::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool PlayerInfoReplyMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 playerId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_playerInfoData; + break; + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_playerInfoData: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_playerinfodata())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void PlayerInfoReplyMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 playerId = 1; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; + if (has_playerinfodata()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->playerinfodata(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* PlayerInfoReplyMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 playerId = 1; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->playerid(), target); + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; + if (has_playerinfodata()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->playerinfodata(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int PlayerInfoReplyMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 playerId = 1; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; + if (has_playerinfodata()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playerinfodata()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PlayerInfoReplyMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const PlayerInfoReplyMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void PlayerInfoReplyMessage::MergeFrom(const PlayerInfoReplyMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + if (from.has_playerinfodata()) { + mutable_playerinfodata()->::PlayerInfoReplyMessage_PlayerInfoData::MergeFrom(from.playerinfodata()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void PlayerInfoReplyMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PlayerInfoReplyMessage::CopyFrom(const PlayerInfoReplyMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayerInfoReplyMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_playerinfodata()) { + if (!this->playerinfodata().IsInitialized()) return false; + } + return true; +} + +void PlayerInfoReplyMessage::Swap(PlayerInfoReplyMessage* other) { + if (other != this) { + std::swap(playerid_, other->playerid_); + std::swap(playerinfodata_, other->playerinfodata_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata PlayerInfoReplyMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PlayerInfoReplyMessage_descriptor_; + metadata.reflection = PlayerInfoReplyMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* SubscriptionRequestMessage_SubscriptionAction_descriptor() { + protobuf_AssignDescriptorsOnce(); + return SubscriptionRequestMessage_SubscriptionAction_descriptor_; +} +bool SubscriptionRequestMessage_SubscriptionAction_IsValid(int value) { + switch(value) { + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::unsubscribeGameList; +const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::resubscribeGameList; +const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::SubscriptionAction_MIN; +const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::SubscriptionAction_MAX; +const int SubscriptionRequestMessage::SubscriptionAction_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int SubscriptionRequestMessage::kSubscriptionActionFieldNumber; +#endif // !_MSC_VER + +SubscriptionRequestMessage::SubscriptionRequestMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void SubscriptionRequestMessage::InitAsDefaultInstance() { +} + +SubscriptionRequestMessage::SubscriptionRequestMessage(const SubscriptionRequestMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void SubscriptionRequestMessage::SharedCtor() { + _cached_size_ = 0; + subscriptionaction_ = 1; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +SubscriptionRequestMessage::~SubscriptionRequestMessage() { + SharedDtor(); +} + +void SubscriptionRequestMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void SubscriptionRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* SubscriptionRequestMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return SubscriptionRequestMessage_descriptor_; +} + +const SubscriptionRequestMessage& SubscriptionRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +SubscriptionRequestMessage* SubscriptionRequestMessage::default_instance_ = NULL; + +SubscriptionRequestMessage* SubscriptionRequestMessage::New() const { + return new SubscriptionRequestMessage; +} + +void SubscriptionRequestMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + subscriptionaction_ = 1; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool SubscriptionRequestMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::SubscriptionRequestMessage_SubscriptionAction_IsValid(value)) { + set_subscriptionaction(static_cast< ::SubscriptionRequestMessage_SubscriptionAction >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void SubscriptionRequestMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; + if (has_subscriptionaction()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->subscriptionaction(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* SubscriptionRequestMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; + if (has_subscriptionaction()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->subscriptionaction(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int SubscriptionRequestMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; + if (has_subscriptionaction()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->subscriptionaction()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void SubscriptionRequestMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const SubscriptionRequestMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void SubscriptionRequestMessage::MergeFrom(const SubscriptionRequestMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_subscriptionaction()) { + set_subscriptionaction(from.subscriptionaction()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void SubscriptionRequestMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void SubscriptionRequestMessage::CopyFrom(const SubscriptionRequestMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SubscriptionRequestMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void SubscriptionRequestMessage::Swap(SubscriptionRequestMessage* other) { + if (other != this) { + std::swap(subscriptionaction_, other->subscriptionaction_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata SubscriptionRequestMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = SubscriptionRequestMessage_descriptor_; + metadata.reflection = SubscriptionRequestMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int JoinExistingGameMessage::kGameIdFieldNumber; +const int JoinExistingGameMessage::kPasswordFieldNumber; +const int JoinExistingGameMessage::kAutoLeaveFieldNumber; +#endif // !_MSC_VER + +JoinExistingGameMessage::JoinExistingGameMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void JoinExistingGameMessage::InitAsDefaultInstance() { +} + +JoinExistingGameMessage::JoinExistingGameMessage(const JoinExistingGameMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void JoinExistingGameMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + autoleave_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +JoinExistingGameMessage::~JoinExistingGameMessage() { + SharedDtor(); +} + +void JoinExistingGameMessage::SharedDtor() { + if (password_ != &::google::protobuf::internal::kEmptyString) { + delete password_; + } + if (this != default_instance_) { + } +} + +void JoinExistingGameMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* JoinExistingGameMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return JoinExistingGameMessage_descriptor_; +} + +const JoinExistingGameMessage& JoinExistingGameMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +JoinExistingGameMessage* JoinExistingGameMessage::default_instance_ = NULL; + +JoinExistingGameMessage* JoinExistingGameMessage::New() const { + return new JoinExistingGameMessage; +} + +void JoinExistingGameMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + if (has_password()) { + if (password_ != &::google::protobuf::internal::kEmptyString) { + password_->clear(); + } + } + autoleave_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool JoinExistingGameMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_password; + break; + } + + // optional string password = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_password: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_password())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->password().data(), this->password().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_autoLeave; + break; + } + + // optional bool autoLeave = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_autoLeave: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &autoleave_))); + set_has_autoleave(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void JoinExistingGameMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // optional string password = 2; + if (has_password()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->password().data(), this->password().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->password(), output); + } + + // optional bool autoLeave = 3; + if (has_autoleave()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->autoleave(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* JoinExistingGameMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // optional string password = 2; + if (has_password()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->password().data(), this->password().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->password(), target); + } + + // optional bool autoLeave = 3; + if (has_autoleave()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->autoleave(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int JoinExistingGameMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // optional string password = 2; + if (has_password()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->password()); + } + + // optional bool autoLeave = 3; + if (has_autoleave()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void JoinExistingGameMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const JoinExistingGameMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void JoinExistingGameMessage::MergeFrom(const JoinExistingGameMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_password()) { + set_password(from.password()); + } + if (from.has_autoleave()) { + set_autoleave(from.autoleave()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void JoinExistingGameMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void JoinExistingGameMessage::CopyFrom(const JoinExistingGameMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool JoinExistingGameMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void JoinExistingGameMessage::Swap(JoinExistingGameMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(password_, other->password_); + std::swap(autoleave_, other->autoleave_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata JoinExistingGameMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = JoinExistingGameMessage_descriptor_; + metadata.reflection = JoinExistingGameMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int JoinNewGameMessage::kGameInfoFieldNumber; +const int JoinNewGameMessage::kPasswordFieldNumber; +const int JoinNewGameMessage::kAutoLeaveFieldNumber; +#endif // !_MSC_VER + +JoinNewGameMessage::JoinNewGameMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void JoinNewGameMessage::InitAsDefaultInstance() { + gameinfo_ = const_cast< ::NetGameInfo*>(&::NetGameInfo::default_instance()); +} + +JoinNewGameMessage::JoinNewGameMessage(const JoinNewGameMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void JoinNewGameMessage::SharedCtor() { + _cached_size_ = 0; + gameinfo_ = NULL; + password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + autoleave_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +JoinNewGameMessage::~JoinNewGameMessage() { + SharedDtor(); +} + +void JoinNewGameMessage::SharedDtor() { + if (password_ != &::google::protobuf::internal::kEmptyString) { + delete password_; + } + if (this != default_instance_) { + delete gameinfo_; + } +} + +void JoinNewGameMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* JoinNewGameMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return JoinNewGameMessage_descriptor_; +} + +const JoinNewGameMessage& JoinNewGameMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +JoinNewGameMessage* JoinNewGameMessage::default_instance_ = NULL; + +JoinNewGameMessage* JoinNewGameMessage::New() const { + return new JoinNewGameMessage; +} + +void JoinNewGameMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_gameinfo()) { + if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); + } + if (has_password()) { + if (password_ != &::google::protobuf::internal::kEmptyString) { + password_->clear(); + } + } + autoleave_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool JoinNewGameMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .NetGameInfo gameInfo = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_gameinfo())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_password; + break; + } + + // optional string password = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_password: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_password())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->password().data(), this->password().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_autoLeave; + break; + } + + // optional bool autoLeave = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_autoLeave: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &autoleave_))); + set_has_autoleave(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void JoinNewGameMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .NetGameInfo gameInfo = 1; + if (has_gameinfo()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->gameinfo(), output); + } + + // optional string password = 2; + if (has_password()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->password().data(), this->password().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 2, this->password(), output); + } + + // optional bool autoLeave = 3; + if (has_autoleave()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->autoleave(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* JoinNewGameMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .NetGameInfo gameInfo = 1; + if (has_gameinfo()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->gameinfo(), target); + } + + // optional string password = 2; + if (has_password()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->password().data(), this->password().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->password(), target); + } + + // optional bool autoLeave = 3; + if (has_autoleave()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->autoleave(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int JoinNewGameMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .NetGameInfo gameInfo = 1; + if (has_gameinfo()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gameinfo()); + } + + // optional string password = 2; + if (has_password()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->password()); + } + + // optional bool autoLeave = 3; + if (has_autoleave()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void JoinNewGameMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const JoinNewGameMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void JoinNewGameMessage::MergeFrom(const JoinNewGameMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameinfo()) { + mutable_gameinfo()->::NetGameInfo::MergeFrom(from.gameinfo()); + } + if (from.has_password()) { + set_password(from.password()); + } + if (from.has_autoleave()) { + set_autoleave(from.autoleave()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void JoinNewGameMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void JoinNewGameMessage::CopyFrom(const JoinNewGameMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool JoinNewGameMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_gameinfo()) { + if (!this->gameinfo().IsInitialized()) return false; + } + return true; +} + +void JoinNewGameMessage::Swap(JoinNewGameMessage* other) { + if (other != this) { + std::swap(gameinfo_, other->gameinfo_); + std::swap(password_, other->password_); + std::swap(autoleave_, other->autoleave_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata JoinNewGameMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = JoinNewGameMessage_descriptor_; + metadata.reflection = JoinNewGameMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RejoinExistingGameMessage::kGameIdFieldNumber; +const int RejoinExistingGameMessage::kAutoLeaveFieldNumber; +#endif // !_MSC_VER + +RejoinExistingGameMessage::RejoinExistingGameMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RejoinExistingGameMessage::InitAsDefaultInstance() { +} + +RejoinExistingGameMessage::RejoinExistingGameMessage(const RejoinExistingGameMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RejoinExistingGameMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + autoleave_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RejoinExistingGameMessage::~RejoinExistingGameMessage() { + SharedDtor(); +} + +void RejoinExistingGameMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void RejoinExistingGameMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RejoinExistingGameMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RejoinExistingGameMessage_descriptor_; +} + +const RejoinExistingGameMessage& RejoinExistingGameMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +RejoinExistingGameMessage* RejoinExistingGameMessage::default_instance_ = NULL; + +RejoinExistingGameMessage* RejoinExistingGameMessage::New() const { + return new RejoinExistingGameMessage; +} + +void RejoinExistingGameMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + autoleave_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RejoinExistingGameMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_autoLeave; + break; + } + + // optional bool autoLeave = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_autoLeave: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &autoleave_))); + set_has_autoleave(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RejoinExistingGameMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // optional bool autoLeave = 2; + if (has_autoleave()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->autoleave(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RejoinExistingGameMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // optional bool autoLeave = 2; + if (has_autoleave()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->autoleave(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RejoinExistingGameMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // optional bool autoLeave = 2; + if (has_autoleave()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RejoinExistingGameMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RejoinExistingGameMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RejoinExistingGameMessage::MergeFrom(const RejoinExistingGameMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_autoleave()) { + set_autoleave(from.autoleave()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RejoinExistingGameMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RejoinExistingGameMessage::CopyFrom(const RejoinExistingGameMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RejoinExistingGameMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void RejoinExistingGameMessage::Swap(RejoinExistingGameMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(autoleave_, other->autoleave_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RejoinExistingGameMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RejoinExistingGameMessage_descriptor_; + metadata.reflection = RejoinExistingGameMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int JoinGameAckMessage::kGameIdFieldNumber; +const int JoinGameAckMessage::kAreYouGameAdminFieldNumber; +const int JoinGameAckMessage::kGameInfoFieldNumber; +#endif // !_MSC_VER + +JoinGameAckMessage::JoinGameAckMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void JoinGameAckMessage::InitAsDefaultInstance() { + gameinfo_ = const_cast< ::NetGameInfo*>(&::NetGameInfo::default_instance()); +} + +JoinGameAckMessage::JoinGameAckMessage(const JoinGameAckMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void JoinGameAckMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + areyougameadmin_ = false; + gameinfo_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +JoinGameAckMessage::~JoinGameAckMessage() { + SharedDtor(); +} + +void JoinGameAckMessage::SharedDtor() { + if (this != default_instance_) { + delete gameinfo_; + } +} + +void JoinGameAckMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* JoinGameAckMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return JoinGameAckMessage_descriptor_; +} + +const JoinGameAckMessage& JoinGameAckMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +JoinGameAckMessage* JoinGameAckMessage::default_instance_ = NULL; + +JoinGameAckMessage* JoinGameAckMessage::New() const { + return new JoinGameAckMessage; +} + +void JoinGameAckMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + areyougameadmin_ = false; + if (has_gameinfo()) { + if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool JoinGameAckMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_areYouGameAdmin; + break; + } + + // required bool areYouGameAdmin = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_areYouGameAdmin: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &areyougameadmin_))); + set_has_areyougameadmin(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_gameInfo; + break; + } + + // required .NetGameInfo gameInfo = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_gameInfo: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_gameinfo())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void JoinGameAckMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required bool areYouGameAdmin = 2; + if (has_areyougameadmin()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->areyougameadmin(), output); + } + + // required .NetGameInfo gameInfo = 3; + if (has_gameinfo()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->gameinfo(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* JoinGameAckMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required bool areYouGameAdmin = 2; + if (has_areyougameadmin()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->areyougameadmin(), target); + } + + // required .NetGameInfo gameInfo = 3; + if (has_gameinfo()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->gameinfo(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int JoinGameAckMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required bool areYouGameAdmin = 2; + if (has_areyougameadmin()) { + total_size += 1 + 1; + } + + // required .NetGameInfo gameInfo = 3; + if (has_gameinfo()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gameinfo()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void JoinGameAckMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const JoinGameAckMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void JoinGameAckMessage::MergeFrom(const JoinGameAckMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_areyougameadmin()) { + set_areyougameadmin(from.areyougameadmin()); + } + if (from.has_gameinfo()) { + mutable_gameinfo()->::NetGameInfo::MergeFrom(from.gameinfo()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void JoinGameAckMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void JoinGameAckMessage::CopyFrom(const JoinGameAckMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool JoinGameAckMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + if (has_gameinfo()) { + if (!this->gameinfo().IsInitialized()) return false; + } + return true; +} + +void JoinGameAckMessage::Swap(JoinGameAckMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(areyougameadmin_, other->areyougameadmin_); + std::swap(gameinfo_, other->gameinfo_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata JoinGameAckMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = JoinGameAckMessage_descriptor_; + metadata.reflection = JoinGameAckMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* JoinGameFailedMessage_JoinGameFailureReason_descriptor() { + protobuf_AssignDescriptorsOnce(); + return JoinGameFailedMessage_JoinGameFailureReason_descriptor_; +} +bool JoinGameFailedMessage_JoinGameFailureReason_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::invalidGame; +const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::gameIsFull; +const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::gameIsRunning; +const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::invalidPassword; +const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::notAllowedAsGuest; +const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::notInvited; +const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::gameNameInUse; +const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::badGameName; +const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::invalidSettings; +const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::ipAddressBlocked; +const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::rejoinFailed; +const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::JoinGameFailureReason_MIN; +const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::JoinGameFailureReason_MAX; +const int JoinGameFailedMessage::JoinGameFailureReason_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int JoinGameFailedMessage::kGameIdFieldNumber; +const int JoinGameFailedMessage::kJoinGameFailureReasonFieldNumber; +#endif // !_MSC_VER + +JoinGameFailedMessage::JoinGameFailedMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void JoinGameFailedMessage::InitAsDefaultInstance() { +} + +JoinGameFailedMessage::JoinGameFailedMessage(const JoinGameFailedMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void JoinGameFailedMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + joingamefailurereason_ = 1; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +JoinGameFailedMessage::~JoinGameFailedMessage() { + SharedDtor(); +} + +void JoinGameFailedMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void JoinGameFailedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* JoinGameFailedMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return JoinGameFailedMessage_descriptor_; +} + +const JoinGameFailedMessage& JoinGameFailedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +JoinGameFailedMessage* JoinGameFailedMessage::default_instance_ = NULL; + +JoinGameFailedMessage* JoinGameFailedMessage::New() const { + return new JoinGameFailedMessage; +} + +void JoinGameFailedMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + joingamefailurereason_ = 1; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool JoinGameFailedMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_joinGameFailureReason; + break; + } + + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_joinGameFailureReason: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::JoinGameFailedMessage_JoinGameFailureReason_IsValid(value)) { + set_joingamefailurereason(static_cast< ::JoinGameFailedMessage_JoinGameFailureReason >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void JoinGameFailedMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; + if (has_joingamefailurereason()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->joingamefailurereason(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* JoinGameFailedMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; + if (has_joingamefailurereason()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->joingamefailurereason(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int JoinGameFailedMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; + if (has_joingamefailurereason()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->joingamefailurereason()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void JoinGameFailedMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const JoinGameFailedMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void JoinGameFailedMessage::MergeFrom(const JoinGameFailedMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_joingamefailurereason()) { + set_joingamefailurereason(from.joingamefailurereason()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void JoinGameFailedMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void JoinGameFailedMessage::CopyFrom(const JoinGameFailedMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool JoinGameFailedMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void JoinGameFailedMessage::Swap(JoinGameFailedMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(joingamefailurereason_, other->joingamefailurereason_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata JoinGameFailedMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = JoinGameFailedMessage_descriptor_; + metadata.reflection = JoinGameFailedMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GamePlayerJoinedMessage::kGameIdFieldNumber; +const int GamePlayerJoinedMessage::kPlayerIdFieldNumber; +const int GamePlayerJoinedMessage::kIsGameAdminFieldNumber; +#endif // !_MSC_VER + +GamePlayerJoinedMessage::GamePlayerJoinedMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GamePlayerJoinedMessage::InitAsDefaultInstance() { +} + +GamePlayerJoinedMessage::GamePlayerJoinedMessage(const GamePlayerJoinedMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GamePlayerJoinedMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + playerid_ = 0u; + isgameadmin_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GamePlayerJoinedMessage::~GamePlayerJoinedMessage() { + SharedDtor(); +} + +void GamePlayerJoinedMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void GamePlayerJoinedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GamePlayerJoinedMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GamePlayerJoinedMessage_descriptor_; +} + +const GamePlayerJoinedMessage& GamePlayerJoinedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +GamePlayerJoinedMessage* GamePlayerJoinedMessage::default_instance_ = NULL; + +GamePlayerJoinedMessage* GamePlayerJoinedMessage::New() const { + return new GamePlayerJoinedMessage; +} + +void GamePlayerJoinedMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + playerid_ = 0u; + isgameadmin_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GamePlayerJoinedMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerId; + break; + } + + // required uint32 playerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_isGameAdmin; + break; + } + + // required bool isGameAdmin = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_isGameAdmin: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &isgameadmin_))); + set_has_isgameadmin(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GamePlayerJoinedMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); + } + + // required bool isGameAdmin = 3; + if (has_isgameadmin()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->isgameadmin(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GamePlayerJoinedMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->playerid(), target); + } + + // required bool isGameAdmin = 3; + if (has_isgameadmin()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->isgameadmin(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GamePlayerJoinedMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + // required bool isGameAdmin = 3; + if (has_isgameadmin()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GamePlayerJoinedMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GamePlayerJoinedMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GamePlayerJoinedMessage::MergeFrom(const GamePlayerJoinedMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + if (from.has_isgameadmin()) { + set_isgameadmin(from.isgameadmin()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GamePlayerJoinedMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GamePlayerJoinedMessage::CopyFrom(const GamePlayerJoinedMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GamePlayerJoinedMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void GamePlayerJoinedMessage::Swap(GamePlayerJoinedMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(playerid_, other->playerid_); + std::swap(isgameadmin_, other->isgameadmin_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GamePlayerJoinedMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GamePlayerJoinedMessage_descriptor_; + metadata.reflection = GamePlayerJoinedMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* GamePlayerLeftMessage_GamePlayerLeftReason_descriptor() { + protobuf_AssignDescriptorsOnce(); + return GamePlayerLeftMessage_GamePlayerLeftReason_descriptor_; +} +bool GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::leftOnRequest; +const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::leftKicked; +const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::leftError; +const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::GamePlayerLeftReason_MIN; +const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::GamePlayerLeftReason_MAX; +const int GamePlayerLeftMessage::GamePlayerLeftReason_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int GamePlayerLeftMessage::kGameIdFieldNumber; +const int GamePlayerLeftMessage::kPlayerIdFieldNumber; +const int GamePlayerLeftMessage::kGamePlayerLeftReasonFieldNumber; +#endif // !_MSC_VER + +GamePlayerLeftMessage::GamePlayerLeftMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GamePlayerLeftMessage::InitAsDefaultInstance() { +} + +GamePlayerLeftMessage::GamePlayerLeftMessage(const GamePlayerLeftMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GamePlayerLeftMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + playerid_ = 0u; + gameplayerleftreason_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GamePlayerLeftMessage::~GamePlayerLeftMessage() { + SharedDtor(); +} + +void GamePlayerLeftMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void GamePlayerLeftMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GamePlayerLeftMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GamePlayerLeftMessage_descriptor_; +} + +const GamePlayerLeftMessage& GamePlayerLeftMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +GamePlayerLeftMessage* GamePlayerLeftMessage::default_instance_ = NULL; + +GamePlayerLeftMessage* GamePlayerLeftMessage::New() const { + return new GamePlayerLeftMessage; +} + +void GamePlayerLeftMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + playerid_ = 0u; + gameplayerleftreason_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GamePlayerLeftMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerId; + break; + } + + // required uint32 playerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_gamePlayerLeftReason; + break; + } + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_gamePlayerLeftReason: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(value)) { + set_gameplayerleftreason(static_cast< ::GamePlayerLeftMessage_GamePlayerLeftReason >(value)); + } else { + mutable_unknown_fields()->AddVarint(3, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GamePlayerLeftMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); + } + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; + if (has_gameplayerleftreason()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->gameplayerleftreason(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GamePlayerLeftMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->playerid(), target); + } + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; + if (has_gameplayerleftreason()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->gameplayerleftreason(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GamePlayerLeftMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; + if (has_gameplayerleftreason()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->gameplayerleftreason()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GamePlayerLeftMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GamePlayerLeftMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GamePlayerLeftMessage::MergeFrom(const GamePlayerLeftMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + if (from.has_gameplayerleftreason()) { + set_gameplayerleftreason(from.gameplayerleftreason()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GamePlayerLeftMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GamePlayerLeftMessage::CopyFrom(const GamePlayerLeftMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GamePlayerLeftMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void GamePlayerLeftMessage::Swap(GamePlayerLeftMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(playerid_, other->playerid_); + std::swap(gameplayerleftreason_, other->gameplayerleftreason_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GamePlayerLeftMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GamePlayerLeftMessage_descriptor_; + metadata.reflection = GamePlayerLeftMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GameAdminChangedMessage::kGameIdFieldNumber; +const int GameAdminChangedMessage::kNewAdminPlayerIdFieldNumber; +#endif // !_MSC_VER + +GameAdminChangedMessage::GameAdminChangedMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GameAdminChangedMessage::InitAsDefaultInstance() { +} + +GameAdminChangedMessage::GameAdminChangedMessage(const GameAdminChangedMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GameAdminChangedMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + newadminplayerid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GameAdminChangedMessage::~GameAdminChangedMessage() { + SharedDtor(); +} + +void GameAdminChangedMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void GameAdminChangedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GameAdminChangedMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GameAdminChangedMessage_descriptor_; +} + +const GameAdminChangedMessage& GameAdminChangedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +GameAdminChangedMessage* GameAdminChangedMessage::default_instance_ = NULL; + +GameAdminChangedMessage* GameAdminChangedMessage::New() const { + return new GameAdminChangedMessage; +} + +void GameAdminChangedMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + newadminplayerid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GameAdminChangedMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_newAdminPlayerId; + break; + } + + // required uint32 newAdminPlayerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_newAdminPlayerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &newadminplayerid_))); + set_has_newadminplayerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GameAdminChangedMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 newAdminPlayerId = 2; + if (has_newadminplayerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->newadminplayerid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GameAdminChangedMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 newAdminPlayerId = 2; + if (has_newadminplayerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->newadminplayerid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GameAdminChangedMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 newAdminPlayerId = 2; + if (has_newadminplayerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->newadminplayerid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GameAdminChangedMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GameAdminChangedMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GameAdminChangedMessage::MergeFrom(const GameAdminChangedMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_newadminplayerid()) { + set_newadminplayerid(from.newadminplayerid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GameAdminChangedMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GameAdminChangedMessage::CopyFrom(const GameAdminChangedMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameAdminChangedMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void GameAdminChangedMessage::Swap(GameAdminChangedMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(newadminplayerid_, other->newadminplayerid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GameAdminChangedMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GameAdminChangedMessage_descriptor_; + metadata.reflection = GameAdminChangedMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* RemovedFromGameMessage_RemovedFromGameReason_descriptor() { + protobuf_AssignDescriptorsOnce(); + return RemovedFromGameMessage_RemovedFromGameReason_descriptor_; +} +bool RemovedFromGameMessage_RemovedFromGameReason_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::removedOnRequest; +const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::kickedFromGame; +const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::gameIsFull; +const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::gameIsRunning; +const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::gameTimeout; +const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::removedStartFailed; +const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::RemovedFromGameReason_MIN; +const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::RemovedFromGameReason_MAX; +const int RemovedFromGameMessage::RemovedFromGameReason_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int RemovedFromGameMessage::kGameIdFieldNumber; +const int RemovedFromGameMessage::kRemovedFromGameReasonFieldNumber; +#endif // !_MSC_VER + +RemovedFromGameMessage::RemovedFromGameMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RemovedFromGameMessage::InitAsDefaultInstance() { +} + +RemovedFromGameMessage::RemovedFromGameMessage(const RemovedFromGameMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RemovedFromGameMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + removedfromgamereason_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RemovedFromGameMessage::~RemovedFromGameMessage() { + SharedDtor(); +} + +void RemovedFromGameMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void RemovedFromGameMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RemovedFromGameMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RemovedFromGameMessage_descriptor_; +} + +const RemovedFromGameMessage& RemovedFromGameMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +RemovedFromGameMessage* RemovedFromGameMessage::default_instance_ = NULL; + +RemovedFromGameMessage* RemovedFromGameMessage::New() const { + return new RemovedFromGameMessage; +} + +void RemovedFromGameMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + removedfromgamereason_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RemovedFromGameMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_removedFromGameReason; + break; + } + + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_removedFromGameReason: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::RemovedFromGameMessage_RemovedFromGameReason_IsValid(value)) { + set_removedfromgamereason(static_cast< ::RemovedFromGameMessage_RemovedFromGameReason >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RemovedFromGameMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; + if (has_removedfromgamereason()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->removedfromgamereason(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RemovedFromGameMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; + if (has_removedfromgamereason()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->removedfromgamereason(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RemovedFromGameMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; + if (has_removedfromgamereason()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->removedfromgamereason()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RemovedFromGameMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RemovedFromGameMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RemovedFromGameMessage::MergeFrom(const RemovedFromGameMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_removedfromgamereason()) { + set_removedfromgamereason(from.removedfromgamereason()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RemovedFromGameMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RemovedFromGameMessage::CopyFrom(const RemovedFromGameMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RemovedFromGameMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void RemovedFromGameMessage::Swap(RemovedFromGameMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(removedfromgamereason_, other->removedfromgamereason_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RemovedFromGameMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RemovedFromGameMessage_descriptor_; + metadata.reflection = RemovedFromGameMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int KickPlayerRequestMessage::kGameIdFieldNumber; +const int KickPlayerRequestMessage::kPlayerIdFieldNumber; +#endif // !_MSC_VER + +KickPlayerRequestMessage::KickPlayerRequestMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void KickPlayerRequestMessage::InitAsDefaultInstance() { +} + +KickPlayerRequestMessage::KickPlayerRequestMessage(const KickPlayerRequestMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void KickPlayerRequestMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + playerid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +KickPlayerRequestMessage::~KickPlayerRequestMessage() { + SharedDtor(); +} + +void KickPlayerRequestMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void KickPlayerRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* KickPlayerRequestMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return KickPlayerRequestMessage_descriptor_; +} + +const KickPlayerRequestMessage& KickPlayerRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +KickPlayerRequestMessage* KickPlayerRequestMessage::default_instance_ = NULL; + +KickPlayerRequestMessage* KickPlayerRequestMessage::New() const { + return new KickPlayerRequestMessage; +} + +void KickPlayerRequestMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + playerid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool KickPlayerRequestMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerId; + break; + } + + // required uint32 playerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void KickPlayerRequestMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* KickPlayerRequestMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->playerid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int KickPlayerRequestMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void KickPlayerRequestMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const KickPlayerRequestMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void KickPlayerRequestMessage::MergeFrom(const KickPlayerRequestMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void KickPlayerRequestMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void KickPlayerRequestMessage::CopyFrom(const KickPlayerRequestMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool KickPlayerRequestMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void KickPlayerRequestMessage::Swap(KickPlayerRequestMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(playerid_, other->playerid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata KickPlayerRequestMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = KickPlayerRequestMessage_descriptor_; + metadata.reflection = KickPlayerRequestMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int LeaveGameRequestMessage::kGameIdFieldNumber; +#endif // !_MSC_VER + +LeaveGameRequestMessage::LeaveGameRequestMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void LeaveGameRequestMessage::InitAsDefaultInstance() { +} + +LeaveGameRequestMessage::LeaveGameRequestMessage(const LeaveGameRequestMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void LeaveGameRequestMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +LeaveGameRequestMessage::~LeaveGameRequestMessage() { + SharedDtor(); +} + +void LeaveGameRequestMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void LeaveGameRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LeaveGameRequestMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return LeaveGameRequestMessage_descriptor_; +} + +const LeaveGameRequestMessage& LeaveGameRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +LeaveGameRequestMessage* LeaveGameRequestMessage::default_instance_ = NULL; + +LeaveGameRequestMessage* LeaveGameRequestMessage::New() const { + return new LeaveGameRequestMessage; +} + +void LeaveGameRequestMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool LeaveGameRequestMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void LeaveGameRequestMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* LeaveGameRequestMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int LeaveGameRequestMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void LeaveGameRequestMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const LeaveGameRequestMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void LeaveGameRequestMessage::MergeFrom(const LeaveGameRequestMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void LeaveGameRequestMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void LeaveGameRequestMessage::CopyFrom(const LeaveGameRequestMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool LeaveGameRequestMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void LeaveGameRequestMessage::Swap(LeaveGameRequestMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata LeaveGameRequestMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = LeaveGameRequestMessage_descriptor_; + metadata.reflection = LeaveGameRequestMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int InvitePlayerToGameMessage::kGameIdFieldNumber; +const int InvitePlayerToGameMessage::kPlayerIdFieldNumber; +#endif // !_MSC_VER + +InvitePlayerToGameMessage::InvitePlayerToGameMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void InvitePlayerToGameMessage::InitAsDefaultInstance() { +} + +InvitePlayerToGameMessage::InvitePlayerToGameMessage(const InvitePlayerToGameMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void InvitePlayerToGameMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + playerid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +InvitePlayerToGameMessage::~InvitePlayerToGameMessage() { + SharedDtor(); +} + +void InvitePlayerToGameMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void InvitePlayerToGameMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* InvitePlayerToGameMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return InvitePlayerToGameMessage_descriptor_; +} + +const InvitePlayerToGameMessage& InvitePlayerToGameMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +InvitePlayerToGameMessage* InvitePlayerToGameMessage::default_instance_ = NULL; + +InvitePlayerToGameMessage* InvitePlayerToGameMessage::New() const { + return new InvitePlayerToGameMessage; +} + +void InvitePlayerToGameMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + playerid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool InvitePlayerToGameMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerId; + break; + } + + // required uint32 playerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void InvitePlayerToGameMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* InvitePlayerToGameMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->playerid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int InvitePlayerToGameMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void InvitePlayerToGameMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const InvitePlayerToGameMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void InvitePlayerToGameMessage::MergeFrom(const InvitePlayerToGameMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void InvitePlayerToGameMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InvitePlayerToGameMessage::CopyFrom(const InvitePlayerToGameMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InvitePlayerToGameMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void InvitePlayerToGameMessage::Swap(InvitePlayerToGameMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(playerid_, other->playerid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata InvitePlayerToGameMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = InvitePlayerToGameMessage_descriptor_; + metadata.reflection = InvitePlayerToGameMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int InviteNotifyMessage::kGameIdFieldNumber; +const int InviteNotifyMessage::kPlayerIdWhoFieldNumber; +const int InviteNotifyMessage::kPlayerIdByWhomFieldNumber; +#endif // !_MSC_VER + +InviteNotifyMessage::InviteNotifyMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void InviteNotifyMessage::InitAsDefaultInstance() { +} + +InviteNotifyMessage::InviteNotifyMessage(const InviteNotifyMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void InviteNotifyMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + playeridwho_ = 0u; + playeridbywhom_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +InviteNotifyMessage::~InviteNotifyMessage() { + SharedDtor(); +} + +void InviteNotifyMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void InviteNotifyMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* InviteNotifyMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return InviteNotifyMessage_descriptor_; +} + +const InviteNotifyMessage& InviteNotifyMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +InviteNotifyMessage* InviteNotifyMessage::default_instance_ = NULL; + +InviteNotifyMessage* InviteNotifyMessage::New() const { + return new InviteNotifyMessage; +} + +void InviteNotifyMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + playeridwho_ = 0u; + playeridbywhom_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool InviteNotifyMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerIdWho; + break; + } + + // required uint32 playerIdWho = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerIdWho: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playeridwho_))); + set_has_playeridwho(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_playerIdByWhom; + break; + } + + // required uint32 playerIdByWhom = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerIdByWhom: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playeridbywhom_))); + set_has_playeridbywhom(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void InviteNotifyMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 playerIdWho = 2; + if (has_playeridwho()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playeridwho(), output); + } + + // required uint32 playerIdByWhom = 3; + if (has_playeridbywhom()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->playeridbywhom(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* InviteNotifyMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 playerIdWho = 2; + if (has_playeridwho()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->playeridwho(), target); + } + + // required uint32 playerIdByWhom = 3; + if (has_playeridbywhom()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->playeridbywhom(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int InviteNotifyMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 playerIdWho = 2; + if (has_playeridwho()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playeridwho()); + } + + // required uint32 playerIdByWhom = 3; + if (has_playeridbywhom()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playeridbywhom()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void InviteNotifyMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const InviteNotifyMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void InviteNotifyMessage::MergeFrom(const InviteNotifyMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_playeridwho()) { + set_playeridwho(from.playeridwho()); + } + if (from.has_playeridbywhom()) { + set_playeridbywhom(from.playeridbywhom()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void InviteNotifyMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void InviteNotifyMessage::CopyFrom(const InviteNotifyMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool InviteNotifyMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void InviteNotifyMessage::Swap(InviteNotifyMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(playeridwho_, other->playeridwho_); + std::swap(playeridbywhom_, other->playeridbywhom_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata InviteNotifyMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = InviteNotifyMessage_descriptor_; + metadata.reflection = InviteNotifyMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* RejectGameInvitationMessage_RejectGameInvReason_descriptor() { + protobuf_AssignDescriptorsOnce(); + return RejectGameInvitationMessage_RejectGameInvReason_descriptor_; +} +bool RejectGameInvitationMessage_RejectGameInvReason_IsValid(int value) { + switch(value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::rejectReasonNo; +const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::rejectReasonBusy; +const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::RejectGameInvReason_MIN; +const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::RejectGameInvReason_MAX; +const int RejectGameInvitationMessage::RejectGameInvReason_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int RejectGameInvitationMessage::kGameIdFieldNumber; +const int RejectGameInvitationMessage::kMyRejectReasonFieldNumber; +#endif // !_MSC_VER + +RejectGameInvitationMessage::RejectGameInvitationMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RejectGameInvitationMessage::InitAsDefaultInstance() { +} + +RejectGameInvitationMessage::RejectGameInvitationMessage(const RejectGameInvitationMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RejectGameInvitationMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + myrejectreason_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RejectGameInvitationMessage::~RejectGameInvitationMessage() { + SharedDtor(); +} + +void RejectGameInvitationMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void RejectGameInvitationMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RejectGameInvitationMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RejectGameInvitationMessage_descriptor_; +} + +const RejectGameInvitationMessage& RejectGameInvitationMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +RejectGameInvitationMessage* RejectGameInvitationMessage::default_instance_ = NULL; + +RejectGameInvitationMessage* RejectGameInvitationMessage::New() const { + return new RejectGameInvitationMessage; +} + +void RejectGameInvitationMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + myrejectreason_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RejectGameInvitationMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_myRejectReason; + break; + } + + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_myRejectReason: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::RejectGameInvitationMessage_RejectGameInvReason_IsValid(value)) { + set_myrejectreason(static_cast< ::RejectGameInvitationMessage_RejectGameInvReason >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RejectGameInvitationMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; + if (has_myrejectreason()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->myrejectreason(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RejectGameInvitationMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; + if (has_myrejectreason()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->myrejectreason(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RejectGameInvitationMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; + if (has_myrejectreason()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->myrejectreason()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RejectGameInvitationMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RejectGameInvitationMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RejectGameInvitationMessage::MergeFrom(const RejectGameInvitationMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_myrejectreason()) { + set_myrejectreason(from.myrejectreason()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RejectGameInvitationMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RejectGameInvitationMessage::CopyFrom(const RejectGameInvitationMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RejectGameInvitationMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void RejectGameInvitationMessage::Swap(RejectGameInvitationMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(myrejectreason_, other->myrejectreason_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RejectGameInvitationMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RejectGameInvitationMessage_descriptor_; + metadata.reflection = RejectGameInvitationMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int RejectInvNotifyMessage::kGameIdFieldNumber; +const int RejectInvNotifyMessage::kPlayerIdFieldNumber; +const int RejectInvNotifyMessage::kPlayerRejectReasonFieldNumber; +#endif // !_MSC_VER + +RejectInvNotifyMessage::RejectInvNotifyMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void RejectInvNotifyMessage::InitAsDefaultInstance() { +} + +RejectInvNotifyMessage::RejectInvNotifyMessage(const RejectInvNotifyMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void RejectInvNotifyMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + playerid_ = 0u; + playerrejectreason_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +RejectInvNotifyMessage::~RejectInvNotifyMessage() { + SharedDtor(); +} + +void RejectInvNotifyMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void RejectInvNotifyMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* RejectInvNotifyMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return RejectInvNotifyMessage_descriptor_; +} + +const RejectInvNotifyMessage& RejectInvNotifyMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +RejectInvNotifyMessage* RejectInvNotifyMessage::default_instance_ = NULL; + +RejectInvNotifyMessage* RejectInvNotifyMessage::New() const { + return new RejectInvNotifyMessage; +} + +void RejectInvNotifyMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + playerid_ = 0u; + playerrejectreason_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool RejectInvNotifyMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerId; + break; + } + + // required uint32 playerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_playerRejectReason; + break; + } + + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerRejectReason: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::RejectGameInvitationMessage_RejectGameInvReason_IsValid(value)) { + set_playerrejectreason(static_cast< ::RejectGameInvitationMessage_RejectGameInvReason >(value)); + } else { + mutable_unknown_fields()->AddVarint(3, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void RejectInvNotifyMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); + } + + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; + if (has_playerrejectreason()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->playerrejectreason(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* RejectInvNotifyMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->playerid(), target); + } + + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; + if (has_playerrejectreason()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->playerrejectreason(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int RejectInvNotifyMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; + if (has_playerrejectreason()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->playerrejectreason()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void RejectInvNotifyMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const RejectInvNotifyMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void RejectInvNotifyMessage::MergeFrom(const RejectInvNotifyMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + if (from.has_playerrejectreason()) { + set_playerrejectreason(from.playerrejectreason()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void RejectInvNotifyMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void RejectInvNotifyMessage::CopyFrom(const RejectInvNotifyMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool RejectInvNotifyMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void RejectInvNotifyMessage::Swap(RejectInvNotifyMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(playerid_, other->playerid_); + std::swap(playerrejectreason_, other->playerrejectreason_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata RejectInvNotifyMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = RejectInvNotifyMessage_descriptor_; + metadata.reflection = RejectInvNotifyMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* StartEventMessage_StartEventType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return StartEventMessage_StartEventType_descriptor_; +} +bool StartEventMessage_StartEventType_IsValid(int value) { + switch(value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const StartEventMessage_StartEventType StartEventMessage::startEvent; +const StartEventMessage_StartEventType StartEventMessage::rejoinEvent; +const StartEventMessage_StartEventType StartEventMessage::StartEventType_MIN; +const StartEventMessage_StartEventType StartEventMessage::StartEventType_MAX; +const int StartEventMessage::StartEventType_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int StartEventMessage::kGameIdFieldNumber; +const int StartEventMessage::kStartEventTypeFieldNumber; +const int StartEventMessage::kFillWithComputerPlayersFieldNumber; +#endif // !_MSC_VER + +StartEventMessage::StartEventMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void StartEventMessage::InitAsDefaultInstance() { +} + +StartEventMessage::StartEventMessage(const StartEventMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void StartEventMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + starteventtype_ = 0; + fillwithcomputerplayers_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +StartEventMessage::~StartEventMessage() { + SharedDtor(); +} + +void StartEventMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void StartEventMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StartEventMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return StartEventMessage_descriptor_; +} + +const StartEventMessage& StartEventMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +StartEventMessage* StartEventMessage::default_instance_ = NULL; + +StartEventMessage* StartEventMessage::New() const { + return new StartEventMessage; +} + +void StartEventMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + starteventtype_ = 0; + fillwithcomputerplayers_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool StartEventMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_startEventType; + break; + } + + // required .StartEventMessage.StartEventType startEventType = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_startEventType: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::StartEventMessage_StartEventType_IsValid(value)) { + set_starteventtype(static_cast< ::StartEventMessage_StartEventType >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_fillWithComputerPlayers; + break; + } + + // optional bool fillWithComputerPlayers = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_fillWithComputerPlayers: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &fillwithcomputerplayers_))); + set_has_fillwithcomputerplayers(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void StartEventMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required .StartEventMessage.StartEventType startEventType = 2; + if (has_starteventtype()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->starteventtype(), output); + } + + // optional bool fillWithComputerPlayers = 3; + if (has_fillwithcomputerplayers()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->fillwithcomputerplayers(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* StartEventMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required .StartEventMessage.StartEventType startEventType = 2; + if (has_starteventtype()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->starteventtype(), target); + } + + // optional bool fillWithComputerPlayers = 3; + if (has_fillwithcomputerplayers()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->fillwithcomputerplayers(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int StartEventMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required .StartEventMessage.StartEventType startEventType = 2; + if (has_starteventtype()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->starteventtype()); + } + + // optional bool fillWithComputerPlayers = 3; + if (has_fillwithcomputerplayers()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void StartEventMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const StartEventMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void StartEventMessage::MergeFrom(const StartEventMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_starteventtype()) { + set_starteventtype(from.starteventtype()); + } + if (from.has_fillwithcomputerplayers()) { + set_fillwithcomputerplayers(from.fillwithcomputerplayers()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void StartEventMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StartEventMessage::CopyFrom(const StartEventMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StartEventMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void StartEventMessage::Swap(StartEventMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(starteventtype_, other->starteventtype_); + std::swap(fillwithcomputerplayers_, other->fillwithcomputerplayers_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata StartEventMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = StartEventMessage_descriptor_; + metadata.reflection = StartEventMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int StartEventAckMessage::kGameIdFieldNumber; +#endif // !_MSC_VER + +StartEventAckMessage::StartEventAckMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void StartEventAckMessage::InitAsDefaultInstance() { +} + +StartEventAckMessage::StartEventAckMessage(const StartEventAckMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void StartEventAckMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +StartEventAckMessage::~StartEventAckMessage() { + SharedDtor(); +} + +void StartEventAckMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void StartEventAckMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StartEventAckMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return StartEventAckMessage_descriptor_; +} + +const StartEventAckMessage& StartEventAckMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +StartEventAckMessage* StartEventAckMessage::default_instance_ = NULL; + +StartEventAckMessage* StartEventAckMessage::New() const { + return new StartEventAckMessage; +} + +void StartEventAckMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool StartEventAckMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void StartEventAckMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* StartEventAckMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int StartEventAckMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void StartEventAckMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const StartEventAckMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void StartEventAckMessage::MergeFrom(const StartEventAckMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void StartEventAckMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StartEventAckMessage::CopyFrom(const StartEventAckMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StartEventAckMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void StartEventAckMessage::Swap(StartEventAckMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata StartEventAckMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = StartEventAckMessage_descriptor_; + metadata.reflection = StartEventAckMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GameStartInitialMessage::kGameIdFieldNumber; +const int GameStartInitialMessage::kStartDealerPlayerIdFieldNumber; +const int GameStartInitialMessage::kPlayerSeatsFieldNumber; +#endif // !_MSC_VER + +GameStartInitialMessage::GameStartInitialMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GameStartInitialMessage::InitAsDefaultInstance() { +} + +GameStartInitialMessage::GameStartInitialMessage(const GameStartInitialMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GameStartInitialMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + startdealerplayerid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GameStartInitialMessage::~GameStartInitialMessage() { + SharedDtor(); +} + +void GameStartInitialMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void GameStartInitialMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GameStartInitialMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GameStartInitialMessage_descriptor_; +} + +const GameStartInitialMessage& GameStartInitialMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +GameStartInitialMessage* GameStartInitialMessage::default_instance_ = NULL; + +GameStartInitialMessage* GameStartInitialMessage::New() const { + return new GameStartInitialMessage; +} + +void GameStartInitialMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + startdealerplayerid_ = 0u; + } + playerseats_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GameStartInitialMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_startDealerPlayerId; + break; + } + + // required uint32 startDealerPlayerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_startDealerPlayerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &startdealerplayerid_))); + set_has_startdealerplayerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_playerSeats; + break; + } + + // repeated uint32 playerSeats = 3 [packed = true]; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_playerSeats: + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, this->mutable_playerseats()))); + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + 1, 26, input, this->mutable_playerseats()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GameStartInitialMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 startDealerPlayerId = 2; + if (has_startdealerplayerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->startdealerplayerid(), output); + } + + // repeated uint32 playerSeats = 3 [packed = true]; + if (this->playerseats_size() > 0) { + ::google::protobuf::internal::WireFormatLite::WriteTag(3, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_playerseats_cached_byte_size_); + } + for (int i = 0; i < this->playerseats_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( + this->playerseats(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GameStartInitialMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 startDealerPlayerId = 2; + if (has_startdealerplayerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->startdealerplayerid(), target); + } + + // repeated uint32 playerSeats = 3 [packed = true]; + if (this->playerseats_size() > 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + 3, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( + _playerseats_cached_byte_size_, target); + } + for (int i = 0; i < this->playerseats_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteUInt32NoTagToArray(this->playerseats(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GameStartInitialMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 startDealerPlayerId = 2; + if (has_startdealerplayerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->startdealerplayerid()); + } + + } + // repeated uint32 playerSeats = 3 [packed = true]; + { + int data_size = 0; + for (int i = 0; i < this->playerseats_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite:: + UInt32Size(this->playerseats(i)); + } + if (data_size > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); + } + _playerseats_cached_byte_size_ = data_size; + total_size += data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GameStartInitialMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GameStartInitialMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GameStartInitialMessage::MergeFrom(const GameStartInitialMessage& from) { + GOOGLE_CHECK_NE(&from, this); + playerseats_.MergeFrom(from.playerseats_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_startdealerplayerid()) { + set_startdealerplayerid(from.startdealerplayerid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GameStartInitialMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GameStartInitialMessage::CopyFrom(const GameStartInitialMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameStartInitialMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void GameStartInitialMessage::Swap(GameStartInitialMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(startdealerplayerid_, other->startdealerplayerid_); + playerseats_.Swap(&other->playerseats_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GameStartInitialMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GameStartInitialMessage_descriptor_; + metadata.reflection = GameStartInitialMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GameStartRejoinMessage_RejoinPlayerData::kPlayerIdFieldNumber; +const int GameStartRejoinMessage_RejoinPlayerData::kPlayerMoneyFieldNumber; +#endif // !_MSC_VER + +GameStartRejoinMessage_RejoinPlayerData::GameStartRejoinMessage_RejoinPlayerData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GameStartRejoinMessage_RejoinPlayerData::InitAsDefaultInstance() { +} + +GameStartRejoinMessage_RejoinPlayerData::GameStartRejoinMessage_RejoinPlayerData(const GameStartRejoinMessage_RejoinPlayerData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GameStartRejoinMessage_RejoinPlayerData::SharedCtor() { + _cached_size_ = 0; + playerid_ = 0u; + playermoney_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GameStartRejoinMessage_RejoinPlayerData::~GameStartRejoinMessage_RejoinPlayerData() { + SharedDtor(); +} + +void GameStartRejoinMessage_RejoinPlayerData::SharedDtor() { + if (this != default_instance_) { + } +} + +void GameStartRejoinMessage_RejoinPlayerData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GameStartRejoinMessage_RejoinPlayerData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GameStartRejoinMessage_RejoinPlayerData_descriptor_; +} + +const GameStartRejoinMessage_RejoinPlayerData& GameStartRejoinMessage_RejoinPlayerData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +GameStartRejoinMessage_RejoinPlayerData* GameStartRejoinMessage_RejoinPlayerData::default_instance_ = NULL; + +GameStartRejoinMessage_RejoinPlayerData* GameStartRejoinMessage_RejoinPlayerData::New() const { + return new GameStartRejoinMessage_RejoinPlayerData; +} + +void GameStartRejoinMessage_RejoinPlayerData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + playerid_ = 0u; + playermoney_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GameStartRejoinMessage_RejoinPlayerData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 playerId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerMoney; + break; + } + + // required uint32 playerMoney = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerMoney: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playermoney_))); + set_has_playermoney(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GameStartRejoinMessage_RejoinPlayerData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 playerId = 1; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); + } + + // required uint32 playerMoney = 2; + if (has_playermoney()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playermoney(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GameStartRejoinMessage_RejoinPlayerData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 playerId = 1; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->playerid(), target); + } + + // required uint32 playerMoney = 2; + if (has_playermoney()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->playermoney(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GameStartRejoinMessage_RejoinPlayerData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 playerId = 1; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + // required uint32 playerMoney = 2; + if (has_playermoney()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playermoney()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GameStartRejoinMessage_RejoinPlayerData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GameStartRejoinMessage_RejoinPlayerData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GameStartRejoinMessage_RejoinPlayerData::MergeFrom(const GameStartRejoinMessage_RejoinPlayerData& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + if (from.has_playermoney()) { + set_playermoney(from.playermoney()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GameStartRejoinMessage_RejoinPlayerData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GameStartRejoinMessage_RejoinPlayerData::CopyFrom(const GameStartRejoinMessage_RejoinPlayerData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameStartRejoinMessage_RejoinPlayerData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void GameStartRejoinMessage_RejoinPlayerData::Swap(GameStartRejoinMessage_RejoinPlayerData* other) { + if (other != this) { + std::swap(playerid_, other->playerid_); + std::swap(playermoney_, other->playermoney_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GameStartRejoinMessage_RejoinPlayerData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GameStartRejoinMessage_RejoinPlayerData_descriptor_; + metadata.reflection = GameStartRejoinMessage_RejoinPlayerData_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int GameStartRejoinMessage::kGameIdFieldNumber; +const int GameStartRejoinMessage::kStartDealerPlayerIdFieldNumber; +const int GameStartRejoinMessage::kHandNumFieldNumber; +const int GameStartRejoinMessage::kRejoinPlayerDataFieldNumber; +#endif // !_MSC_VER + +GameStartRejoinMessage::GameStartRejoinMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void GameStartRejoinMessage::InitAsDefaultInstance() { +} + +GameStartRejoinMessage::GameStartRejoinMessage(const GameStartRejoinMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void GameStartRejoinMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + startdealerplayerid_ = 0u; + handnum_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GameStartRejoinMessage::~GameStartRejoinMessage() { + SharedDtor(); +} + +void GameStartRejoinMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void GameStartRejoinMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GameStartRejoinMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GameStartRejoinMessage_descriptor_; +} + +const GameStartRejoinMessage& GameStartRejoinMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +GameStartRejoinMessage* GameStartRejoinMessage::default_instance_ = NULL; + +GameStartRejoinMessage* GameStartRejoinMessage::New() const { + return new GameStartRejoinMessage; +} + +void GameStartRejoinMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + startdealerplayerid_ = 0u; + handnum_ = 0u; + } + rejoinplayerdata_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool GameStartRejoinMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_startDealerPlayerId; + break; + } + + // required uint32 startDealerPlayerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_startDealerPlayerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &startdealerplayerid_))); + set_has_startdealerplayerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_handNum; + break; + } + + // required uint32 handNum = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_handNum: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &handnum_))); + set_has_handnum(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_rejoinPlayerData; + break; + } + + // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_rejoinPlayerData: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_rejoinplayerdata())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_rejoinPlayerData; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void GameStartRejoinMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 startDealerPlayerId = 2; + if (has_startdealerplayerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->startdealerplayerid(), output); + } + + // required uint32 handNum = 3; + if (has_handnum()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->handnum(), output); + } + + // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; + for (int i = 0; i < this->rejoinplayerdata_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->rejoinplayerdata(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* GameStartRejoinMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 startDealerPlayerId = 2; + if (has_startdealerplayerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->startdealerplayerid(), target); + } + + // required uint32 handNum = 3; + if (has_handnum()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->handnum(), target); + } + + // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; + for (int i = 0; i < this->rejoinplayerdata_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->rejoinplayerdata(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int GameStartRejoinMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 startDealerPlayerId = 2; + if (has_startdealerplayerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->startdealerplayerid()); + } + + // required uint32 handNum = 3; + if (has_handnum()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->handnum()); + } + + } + // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; + total_size += 1 * this->rejoinplayerdata_size(); + for (int i = 0; i < this->rejoinplayerdata_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->rejoinplayerdata(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void GameStartRejoinMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const GameStartRejoinMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void GameStartRejoinMessage::MergeFrom(const GameStartRejoinMessage& from) { + GOOGLE_CHECK_NE(&from, this); + rejoinplayerdata_.MergeFrom(from.rejoinplayerdata_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_startdealerplayerid()) { + set_startdealerplayerid(from.startdealerplayerid()); + } + if (from.has_handnum()) { + set_handnum(from.handnum()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void GameStartRejoinMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GameStartRejoinMessage::CopyFrom(const GameStartRejoinMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GameStartRejoinMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + for (int i = 0; i < rejoinplayerdata_size(); i++) { + if (!this->rejoinplayerdata(i).IsInitialized()) return false; + } + return true; +} + +void GameStartRejoinMessage::Swap(GameStartRejoinMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(startdealerplayerid_, other->startdealerplayerid_); + std::swap(handnum_, other->handnum_); + rejoinplayerdata_.Swap(&other->rejoinplayerdata_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata GameStartRejoinMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GameStartRejoinMessage_descriptor_; + metadata.reflection = GameStartRejoinMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int HandStartMessage_PlainCards::kPlainCard1FieldNumber; +const int HandStartMessage_PlainCards::kPlainCard2FieldNumber; +#endif // !_MSC_VER + +HandStartMessage_PlainCards::HandStartMessage_PlainCards() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void HandStartMessage_PlainCards::InitAsDefaultInstance() { +} + +HandStartMessage_PlainCards::HandStartMessage_PlainCards(const HandStartMessage_PlainCards& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void HandStartMessage_PlainCards::SharedCtor() { + _cached_size_ = 0; + plaincard1_ = 0u; + plaincard2_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +HandStartMessage_PlainCards::~HandStartMessage_PlainCards() { + SharedDtor(); +} + +void HandStartMessage_PlainCards::SharedDtor() { + if (this != default_instance_) { + } +} + +void HandStartMessage_PlainCards::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* HandStartMessage_PlainCards::descriptor() { + protobuf_AssignDescriptorsOnce(); + return HandStartMessage_PlainCards_descriptor_; +} + +const HandStartMessage_PlainCards& HandStartMessage_PlainCards::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +HandStartMessage_PlainCards* HandStartMessage_PlainCards::default_instance_ = NULL; + +HandStartMessage_PlainCards* HandStartMessage_PlainCards::New() const { + return new HandStartMessage_PlainCards; +} + +void HandStartMessage_PlainCards::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + plaincard1_ = 0u; + plaincard2_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool HandStartMessage_PlainCards::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 plainCard1 = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &plaincard1_))); + set_has_plaincard1(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_plainCard2; + break; + } + + // required uint32 plainCard2 = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_plainCard2: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &plaincard2_))); + set_has_plaincard2(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void HandStartMessage_PlainCards::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 plainCard1 = 1; + if (has_plaincard1()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->plaincard1(), output); + } + + // required uint32 plainCard2 = 2; + if (has_plaincard2()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->plaincard2(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* HandStartMessage_PlainCards::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 plainCard1 = 1; + if (has_plaincard1()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->plaincard1(), target); + } + + // required uint32 plainCard2 = 2; + if (has_plaincard2()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->plaincard2(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int HandStartMessage_PlainCards::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 plainCard1 = 1; + if (has_plaincard1()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->plaincard1()); + } + + // required uint32 plainCard2 = 2; + if (has_plaincard2()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->plaincard2()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void HandStartMessage_PlainCards::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const HandStartMessage_PlainCards* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void HandStartMessage_PlainCards::MergeFrom(const HandStartMessage_PlainCards& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_plaincard1()) { + set_plaincard1(from.plaincard1()); + } + if (from.has_plaincard2()) { + set_plaincard2(from.plaincard2()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void HandStartMessage_PlainCards::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HandStartMessage_PlainCards::CopyFrom(const HandStartMessage_PlainCards& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HandStartMessage_PlainCards::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void HandStartMessage_PlainCards::Swap(HandStartMessage_PlainCards* other) { + if (other != this) { + std::swap(plaincard1_, other->plaincard1_); + std::swap(plaincard2_, other->plaincard2_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata HandStartMessage_PlainCards::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = HandStartMessage_PlainCards_descriptor_; + metadata.reflection = HandStartMessage_PlainCards_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int HandStartMessage::kGameIdFieldNumber; +const int HandStartMessage::kPlainCardsFieldNumber; +const int HandStartMessage::kEncryptedCardsFieldNumber; +const int HandStartMessage::kSmallBlindFieldNumber; +const int HandStartMessage::kSeatStatesFieldNumber; +#endif // !_MSC_VER + +HandStartMessage::HandStartMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void HandStartMessage::InitAsDefaultInstance() { + plaincards_ = const_cast< ::HandStartMessage_PlainCards*>(&::HandStartMessage_PlainCards::default_instance()); +} + +HandStartMessage::HandStartMessage(const HandStartMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void HandStartMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + plaincards_ = NULL; + encryptedcards_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + smallblind_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +HandStartMessage::~HandStartMessage() { + SharedDtor(); +} + +void HandStartMessage::SharedDtor() { + if (encryptedcards_ != &::google::protobuf::internal::kEmptyString) { + delete encryptedcards_; + } + if (this != default_instance_) { + delete plaincards_; + } +} + +void HandStartMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* HandStartMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return HandStartMessage_descriptor_; +} + +const HandStartMessage& HandStartMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +HandStartMessage* HandStartMessage::default_instance_ = NULL; + +HandStartMessage* HandStartMessage::New() const { + return new HandStartMessage; +} + +void HandStartMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + if (has_plaincards()) { + if (plaincards_ != NULL) plaincards_->::HandStartMessage_PlainCards::Clear(); + } + if (has_encryptedcards()) { + if (encryptedcards_ != &::google::protobuf::internal::kEmptyString) { + encryptedcards_->clear(); + } + } + smallblind_ = 0u; + } + seatstates_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool HandStartMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_plainCards; + break; + } + + // optional .HandStartMessage.PlainCards plainCards = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_plainCards: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_plaincards())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_encryptedCards; + break; + } + + // optional bytes encryptedCards = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_encryptedCards: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_encryptedcards())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_smallBlind; + break; + } + + // required uint32 smallBlind = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_smallBlind: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &smallblind_))); + set_has_smallblind(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_seatStates; + break; + } + + // repeated .NetPlayerState seatStates = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_seatStates: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (NetPlayerState_IsValid(value)) { + add_seatstates(static_cast< NetPlayerState >(value)); + } else { + mutable_unknown_fields()->AddVarint(5, value); + } + } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) + == ::google::protobuf::internal::WireFormatLite:: + WIRETYPE_LENGTH_DELIMITED) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline( + input, + &NetPlayerState_IsValid, + this->mutable_seatstates()))); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_seatStates; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void HandStartMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // optional .HandStartMessage.PlainCards plainCards = 2; + if (has_plaincards()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->plaincards(), output); + } + + // optional bytes encryptedCards = 3; + if (has_encryptedcards()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 3, this->encryptedcards(), output); + } + + // required uint32 smallBlind = 4; + if (has_smallblind()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->smallblind(), output); + } + + // repeated .NetPlayerState seatStates = 5; + for (int i = 0; i < this->seatstates_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 5, this->seatstates(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* HandStartMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // optional .HandStartMessage.PlainCards plainCards = 2; + if (has_plaincards()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->plaincards(), target); + } + + // optional bytes encryptedCards = 3; + if (has_encryptedcards()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 3, this->encryptedcards(), target); + } + + // required uint32 smallBlind = 4; + if (has_smallblind()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->smallblind(), target); + } + + // repeated .NetPlayerState seatStates = 5; + for (int i = 0; i < this->seatstates_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 5, this->seatstates(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int HandStartMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // optional .HandStartMessage.PlainCards plainCards = 2; + if (has_plaincards()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->plaincards()); + } + + // optional bytes encryptedCards = 3; + if (has_encryptedcards()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->encryptedcards()); + } + + // required uint32 smallBlind = 4; + if (has_smallblind()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->smallblind()); + } + + } + // repeated .NetPlayerState seatStates = 5; + { + int data_size = 0; + for (int i = 0; i < this->seatstates_size(); i++) { + data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( + this->seatstates(i)); + } + total_size += 1 * this->seatstates_size() + data_size; + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void HandStartMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const HandStartMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void HandStartMessage::MergeFrom(const HandStartMessage& from) { + GOOGLE_CHECK_NE(&from, this); + seatstates_.MergeFrom(from.seatstates_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_plaincards()) { + mutable_plaincards()->::HandStartMessage_PlainCards::MergeFrom(from.plaincards()); + } + if (from.has_encryptedcards()) { + set_encryptedcards(from.encryptedcards()); + } + if (from.has_smallblind()) { + set_smallblind(from.smallblind()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void HandStartMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void HandStartMessage::CopyFrom(const HandStartMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool HandStartMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000009) != 0x00000009) return false; + + if (has_plaincards()) { + if (!this->plaincards().IsInitialized()) return false; + } + return true; +} + +void HandStartMessage::Swap(HandStartMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(plaincards_, other->plaincards_); + std::swap(encryptedcards_, other->encryptedcards_); + std::swap(smallblind_, other->smallblind_); + seatstates_.Swap(&other->seatstates_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata HandStartMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = HandStartMessage_descriptor_; + metadata.reflection = HandStartMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int PlayersTurnMessage::kGameIdFieldNumber; +const int PlayersTurnMessage::kPlayerIdFieldNumber; +const int PlayersTurnMessage::kGameStateFieldNumber; +#endif // !_MSC_VER + +PlayersTurnMessage::PlayersTurnMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void PlayersTurnMessage::InitAsDefaultInstance() { +} + +PlayersTurnMessage::PlayersTurnMessage(const PlayersTurnMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void PlayersTurnMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + playerid_ = 0u; + gamestate_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PlayersTurnMessage::~PlayersTurnMessage() { + SharedDtor(); +} + +void PlayersTurnMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void PlayersTurnMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PlayersTurnMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PlayersTurnMessage_descriptor_; +} + +const PlayersTurnMessage& PlayersTurnMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +PlayersTurnMessage* PlayersTurnMessage::default_instance_ = NULL; + +PlayersTurnMessage* PlayersTurnMessage::New() const { + return new PlayersTurnMessage; +} + +void PlayersTurnMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + playerid_ = 0u; + gamestate_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool PlayersTurnMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerId; + break; + } + + // required uint32 playerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_gameState; + break; + } + + // required .NetGameState gameState = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_gameState: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (NetGameState_IsValid(value)) { + set_gamestate(static_cast< NetGameState >(value)); + } else { + mutable_unknown_fields()->AddVarint(3, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void PlayersTurnMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); + } + + // required .NetGameState gameState = 3; + if (has_gamestate()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->gamestate(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* PlayersTurnMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->playerid(), target); + } + + // required .NetGameState gameState = 3; + if (has_gamestate()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->gamestate(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int PlayersTurnMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + // required .NetGameState gameState = 3; + if (has_gamestate()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PlayersTurnMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const PlayersTurnMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void PlayersTurnMessage::MergeFrom(const PlayersTurnMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + if (from.has_gamestate()) { + set_gamestate(from.gamestate()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void PlayersTurnMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PlayersTurnMessage::CopyFrom(const PlayersTurnMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayersTurnMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void PlayersTurnMessage::Swap(PlayersTurnMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(playerid_, other->playerid_); + std::swap(gamestate_, other->gamestate_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata PlayersTurnMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PlayersTurnMessage_descriptor_; + metadata.reflection = PlayersTurnMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int MyActionRequestMessage::kGameIdFieldNumber; +const int MyActionRequestMessage::kHandNumFieldNumber; +const int MyActionRequestMessage::kGameStateFieldNumber; +const int MyActionRequestMessage::kMyActionFieldNumber; +const int MyActionRequestMessage::kMyRelativeBetFieldNumber; +#endif // !_MSC_VER + +MyActionRequestMessage::MyActionRequestMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void MyActionRequestMessage::InitAsDefaultInstance() { +} + +MyActionRequestMessage::MyActionRequestMessage(const MyActionRequestMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void MyActionRequestMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + handnum_ = 0u; + gamestate_ = 0; + myaction_ = 0; + myrelativebet_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +MyActionRequestMessage::~MyActionRequestMessage() { + SharedDtor(); +} + +void MyActionRequestMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void MyActionRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* MyActionRequestMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return MyActionRequestMessage_descriptor_; +} + +const MyActionRequestMessage& MyActionRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +MyActionRequestMessage* MyActionRequestMessage::default_instance_ = NULL; + +MyActionRequestMessage* MyActionRequestMessage::New() const { + return new MyActionRequestMessage; +} + +void MyActionRequestMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + handnum_ = 0u; + gamestate_ = 0; + myaction_ = 0; + myrelativebet_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool MyActionRequestMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_handNum; + break; + } + + // required uint32 handNum = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_handNum: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &handnum_))); + set_has_handnum(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_gameState; + break; + } + + // required .NetGameState gameState = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_gameState: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (NetGameState_IsValid(value)) { + set_gamestate(static_cast< NetGameState >(value)); + } else { + mutable_unknown_fields()->AddVarint(3, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_myAction; + break; + } + + // required .NetPlayerAction myAction = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_myAction: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (NetPlayerAction_IsValid(value)) { + set_myaction(static_cast< NetPlayerAction >(value)); + } else { + mutable_unknown_fields()->AddVarint(4, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_myRelativeBet; + break; + } + + // required uint32 myRelativeBet = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_myRelativeBet: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &myrelativebet_))); + set_has_myrelativebet(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void MyActionRequestMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 handNum = 2; + if (has_handnum()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->handnum(), output); + } + + // required .NetGameState gameState = 3; + if (has_gamestate()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->gamestate(), output); + } + + // required .NetPlayerAction myAction = 4; + if (has_myaction()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->myaction(), output); + } + + // required uint32 myRelativeBet = 5; + if (has_myrelativebet()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->myrelativebet(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* MyActionRequestMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 handNum = 2; + if (has_handnum()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->handnum(), target); + } + + // required .NetGameState gameState = 3; + if (has_gamestate()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->gamestate(), target); + } + + // required .NetPlayerAction myAction = 4; + if (has_myaction()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->myaction(), target); + } + + // required uint32 myRelativeBet = 5; + if (has_myrelativebet()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->myrelativebet(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int MyActionRequestMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 handNum = 2; + if (has_handnum()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->handnum()); + } + + // required .NetGameState gameState = 3; + if (has_gamestate()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); + } + + // required .NetPlayerAction myAction = 4; + if (has_myaction()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->myaction()); + } + + // required uint32 myRelativeBet = 5; + if (has_myrelativebet()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->myrelativebet()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void MyActionRequestMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const MyActionRequestMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void MyActionRequestMessage::MergeFrom(const MyActionRequestMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_handnum()) { + set_handnum(from.handnum()); + } + if (from.has_gamestate()) { + set_gamestate(from.gamestate()); + } + if (from.has_myaction()) { + set_myaction(from.myaction()); + } + if (from.has_myrelativebet()) { + set_myrelativebet(from.myrelativebet()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void MyActionRequestMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MyActionRequestMessage::CopyFrom(const MyActionRequestMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MyActionRequestMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; + + return true; +} + +void MyActionRequestMessage::Swap(MyActionRequestMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(handnum_, other->handnum_); + std::swap(gamestate_, other->gamestate_); + std::swap(myaction_, other->myaction_); + std::swap(myrelativebet_, other->myrelativebet_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata MyActionRequestMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = MyActionRequestMessage_descriptor_; + metadata.reflection = MyActionRequestMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* YourActionRejectedMessage_RejectionReason_descriptor() { + protobuf_AssignDescriptorsOnce(); + return YourActionRejectedMessage_RejectionReason_descriptor_; +} +bool YourActionRejectedMessage_RejectionReason_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectedInvalidGameState; +const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectedNotYourTurn; +const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectedActionNotAllowed; +const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::RejectionReason_MIN; +const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::RejectionReason_MAX; +const int YourActionRejectedMessage::RejectionReason_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int YourActionRejectedMessage::kGameIdFieldNumber; +const int YourActionRejectedMessage::kGameStateFieldNumber; +const int YourActionRejectedMessage::kYourActionFieldNumber; +const int YourActionRejectedMessage::kYourRelativeBetFieldNumber; +const int YourActionRejectedMessage::kRejectionReasonFieldNumber; +#endif // !_MSC_VER + +YourActionRejectedMessage::YourActionRejectedMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void YourActionRejectedMessage::InitAsDefaultInstance() { +} + +YourActionRejectedMessage::YourActionRejectedMessage(const YourActionRejectedMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void YourActionRejectedMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + gamestate_ = 0; + youraction_ = 0; + yourrelativebet_ = 0u; + rejectionreason_ = 1; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +YourActionRejectedMessage::~YourActionRejectedMessage() { + SharedDtor(); +} + +void YourActionRejectedMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void YourActionRejectedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* YourActionRejectedMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return YourActionRejectedMessage_descriptor_; +} + +const YourActionRejectedMessage& YourActionRejectedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +YourActionRejectedMessage* YourActionRejectedMessage::default_instance_ = NULL; + +YourActionRejectedMessage* YourActionRejectedMessage::New() const { + return new YourActionRejectedMessage; +} + +void YourActionRejectedMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + gamestate_ = 0; + youraction_ = 0; + yourrelativebet_ = 0u; + rejectionreason_ = 1; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool YourActionRejectedMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_gameState; + break; + } + + // required .NetGameState gameState = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_gameState: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (NetGameState_IsValid(value)) { + set_gamestate(static_cast< NetGameState >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_yourAction; + break; + } + + // required .NetPlayerAction yourAction = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_yourAction: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (NetPlayerAction_IsValid(value)) { + set_youraction(static_cast< NetPlayerAction >(value)); + } else { + mutable_unknown_fields()->AddVarint(3, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_yourRelativeBet; + break; + } + + // required uint32 yourRelativeBet = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_yourRelativeBet: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &yourrelativebet_))); + set_has_yourrelativebet(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_rejectionReason; + break; + } + + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_rejectionReason: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::YourActionRejectedMessage_RejectionReason_IsValid(value)) { + set_rejectionreason(static_cast< ::YourActionRejectedMessage_RejectionReason >(value)); + } else { + mutable_unknown_fields()->AddVarint(5, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void YourActionRejectedMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required .NetGameState gameState = 2; + if (has_gamestate()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->gamestate(), output); + } + + // required .NetPlayerAction yourAction = 3; + if (has_youraction()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->youraction(), output); + } + + // required uint32 yourRelativeBet = 4; + if (has_yourrelativebet()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->yourrelativebet(), output); + } + + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; + if (has_rejectionreason()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 5, this->rejectionreason(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* YourActionRejectedMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required .NetGameState gameState = 2; + if (has_gamestate()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->gamestate(), target); + } + + // required .NetPlayerAction yourAction = 3; + if (has_youraction()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->youraction(), target); + } + + // required uint32 yourRelativeBet = 4; + if (has_yourrelativebet()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->yourrelativebet(), target); + } + + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; + if (has_rejectionreason()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 5, this->rejectionreason(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int YourActionRejectedMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required .NetGameState gameState = 2; + if (has_gamestate()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); + } + + // required .NetPlayerAction yourAction = 3; + if (has_youraction()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->youraction()); + } + + // required uint32 yourRelativeBet = 4; + if (has_yourrelativebet()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->yourrelativebet()); + } + + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; + if (has_rejectionreason()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->rejectionreason()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void YourActionRejectedMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const YourActionRejectedMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void YourActionRejectedMessage::MergeFrom(const YourActionRejectedMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_gamestate()) { + set_gamestate(from.gamestate()); + } + if (from.has_youraction()) { + set_youraction(from.youraction()); + } + if (from.has_yourrelativebet()) { + set_yourrelativebet(from.yourrelativebet()); + } + if (from.has_rejectionreason()) { + set_rejectionreason(from.rejectionreason()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void YourActionRejectedMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void YourActionRejectedMessage::CopyFrom(const YourActionRejectedMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool YourActionRejectedMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; + + return true; +} + +void YourActionRejectedMessage::Swap(YourActionRejectedMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(gamestate_, other->gamestate_); + std::swap(youraction_, other->youraction_); + std::swap(yourrelativebet_, other->yourrelativebet_); + std::swap(rejectionreason_, other->rejectionreason_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata YourActionRejectedMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = YourActionRejectedMessage_descriptor_; + metadata.reflection = YourActionRejectedMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int PlayersActionDoneMessage::kGameIdFieldNumber; +const int PlayersActionDoneMessage::kPlayerIdFieldNumber; +const int PlayersActionDoneMessage::kGameStateFieldNumber; +const int PlayersActionDoneMessage::kPlayerActionFieldNumber; +const int PlayersActionDoneMessage::kTotalPlayerBetFieldNumber; +const int PlayersActionDoneMessage::kPlayerMoneyFieldNumber; +const int PlayersActionDoneMessage::kHighestSetFieldNumber; +const int PlayersActionDoneMessage::kMinimumRaiseFieldNumber; +#endif // !_MSC_VER + +PlayersActionDoneMessage::PlayersActionDoneMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void PlayersActionDoneMessage::InitAsDefaultInstance() { +} + +PlayersActionDoneMessage::PlayersActionDoneMessage(const PlayersActionDoneMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void PlayersActionDoneMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + playerid_ = 0u; + gamestate_ = 0; + playeraction_ = 0; + totalplayerbet_ = 0u; + playermoney_ = 0u; + highestset_ = 0u; + minimumraise_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PlayersActionDoneMessage::~PlayersActionDoneMessage() { + SharedDtor(); +} + +void PlayersActionDoneMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void PlayersActionDoneMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PlayersActionDoneMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PlayersActionDoneMessage_descriptor_; +} + +const PlayersActionDoneMessage& PlayersActionDoneMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +PlayersActionDoneMessage* PlayersActionDoneMessage::default_instance_ = NULL; + +PlayersActionDoneMessage* PlayersActionDoneMessage::New() const { + return new PlayersActionDoneMessage; +} + +void PlayersActionDoneMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + playerid_ = 0u; + gamestate_ = 0; + playeraction_ = 0; + totalplayerbet_ = 0u; + playermoney_ = 0u; + highestset_ = 0u; + minimumraise_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool PlayersActionDoneMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerId; + break; + } + + // required uint32 playerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_gameState; + break; + } + + // required .NetGameState gameState = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_gameState: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (NetGameState_IsValid(value)) { + set_gamestate(static_cast< NetGameState >(value)); + } else { + mutable_unknown_fields()->AddVarint(3, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_playerAction; + break; + } + + // required .NetPlayerAction playerAction = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerAction: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (NetPlayerAction_IsValid(value)) { + set_playeraction(static_cast< NetPlayerAction >(value)); + } else { + mutable_unknown_fields()->AddVarint(4, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_totalPlayerBet; + break; + } + + // required uint32 totalPlayerBet = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_totalPlayerBet: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &totalplayerbet_))); + set_has_totalplayerbet(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_playerMoney; + break; + } + + // required uint32 playerMoney = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerMoney: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playermoney_))); + set_has_playermoney(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(56)) goto parse_highestSet; + break; + } + + // required uint32 highestSet = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_highestSet: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &highestset_))); + set_has_highestset(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(64)) goto parse_minimumRaise; + break; + } + + // required uint32 minimumRaise = 8; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_minimumRaise: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &minimumraise_))); + set_has_minimumraise(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void PlayersActionDoneMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); + } + + // required .NetGameState gameState = 3; + if (has_gamestate()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->gamestate(), output); + } + + // required .NetPlayerAction playerAction = 4; + if (has_playeraction()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 4, this->playeraction(), output); + } + + // required uint32 totalPlayerBet = 5; + if (has_totalplayerbet()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->totalplayerbet(), output); + } + + // required uint32 playerMoney = 6; + if (has_playermoney()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->playermoney(), output); + } + + // required uint32 highestSet = 7; + if (has_highestset()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->highestset(), output); + } + + // required uint32 minimumRaise = 8; + if (has_minimumraise()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->minimumraise(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* PlayersActionDoneMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->playerid(), target); + } + + // required .NetGameState gameState = 3; + if (has_gamestate()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->gamestate(), target); + } + + // required .NetPlayerAction playerAction = 4; + if (has_playeraction()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 4, this->playeraction(), target); + } + + // required uint32 totalPlayerBet = 5; + if (has_totalplayerbet()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->totalplayerbet(), target); + } + + // required uint32 playerMoney = 6; + if (has_playermoney()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->playermoney(), target); + } + + // required uint32 highestSet = 7; + if (has_highestset()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->highestset(), target); + } + + // required uint32 minimumRaise = 8; + if (has_minimumraise()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->minimumraise(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int PlayersActionDoneMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + // required .NetGameState gameState = 3; + if (has_gamestate()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamestate()); + } + + // required .NetPlayerAction playerAction = 4; + if (has_playeraction()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->playeraction()); + } + + // required uint32 totalPlayerBet = 5; + if (has_totalplayerbet()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->totalplayerbet()); + } + + // required uint32 playerMoney = 6; + if (has_playermoney()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playermoney()); + } + + // required uint32 highestSet = 7; + if (has_highestset()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->highestset()); + } + + // required uint32 minimumRaise = 8; + if (has_minimumraise()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->minimumraise()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PlayersActionDoneMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const PlayersActionDoneMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void PlayersActionDoneMessage::MergeFrom(const PlayersActionDoneMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + if (from.has_gamestate()) { + set_gamestate(from.gamestate()); + } + if (from.has_playeraction()) { + set_playeraction(from.playeraction()); + } + if (from.has_totalplayerbet()) { + set_totalplayerbet(from.totalplayerbet()); + } + if (from.has_playermoney()) { + set_playermoney(from.playermoney()); + } + if (from.has_highestset()) { + set_highestset(from.highestset()); + } + if (from.has_minimumraise()) { + set_minimumraise(from.minimumraise()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void PlayersActionDoneMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PlayersActionDoneMessage::CopyFrom(const PlayersActionDoneMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayersActionDoneMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x000000ff) != 0x000000ff) return false; + + return true; +} + +void PlayersActionDoneMessage::Swap(PlayersActionDoneMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(playerid_, other->playerid_); + std::swap(gamestate_, other->gamestate_); + std::swap(playeraction_, other->playeraction_); + std::swap(totalplayerbet_, other->totalplayerbet_); + std::swap(playermoney_, other->playermoney_); + std::swap(highestset_, other->highestset_); + std::swap(minimumraise_, other->minimumraise_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata PlayersActionDoneMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PlayersActionDoneMessage_descriptor_; + metadata.reflection = PlayersActionDoneMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DealFlopCardsMessage::kGameIdFieldNumber; +const int DealFlopCardsMessage::kFlopCard1FieldNumber; +const int DealFlopCardsMessage::kFlopCard2FieldNumber; +const int DealFlopCardsMessage::kFlopCard3FieldNumber; +#endif // !_MSC_VER + +DealFlopCardsMessage::DealFlopCardsMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DealFlopCardsMessage::InitAsDefaultInstance() { +} + +DealFlopCardsMessage::DealFlopCardsMessage(const DealFlopCardsMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DealFlopCardsMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + flopcard1_ = 0u; + flopcard2_ = 0u; + flopcard3_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DealFlopCardsMessage::~DealFlopCardsMessage() { + SharedDtor(); +} + +void DealFlopCardsMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void DealFlopCardsMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DealFlopCardsMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DealFlopCardsMessage_descriptor_; +} + +const DealFlopCardsMessage& DealFlopCardsMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +DealFlopCardsMessage* DealFlopCardsMessage::default_instance_ = NULL; + +DealFlopCardsMessage* DealFlopCardsMessage::New() const { + return new DealFlopCardsMessage; +} + +void DealFlopCardsMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + flopcard1_ = 0u; + flopcard2_ = 0u; + flopcard3_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DealFlopCardsMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_flopCard1; + break; + } + + // required uint32 flopCard1 = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_flopCard1: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &flopcard1_))); + set_has_flopcard1(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_flopCard2; + break; + } + + // required uint32 flopCard2 = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_flopCard2: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &flopcard2_))); + set_has_flopcard2(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_flopCard3; + break; + } + + // required uint32 flopCard3 = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_flopCard3: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &flopcard3_))); + set_has_flopcard3(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DealFlopCardsMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 flopCard1 = 2; + if (has_flopcard1()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->flopcard1(), output); + } + + // required uint32 flopCard2 = 3; + if (has_flopcard2()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->flopcard2(), output); + } + + // required uint32 flopCard3 = 4; + if (has_flopcard3()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->flopcard3(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DealFlopCardsMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 flopCard1 = 2; + if (has_flopcard1()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->flopcard1(), target); + } + + // required uint32 flopCard2 = 3; + if (has_flopcard2()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->flopcard2(), target); + } + + // required uint32 flopCard3 = 4; + if (has_flopcard3()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->flopcard3(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DealFlopCardsMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 flopCard1 = 2; + if (has_flopcard1()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->flopcard1()); + } + + // required uint32 flopCard2 = 3; + if (has_flopcard2()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->flopcard2()); + } + + // required uint32 flopCard3 = 4; + if (has_flopcard3()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->flopcard3()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DealFlopCardsMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DealFlopCardsMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DealFlopCardsMessage::MergeFrom(const DealFlopCardsMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_flopcard1()) { + set_flopcard1(from.flopcard1()); + } + if (from.has_flopcard2()) { + set_flopcard2(from.flopcard2()); + } + if (from.has_flopcard3()) { + set_flopcard3(from.flopcard3()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DealFlopCardsMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DealFlopCardsMessage::CopyFrom(const DealFlopCardsMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DealFlopCardsMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; + + return true; +} + +void DealFlopCardsMessage::Swap(DealFlopCardsMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(flopcard1_, other->flopcard1_); + std::swap(flopcard2_, other->flopcard2_); + std::swap(flopcard3_, other->flopcard3_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DealFlopCardsMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DealFlopCardsMessage_descriptor_; + metadata.reflection = DealFlopCardsMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DealTurnCardMessage::kGameIdFieldNumber; +const int DealTurnCardMessage::kTurnCardFieldNumber; +#endif // !_MSC_VER + +DealTurnCardMessage::DealTurnCardMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DealTurnCardMessage::InitAsDefaultInstance() { +} + +DealTurnCardMessage::DealTurnCardMessage(const DealTurnCardMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DealTurnCardMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + turncard_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DealTurnCardMessage::~DealTurnCardMessage() { + SharedDtor(); +} + +void DealTurnCardMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void DealTurnCardMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DealTurnCardMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DealTurnCardMessage_descriptor_; +} + +const DealTurnCardMessage& DealTurnCardMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +DealTurnCardMessage* DealTurnCardMessage::default_instance_ = NULL; + +DealTurnCardMessage* DealTurnCardMessage::New() const { + return new DealTurnCardMessage; +} + +void DealTurnCardMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + turncard_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DealTurnCardMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_turnCard; + break; + } + + // required uint32 turnCard = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_turnCard: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &turncard_))); + set_has_turncard(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DealTurnCardMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 turnCard = 2; + if (has_turncard()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->turncard(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DealTurnCardMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 turnCard = 2; + if (has_turncard()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->turncard(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DealTurnCardMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 turnCard = 2; + if (has_turncard()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->turncard()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DealTurnCardMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DealTurnCardMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DealTurnCardMessage::MergeFrom(const DealTurnCardMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_turncard()) { + set_turncard(from.turncard()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DealTurnCardMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DealTurnCardMessage::CopyFrom(const DealTurnCardMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DealTurnCardMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void DealTurnCardMessage::Swap(DealTurnCardMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(turncard_, other->turncard_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DealTurnCardMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DealTurnCardMessage_descriptor_; + metadata.reflection = DealTurnCardMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DealRiverCardMessage::kGameIdFieldNumber; +const int DealRiverCardMessage::kRiverCardFieldNumber; +#endif // !_MSC_VER + +DealRiverCardMessage::DealRiverCardMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DealRiverCardMessage::InitAsDefaultInstance() { +} + +DealRiverCardMessage::DealRiverCardMessage(const DealRiverCardMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DealRiverCardMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + rivercard_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DealRiverCardMessage::~DealRiverCardMessage() { + SharedDtor(); +} + +void DealRiverCardMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void DealRiverCardMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DealRiverCardMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DealRiverCardMessage_descriptor_; +} + +const DealRiverCardMessage& DealRiverCardMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +DealRiverCardMessage* DealRiverCardMessage::default_instance_ = NULL; + +DealRiverCardMessage* DealRiverCardMessage::New() const { + return new DealRiverCardMessage; +} + +void DealRiverCardMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + rivercard_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DealRiverCardMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_riverCard; + break; + } + + // required uint32 riverCard = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_riverCard: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &rivercard_))); + set_has_rivercard(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DealRiverCardMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 riverCard = 2; + if (has_rivercard()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->rivercard(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DealRiverCardMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 riverCard = 2; + if (has_rivercard()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->rivercard(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DealRiverCardMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 riverCard = 2; + if (has_rivercard()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->rivercard()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DealRiverCardMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DealRiverCardMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DealRiverCardMessage::MergeFrom(const DealRiverCardMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_rivercard()) { + set_rivercard(from.rivercard()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DealRiverCardMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DealRiverCardMessage::CopyFrom(const DealRiverCardMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DealRiverCardMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void DealRiverCardMessage::Swap(DealRiverCardMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(rivercard_, other->rivercard_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DealRiverCardMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DealRiverCardMessage_descriptor_; + metadata.reflection = DealRiverCardMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AllInShowCardsMessage_PlayerAllIn::kPlayerIdFieldNumber; +const int AllInShowCardsMessage_PlayerAllIn::kAllInCard1FieldNumber; +const int AllInShowCardsMessage_PlayerAllIn::kAllInCard2FieldNumber; +#endif // !_MSC_VER + +AllInShowCardsMessage_PlayerAllIn::AllInShowCardsMessage_PlayerAllIn() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AllInShowCardsMessage_PlayerAllIn::InitAsDefaultInstance() { +} + +AllInShowCardsMessage_PlayerAllIn::AllInShowCardsMessage_PlayerAllIn(const AllInShowCardsMessage_PlayerAllIn& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AllInShowCardsMessage_PlayerAllIn::SharedCtor() { + _cached_size_ = 0; + playerid_ = 0u; + allincard1_ = 0u; + allincard2_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AllInShowCardsMessage_PlayerAllIn::~AllInShowCardsMessage_PlayerAllIn() { + SharedDtor(); +} + +void AllInShowCardsMessage_PlayerAllIn::SharedDtor() { + if (this != default_instance_) { + } +} + +void AllInShowCardsMessage_PlayerAllIn::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AllInShowCardsMessage_PlayerAllIn::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AllInShowCardsMessage_PlayerAllIn_descriptor_; +} + +const AllInShowCardsMessage_PlayerAllIn& AllInShowCardsMessage_PlayerAllIn::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +AllInShowCardsMessage_PlayerAllIn* AllInShowCardsMessage_PlayerAllIn::default_instance_ = NULL; + +AllInShowCardsMessage_PlayerAllIn* AllInShowCardsMessage_PlayerAllIn::New() const { + return new AllInShowCardsMessage_PlayerAllIn; +} + +void AllInShowCardsMessage_PlayerAllIn::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + playerid_ = 0u; + allincard1_ = 0u; + allincard2_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AllInShowCardsMessage_PlayerAllIn::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 playerId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_allInCard1; + break; + } + + // required uint32 allInCard1 = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_allInCard1: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &allincard1_))); + set_has_allincard1(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_allInCard2; + break; + } + + // required uint32 allInCard2 = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_allInCard2: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &allincard2_))); + set_has_allincard2(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AllInShowCardsMessage_PlayerAllIn::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 playerId = 1; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->playerid(), output); + } + + // required uint32 allInCard1 = 2; + if (has_allincard1()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->allincard1(), output); + } + + // required uint32 allInCard2 = 3; + if (has_allincard2()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->allincard2(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AllInShowCardsMessage_PlayerAllIn::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 playerId = 1; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->playerid(), target); + } + + // required uint32 allInCard1 = 2; + if (has_allincard1()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->allincard1(), target); + } + + // required uint32 allInCard2 = 3; + if (has_allincard2()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->allincard2(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AllInShowCardsMessage_PlayerAllIn::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 playerId = 1; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + // required uint32 allInCard1 = 2; + if (has_allincard1()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->allincard1()); + } + + // required uint32 allInCard2 = 3; + if (has_allincard2()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->allincard2()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AllInShowCardsMessage_PlayerAllIn::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AllInShowCardsMessage_PlayerAllIn* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AllInShowCardsMessage_PlayerAllIn::MergeFrom(const AllInShowCardsMessage_PlayerAllIn& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + if (from.has_allincard1()) { + set_allincard1(from.allincard1()); + } + if (from.has_allincard2()) { + set_allincard2(from.allincard2()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AllInShowCardsMessage_PlayerAllIn::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AllInShowCardsMessage_PlayerAllIn::CopyFrom(const AllInShowCardsMessage_PlayerAllIn& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AllInShowCardsMessage_PlayerAllIn::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void AllInShowCardsMessage_PlayerAllIn::Swap(AllInShowCardsMessage_PlayerAllIn* other) { + if (other != this) { + std::swap(playerid_, other->playerid_); + std::swap(allincard1_, other->allincard1_); + std::swap(allincard2_, other->allincard2_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AllInShowCardsMessage_PlayerAllIn::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AllInShowCardsMessage_PlayerAllIn_descriptor_; + metadata.reflection = AllInShowCardsMessage_PlayerAllIn_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int AllInShowCardsMessage::kGameIdFieldNumber; +const int AllInShowCardsMessage::kPlayersAllInFieldNumber; +#endif // !_MSC_VER + +AllInShowCardsMessage::AllInShowCardsMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AllInShowCardsMessage::InitAsDefaultInstance() { +} + +AllInShowCardsMessage::AllInShowCardsMessage(const AllInShowCardsMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AllInShowCardsMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AllInShowCardsMessage::~AllInShowCardsMessage() { + SharedDtor(); +} + +void AllInShowCardsMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void AllInShowCardsMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AllInShowCardsMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AllInShowCardsMessage_descriptor_; +} + +const AllInShowCardsMessage& AllInShowCardsMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +AllInShowCardsMessage* AllInShowCardsMessage::default_instance_ = NULL; + +AllInShowCardsMessage* AllInShowCardsMessage::New() const { + return new AllInShowCardsMessage; +} + +void AllInShowCardsMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + } + playersallin_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AllInShowCardsMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_playersAllIn; + break; + } + + // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_playersAllIn: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_playersallin())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_playersAllIn; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AllInShowCardsMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; + for (int i = 0; i < this->playersallin_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->playersallin(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AllInShowCardsMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; + for (int i = 0; i < this->playersallin_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->playersallin(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AllInShowCardsMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + } + // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; + total_size += 1 * this->playersallin_size(); + for (int i = 0; i < this->playersallin_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playersallin(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AllInShowCardsMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AllInShowCardsMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AllInShowCardsMessage::MergeFrom(const AllInShowCardsMessage& from) { + GOOGLE_CHECK_NE(&from, this); + playersallin_.MergeFrom(from.playersallin_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AllInShowCardsMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AllInShowCardsMessage::CopyFrom(const AllInShowCardsMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AllInShowCardsMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < playersallin_size(); i++) { + if (!this->playersallin(i).IsInitialized()) return false; + } + return true; +} + +void AllInShowCardsMessage::Swap(AllInShowCardsMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + playersallin_.Swap(&other->playersallin_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AllInShowCardsMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AllInShowCardsMessage_descriptor_; + metadata.reflection = AllInShowCardsMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int EndOfHandShowCardsMessage::kGameIdFieldNumber; +const int EndOfHandShowCardsMessage::kPlayerResultsFieldNumber; +#endif // !_MSC_VER + +EndOfHandShowCardsMessage::EndOfHandShowCardsMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void EndOfHandShowCardsMessage::InitAsDefaultInstance() { +} + +EndOfHandShowCardsMessage::EndOfHandShowCardsMessage(const EndOfHandShowCardsMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void EndOfHandShowCardsMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +EndOfHandShowCardsMessage::~EndOfHandShowCardsMessage() { + SharedDtor(); +} + +void EndOfHandShowCardsMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void EndOfHandShowCardsMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EndOfHandShowCardsMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return EndOfHandShowCardsMessage_descriptor_; +} + +const EndOfHandShowCardsMessage& EndOfHandShowCardsMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +EndOfHandShowCardsMessage* EndOfHandShowCardsMessage::default_instance_ = NULL; + +EndOfHandShowCardsMessage* EndOfHandShowCardsMessage::New() const { + return new EndOfHandShowCardsMessage; +} + +void EndOfHandShowCardsMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + } + playerresults_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool EndOfHandShowCardsMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_playerResults; + break; + } + + // repeated .PlayerResult playerResults = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_playerResults: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_playerresults())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_playerResults; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void EndOfHandShowCardsMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // repeated .PlayerResult playerResults = 2; + for (int i = 0; i < this->playerresults_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->playerresults(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* EndOfHandShowCardsMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // repeated .PlayerResult playerResults = 2; + for (int i = 0; i < this->playerresults_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->playerresults(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int EndOfHandShowCardsMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + } + // repeated .PlayerResult playerResults = 2; + total_size += 1 * this->playerresults_size(); + for (int i = 0; i < this->playerresults_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playerresults(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EndOfHandShowCardsMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const EndOfHandShowCardsMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void EndOfHandShowCardsMessage::MergeFrom(const EndOfHandShowCardsMessage& from) { + GOOGLE_CHECK_NE(&from, this); + playerresults_.MergeFrom(from.playerresults_); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void EndOfHandShowCardsMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EndOfHandShowCardsMessage::CopyFrom(const EndOfHandShowCardsMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EndOfHandShowCardsMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + for (int i = 0; i < playerresults_size(); i++) { + if (!this->playerresults(i).IsInitialized()) return false; + } + return true; +} + +void EndOfHandShowCardsMessage::Swap(EndOfHandShowCardsMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + playerresults_.Swap(&other->playerresults_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata EndOfHandShowCardsMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = EndOfHandShowCardsMessage_descriptor_; + metadata.reflection = EndOfHandShowCardsMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int EndOfHandHideCardsMessage::kGameIdFieldNumber; +const int EndOfHandHideCardsMessage::kPlayerIdFieldNumber; +const int EndOfHandHideCardsMessage::kMoneyWonFieldNumber; +const int EndOfHandHideCardsMessage::kPlayerMoneyFieldNumber; +#endif // !_MSC_VER + +EndOfHandHideCardsMessage::EndOfHandHideCardsMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void EndOfHandHideCardsMessage::InitAsDefaultInstance() { +} + +EndOfHandHideCardsMessage::EndOfHandHideCardsMessage(const EndOfHandHideCardsMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void EndOfHandHideCardsMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + playerid_ = 0u; + moneywon_ = 0u; + playermoney_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +EndOfHandHideCardsMessage::~EndOfHandHideCardsMessage() { + SharedDtor(); +} + +void EndOfHandHideCardsMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void EndOfHandHideCardsMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EndOfHandHideCardsMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return EndOfHandHideCardsMessage_descriptor_; +} + +const EndOfHandHideCardsMessage& EndOfHandHideCardsMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +EndOfHandHideCardsMessage* EndOfHandHideCardsMessage::default_instance_ = NULL; + +EndOfHandHideCardsMessage* EndOfHandHideCardsMessage::New() const { + return new EndOfHandHideCardsMessage; +} + +void EndOfHandHideCardsMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + playerid_ = 0u; + moneywon_ = 0u; + playermoney_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool EndOfHandHideCardsMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerId; + break; + } + + // required uint32 playerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_moneyWon; + break; + } + + // required uint32 moneyWon = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_moneyWon: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &moneywon_))); + set_has_moneywon(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_playerMoney; + break; + } + + // required uint32 playerMoney = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerMoney: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playermoney_))); + set_has_playermoney(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void EndOfHandHideCardsMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); + } + + // required uint32 moneyWon = 3; + if (has_moneywon()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->moneywon(), output); + } + + // required uint32 playerMoney = 4; + if (has_playermoney()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->playermoney(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* EndOfHandHideCardsMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->playerid(), target); + } + + // required uint32 moneyWon = 3; + if (has_moneywon()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->moneywon(), target); + } + + // required uint32 playerMoney = 4; + if (has_playermoney()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->playermoney(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int EndOfHandHideCardsMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + // required uint32 moneyWon = 3; + if (has_moneywon()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->moneywon()); + } + + // required uint32 playerMoney = 4; + if (has_playermoney()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playermoney()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EndOfHandHideCardsMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const EndOfHandHideCardsMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void EndOfHandHideCardsMessage::MergeFrom(const EndOfHandHideCardsMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + if (from.has_moneywon()) { + set_moneywon(from.moneywon()); + } + if (from.has_playermoney()) { + set_playermoney(from.playermoney()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void EndOfHandHideCardsMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EndOfHandHideCardsMessage::CopyFrom(const EndOfHandHideCardsMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EndOfHandHideCardsMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; + + return true; +} + +void EndOfHandHideCardsMessage::Swap(EndOfHandHideCardsMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(playerid_, other->playerid_); + std::swap(moneywon_, other->moneywon_); + std::swap(playermoney_, other->playermoney_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata EndOfHandHideCardsMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = EndOfHandHideCardsMessage_descriptor_; + metadata.reflection = EndOfHandHideCardsMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +ShowMyCardsRequestMessage::ShowMyCardsRequestMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ShowMyCardsRequestMessage::InitAsDefaultInstance() { +} + +ShowMyCardsRequestMessage::ShowMyCardsRequestMessage(const ShowMyCardsRequestMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ShowMyCardsRequestMessage::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ShowMyCardsRequestMessage::~ShowMyCardsRequestMessage() { + SharedDtor(); +} + +void ShowMyCardsRequestMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void ShowMyCardsRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ShowMyCardsRequestMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ShowMyCardsRequestMessage_descriptor_; +} + +const ShowMyCardsRequestMessage& ShowMyCardsRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +ShowMyCardsRequestMessage* ShowMyCardsRequestMessage::default_instance_ = NULL; + +ShowMyCardsRequestMessage* ShowMyCardsRequestMessage::New() const { + return new ShowMyCardsRequestMessage; +} + +void ShowMyCardsRequestMessage::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ShowMyCardsRequestMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void ShowMyCardsRequestMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ShowMyCardsRequestMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ShowMyCardsRequestMessage::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ShowMyCardsRequestMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ShowMyCardsRequestMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ShowMyCardsRequestMessage::MergeFrom(const ShowMyCardsRequestMessage& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ShowMyCardsRequestMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ShowMyCardsRequestMessage::CopyFrom(const ShowMyCardsRequestMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ShowMyCardsRequestMessage::IsInitialized() const { + + return true; +} + +void ShowMyCardsRequestMessage::Swap(ShowMyCardsRequestMessage* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ShowMyCardsRequestMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ShowMyCardsRequestMessage_descriptor_; + metadata.reflection = ShowMyCardsRequestMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AfterHandShowCardsMessage::kPlayerResultFieldNumber; +#endif // !_MSC_VER + +AfterHandShowCardsMessage::AfterHandShowCardsMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AfterHandShowCardsMessage::InitAsDefaultInstance() { + playerresult_ = const_cast< ::PlayerResult*>(&::PlayerResult::default_instance()); +} + +AfterHandShowCardsMessage::AfterHandShowCardsMessage(const AfterHandShowCardsMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AfterHandShowCardsMessage::SharedCtor() { + _cached_size_ = 0; + playerresult_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AfterHandShowCardsMessage::~AfterHandShowCardsMessage() { + SharedDtor(); +} + +void AfterHandShowCardsMessage::SharedDtor() { + if (this != default_instance_) { + delete playerresult_; + } +} + +void AfterHandShowCardsMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AfterHandShowCardsMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AfterHandShowCardsMessage_descriptor_; +} + +const AfterHandShowCardsMessage& AfterHandShowCardsMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +AfterHandShowCardsMessage* AfterHandShowCardsMessage::default_instance_ = NULL; + +AfterHandShowCardsMessage* AfterHandShowCardsMessage::New() const { + return new AfterHandShowCardsMessage; +} + +void AfterHandShowCardsMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_playerresult()) { + if (playerresult_ != NULL) playerresult_->::PlayerResult::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AfterHandShowCardsMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .PlayerResult playerResult = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_playerresult())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AfterHandShowCardsMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .PlayerResult playerResult = 1; + if (has_playerresult()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->playerresult(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AfterHandShowCardsMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .PlayerResult playerResult = 1; + if (has_playerresult()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->playerresult(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AfterHandShowCardsMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .PlayerResult playerResult = 1; + if (has_playerresult()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playerresult()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AfterHandShowCardsMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AfterHandShowCardsMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AfterHandShowCardsMessage::MergeFrom(const AfterHandShowCardsMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_playerresult()) { + mutable_playerresult()->::PlayerResult::MergeFrom(from.playerresult()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AfterHandShowCardsMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AfterHandShowCardsMessage::CopyFrom(const AfterHandShowCardsMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AfterHandShowCardsMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_playerresult()) { + if (!this->playerresult().IsInitialized()) return false; + } + return true; +} + +void AfterHandShowCardsMessage::Swap(AfterHandShowCardsMessage* other) { + if (other != this) { + std::swap(playerresult_, other->playerresult_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AfterHandShowCardsMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AfterHandShowCardsMessage_descriptor_; + metadata.reflection = AfterHandShowCardsMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int EndOfGameMessage::kGameIdFieldNumber; +const int EndOfGameMessage::kWinnerPlayerIdFieldNumber; +#endif // !_MSC_VER + +EndOfGameMessage::EndOfGameMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void EndOfGameMessage::InitAsDefaultInstance() { +} + +EndOfGameMessage::EndOfGameMessage(const EndOfGameMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void EndOfGameMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + winnerplayerid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +EndOfGameMessage::~EndOfGameMessage() { + SharedDtor(); +} + +void EndOfGameMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void EndOfGameMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EndOfGameMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return EndOfGameMessage_descriptor_; +} + +const EndOfGameMessage& EndOfGameMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +EndOfGameMessage* EndOfGameMessage::default_instance_ = NULL; + +EndOfGameMessage* EndOfGameMessage::New() const { + return new EndOfGameMessage; +} + +void EndOfGameMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + winnerplayerid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool EndOfGameMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_winnerPlayerId; + break; + } + + // required uint32 winnerPlayerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_winnerPlayerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &winnerplayerid_))); + set_has_winnerplayerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void EndOfGameMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 winnerPlayerId = 2; + if (has_winnerplayerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->winnerplayerid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* EndOfGameMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 winnerPlayerId = 2; + if (has_winnerplayerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->winnerplayerid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int EndOfGameMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 winnerPlayerId = 2; + if (has_winnerplayerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->winnerplayerid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EndOfGameMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const EndOfGameMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void EndOfGameMessage::MergeFrom(const EndOfGameMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_winnerplayerid()) { + set_winnerplayerid(from.winnerplayerid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void EndOfGameMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EndOfGameMessage::CopyFrom(const EndOfGameMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EndOfGameMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void EndOfGameMessage::Swap(EndOfGameMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(winnerplayerid_, other->winnerplayerid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata EndOfGameMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = EndOfGameMessage_descriptor_; + metadata.reflection = EndOfGameMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int PlayerIdChangedMessage::kOldPlayerIdFieldNumber; +const int PlayerIdChangedMessage::kNewPlayerIdFieldNumber; +#endif // !_MSC_VER + +PlayerIdChangedMessage::PlayerIdChangedMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void PlayerIdChangedMessage::InitAsDefaultInstance() { +} + +PlayerIdChangedMessage::PlayerIdChangedMessage(const PlayerIdChangedMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void PlayerIdChangedMessage::SharedCtor() { + _cached_size_ = 0; + oldplayerid_ = 0u; + newplayerid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PlayerIdChangedMessage::~PlayerIdChangedMessage() { + SharedDtor(); +} + +void PlayerIdChangedMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void PlayerIdChangedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PlayerIdChangedMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PlayerIdChangedMessage_descriptor_; +} + +const PlayerIdChangedMessage& PlayerIdChangedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +PlayerIdChangedMessage* PlayerIdChangedMessage::default_instance_ = NULL; + +PlayerIdChangedMessage* PlayerIdChangedMessage::New() const { + return new PlayerIdChangedMessage; +} + +void PlayerIdChangedMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + oldplayerid_ = 0u; + newplayerid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool PlayerIdChangedMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 oldPlayerId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &oldplayerid_))); + set_has_oldplayerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_newPlayerId; + break; + } + + // required uint32 newPlayerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_newPlayerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &newplayerid_))); + set_has_newplayerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void PlayerIdChangedMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 oldPlayerId = 1; + if (has_oldplayerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->oldplayerid(), output); + } + + // required uint32 newPlayerId = 2; + if (has_newplayerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->newplayerid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* PlayerIdChangedMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 oldPlayerId = 1; + if (has_oldplayerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->oldplayerid(), target); + } + + // required uint32 newPlayerId = 2; + if (has_newplayerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->newplayerid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int PlayerIdChangedMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 oldPlayerId = 1; + if (has_oldplayerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->oldplayerid()); + } + + // required uint32 newPlayerId = 2; + if (has_newplayerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->newplayerid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PlayerIdChangedMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const PlayerIdChangedMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void PlayerIdChangedMessage::MergeFrom(const PlayerIdChangedMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_oldplayerid()) { + set_oldplayerid(from.oldplayerid()); + } + if (from.has_newplayerid()) { + set_newplayerid(from.newplayerid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void PlayerIdChangedMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PlayerIdChangedMessage::CopyFrom(const PlayerIdChangedMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayerIdChangedMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void PlayerIdChangedMessage::Swap(PlayerIdChangedMessage* other) { + if (other != this) { + std::swap(oldplayerid_, other->oldplayerid_); + std::swap(newplayerid_, other->newplayerid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata PlayerIdChangedMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PlayerIdChangedMessage_descriptor_; + metadata.reflection = PlayerIdChangedMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int AskKickPlayerMessage::kGameIdFieldNumber; +const int AskKickPlayerMessage::kPlayerIdFieldNumber; +#endif // !_MSC_VER + +AskKickPlayerMessage::AskKickPlayerMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AskKickPlayerMessage::InitAsDefaultInstance() { +} + +AskKickPlayerMessage::AskKickPlayerMessage(const AskKickPlayerMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AskKickPlayerMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + playerid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AskKickPlayerMessage::~AskKickPlayerMessage() { + SharedDtor(); +} + +void AskKickPlayerMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void AskKickPlayerMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AskKickPlayerMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AskKickPlayerMessage_descriptor_; +} + +const AskKickPlayerMessage& AskKickPlayerMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +AskKickPlayerMessage* AskKickPlayerMessage::default_instance_ = NULL; + +AskKickPlayerMessage* AskKickPlayerMessage::New() const { + return new AskKickPlayerMessage; +} + +void AskKickPlayerMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + playerid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AskKickPlayerMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerId; + break; + } + + // required uint32 playerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AskKickPlayerMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AskKickPlayerMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->playerid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AskKickPlayerMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AskKickPlayerMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AskKickPlayerMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AskKickPlayerMessage::MergeFrom(const AskKickPlayerMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AskKickPlayerMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AskKickPlayerMessage::CopyFrom(const AskKickPlayerMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AskKickPlayerMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void AskKickPlayerMessage::Swap(AskKickPlayerMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(playerid_, other->playerid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AskKickPlayerMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AskKickPlayerMessage_descriptor_; + metadata.reflection = AskKickPlayerMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* AskKickDeniedMessage_KickDeniedReason_descriptor() { + protobuf_AssignDescriptorsOnce(); + return AskKickDeniedMessage_KickDeniedReason_descriptor_; +} +bool AskKickDeniedMessage_KickDeniedReason_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedInvalidGameState; +const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedNotPossible; +const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedTryAgainLater; +const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedAlreadyInProgress; +const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedInvalidPlayerId; +const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::KickDeniedReason_MIN; +const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::KickDeniedReason_MAX; +const int AskKickDeniedMessage::KickDeniedReason_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int AskKickDeniedMessage::kGameIdFieldNumber; +const int AskKickDeniedMessage::kPlayerIdFieldNumber; +const int AskKickDeniedMessage::kKickDeniedReasonFieldNumber; +#endif // !_MSC_VER + +AskKickDeniedMessage::AskKickDeniedMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AskKickDeniedMessage::InitAsDefaultInstance() { +} + +AskKickDeniedMessage::AskKickDeniedMessage(const AskKickDeniedMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void AskKickDeniedMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + playerid_ = 0u; + kickdeniedreason_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +AskKickDeniedMessage::~AskKickDeniedMessage() { + SharedDtor(); +} + +void AskKickDeniedMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void AskKickDeniedMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* AskKickDeniedMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return AskKickDeniedMessage_descriptor_; +} + +const AskKickDeniedMessage& AskKickDeniedMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +AskKickDeniedMessage* AskKickDeniedMessage::default_instance_ = NULL; + +AskKickDeniedMessage* AskKickDeniedMessage::New() const { + return new AskKickDeniedMessage; +} + +void AskKickDeniedMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + playerid_ = 0u; + kickdeniedreason_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool AskKickDeniedMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerId; + break; + } + + // required uint32 playerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_kickDeniedReason; + break; + } + + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_kickDeniedReason: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::AskKickDeniedMessage_KickDeniedReason_IsValid(value)) { + set_kickdeniedreason(static_cast< ::AskKickDeniedMessage_KickDeniedReason >(value)); + } else { + mutable_unknown_fields()->AddVarint(3, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void AskKickDeniedMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); + } + + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; + if (has_kickdeniedreason()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->kickdeniedreason(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AskKickDeniedMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->playerid(), target); + } + + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; + if (has_kickdeniedreason()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->kickdeniedreason(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int AskKickDeniedMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 playerId = 2; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; + if (has_kickdeniedreason()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->kickdeniedreason()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void AskKickDeniedMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const AskKickDeniedMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void AskKickDeniedMessage::MergeFrom(const AskKickDeniedMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + if (from.has_kickdeniedreason()) { + set_kickdeniedreason(from.kickdeniedreason()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void AskKickDeniedMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void AskKickDeniedMessage::CopyFrom(const AskKickDeniedMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AskKickDeniedMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void AskKickDeniedMessage::Swap(AskKickDeniedMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(playerid_, other->playerid_); + std::swap(kickdeniedreason_, other->kickdeniedreason_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata AskKickDeniedMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = AskKickDeniedMessage_descriptor_; + metadata.reflection = AskKickDeniedMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int StartKickPetitionMessage::kGameIdFieldNumber; +const int StartKickPetitionMessage::kPetitionIdFieldNumber; +const int StartKickPetitionMessage::kProposingPlayerIdFieldNumber; +const int StartKickPetitionMessage::kKickPlayerIdFieldNumber; +const int StartKickPetitionMessage::kKickTimeoutSecFieldNumber; +const int StartKickPetitionMessage::kNumVotesNeededToKickFieldNumber; +#endif // !_MSC_VER + +StartKickPetitionMessage::StartKickPetitionMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void StartKickPetitionMessage::InitAsDefaultInstance() { +} + +StartKickPetitionMessage::StartKickPetitionMessage(const StartKickPetitionMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void StartKickPetitionMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + petitionid_ = 0u; + proposingplayerid_ = 0u; + kickplayerid_ = 0u; + kicktimeoutsec_ = 0u; + numvotesneededtokick_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +StartKickPetitionMessage::~StartKickPetitionMessage() { + SharedDtor(); +} + +void StartKickPetitionMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void StartKickPetitionMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StartKickPetitionMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return StartKickPetitionMessage_descriptor_; +} + +const StartKickPetitionMessage& StartKickPetitionMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +StartKickPetitionMessage* StartKickPetitionMessage::default_instance_ = NULL; + +StartKickPetitionMessage* StartKickPetitionMessage::New() const { + return new StartKickPetitionMessage; +} + +void StartKickPetitionMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + petitionid_ = 0u; + proposingplayerid_ = 0u; + kickplayerid_ = 0u; + kicktimeoutsec_ = 0u; + numvotesneededtokick_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool StartKickPetitionMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_petitionId; + break; + } + + // required uint32 petitionId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_petitionId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &petitionid_))); + set_has_petitionid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_proposingPlayerId; + break; + } + + // required uint32 proposingPlayerId = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_proposingPlayerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &proposingplayerid_))); + set_has_proposingplayerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_kickPlayerId; + break; + } + + // required uint32 kickPlayerId = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_kickPlayerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &kickplayerid_))); + set_has_kickplayerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_kickTimeoutSec; + break; + } + + // required uint32 kickTimeoutSec = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_kickTimeoutSec: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &kicktimeoutsec_))); + set_has_kicktimeoutsec(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_numVotesNeededToKick; + break; + } + + // required uint32 numVotesNeededToKick = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_numVotesNeededToKick: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &numvotesneededtokick_))); + set_has_numvotesneededtokick(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void StartKickPetitionMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 petitionId = 2; + if (has_petitionid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->petitionid(), output); + } + + // required uint32 proposingPlayerId = 3; + if (has_proposingplayerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->proposingplayerid(), output); + } + + // required uint32 kickPlayerId = 4; + if (has_kickplayerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->kickplayerid(), output); + } + + // required uint32 kickTimeoutSec = 5; + if (has_kicktimeoutsec()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->kicktimeoutsec(), output); + } + + // required uint32 numVotesNeededToKick = 6; + if (has_numvotesneededtokick()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->numvotesneededtokick(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* StartKickPetitionMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 petitionId = 2; + if (has_petitionid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->petitionid(), target); + } + + // required uint32 proposingPlayerId = 3; + if (has_proposingplayerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->proposingplayerid(), target); + } + + // required uint32 kickPlayerId = 4; + if (has_kickplayerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->kickplayerid(), target); + } + + // required uint32 kickTimeoutSec = 5; + if (has_kicktimeoutsec()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->kicktimeoutsec(), target); + } + + // required uint32 numVotesNeededToKick = 6; + if (has_numvotesneededtokick()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->numvotesneededtokick(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int StartKickPetitionMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 petitionId = 2; + if (has_petitionid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->petitionid()); + } + + // required uint32 proposingPlayerId = 3; + if (has_proposingplayerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->proposingplayerid()); + } + + // required uint32 kickPlayerId = 4; + if (has_kickplayerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->kickplayerid()); + } + + // required uint32 kickTimeoutSec = 5; + if (has_kicktimeoutsec()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->kicktimeoutsec()); + } + + // required uint32 numVotesNeededToKick = 6; + if (has_numvotesneededtokick()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->numvotesneededtokick()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void StartKickPetitionMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const StartKickPetitionMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void StartKickPetitionMessage::MergeFrom(const StartKickPetitionMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_petitionid()) { + set_petitionid(from.petitionid()); + } + if (from.has_proposingplayerid()) { + set_proposingplayerid(from.proposingplayerid()); + } + if (from.has_kickplayerid()) { + set_kickplayerid(from.kickplayerid()); + } + if (from.has_kicktimeoutsec()) { + set_kicktimeoutsec(from.kicktimeoutsec()); + } + if (from.has_numvotesneededtokick()) { + set_numvotesneededtokick(from.numvotesneededtokick()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void StartKickPetitionMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StartKickPetitionMessage::CopyFrom(const StartKickPetitionMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StartKickPetitionMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false; + + return true; +} + +void StartKickPetitionMessage::Swap(StartKickPetitionMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(petitionid_, other->petitionid_); + std::swap(proposingplayerid_, other->proposingplayerid_); + std::swap(kickplayerid_, other->kickplayerid_); + std::swap(kicktimeoutsec_, other->kicktimeoutsec_); + std::swap(numvotesneededtokick_, other->numvotesneededtokick_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata StartKickPetitionMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = StartKickPetitionMessage_descriptor_; + metadata.reflection = StartKickPetitionMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int VoteKickRequestMessage::kGameIdFieldNumber; +const int VoteKickRequestMessage::kPetitionIdFieldNumber; +const int VoteKickRequestMessage::kVoteKickFieldNumber; +#endif // !_MSC_VER + +VoteKickRequestMessage::VoteKickRequestMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void VoteKickRequestMessage::InitAsDefaultInstance() { +} + +VoteKickRequestMessage::VoteKickRequestMessage(const VoteKickRequestMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void VoteKickRequestMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + petitionid_ = 0u; + votekick_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +VoteKickRequestMessage::~VoteKickRequestMessage() { + SharedDtor(); +} + +void VoteKickRequestMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void VoteKickRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* VoteKickRequestMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return VoteKickRequestMessage_descriptor_; +} + +const VoteKickRequestMessage& VoteKickRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +VoteKickRequestMessage* VoteKickRequestMessage::default_instance_ = NULL; + +VoteKickRequestMessage* VoteKickRequestMessage::New() const { + return new VoteKickRequestMessage; +} + +void VoteKickRequestMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + petitionid_ = 0u; + votekick_ = false; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool VoteKickRequestMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_petitionId; + break; + } + + // required uint32 petitionId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_petitionId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &petitionid_))); + set_has_petitionid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_voteKick; + break; + } + + // required bool voteKick = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_voteKick: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + input, &votekick_))); + set_has_votekick(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void VoteKickRequestMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 petitionId = 2; + if (has_petitionid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->petitionid(), output); + } + + // required bool voteKick = 3; + if (has_votekick()) { + ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->votekick(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* VoteKickRequestMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 petitionId = 2; + if (has_petitionid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->petitionid(), target); + } + + // required bool voteKick = 3; + if (has_votekick()) { + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->votekick(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int VoteKickRequestMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 petitionId = 2; + if (has_petitionid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->petitionid()); + } + + // required bool voteKick = 3; + if (has_votekick()) { + total_size += 1 + 1; + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void VoteKickRequestMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const VoteKickRequestMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void VoteKickRequestMessage::MergeFrom(const VoteKickRequestMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_petitionid()) { + set_petitionid(from.petitionid()); + } + if (from.has_votekick()) { + set_votekick(from.votekick()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void VoteKickRequestMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void VoteKickRequestMessage::CopyFrom(const VoteKickRequestMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VoteKickRequestMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void VoteKickRequestMessage::Swap(VoteKickRequestMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(petitionid_, other->petitionid_); + std::swap(votekick_, other->votekick_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata VoteKickRequestMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = VoteKickRequestMessage_descriptor_; + metadata.reflection = VoteKickRequestMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* VoteKickReplyMessage_VoteKickReplyType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return VoteKickReplyMessage_VoteKickReplyType_descriptor_; +} +bool VoteKickReplyMessage_VoteKickReplyType_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::voteKickAck; +const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::voteKickDeniedInvalid; +const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::voteKickDeniedAlreadyVoted; +const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::VoteKickReplyType_MIN; +const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::VoteKickReplyType_MAX; +const int VoteKickReplyMessage::VoteKickReplyType_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int VoteKickReplyMessage::kGameIdFieldNumber; +const int VoteKickReplyMessage::kPetitionIdFieldNumber; +const int VoteKickReplyMessage::kVoteKickReplyTypeFieldNumber; +#endif // !_MSC_VER + +VoteKickReplyMessage::VoteKickReplyMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void VoteKickReplyMessage::InitAsDefaultInstance() { +} + +VoteKickReplyMessage::VoteKickReplyMessage(const VoteKickReplyMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void VoteKickReplyMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + petitionid_ = 0u; + votekickreplytype_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +VoteKickReplyMessage::~VoteKickReplyMessage() { + SharedDtor(); +} + +void VoteKickReplyMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void VoteKickReplyMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* VoteKickReplyMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return VoteKickReplyMessage_descriptor_; +} + +const VoteKickReplyMessage& VoteKickReplyMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +VoteKickReplyMessage* VoteKickReplyMessage::default_instance_ = NULL; + +VoteKickReplyMessage* VoteKickReplyMessage::New() const { + return new VoteKickReplyMessage; +} + +void VoteKickReplyMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + petitionid_ = 0u; + votekickreplytype_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool VoteKickReplyMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_petitionId; + break; + } + + // required uint32 petitionId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_petitionId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &petitionid_))); + set_has_petitionid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_voteKickReplyType; + break; + } + + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_voteKickReplyType: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::VoteKickReplyMessage_VoteKickReplyType_IsValid(value)) { + set_votekickreplytype(static_cast< ::VoteKickReplyMessage_VoteKickReplyType >(value)); + } else { + mutable_unknown_fields()->AddVarint(3, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void VoteKickReplyMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 petitionId = 2; + if (has_petitionid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->petitionid(), output); + } + + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; + if (has_votekickreplytype()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->votekickreplytype(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* VoteKickReplyMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 petitionId = 2; + if (has_petitionid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->petitionid(), target); + } + + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; + if (has_votekickreplytype()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->votekickreplytype(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int VoteKickReplyMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 petitionId = 2; + if (has_petitionid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->petitionid()); + } + + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; + if (has_votekickreplytype()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->votekickreplytype()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void VoteKickReplyMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const VoteKickReplyMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void VoteKickReplyMessage::MergeFrom(const VoteKickReplyMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_petitionid()) { + set_petitionid(from.petitionid()); + } + if (from.has_votekickreplytype()) { + set_votekickreplytype(from.votekickreplytype()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void VoteKickReplyMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void VoteKickReplyMessage::CopyFrom(const VoteKickReplyMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool VoteKickReplyMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; + + return true; +} + +void VoteKickReplyMessage::Swap(VoteKickReplyMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(petitionid_, other->petitionid_); + std::swap(votekickreplytype_, other->votekickreplytype_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata VoteKickReplyMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = VoteKickReplyMessage_descriptor_; + metadata.reflection = VoteKickReplyMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int KickPetitionUpdateMessage::kGameIdFieldNumber; +const int KickPetitionUpdateMessage::kPetitionIdFieldNumber; +const int KickPetitionUpdateMessage::kNumVotesAgainstKickingFieldNumber; +const int KickPetitionUpdateMessage::kNumVotesInFavourOfKickingFieldNumber; +const int KickPetitionUpdateMessage::kNumVotesNeededToKickFieldNumber; +#endif // !_MSC_VER + +KickPetitionUpdateMessage::KickPetitionUpdateMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void KickPetitionUpdateMessage::InitAsDefaultInstance() { +} + +KickPetitionUpdateMessage::KickPetitionUpdateMessage(const KickPetitionUpdateMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void KickPetitionUpdateMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + petitionid_ = 0u; + numvotesagainstkicking_ = 0u; + numvotesinfavourofkicking_ = 0u; + numvotesneededtokick_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +KickPetitionUpdateMessage::~KickPetitionUpdateMessage() { + SharedDtor(); +} + +void KickPetitionUpdateMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void KickPetitionUpdateMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* KickPetitionUpdateMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return KickPetitionUpdateMessage_descriptor_; +} + +const KickPetitionUpdateMessage& KickPetitionUpdateMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +KickPetitionUpdateMessage* KickPetitionUpdateMessage::default_instance_ = NULL; + +KickPetitionUpdateMessage* KickPetitionUpdateMessage::New() const { + return new KickPetitionUpdateMessage; +} + +void KickPetitionUpdateMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + petitionid_ = 0u; + numvotesagainstkicking_ = 0u; + numvotesinfavourofkicking_ = 0u; + numvotesneededtokick_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool KickPetitionUpdateMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_petitionId; + break; + } + + // required uint32 petitionId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_petitionId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &petitionid_))); + set_has_petitionid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_numVotesAgainstKicking; + break; + } + + // required uint32 numVotesAgainstKicking = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_numVotesAgainstKicking: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &numvotesagainstkicking_))); + set_has_numvotesagainstkicking(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_numVotesInFavourOfKicking; + break; + } + + // required uint32 numVotesInFavourOfKicking = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_numVotesInFavourOfKicking: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &numvotesinfavourofkicking_))); + set_has_numvotesinfavourofkicking(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_numVotesNeededToKick; + break; + } + + // required uint32 numVotesNeededToKick = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_numVotesNeededToKick: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &numvotesneededtokick_))); + set_has_numvotesneededtokick(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void KickPetitionUpdateMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 petitionId = 2; + if (has_petitionid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->petitionid(), output); + } + + // required uint32 numVotesAgainstKicking = 3; + if (has_numvotesagainstkicking()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->numvotesagainstkicking(), output); + } + + // required uint32 numVotesInFavourOfKicking = 4; + if (has_numvotesinfavourofkicking()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->numvotesinfavourofkicking(), output); + } + + // required uint32 numVotesNeededToKick = 5; + if (has_numvotesneededtokick()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->numvotesneededtokick(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* KickPetitionUpdateMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 petitionId = 2; + if (has_petitionid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->petitionid(), target); + } + + // required uint32 numVotesAgainstKicking = 3; + if (has_numvotesagainstkicking()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->numvotesagainstkicking(), target); + } + + // required uint32 numVotesInFavourOfKicking = 4; + if (has_numvotesinfavourofkicking()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->numvotesinfavourofkicking(), target); + } + + // required uint32 numVotesNeededToKick = 5; + if (has_numvotesneededtokick()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->numvotesneededtokick(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int KickPetitionUpdateMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 petitionId = 2; + if (has_petitionid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->petitionid()); + } + + // required uint32 numVotesAgainstKicking = 3; + if (has_numvotesagainstkicking()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->numvotesagainstkicking()); + } + + // required uint32 numVotesInFavourOfKicking = 4; + if (has_numvotesinfavourofkicking()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->numvotesinfavourofkicking()); + } + + // required uint32 numVotesNeededToKick = 5; + if (has_numvotesneededtokick()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->numvotesneededtokick()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void KickPetitionUpdateMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const KickPetitionUpdateMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void KickPetitionUpdateMessage::MergeFrom(const KickPetitionUpdateMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_petitionid()) { + set_petitionid(from.petitionid()); + } + if (from.has_numvotesagainstkicking()) { + set_numvotesagainstkicking(from.numvotesagainstkicking()); + } + if (from.has_numvotesinfavourofkicking()) { + set_numvotesinfavourofkicking(from.numvotesinfavourofkicking()); + } + if (from.has_numvotesneededtokick()) { + set_numvotesneededtokick(from.numvotesneededtokick()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void KickPetitionUpdateMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void KickPetitionUpdateMessage::CopyFrom(const KickPetitionUpdateMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool KickPetitionUpdateMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false; + + return true; +} + +void KickPetitionUpdateMessage::Swap(KickPetitionUpdateMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(petitionid_, other->petitionid_); + std::swap(numvotesagainstkicking_, other->numvotesagainstkicking_); + std::swap(numvotesinfavourofkicking_, other->numvotesinfavourofkicking_); + std::swap(numvotesneededtokick_, other->numvotesneededtokick_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata KickPetitionUpdateMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = KickPetitionUpdateMessage_descriptor_; + metadata.reflection = KickPetitionUpdateMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* EndKickPetitionMessage_PetitionEndReason_descriptor() { + protobuf_AssignDescriptorsOnce(); + return EndKickPetitionMessage_PetitionEndReason_descriptor_; +} +bool EndKickPetitionMessage_PetitionEndReason_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndEnoughVotes; +const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndTooFewPlayers; +const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndPlayerLeft; +const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndTimeout; +const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::PetitionEndReason_MIN; +const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::PetitionEndReason_MAX; +const int EndKickPetitionMessage::PetitionEndReason_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int EndKickPetitionMessage::kGameIdFieldNumber; +const int EndKickPetitionMessage::kPetitionIdFieldNumber; +const int EndKickPetitionMessage::kNumVotesAgainstKickingFieldNumber; +const int EndKickPetitionMessage::kNumVotesInFavourOfKickingFieldNumber; +const int EndKickPetitionMessage::kResultPlayerKickedFieldNumber; +const int EndKickPetitionMessage::kPetitionEndReasonFieldNumber; +#endif // !_MSC_VER + +EndKickPetitionMessage::EndKickPetitionMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void EndKickPetitionMessage::InitAsDefaultInstance() { +} + +EndKickPetitionMessage::EndKickPetitionMessage(const EndKickPetitionMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void EndKickPetitionMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + petitionid_ = 0u; + numvotesagainstkicking_ = 0u; + numvotesinfavourofkicking_ = 0u; + resultplayerkicked_ = 0u; + petitionendreason_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +EndKickPetitionMessage::~EndKickPetitionMessage() { + SharedDtor(); +} + +void EndKickPetitionMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void EndKickPetitionMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* EndKickPetitionMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return EndKickPetitionMessage_descriptor_; +} + +const EndKickPetitionMessage& EndKickPetitionMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +EndKickPetitionMessage* EndKickPetitionMessage::default_instance_ = NULL; + +EndKickPetitionMessage* EndKickPetitionMessage::New() const { + return new EndKickPetitionMessage; +} + +void EndKickPetitionMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + petitionid_ = 0u; + numvotesagainstkicking_ = 0u; + numvotesinfavourofkicking_ = 0u; + resultplayerkicked_ = 0u; + petitionendreason_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool EndKickPetitionMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_petitionId; + break; + } + + // required uint32 petitionId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_petitionId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &petitionid_))); + set_has_petitionid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_numVotesAgainstKicking; + break; + } + + // required uint32 numVotesAgainstKicking = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_numVotesAgainstKicking: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &numvotesagainstkicking_))); + set_has_numvotesagainstkicking(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(32)) goto parse_numVotesInFavourOfKicking; + break; + } + + // required uint32 numVotesInFavourOfKicking = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_numVotesInFavourOfKicking: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &numvotesinfavourofkicking_))); + set_has_numvotesinfavourofkicking(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(40)) goto parse_resultPlayerKicked; + break; + } + + // required uint32 resultPlayerKicked = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_resultPlayerKicked: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &resultplayerkicked_))); + set_has_resultplayerkicked(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(48)) goto parse_petitionEndReason; + break; + } + + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_petitionEndReason: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::EndKickPetitionMessage_PetitionEndReason_IsValid(value)) { + set_petitionendreason(static_cast< ::EndKickPetitionMessage_PetitionEndReason >(value)); + } else { + mutable_unknown_fields()->AddVarint(6, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void EndKickPetitionMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // required uint32 petitionId = 2; + if (has_petitionid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->petitionid(), output); + } + + // required uint32 numVotesAgainstKicking = 3; + if (has_numvotesagainstkicking()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->numvotesagainstkicking(), output); + } + + // required uint32 numVotesInFavourOfKicking = 4; + if (has_numvotesinfavourofkicking()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->numvotesinfavourofkicking(), output); + } + + // required uint32 resultPlayerKicked = 5; + if (has_resultplayerkicked()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->resultplayerkicked(), output); + } + + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; + if (has_petitionendreason()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 6, this->petitionendreason(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* EndKickPetitionMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // required uint32 petitionId = 2; + if (has_petitionid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->petitionid(), target); + } + + // required uint32 numVotesAgainstKicking = 3; + if (has_numvotesagainstkicking()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->numvotesagainstkicking(), target); + } + + // required uint32 numVotesInFavourOfKicking = 4; + if (has_numvotesinfavourofkicking()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->numvotesinfavourofkicking(), target); + } + + // required uint32 resultPlayerKicked = 5; + if (has_resultplayerkicked()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->resultplayerkicked(), target); + } + + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; + if (has_petitionendreason()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 6, this->petitionendreason(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int EndKickPetitionMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // required uint32 petitionId = 2; + if (has_petitionid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->petitionid()); + } + + // required uint32 numVotesAgainstKicking = 3; + if (has_numvotesagainstkicking()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->numvotesagainstkicking()); + } + + // required uint32 numVotesInFavourOfKicking = 4; + if (has_numvotesinfavourofkicking()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->numvotesinfavourofkicking()); + } + + // required uint32 resultPlayerKicked = 5; + if (has_resultplayerkicked()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->resultplayerkicked()); + } + + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; + if (has_petitionendreason()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->petitionendreason()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void EndKickPetitionMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const EndKickPetitionMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void EndKickPetitionMessage::MergeFrom(const EndKickPetitionMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_petitionid()) { + set_petitionid(from.petitionid()); + } + if (from.has_numvotesagainstkicking()) { + set_numvotesagainstkicking(from.numvotesagainstkicking()); + } + if (from.has_numvotesinfavourofkicking()) { + set_numvotesinfavourofkicking(from.numvotesinfavourofkicking()); + } + if (from.has_resultplayerkicked()) { + set_resultplayerkicked(from.resultplayerkicked()); + } + if (from.has_petitionendreason()) { + set_petitionendreason(from.petitionendreason()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void EndKickPetitionMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void EndKickPetitionMessage::CopyFrom(const EndKickPetitionMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool EndKickPetitionMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false; + + return true; +} + +void EndKickPetitionMessage::Swap(EndKickPetitionMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(petitionid_, other->petitionid_); + std::swap(numvotesagainstkicking_, other->numvotesagainstkicking_); + std::swap(numvotesinfavourofkicking_, other->numvotesinfavourofkicking_); + std::swap(resultplayerkicked_, other->resultplayerkicked_); + std::swap(petitionendreason_, other->petitionendreason_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata EndKickPetitionMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = EndKickPetitionMessage_descriptor_; + metadata.reflection = EndKickPetitionMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* StatisticsMessage_StatisticsData_StatisticsType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return StatisticsMessage_StatisticsData_StatisticsType_descriptor_; +} +bool StatisticsMessage_StatisticsData_StatisticsType_IsValid(int value) { + switch(value) { + case 1: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::statNumberOfPlayers; +const StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::StatisticsType_MIN; +const StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::StatisticsType_MAX; +const int StatisticsMessage_StatisticsData::StatisticsType_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int StatisticsMessage_StatisticsData::kStatisticsTypeFieldNumber; +const int StatisticsMessage_StatisticsData::kStatisticsValueFieldNumber; +#endif // !_MSC_VER + +StatisticsMessage_StatisticsData::StatisticsMessage_StatisticsData() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void StatisticsMessage_StatisticsData::InitAsDefaultInstance() { +} + +StatisticsMessage_StatisticsData::StatisticsMessage_StatisticsData(const StatisticsMessage_StatisticsData& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void StatisticsMessage_StatisticsData::SharedCtor() { + _cached_size_ = 0; + statisticstype_ = 1; + statisticsvalue_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +StatisticsMessage_StatisticsData::~StatisticsMessage_StatisticsData() { + SharedDtor(); +} + +void StatisticsMessage_StatisticsData::SharedDtor() { + if (this != default_instance_) { + } +} + +void StatisticsMessage_StatisticsData::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StatisticsMessage_StatisticsData::descriptor() { + protobuf_AssignDescriptorsOnce(); + return StatisticsMessage_StatisticsData_descriptor_; +} + +const StatisticsMessage_StatisticsData& StatisticsMessage_StatisticsData::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +StatisticsMessage_StatisticsData* StatisticsMessage_StatisticsData::default_instance_ = NULL; + +StatisticsMessage_StatisticsData* StatisticsMessage_StatisticsData::New() const { + return new StatisticsMessage_StatisticsData; +} + +void StatisticsMessage_StatisticsData::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + statisticstype_ = 1; + statisticsvalue_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool StatisticsMessage_StatisticsData::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::StatisticsMessage_StatisticsData_StatisticsType_IsValid(value)) { + set_statisticstype(static_cast< ::StatisticsMessage_StatisticsData_StatisticsType >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_statisticsValue; + break; + } + + // required uint32 statisticsValue = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_statisticsValue: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &statisticsvalue_))); + set_has_statisticsvalue(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void StatisticsMessage_StatisticsData::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; + if (has_statisticstype()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->statisticstype(), output); + } + + // required uint32 statisticsValue = 2; + if (has_statisticsvalue()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->statisticsvalue(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* StatisticsMessage_StatisticsData::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; + if (has_statisticstype()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->statisticstype(), target); + } + + // required uint32 statisticsValue = 2; + if (has_statisticsvalue()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->statisticsvalue(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int StatisticsMessage_StatisticsData::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; + if (has_statisticstype()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->statisticstype()); + } + + // required uint32 statisticsValue = 2; + if (has_statisticsvalue()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->statisticsvalue()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void StatisticsMessage_StatisticsData::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const StatisticsMessage_StatisticsData* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void StatisticsMessage_StatisticsData::MergeFrom(const StatisticsMessage_StatisticsData& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_statisticstype()) { + set_statisticstype(from.statisticstype()); + } + if (from.has_statisticsvalue()) { + set_statisticsvalue(from.statisticsvalue()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void StatisticsMessage_StatisticsData::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StatisticsMessage_StatisticsData::CopyFrom(const StatisticsMessage_StatisticsData& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StatisticsMessage_StatisticsData::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void StatisticsMessage_StatisticsData::Swap(StatisticsMessage_StatisticsData* other) { + if (other != this) { + std::swap(statisticstype_, other->statisticstype_); + std::swap(statisticsvalue_, other->statisticsvalue_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata StatisticsMessage_StatisticsData::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = StatisticsMessage_StatisticsData_descriptor_; + metadata.reflection = StatisticsMessage_StatisticsData_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int StatisticsMessage::kStatisticsDataFieldNumber; +#endif // !_MSC_VER + +StatisticsMessage::StatisticsMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void StatisticsMessage::InitAsDefaultInstance() { +} + +StatisticsMessage::StatisticsMessage(const StatisticsMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void StatisticsMessage::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +StatisticsMessage::~StatisticsMessage() { + SharedDtor(); +} + +void StatisticsMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void StatisticsMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* StatisticsMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return StatisticsMessage_descriptor_; +} + +const StatisticsMessage& StatisticsMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +StatisticsMessage* StatisticsMessage::default_instance_ = NULL; + +StatisticsMessage* StatisticsMessage::New() const { + return new StatisticsMessage; +} + +void StatisticsMessage::Clear() { + statisticsdata_.Clear(); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool StatisticsMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .StatisticsMessage.StatisticsData statisticsData = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_statisticsData: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, add_statisticsdata())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(10)) goto parse_statisticsData; + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void StatisticsMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // repeated .StatisticsMessage.StatisticsData statisticsData = 1; + for (int i = 0; i < this->statisticsdata_size(); i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->statisticsdata(i), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* StatisticsMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // repeated .StatisticsMessage.StatisticsData statisticsData = 1; + for (int i = 0; i < this->statisticsdata_size(); i++) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->statisticsdata(i), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int StatisticsMessage::ByteSize() const { + int total_size = 0; + + // repeated .StatisticsMessage.StatisticsData statisticsData = 1; + total_size += 1 * this->statisticsdata_size(); + for (int i = 0; i < this->statisticsdata_size(); i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->statisticsdata(i)); + } + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void StatisticsMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const StatisticsMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void StatisticsMessage::MergeFrom(const StatisticsMessage& from) { + GOOGLE_CHECK_NE(&from, this); + statisticsdata_.MergeFrom(from.statisticsdata_); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void StatisticsMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void StatisticsMessage::CopyFrom(const StatisticsMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StatisticsMessage::IsInitialized() const { + + for (int i = 0; i < statisticsdata_size(); i++) { + if (!this->statisticsdata(i).IsInitialized()) return false; + } + return true; +} + +void StatisticsMessage::Swap(StatisticsMessage* other) { + if (other != this) { + statisticsdata_.Swap(&other->statisticsdata_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata StatisticsMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = StatisticsMessage_descriptor_; + metadata.reflection = StatisticsMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ChatRequestMessage::kTargetGameIdFieldNumber; +const int ChatRequestMessage::kTargetPlayerIdFieldNumber; +const int ChatRequestMessage::kChatTextFieldNumber; +#endif // !_MSC_VER + +ChatRequestMessage::ChatRequestMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ChatRequestMessage::InitAsDefaultInstance() { +} + +ChatRequestMessage::ChatRequestMessage(const ChatRequestMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ChatRequestMessage::SharedCtor() { + _cached_size_ = 0; + targetgameid_ = 0u; + targetplayerid_ = 0u; + chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ChatRequestMessage::~ChatRequestMessage() { + SharedDtor(); +} + +void ChatRequestMessage::SharedDtor() { + if (chattext_ != &::google::protobuf::internal::kEmptyString) { + delete chattext_; + } + if (this != default_instance_) { + } +} + +void ChatRequestMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ChatRequestMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ChatRequestMessage_descriptor_; +} + +const ChatRequestMessage& ChatRequestMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +ChatRequestMessage* ChatRequestMessage::default_instance_ = NULL; + +ChatRequestMessage* ChatRequestMessage::New() const { + return new ChatRequestMessage; +} + +void ChatRequestMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + targetgameid_ = 0u; + targetplayerid_ = 0u; + if (has_chattext()) { + if (chattext_ != &::google::protobuf::internal::kEmptyString) { + chattext_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ChatRequestMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 targetGameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &targetgameid_))); + set_has_targetgameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_targetPlayerId; + break; + } + + // optional uint32 targetPlayerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_targetPlayerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &targetplayerid_))); + set_has_targetplayerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_chatText; + break; + } + + // required string chatText = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_chatText: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_chattext())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->chattext().data(), this->chattext().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ChatRequestMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint32 targetGameId = 1; + if (has_targetgameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->targetgameid(), output); + } + + // optional uint32 targetPlayerId = 2; + if (has_targetplayerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->targetplayerid(), output); + } + + // required string chatText = 3; + if (has_chattext()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->chattext().data(), this->chattext().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 3, this->chattext(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ChatRequestMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint32 targetGameId = 1; + if (has_targetgameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->targetgameid(), target); + } + + // optional uint32 targetPlayerId = 2; + if (has_targetplayerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->targetplayerid(), target); + } + + // required string chatText = 3; + if (has_chattext()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->chattext().data(), this->chattext().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 3, this->chattext(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ChatRequestMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint32 targetGameId = 1; + if (has_targetgameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->targetgameid()); + } + + // optional uint32 targetPlayerId = 2; + if (has_targetplayerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->targetplayerid()); + } + + // required string chatText = 3; + if (has_chattext()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->chattext()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ChatRequestMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ChatRequestMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ChatRequestMessage::MergeFrom(const ChatRequestMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_targetgameid()) { + set_targetgameid(from.targetgameid()); + } + if (from.has_targetplayerid()) { + set_targetplayerid(from.targetplayerid()); + } + if (from.has_chattext()) { + set_chattext(from.chattext()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ChatRequestMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ChatRequestMessage::CopyFrom(const ChatRequestMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChatRequestMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000004) != 0x00000004) return false; + + return true; +} + +void ChatRequestMessage::Swap(ChatRequestMessage* other) { + if (other != this) { + std::swap(targetgameid_, other->targetgameid_); + std::swap(targetplayerid_, other->targetplayerid_); + std::swap(chattext_, other->chattext_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ChatRequestMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ChatRequestMessage_descriptor_; + metadata.reflection = ChatRequestMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* ChatMessage_ChatType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return ChatMessage_ChatType_descriptor_; +} +bool ChatMessage_ChatType_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const ChatMessage_ChatType ChatMessage::chatTypeLobby; +const ChatMessage_ChatType ChatMessage::chatTypeGame; +const ChatMessage_ChatType ChatMessage::chatTypeBot; +const ChatMessage_ChatType ChatMessage::chatTypeBroadcast; +const ChatMessage_ChatType ChatMessage::chatTypePrivate; +const ChatMessage_ChatType ChatMessage::ChatType_MIN; +const ChatMessage_ChatType ChatMessage::ChatType_MAX; +const int ChatMessage::ChatType_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int ChatMessage::kGameIdFieldNumber; +const int ChatMessage::kPlayerIdFieldNumber; +const int ChatMessage::kChatTypeFieldNumber; +const int ChatMessage::kChatTextFieldNumber; +#endif // !_MSC_VER + +ChatMessage::ChatMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ChatMessage::InitAsDefaultInstance() { +} + +ChatMessage::ChatMessage(const ChatMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ChatMessage::SharedCtor() { + _cached_size_ = 0; + gameid_ = 0u; + playerid_ = 0u; + chattype_ = 0; + chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ChatMessage::~ChatMessage() { + SharedDtor(); +} + +void ChatMessage::SharedDtor() { + if (chattext_ != &::google::protobuf::internal::kEmptyString) { + delete chattext_; + } + if (this != default_instance_) { + } +} + +void ChatMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ChatMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ChatMessage_descriptor_; +} + +const ChatMessage& ChatMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +ChatMessage* ChatMessage::default_instance_ = NULL; + +ChatMessage* ChatMessage::New() const { + return new ChatMessage; +} + +void ChatMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + gameid_ = 0u; + playerid_ = 0u; + chattype_ = 0; + if (has_chattext()) { + if (chattext_ != &::google::protobuf::internal::kEmptyString) { + chattext_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ChatMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // optional uint32 gameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &gameid_))); + set_has_gameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_playerId; + break; + } + + // optional uint32 playerId = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_playerId: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &playerid_))); + set_has_playerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(24)) goto parse_chatType; + break; + } + + // required .ChatMessage.ChatType chatType = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_chatType: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::ChatMessage_ChatType_IsValid(value)) { + set_chattype(static_cast< ::ChatMessage_ChatType >(value)); + } else { + mutable_unknown_fields()->AddVarint(3, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_chatText; + break; + } + + // required string chatText = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_chatText: + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_chattext())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->chattext().data(), this->chattext().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ChatMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // optional uint32 gameId = 1; + if (has_gameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); + } + + // optional uint32 playerId = 2; + if (has_playerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->playerid(), output); + } + + // required .ChatMessage.ChatType chatType = 3; + if (has_chattype()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 3, this->chattype(), output); + } + + // required string chatText = 4; + if (has_chattext()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->chattext().data(), this->chattext().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 4, this->chattext(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ChatMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // optional uint32 gameId = 1; + if (has_gameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->gameid(), target); + } + + // optional uint32 playerId = 2; + if (has_playerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->playerid(), target); + } + + // required .ChatMessage.ChatType chatType = 3; + if (has_chattype()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 3, this->chattype(), target); + } + + // required string chatText = 4; + if (has_chattext()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->chattext().data(), this->chattext().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 4, this->chattext(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ChatMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // optional uint32 gameId = 1; + if (has_gameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->gameid()); + } + + // optional uint32 playerId = 2; + if (has_playerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + // required .ChatMessage.ChatType chatType = 3; + if (has_chattype()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->chattype()); + } + + // required string chatText = 4; + if (has_chattext()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->chattext()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ChatMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ChatMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ChatMessage::MergeFrom(const ChatMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_gameid()) { + set_gameid(from.gameid()); + } + if (from.has_playerid()) { + set_playerid(from.playerid()); + } + if (from.has_chattype()) { + set_chattype(from.chattype()); + } + if (from.has_chattext()) { + set_chattext(from.chattext()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ChatMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ChatMessage::CopyFrom(const ChatMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChatMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x0000000c) != 0x0000000c) return false; + + return true; +} + +void ChatMessage::Swap(ChatMessage* other) { + if (other != this) { + std::swap(gameid_, other->gameid_); + std::swap(playerid_, other->playerid_); + std::swap(chattype_, other->chattype_); + std::swap(chattext_, other->chattext_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ChatMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ChatMessage_descriptor_; + metadata.reflection = ChatMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ChatRejectMessage::kChatTextFieldNumber; +#endif // !_MSC_VER + +ChatRejectMessage::ChatRejectMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ChatRejectMessage::InitAsDefaultInstance() { +} + +ChatRejectMessage::ChatRejectMessage(const ChatRejectMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ChatRejectMessage::SharedCtor() { + _cached_size_ = 0; + chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ChatRejectMessage::~ChatRejectMessage() { + SharedDtor(); +} + +void ChatRejectMessage::SharedDtor() { + if (chattext_ != &::google::protobuf::internal::kEmptyString) { + delete chattext_; + } + if (this != default_instance_) { + } +} + +void ChatRejectMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ChatRejectMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ChatRejectMessage_descriptor_; +} + +const ChatRejectMessage& ChatRejectMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +ChatRejectMessage* ChatRejectMessage::default_instance_ = NULL; + +ChatRejectMessage* ChatRejectMessage::New() const { + return new ChatRejectMessage; +} + +void ChatRejectMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_chattext()) { + if (chattext_ != &::google::protobuf::internal::kEmptyString) { + chattext_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ChatRejectMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string chatText = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_chattext())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->chattext().data(), this->chattext().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ChatRejectMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string chatText = 1; + if (has_chattext()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->chattext().data(), this->chattext().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->chattext(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ChatRejectMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string chatText = 1; + if (has_chattext()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->chattext().data(), this->chattext().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->chattext(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ChatRejectMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string chatText = 1; + if (has_chattext()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->chattext()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ChatRejectMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ChatRejectMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ChatRejectMessage::MergeFrom(const ChatRejectMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_chattext()) { + set_chattext(from.chattext()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ChatRejectMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ChatRejectMessage::CopyFrom(const ChatRejectMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChatRejectMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ChatRejectMessage::Swap(ChatRejectMessage* other) { + if (other != this) { + std::swap(chattext_, other->chattext_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ChatRejectMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ChatRejectMessage_descriptor_; + metadata.reflection = ChatRejectMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int DialogMessage::kNotificationTextFieldNumber; +#endif // !_MSC_VER + +DialogMessage::DialogMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void DialogMessage::InitAsDefaultInstance() { +} + +DialogMessage::DialogMessage(const DialogMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void DialogMessage::SharedCtor() { + _cached_size_ = 0; + notificationtext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +DialogMessage::~DialogMessage() { + SharedDtor(); +} + +void DialogMessage::SharedDtor() { + if (notificationtext_ != &::google::protobuf::internal::kEmptyString) { + delete notificationtext_; + } + if (this != default_instance_) { + } +} + +void DialogMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* DialogMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return DialogMessage_descriptor_; +} + +const DialogMessage& DialogMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +DialogMessage* DialogMessage::default_instance_ = NULL; + +DialogMessage* DialogMessage::New() const { + return new DialogMessage; +} + +void DialogMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_notificationtext()) { + if (notificationtext_ != &::google::protobuf::internal::kEmptyString) { + notificationtext_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool DialogMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required string notificationText = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_notificationtext())); + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->notificationtext().data(), this->notificationtext().length(), + ::google::protobuf::internal::WireFormat::PARSE); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void DialogMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required string notificationText = 1; + if (has_notificationtext()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->notificationtext().data(), this->notificationtext().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + ::google::protobuf::internal::WireFormatLite::WriteString( + 1, this->notificationtext(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* DialogMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required string notificationText = 1; + if (has_notificationtext()) { + ::google::protobuf::internal::WireFormat::VerifyUTF8String( + this->notificationtext().data(), this->notificationtext().length(), + ::google::protobuf::internal::WireFormat::SERIALIZE); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->notificationtext(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int DialogMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required string notificationText = 1; + if (has_notificationtext()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->notificationtext()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void DialogMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const DialogMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void DialogMessage::MergeFrom(const DialogMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_notificationtext()) { + set_notificationtext(from.notificationtext()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void DialogMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DialogMessage::CopyFrom(const DialogMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DialogMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void DialogMessage::Swap(DialogMessage* other) { + if (other != this) { + std::swap(notificationtext_, other->notificationtext_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata DialogMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = DialogMessage_descriptor_; + metadata.reflection = DialogMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* TimeoutWarningMessage_TimeoutReason_descriptor() { + protobuf_AssignDescriptorsOnce(); + return TimeoutWarningMessage_TimeoutReason_descriptor_; +} +bool TimeoutWarningMessage_TimeoutReason_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutNoDataReceived; +const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutInactiveGame; +const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutKickAfterAutofold; +const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::TimeoutReason_MIN; +const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::TimeoutReason_MAX; +const int TimeoutWarningMessage::TimeoutReason_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int TimeoutWarningMessage::kTimeoutReasonFieldNumber; +const int TimeoutWarningMessage::kRemainingSecondsFieldNumber; +#endif // !_MSC_VER + +TimeoutWarningMessage::TimeoutWarningMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void TimeoutWarningMessage::InitAsDefaultInstance() { +} + +TimeoutWarningMessage::TimeoutWarningMessage(const TimeoutWarningMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void TimeoutWarningMessage::SharedCtor() { + _cached_size_ = 0; + timeoutreason_ = 0; + remainingseconds_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +TimeoutWarningMessage::~TimeoutWarningMessage() { + SharedDtor(); +} + +void TimeoutWarningMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void TimeoutWarningMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* TimeoutWarningMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return TimeoutWarningMessage_descriptor_; +} + +const TimeoutWarningMessage& TimeoutWarningMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +TimeoutWarningMessage* TimeoutWarningMessage::default_instance_ = NULL; + +TimeoutWarningMessage* TimeoutWarningMessage::New() const { + return new TimeoutWarningMessage; +} + +void TimeoutWarningMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + timeoutreason_ = 0; + remainingseconds_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool TimeoutWarningMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::TimeoutWarningMessage_TimeoutReason_IsValid(value)) { + set_timeoutreason(static_cast< ::TimeoutWarningMessage_TimeoutReason >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_remainingSeconds; + break; + } + + // required uint32 remainingSeconds = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_remainingSeconds: + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &remainingseconds_))); + set_has_remainingseconds(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void TimeoutWarningMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; + if (has_timeoutreason()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->timeoutreason(), output); + } + + // required uint32 remainingSeconds = 2; + if (has_remainingseconds()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->remainingseconds(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* TimeoutWarningMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; + if (has_timeoutreason()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->timeoutreason(), target); + } + + // required uint32 remainingSeconds = 2; + if (has_remainingseconds()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->remainingseconds(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int TimeoutWarningMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; + if (has_timeoutreason()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->timeoutreason()); + } + + // required uint32 remainingSeconds = 2; + if (has_remainingseconds()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->remainingseconds()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void TimeoutWarningMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const TimeoutWarningMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void TimeoutWarningMessage::MergeFrom(const TimeoutWarningMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_timeoutreason()) { + set_timeoutreason(from.timeoutreason()); + } + if (from.has_remainingseconds()) { + set_remainingseconds(from.remainingseconds()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void TimeoutWarningMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void TimeoutWarningMessage::CopyFrom(const TimeoutWarningMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TimeoutWarningMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void TimeoutWarningMessage::Swap(TimeoutWarningMessage* other) { + if (other != this) { + std::swap(timeoutreason_, other->timeoutreason_); + std::swap(remainingseconds_, other->remainingseconds_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata TimeoutWarningMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = TimeoutWarningMessage_descriptor_; + metadata.reflection = TimeoutWarningMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +#endif // !_MSC_VER + +ResetTimeoutMessage::ResetTimeoutMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ResetTimeoutMessage::InitAsDefaultInstance() { +} + +ResetTimeoutMessage::ResetTimeoutMessage(const ResetTimeoutMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ResetTimeoutMessage::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ResetTimeoutMessage::~ResetTimeoutMessage() { + SharedDtor(); +} + +void ResetTimeoutMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void ResetTimeoutMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ResetTimeoutMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ResetTimeoutMessage_descriptor_; +} + +const ResetTimeoutMessage& ResetTimeoutMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +ResetTimeoutMessage* ResetTimeoutMessage::default_instance_ = NULL; + +ResetTimeoutMessage* ResetTimeoutMessage::New() const { + return new ResetTimeoutMessage; +} + +void ResetTimeoutMessage::Clear() { + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ResetTimeoutMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + } + return true; +#undef DO_ +} + +void ResetTimeoutMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ResetTimeoutMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ResetTimeoutMessage::ByteSize() const { + int total_size = 0; + + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ResetTimeoutMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ResetTimeoutMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ResetTimeoutMessage::MergeFrom(const ResetTimeoutMessage& from) { + GOOGLE_CHECK_NE(&from, this); + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ResetTimeoutMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ResetTimeoutMessage::CopyFrom(const ResetTimeoutMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ResetTimeoutMessage::IsInitialized() const { + + return true; +} + +void ResetTimeoutMessage::Swap(ResetTimeoutMessage* other) { + if (other != this) { + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ResetTimeoutMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ResetTimeoutMessage_descriptor_; + metadata.reflection = ResetTimeoutMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ReportAvatarMessage::kReportedPlayerIdFieldNumber; +const int ReportAvatarMessage::kReportedAvatarHashFieldNumber; +#endif // !_MSC_VER + +ReportAvatarMessage::ReportAvatarMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReportAvatarMessage::InitAsDefaultInstance() { +} + +ReportAvatarMessage::ReportAvatarMessage(const ReportAvatarMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReportAvatarMessage::SharedCtor() { + _cached_size_ = 0; + reportedplayerid_ = 0u; + reportedavatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReportAvatarMessage::~ReportAvatarMessage() { + SharedDtor(); +} + +void ReportAvatarMessage::SharedDtor() { + if (reportedavatarhash_ != &::google::protobuf::internal::kEmptyString) { + delete reportedavatarhash_; + } + if (this != default_instance_) { + } +} + +void ReportAvatarMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReportAvatarMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReportAvatarMessage_descriptor_; +} + +const ReportAvatarMessage& ReportAvatarMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +ReportAvatarMessage* ReportAvatarMessage::default_instance_ = NULL; + +ReportAvatarMessage* ReportAvatarMessage::New() const { + return new ReportAvatarMessage; +} + +void ReportAvatarMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + reportedplayerid_ = 0u; + if (has_reportedavatarhash()) { + if (reportedavatarhash_ != &::google::protobuf::internal::kEmptyString) { + reportedavatarhash_->clear(); + } + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReportAvatarMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 reportedPlayerId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &reportedplayerid_))); + set_has_reportedplayerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_reportedAvatarHash; + break; + } + + // required bytes reportedAvatarHash = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_reportedAvatarHash: + DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( + input, this->mutable_reportedavatarhash())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ReportAvatarMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 reportedPlayerId = 1; + if (has_reportedplayerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->reportedplayerid(), output); + } + + // required bytes reportedAvatarHash = 2; + if (has_reportedavatarhash()) { + ::google::protobuf::internal::WireFormatLite::WriteBytes( + 2, this->reportedavatarhash(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReportAvatarMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 reportedPlayerId = 1; + if (has_reportedplayerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->reportedplayerid(), target); + } + + // required bytes reportedAvatarHash = 2; + if (has_reportedavatarhash()) { + target = + ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( + 2, this->reportedavatarhash(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReportAvatarMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 reportedPlayerId = 1; + if (has_reportedplayerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->reportedplayerid()); + } + + // required bytes reportedAvatarHash = 2; + if (has_reportedavatarhash()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::BytesSize( + this->reportedavatarhash()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReportAvatarMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReportAvatarMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReportAvatarMessage::MergeFrom(const ReportAvatarMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_reportedplayerid()) { + set_reportedplayerid(from.reportedplayerid()); + } + if (from.has_reportedavatarhash()) { + set_reportedavatarhash(from.reportedavatarhash()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReportAvatarMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReportAvatarMessage::CopyFrom(const ReportAvatarMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReportAvatarMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void ReportAvatarMessage::Swap(ReportAvatarMessage* other) { + if (other != this) { + std::swap(reportedplayerid_, other->reportedplayerid_); + std::swap(reportedavatarhash_, other->reportedavatarhash_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReportAvatarMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReportAvatarMessage_descriptor_; + metadata.reflection = ReportAvatarMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* ReportAvatarAckMessage_ReportAvatarResult_descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReportAvatarAckMessage_ReportAvatarResult_descriptor_; +} +bool ReportAvatarAckMessage_ReportAvatarResult_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::avatarReportAccepted; +const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::avatarReportDuplicate; +const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::avatarReportInvalid; +const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::ReportAvatarResult_MIN; +const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::ReportAvatarResult_MAX; +const int ReportAvatarAckMessage::ReportAvatarResult_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int ReportAvatarAckMessage::kReportedPlayerIdFieldNumber; +const int ReportAvatarAckMessage::kReportAvatarResultFieldNumber; +#endif // !_MSC_VER + +ReportAvatarAckMessage::ReportAvatarAckMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReportAvatarAckMessage::InitAsDefaultInstance() { +} + +ReportAvatarAckMessage::ReportAvatarAckMessage(const ReportAvatarAckMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReportAvatarAckMessage::SharedCtor() { + _cached_size_ = 0; + reportedplayerid_ = 0u; + reportavatarresult_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReportAvatarAckMessage::~ReportAvatarAckMessage() { + SharedDtor(); +} + +void ReportAvatarAckMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void ReportAvatarAckMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReportAvatarAckMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReportAvatarAckMessage_descriptor_; +} + +const ReportAvatarAckMessage& ReportAvatarAckMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +ReportAvatarAckMessage* ReportAvatarAckMessage::default_instance_ = NULL; + +ReportAvatarAckMessage* ReportAvatarAckMessage::New() const { + return new ReportAvatarAckMessage; +} + +void ReportAvatarAckMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + reportedplayerid_ = 0u; + reportavatarresult_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReportAvatarAckMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 reportedPlayerId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &reportedplayerid_))); + set_has_reportedplayerid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_reportAvatarResult; + break; + } + + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_reportAvatarResult: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::ReportAvatarAckMessage_ReportAvatarResult_IsValid(value)) { + set_reportavatarresult(static_cast< ::ReportAvatarAckMessage_ReportAvatarResult >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ReportAvatarAckMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 reportedPlayerId = 1; + if (has_reportedplayerid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->reportedplayerid(), output); + } + + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; + if (has_reportavatarresult()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->reportavatarresult(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReportAvatarAckMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 reportedPlayerId = 1; + if (has_reportedplayerid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->reportedplayerid(), target); + } + + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; + if (has_reportavatarresult()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->reportavatarresult(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReportAvatarAckMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 reportedPlayerId = 1; + if (has_reportedplayerid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->reportedplayerid()); + } + + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; + if (has_reportavatarresult()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->reportavatarresult()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReportAvatarAckMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReportAvatarAckMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReportAvatarAckMessage::MergeFrom(const ReportAvatarAckMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_reportedplayerid()) { + set_reportedplayerid(from.reportedplayerid()); + } + if (from.has_reportavatarresult()) { + set_reportavatarresult(from.reportavatarresult()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReportAvatarAckMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReportAvatarAckMessage::CopyFrom(const ReportAvatarAckMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReportAvatarAckMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void ReportAvatarAckMessage::Swap(ReportAvatarAckMessage* other) { + if (other != this) { + std::swap(reportedplayerid_, other->reportedplayerid_); + std::swap(reportavatarresult_, other->reportavatarresult_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReportAvatarAckMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReportAvatarAckMessage_descriptor_; + metadata.reflection = ReportAvatarAckMessage_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int ReportGameMessage::kReportedGameIdFieldNumber; +#endif // !_MSC_VER + +ReportGameMessage::ReportGameMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReportGameMessage::InitAsDefaultInstance() { +} + +ReportGameMessage::ReportGameMessage(const ReportGameMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReportGameMessage::SharedCtor() { + _cached_size_ = 0; + reportedgameid_ = 0u; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReportGameMessage::~ReportGameMessage() { + SharedDtor(); +} + +void ReportGameMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void ReportGameMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReportGameMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReportGameMessage_descriptor_; +} + +const ReportGameMessage& ReportGameMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +ReportGameMessage* ReportGameMessage::default_instance_ = NULL; + +ReportGameMessage* ReportGameMessage::New() const { + return new ReportGameMessage; +} + +void ReportGameMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + reportedgameid_ = 0u; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReportGameMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 reportedGameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &reportedgameid_))); + set_has_reportedgameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ReportGameMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 reportedGameId = 1; + if (has_reportedgameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->reportedgameid(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReportGameMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 reportedGameId = 1; + if (has_reportedgameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->reportedgameid(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReportGameMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 reportedGameId = 1; + if (has_reportedgameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->reportedgameid()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReportGameMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReportGameMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReportGameMessage::MergeFrom(const ReportGameMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_reportedgameid()) { + set_reportedgameid(from.reportedgameid()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReportGameMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReportGameMessage::CopyFrom(const ReportGameMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReportGameMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ReportGameMessage::Swap(ReportGameMessage* other) { + if (other != this) { + std::swap(reportedgameid_, other->reportedgameid_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReportGameMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReportGameMessage_descriptor_; + metadata.reflection = ReportGameMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* ReportGameAckMessage_ReportGameResult_descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReportGameAckMessage_ReportGameResult_descriptor_; +} +bool ReportGameAckMessage_ReportGameResult_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const ReportGameAckMessage_ReportGameResult ReportGameAckMessage::gameReportAccepted; +const ReportGameAckMessage_ReportGameResult ReportGameAckMessage::gameReportDuplicate; +const ReportGameAckMessage_ReportGameResult ReportGameAckMessage::gameReportInvalid; +const ReportGameAckMessage_ReportGameResult ReportGameAckMessage::ReportGameResult_MIN; +const ReportGameAckMessage_ReportGameResult ReportGameAckMessage::ReportGameResult_MAX; +const int ReportGameAckMessage::ReportGameResult_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int ReportGameAckMessage::kReportedGameIdFieldNumber; +const int ReportGameAckMessage::kReportGameResultFieldNumber; +#endif // !_MSC_VER + +ReportGameAckMessage::ReportGameAckMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ReportGameAckMessage::InitAsDefaultInstance() { +} + +ReportGameAckMessage::ReportGameAckMessage(const ReportGameAckMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ReportGameAckMessage::SharedCtor() { + _cached_size_ = 0; + reportedgameid_ = 0u; + reportgameresult_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ReportGameAckMessage::~ReportGameAckMessage() { + SharedDtor(); +} + +void ReportGameAckMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void ReportGameAckMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ReportGameAckMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ReportGameAckMessage_descriptor_; +} + +const ReportGameAckMessage& ReportGameAckMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +ReportGameAckMessage* ReportGameAckMessage::default_instance_ = NULL; + +ReportGameAckMessage* ReportGameAckMessage::New() const { + return new ReportGameAckMessage; +} + +void ReportGameAckMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + reportedgameid_ = 0u; + reportgameresult_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ReportGameAckMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required uint32 reportedGameId = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( + input, &reportedgameid_))); + set_has_reportedgameid(); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_reportGameResult; + break; + } + + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_reportGameResult: + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::ReportGameAckMessage_ReportGameResult_IsValid(value)) { + set_reportgameresult(static_cast< ::ReportGameAckMessage_ReportGameResult >(value)); + } else { + mutable_unknown_fields()->AddVarint(2, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ReportGameAckMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required uint32 reportedGameId = 1; + if (has_reportedgameid()) { + ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->reportedgameid(), output); + } + + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; + if (has_reportgameresult()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->reportgameresult(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ReportGameAckMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required uint32 reportedGameId = 1; + if (has_reportedgameid()) { + target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->reportedgameid(), target); + } + + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; + if (has_reportgameresult()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->reportgameresult(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ReportGameAckMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required uint32 reportedGameId = 1; + if (has_reportedgameid()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->reportedgameid()); + } + + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; + if (has_reportgameresult()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->reportgameresult()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ReportGameAckMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ReportGameAckMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ReportGameAckMessage::MergeFrom(const ReportGameAckMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_reportedgameid()) { + set_reportedgameid(from.reportedgameid()); + } + if (from.has_reportgameresult()) { + set_reportgameresult(from.reportgameresult()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ReportGameAckMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ReportGameAckMessage::CopyFrom(const ReportGameAckMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ReportGameAckMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; + + return true; +} + +void ReportGameAckMessage::Swap(ReportGameAckMessage* other) { + if (other != this) { + std::swap(reportedgameid_, other->reportedgameid_); + std::swap(reportgameresult_, other->reportgameresult_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ReportGameAckMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ReportGameAckMessage_descriptor_; + metadata.reflection = ReportGameAckMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* ErrorMessage_ErrorReason_descriptor() { + protobuf_AssignDescriptorsOnce(); + return ErrorMessage_ErrorReason_descriptor_; +} +bool ErrorMessage_ErrorReason_IsValid(int value) { + switch(value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const ErrorMessage_ErrorReason ErrorMessage::reserved; +const ErrorMessage_ErrorReason ErrorMessage::initVersionNotSupported; +const ErrorMessage_ErrorReason ErrorMessage::initServerFull; +const ErrorMessage_ErrorReason ErrorMessage::initAuthFailure; +const ErrorMessage_ErrorReason ErrorMessage::initPlayerNameInUse; +const ErrorMessage_ErrorReason ErrorMessage::initInvalidPlayerName; +const ErrorMessage_ErrorReason ErrorMessage::initServerMaintenance; +const ErrorMessage_ErrorReason ErrorMessage::initBlocked; +const ErrorMessage_ErrorReason ErrorMessage::avatarTooLarge; +const ErrorMessage_ErrorReason ErrorMessage::invalidPacket; +const ErrorMessage_ErrorReason ErrorMessage::invalidState; +const ErrorMessage_ErrorReason ErrorMessage::kickedFromServer; +const ErrorMessage_ErrorReason ErrorMessage::bannedFromServer; +const ErrorMessage_ErrorReason ErrorMessage::blockedByServer; +const ErrorMessage_ErrorReason ErrorMessage::sessionTimeout; +const ErrorMessage_ErrorReason ErrorMessage::ErrorReason_MIN; +const ErrorMessage_ErrorReason ErrorMessage::ErrorReason_MAX; +const int ErrorMessage::ErrorReason_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int ErrorMessage::kErrorReasonFieldNumber; +#endif // !_MSC_VER + +ErrorMessage::ErrorMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void ErrorMessage::InitAsDefaultInstance() { +} + +ErrorMessage::ErrorMessage(const ErrorMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void ErrorMessage::SharedCtor() { + _cached_size_ = 0; + errorreason_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ErrorMessage::~ErrorMessage() { + SharedDtor(); +} + +void ErrorMessage::SharedDtor() { + if (this != default_instance_) { + } +} + +void ErrorMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ErrorMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ErrorMessage_descriptor_; +} + +const ErrorMessage& ErrorMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +ErrorMessage* ErrorMessage::default_instance_ = NULL; + +ErrorMessage* ErrorMessage::New() const { + return new ErrorMessage; +} + +void ErrorMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + errorreason_ = 0; + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool ErrorMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .ErrorMessage.ErrorReason errorReason = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::ErrorMessage_ErrorReason_IsValid(value)) { + set_errorreason(static_cast< ::ErrorMessage_ErrorReason >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void ErrorMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .ErrorMessage.ErrorReason errorReason = 1; + if (has_errorreason()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->errorreason(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* ErrorMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .ErrorMessage.ErrorReason errorReason = 1; + if (has_errorreason()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->errorreason(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int ErrorMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .ErrorMessage.ErrorReason errorReason = 1; + if (has_errorreason()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->errorreason()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void ErrorMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const ErrorMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void ErrorMessage::MergeFrom(const ErrorMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_errorreason()) { + set_errorreason(from.errorreason()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void ErrorMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void ErrorMessage::CopyFrom(const ErrorMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ErrorMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + return true; +} + +void ErrorMessage::Swap(ErrorMessage* other) { + if (other != this) { + std::swap(errorreason_, other->errorreason_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata ErrorMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ErrorMessage_descriptor_; + metadata.reflection = ErrorMessage_reflection_; + return metadata; +} + + +// =================================================================== + +const ::google::protobuf::EnumDescriptor* PokerTHMessage_PokerTHMessageType_descriptor() { + protobuf_AssignDescriptorsOnce(); + return PokerTHMessage_PokerTHMessageType_descriptor_; +} +bool PokerTHMessage_PokerTHMessageType_IsValid(int value) { + switch(value) { + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 24: + case 25: + case 26: + case 27: + case 28: + case 29: + case 30: + case 31: + case 32: + case 33: + case 34: + case 35: + case 36: + case 37: + case 38: + case 39: + case 40: + case 41: + case 42: + case 43: + case 44: + case 45: + case 46: + case 47: + case 48: + case 49: + case 50: + case 51: + case 52: + case 53: + case 54: + case 55: + case 56: + case 57: + case 58: + case 59: + case 60: + case 61: + case 62: + case 63: + case 64: + case 65: + case 66: + case 67: + case 68: + case 69: + case 70: + case 71: + case 72: + case 73: + return true; + default: + return false; + } +} + +#ifndef _MSC_VER +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AnnounceMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_InitMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AuthServerChallengeMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AuthClientResponseMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AuthServerVerificationMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_InitAckMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AvatarRequestMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AvatarHeaderMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AvatarDataMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AvatarEndMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_UnknownAvatarMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayerListMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListNewMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListUpdateMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListPlayerJoinedMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListPlayerLeftMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameListAdminChangedMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayerInfoRequestMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayerInfoReplyMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_SubscriptionRequestMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_JoinExistingGameMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_JoinNewGameMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_RejoinExistingGameMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_JoinGameAckMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_JoinGameFailedMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GamePlayerJoinedMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GamePlayerLeftMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameAdminChangedMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_RemovedFromGameMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_KickPlayerRequestMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_LeaveGameRequestMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_InvitePlayerToGameMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_InviteNotifyMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_RejectGameInvitationMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_RejectInvNotifyMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_StartEventMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_StartEventAckMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameStartInitialMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameStartRejoinMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_HandStartMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayersTurnMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_MyActionRequestMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_YourActionRejectedMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayersActionDoneMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_DealFlopCardsMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_DealTurnCardMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_DealRiverCardMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AllInShowCardsMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_EndOfHandShowCardsMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_EndOfHandHideCardsMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ShowMyCardsRequestMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AfterHandShowCardsMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_EndOfGameMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_PlayerIdChangedMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AskKickPlayerMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AskKickDeniedMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_StartKickPetitionMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_VoteKickRequestMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_VoteKickReplyMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_KickPetitionUpdateMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_EndKickPetitionMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_StatisticsMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ChatRequestMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ChatMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ChatRejectMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_DialogMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_TimeoutWarningMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ResetTimeoutMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ReportAvatarMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ReportAvatarAckMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ReportGameMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ReportGameAckMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_ErrorMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::PokerTHMessageType_MIN; +const PokerTHMessage_PokerTHMessageType PokerTHMessage::PokerTHMessageType_MAX; +const int PokerTHMessage::PokerTHMessageType_ARRAYSIZE; +#endif // _MSC_VER +#ifndef _MSC_VER +const int PokerTHMessage::kMessageTypeFieldNumber; +const int PokerTHMessage::kAnnounceMessageFieldNumber; +const int PokerTHMessage::kInitMessageFieldNumber; +const int PokerTHMessage::kAuthServerChallengeMessageFieldNumber; +const int PokerTHMessage::kAuthClientResponseMessageFieldNumber; +const int PokerTHMessage::kAuthServerVerificationMessageFieldNumber; +const int PokerTHMessage::kInitAckMessageFieldNumber; +const int PokerTHMessage::kAvatarRequestMessageFieldNumber; +const int PokerTHMessage::kAvatarHeaderMessageFieldNumber; +const int PokerTHMessage::kAvatarDataMessageFieldNumber; +const int PokerTHMessage::kAvatarEndMessageFieldNumber; +const int PokerTHMessage::kUnknownAvatarMessageFieldNumber; +const int PokerTHMessage::kPlayerListMessageFieldNumber; +const int PokerTHMessage::kGameListNewMessageFieldNumber; +const int PokerTHMessage::kGameListUpdateMessageFieldNumber; +const int PokerTHMessage::kGameListPlayerJoinedMessageFieldNumber; +const int PokerTHMessage::kGameListPlayerLeftMessageFieldNumber; +const int PokerTHMessage::kGameListAdminChangedMessageFieldNumber; +const int PokerTHMessage::kPlayerInfoRequestMessageFieldNumber; +const int PokerTHMessage::kPlayerInfoReplyMessageFieldNumber; +const int PokerTHMessage::kSubscriptionRequestMessageFieldNumber; +const int PokerTHMessage::kJoinExistingGameMessageFieldNumber; +const int PokerTHMessage::kJoinNewGameMessageFieldNumber; +const int PokerTHMessage::kRejoinExistingGameMessageFieldNumber; +const int PokerTHMessage::kJoinGameAckMessageFieldNumber; +const int PokerTHMessage::kJoinGameFailedMessageFieldNumber; +const int PokerTHMessage::kGamePlayerJoinedMessageFieldNumber; +const int PokerTHMessage::kGamePlayerLeftMessageFieldNumber; +const int PokerTHMessage::kGameAdminChangedMessageFieldNumber; +const int PokerTHMessage::kRemovedFromGameMessageFieldNumber; +const int PokerTHMessage::kKickPlayerRequestMessageFieldNumber; +const int PokerTHMessage::kLeaveGameRequestMessageFieldNumber; +const int PokerTHMessage::kInvitePlayerToGameMessageFieldNumber; +const int PokerTHMessage::kInviteNotifyMessageFieldNumber; +const int PokerTHMessage::kRejectGameInvitationMessageFieldNumber; +const int PokerTHMessage::kRejectInvNotifyMessageFieldNumber; +const int PokerTHMessage::kStartEventMessageFieldNumber; +const int PokerTHMessage::kStartEventAckMessageFieldNumber; +const int PokerTHMessage::kGameStartInitialMessageFieldNumber; +const int PokerTHMessage::kGameStartRejoinMessageFieldNumber; +const int PokerTHMessage::kHandStartMessageFieldNumber; +const int PokerTHMessage::kPlayersTurnMessageFieldNumber; +const int PokerTHMessage::kMyActionRequestMessageFieldNumber; +const int PokerTHMessage::kYourActionRejectedMessageFieldNumber; +const int PokerTHMessage::kPlayersActionDoneMessageFieldNumber; +const int PokerTHMessage::kDealFlopCardsMessageFieldNumber; +const int PokerTHMessage::kDealTurnCardMessageFieldNumber; +const int PokerTHMessage::kDealRiverCardMessageFieldNumber; +const int PokerTHMessage::kAllInShowCardsMessageFieldNumber; +const int PokerTHMessage::kEndOfHandShowCardsMessageFieldNumber; +const int PokerTHMessage::kEndOfHandHideCardsMessageFieldNumber; +const int PokerTHMessage::kShowMyCardsRequestMessageFieldNumber; +const int PokerTHMessage::kAfterHandShowCardsMessageFieldNumber; +const int PokerTHMessage::kEndOfGameMessageFieldNumber; +const int PokerTHMessage::kPlayerIdChangedMessageFieldNumber; +const int PokerTHMessage::kAskKickPlayerMessageFieldNumber; +const int PokerTHMessage::kAskKickDeniedMessageFieldNumber; +const int PokerTHMessage::kStartKickPetitionMessageFieldNumber; +const int PokerTHMessage::kVoteKickRequestMessageFieldNumber; +const int PokerTHMessage::kVoteKickReplyMessageFieldNumber; +const int PokerTHMessage::kKickPetitionUpdateMessageFieldNumber; +const int PokerTHMessage::kEndKickPetitionMessageFieldNumber; +const int PokerTHMessage::kStatisticsMessageFieldNumber; +const int PokerTHMessage::kChatRequestMessageFieldNumber; +const int PokerTHMessage::kChatMessageFieldNumber; +const int PokerTHMessage::kChatRejectMessageFieldNumber; +const int PokerTHMessage::kDialogMessageFieldNumber; +const int PokerTHMessage::kTimeoutWarningMessageFieldNumber; +const int PokerTHMessage::kResetTimeoutMessageFieldNumber; +const int PokerTHMessage::kReportAvatarMessageFieldNumber; +const int PokerTHMessage::kReportAvatarAckMessageFieldNumber; +const int PokerTHMessage::kReportGameMessageFieldNumber; +const int PokerTHMessage::kReportGameAckMessageFieldNumber; +const int PokerTHMessage::kErrorMessageFieldNumber; +#endif // !_MSC_VER + +PokerTHMessage::PokerTHMessage() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void PokerTHMessage::InitAsDefaultInstance() { + announcemessage_ = const_cast< ::AnnounceMessage*>(&::AnnounceMessage::default_instance()); + initmessage_ = const_cast< ::InitMessage*>(&::InitMessage::default_instance()); + authserverchallengemessage_ = const_cast< ::AuthServerChallengeMessage*>(&::AuthServerChallengeMessage::default_instance()); + authclientresponsemessage_ = const_cast< ::AuthClientResponseMessage*>(&::AuthClientResponseMessage::default_instance()); + authserververificationmessage_ = const_cast< ::AuthServerVerificationMessage*>(&::AuthServerVerificationMessage::default_instance()); + initackmessage_ = const_cast< ::InitAckMessage*>(&::InitAckMessage::default_instance()); + avatarrequestmessage_ = const_cast< ::AvatarRequestMessage*>(&::AvatarRequestMessage::default_instance()); + avatarheadermessage_ = const_cast< ::AvatarHeaderMessage*>(&::AvatarHeaderMessage::default_instance()); + avatardatamessage_ = const_cast< ::AvatarDataMessage*>(&::AvatarDataMessage::default_instance()); + avatarendmessage_ = const_cast< ::AvatarEndMessage*>(&::AvatarEndMessage::default_instance()); + unknownavatarmessage_ = const_cast< ::UnknownAvatarMessage*>(&::UnknownAvatarMessage::default_instance()); + playerlistmessage_ = const_cast< ::PlayerListMessage*>(&::PlayerListMessage::default_instance()); + gamelistnewmessage_ = const_cast< ::GameListNewMessage*>(&::GameListNewMessage::default_instance()); + gamelistupdatemessage_ = const_cast< ::GameListUpdateMessage*>(&::GameListUpdateMessage::default_instance()); + gamelistplayerjoinedmessage_ = const_cast< ::GameListPlayerJoinedMessage*>(&::GameListPlayerJoinedMessage::default_instance()); + gamelistplayerleftmessage_ = const_cast< ::GameListPlayerLeftMessage*>(&::GameListPlayerLeftMessage::default_instance()); + gamelistadminchangedmessage_ = const_cast< ::GameListAdminChangedMessage*>(&::GameListAdminChangedMessage::default_instance()); + playerinforequestmessage_ = const_cast< ::PlayerInfoRequestMessage*>(&::PlayerInfoRequestMessage::default_instance()); + playerinforeplymessage_ = const_cast< ::PlayerInfoReplyMessage*>(&::PlayerInfoReplyMessage::default_instance()); + subscriptionrequestmessage_ = const_cast< ::SubscriptionRequestMessage*>(&::SubscriptionRequestMessage::default_instance()); + joinexistinggamemessage_ = const_cast< ::JoinExistingGameMessage*>(&::JoinExistingGameMessage::default_instance()); + joinnewgamemessage_ = const_cast< ::JoinNewGameMessage*>(&::JoinNewGameMessage::default_instance()); + rejoinexistinggamemessage_ = const_cast< ::RejoinExistingGameMessage*>(&::RejoinExistingGameMessage::default_instance()); + joingameackmessage_ = const_cast< ::JoinGameAckMessage*>(&::JoinGameAckMessage::default_instance()); + joingamefailedmessage_ = const_cast< ::JoinGameFailedMessage*>(&::JoinGameFailedMessage::default_instance()); + gameplayerjoinedmessage_ = const_cast< ::GamePlayerJoinedMessage*>(&::GamePlayerJoinedMessage::default_instance()); + gameplayerleftmessage_ = const_cast< ::GamePlayerLeftMessage*>(&::GamePlayerLeftMessage::default_instance()); + gameadminchangedmessage_ = const_cast< ::GameAdminChangedMessage*>(&::GameAdminChangedMessage::default_instance()); + removedfromgamemessage_ = const_cast< ::RemovedFromGameMessage*>(&::RemovedFromGameMessage::default_instance()); + kickplayerrequestmessage_ = const_cast< ::KickPlayerRequestMessage*>(&::KickPlayerRequestMessage::default_instance()); + leavegamerequestmessage_ = const_cast< ::LeaveGameRequestMessage*>(&::LeaveGameRequestMessage::default_instance()); + inviteplayertogamemessage_ = const_cast< ::InvitePlayerToGameMessage*>(&::InvitePlayerToGameMessage::default_instance()); + invitenotifymessage_ = const_cast< ::InviteNotifyMessage*>(&::InviteNotifyMessage::default_instance()); + rejectgameinvitationmessage_ = const_cast< ::RejectGameInvitationMessage*>(&::RejectGameInvitationMessage::default_instance()); + rejectinvnotifymessage_ = const_cast< ::RejectInvNotifyMessage*>(&::RejectInvNotifyMessage::default_instance()); + starteventmessage_ = const_cast< ::StartEventMessage*>(&::StartEventMessage::default_instance()); + starteventackmessage_ = const_cast< ::StartEventAckMessage*>(&::StartEventAckMessage::default_instance()); + gamestartinitialmessage_ = const_cast< ::GameStartInitialMessage*>(&::GameStartInitialMessage::default_instance()); + gamestartrejoinmessage_ = const_cast< ::GameStartRejoinMessage*>(&::GameStartRejoinMessage::default_instance()); + handstartmessage_ = const_cast< ::HandStartMessage*>(&::HandStartMessage::default_instance()); + playersturnmessage_ = const_cast< ::PlayersTurnMessage*>(&::PlayersTurnMessage::default_instance()); + myactionrequestmessage_ = const_cast< ::MyActionRequestMessage*>(&::MyActionRequestMessage::default_instance()); + youractionrejectedmessage_ = const_cast< ::YourActionRejectedMessage*>(&::YourActionRejectedMessage::default_instance()); + playersactiondonemessage_ = const_cast< ::PlayersActionDoneMessage*>(&::PlayersActionDoneMessage::default_instance()); + dealflopcardsmessage_ = const_cast< ::DealFlopCardsMessage*>(&::DealFlopCardsMessage::default_instance()); + dealturncardmessage_ = const_cast< ::DealTurnCardMessage*>(&::DealTurnCardMessage::default_instance()); + dealrivercardmessage_ = const_cast< ::DealRiverCardMessage*>(&::DealRiverCardMessage::default_instance()); + allinshowcardsmessage_ = const_cast< ::AllInShowCardsMessage*>(&::AllInShowCardsMessage::default_instance()); + endofhandshowcardsmessage_ = const_cast< ::EndOfHandShowCardsMessage*>(&::EndOfHandShowCardsMessage::default_instance()); + endofhandhidecardsmessage_ = const_cast< ::EndOfHandHideCardsMessage*>(&::EndOfHandHideCardsMessage::default_instance()); + showmycardsrequestmessage_ = const_cast< ::ShowMyCardsRequestMessage*>(&::ShowMyCardsRequestMessage::default_instance()); + afterhandshowcardsmessage_ = const_cast< ::AfterHandShowCardsMessage*>(&::AfterHandShowCardsMessage::default_instance()); + endofgamemessage_ = const_cast< ::EndOfGameMessage*>(&::EndOfGameMessage::default_instance()); + playeridchangedmessage_ = const_cast< ::PlayerIdChangedMessage*>(&::PlayerIdChangedMessage::default_instance()); + askkickplayermessage_ = const_cast< ::AskKickPlayerMessage*>(&::AskKickPlayerMessage::default_instance()); + askkickdeniedmessage_ = const_cast< ::AskKickDeniedMessage*>(&::AskKickDeniedMessage::default_instance()); + startkickpetitionmessage_ = const_cast< ::StartKickPetitionMessage*>(&::StartKickPetitionMessage::default_instance()); + votekickrequestmessage_ = const_cast< ::VoteKickRequestMessage*>(&::VoteKickRequestMessage::default_instance()); + votekickreplymessage_ = const_cast< ::VoteKickReplyMessage*>(&::VoteKickReplyMessage::default_instance()); + kickpetitionupdatemessage_ = const_cast< ::KickPetitionUpdateMessage*>(&::KickPetitionUpdateMessage::default_instance()); + endkickpetitionmessage_ = const_cast< ::EndKickPetitionMessage*>(&::EndKickPetitionMessage::default_instance()); + statisticsmessage_ = const_cast< ::StatisticsMessage*>(&::StatisticsMessage::default_instance()); + chatrequestmessage_ = const_cast< ::ChatRequestMessage*>(&::ChatRequestMessage::default_instance()); + chatmessage_ = const_cast< ::ChatMessage*>(&::ChatMessage::default_instance()); + chatrejectmessage_ = const_cast< ::ChatRejectMessage*>(&::ChatRejectMessage::default_instance()); + dialogmessage_ = const_cast< ::DialogMessage*>(&::DialogMessage::default_instance()); + timeoutwarningmessage_ = const_cast< ::TimeoutWarningMessage*>(&::TimeoutWarningMessage::default_instance()); + resettimeoutmessage_ = const_cast< ::ResetTimeoutMessage*>(&::ResetTimeoutMessage::default_instance()); + reportavatarmessage_ = const_cast< ::ReportAvatarMessage*>(&::ReportAvatarMessage::default_instance()); + reportavatarackmessage_ = const_cast< ::ReportAvatarAckMessage*>(&::ReportAvatarAckMessage::default_instance()); + reportgamemessage_ = const_cast< ::ReportGameMessage*>(&::ReportGameMessage::default_instance()); + reportgameackmessage_ = const_cast< ::ReportGameAckMessage*>(&::ReportGameAckMessage::default_instance()); + errormessage_ = const_cast< ::ErrorMessage*>(&::ErrorMessage::default_instance()); +} + +PokerTHMessage::PokerTHMessage(const PokerTHMessage& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); +} + +void PokerTHMessage::SharedCtor() { + _cached_size_ = 0; + messagetype_ = 1; + announcemessage_ = NULL; + initmessage_ = NULL; + authserverchallengemessage_ = NULL; + authclientresponsemessage_ = NULL; + authserververificationmessage_ = NULL; + initackmessage_ = NULL; + avatarrequestmessage_ = NULL; + avatarheadermessage_ = NULL; + avatardatamessage_ = NULL; + avatarendmessage_ = NULL; + unknownavatarmessage_ = NULL; + playerlistmessage_ = NULL; + gamelistnewmessage_ = NULL; + gamelistupdatemessage_ = NULL; + gamelistplayerjoinedmessage_ = NULL; + gamelistplayerleftmessage_ = NULL; + gamelistadminchangedmessage_ = NULL; + playerinforequestmessage_ = NULL; + playerinforeplymessage_ = NULL; + subscriptionrequestmessage_ = NULL; + joinexistinggamemessage_ = NULL; + joinnewgamemessage_ = NULL; + rejoinexistinggamemessage_ = NULL; + joingameackmessage_ = NULL; + joingamefailedmessage_ = NULL; + gameplayerjoinedmessage_ = NULL; + gameplayerleftmessage_ = NULL; + gameadminchangedmessage_ = NULL; + removedfromgamemessage_ = NULL; + kickplayerrequestmessage_ = NULL; + leavegamerequestmessage_ = NULL; + inviteplayertogamemessage_ = NULL; + invitenotifymessage_ = NULL; + rejectgameinvitationmessage_ = NULL; + rejectinvnotifymessage_ = NULL; + starteventmessage_ = NULL; + starteventackmessage_ = NULL; + gamestartinitialmessage_ = NULL; + gamestartrejoinmessage_ = NULL; + handstartmessage_ = NULL; + playersturnmessage_ = NULL; + myactionrequestmessage_ = NULL; + youractionrejectedmessage_ = NULL; + playersactiondonemessage_ = NULL; + dealflopcardsmessage_ = NULL; + dealturncardmessage_ = NULL; + dealrivercardmessage_ = NULL; + allinshowcardsmessage_ = NULL; + endofhandshowcardsmessage_ = NULL; + endofhandhidecardsmessage_ = NULL; + showmycardsrequestmessage_ = NULL; + afterhandshowcardsmessage_ = NULL; + endofgamemessage_ = NULL; + playeridchangedmessage_ = NULL; + askkickplayermessage_ = NULL; + askkickdeniedmessage_ = NULL; + startkickpetitionmessage_ = NULL; + votekickrequestmessage_ = NULL; + votekickreplymessage_ = NULL; + kickpetitionupdatemessage_ = NULL; + endkickpetitionmessage_ = NULL; + statisticsmessage_ = NULL; + chatrequestmessage_ = NULL; + chatmessage_ = NULL; + chatrejectmessage_ = NULL; + dialogmessage_ = NULL; + timeoutwarningmessage_ = NULL; + resettimeoutmessage_ = NULL; + reportavatarmessage_ = NULL; + reportavatarackmessage_ = NULL; + reportgamemessage_ = NULL; + reportgameackmessage_ = NULL; + errormessage_ = NULL; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +PokerTHMessage::~PokerTHMessage() { + SharedDtor(); +} + +void PokerTHMessage::SharedDtor() { + if (this != default_instance_) { + delete announcemessage_; + delete initmessage_; + delete authserverchallengemessage_; + delete authclientresponsemessage_; + delete authserververificationmessage_; + delete initackmessage_; + delete avatarrequestmessage_; + delete avatarheadermessage_; + delete avatardatamessage_; + delete avatarendmessage_; + delete unknownavatarmessage_; + delete playerlistmessage_; + delete gamelistnewmessage_; + delete gamelistupdatemessage_; + delete gamelistplayerjoinedmessage_; + delete gamelistplayerleftmessage_; + delete gamelistadminchangedmessage_; + delete playerinforequestmessage_; + delete playerinforeplymessage_; + delete subscriptionrequestmessage_; + delete joinexistinggamemessage_; + delete joinnewgamemessage_; + delete rejoinexistinggamemessage_; + delete joingameackmessage_; + delete joingamefailedmessage_; + delete gameplayerjoinedmessage_; + delete gameplayerleftmessage_; + delete gameadminchangedmessage_; + delete removedfromgamemessage_; + delete kickplayerrequestmessage_; + delete leavegamerequestmessage_; + delete inviteplayertogamemessage_; + delete invitenotifymessage_; + delete rejectgameinvitationmessage_; + delete rejectinvnotifymessage_; + delete starteventmessage_; + delete starteventackmessage_; + delete gamestartinitialmessage_; + delete gamestartrejoinmessage_; + delete handstartmessage_; + delete playersturnmessage_; + delete myactionrequestmessage_; + delete youractionrejectedmessage_; + delete playersactiondonemessage_; + delete dealflopcardsmessage_; + delete dealturncardmessage_; + delete dealrivercardmessage_; + delete allinshowcardsmessage_; + delete endofhandshowcardsmessage_; + delete endofhandhidecardsmessage_; + delete showmycardsrequestmessage_; + delete afterhandshowcardsmessage_; + delete endofgamemessage_; + delete playeridchangedmessage_; + delete askkickplayermessage_; + delete askkickdeniedmessage_; + delete startkickpetitionmessage_; + delete votekickrequestmessage_; + delete votekickreplymessage_; + delete kickpetitionupdatemessage_; + delete endkickpetitionmessage_; + delete statisticsmessage_; + delete chatrequestmessage_; + delete chatmessage_; + delete chatrejectmessage_; + delete dialogmessage_; + delete timeoutwarningmessage_; + delete resettimeoutmessage_; + delete reportavatarmessage_; + delete reportavatarackmessage_; + delete reportgamemessage_; + delete reportgameackmessage_; + delete errormessage_; + } +} + +void PokerTHMessage::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* PokerTHMessage::descriptor() { + protobuf_AssignDescriptorsOnce(); + return PokerTHMessage_descriptor_; +} + +const PokerTHMessage& PokerTHMessage::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); return *default_instance_; +} + +PokerTHMessage* PokerTHMessage::default_instance_ = NULL; + +PokerTHMessage* PokerTHMessage::New() const { + return new PokerTHMessage; +} + +void PokerTHMessage::Clear() { + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + messagetype_ = 1; + if (has_announcemessage()) { + if (announcemessage_ != NULL) announcemessage_->::AnnounceMessage::Clear(); + } + if (has_initmessage()) { + if (initmessage_ != NULL) initmessage_->::InitMessage::Clear(); + } + if (has_authserverchallengemessage()) { + if (authserverchallengemessage_ != NULL) authserverchallengemessage_->::AuthServerChallengeMessage::Clear(); + } + if (has_authclientresponsemessage()) { + if (authclientresponsemessage_ != NULL) authclientresponsemessage_->::AuthClientResponseMessage::Clear(); + } + if (has_authserververificationmessage()) { + if (authserververificationmessage_ != NULL) authserververificationmessage_->::AuthServerVerificationMessage::Clear(); + } + if (has_initackmessage()) { + if (initackmessage_ != NULL) initackmessage_->::InitAckMessage::Clear(); + } + if (has_avatarrequestmessage()) { + if (avatarrequestmessage_ != NULL) avatarrequestmessage_->::AvatarRequestMessage::Clear(); + } + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + if (has_avatarheadermessage()) { + if (avatarheadermessage_ != NULL) avatarheadermessage_->::AvatarHeaderMessage::Clear(); + } + if (has_avatardatamessage()) { + if (avatardatamessage_ != NULL) avatardatamessage_->::AvatarDataMessage::Clear(); + } + if (has_avatarendmessage()) { + if (avatarendmessage_ != NULL) avatarendmessage_->::AvatarEndMessage::Clear(); + } + if (has_unknownavatarmessage()) { + if (unknownavatarmessage_ != NULL) unknownavatarmessage_->::UnknownAvatarMessage::Clear(); + } + if (has_playerlistmessage()) { + if (playerlistmessage_ != NULL) playerlistmessage_->::PlayerListMessage::Clear(); + } + if (has_gamelistnewmessage()) { + if (gamelistnewmessage_ != NULL) gamelistnewmessage_->::GameListNewMessage::Clear(); + } + if (has_gamelistupdatemessage()) { + if (gamelistupdatemessage_ != NULL) gamelistupdatemessage_->::GameListUpdateMessage::Clear(); + } + if (has_gamelistplayerjoinedmessage()) { + if (gamelistplayerjoinedmessage_ != NULL) gamelistplayerjoinedmessage_->::GameListPlayerJoinedMessage::Clear(); + } + } + if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { + if (has_gamelistplayerleftmessage()) { + if (gamelistplayerleftmessage_ != NULL) gamelistplayerleftmessage_->::GameListPlayerLeftMessage::Clear(); + } + if (has_gamelistadminchangedmessage()) { + if (gamelistadminchangedmessage_ != NULL) gamelistadminchangedmessage_->::GameListAdminChangedMessage::Clear(); + } + if (has_playerinforequestmessage()) { + if (playerinforequestmessage_ != NULL) playerinforequestmessage_->::PlayerInfoRequestMessage::Clear(); + } + if (has_playerinforeplymessage()) { + if (playerinforeplymessage_ != NULL) playerinforeplymessage_->::PlayerInfoReplyMessage::Clear(); + } + if (has_subscriptionrequestmessage()) { + if (subscriptionrequestmessage_ != NULL) subscriptionrequestmessage_->::SubscriptionRequestMessage::Clear(); + } + if (has_joinexistinggamemessage()) { + if (joinexistinggamemessage_ != NULL) joinexistinggamemessage_->::JoinExistingGameMessage::Clear(); + } + if (has_joinnewgamemessage()) { + if (joinnewgamemessage_ != NULL) joinnewgamemessage_->::JoinNewGameMessage::Clear(); + } + if (has_rejoinexistinggamemessage()) { + if (rejoinexistinggamemessage_ != NULL) rejoinexistinggamemessage_->::RejoinExistingGameMessage::Clear(); + } + } + if (_has_bits_[24 / 32] & (0xffu << (24 % 32))) { + if (has_joingameackmessage()) { + if (joingameackmessage_ != NULL) joingameackmessage_->::JoinGameAckMessage::Clear(); + } + if (has_joingamefailedmessage()) { + if (joingamefailedmessage_ != NULL) joingamefailedmessage_->::JoinGameFailedMessage::Clear(); + } + if (has_gameplayerjoinedmessage()) { + if (gameplayerjoinedmessage_ != NULL) gameplayerjoinedmessage_->::GamePlayerJoinedMessage::Clear(); + } + if (has_gameplayerleftmessage()) { + if (gameplayerleftmessage_ != NULL) gameplayerleftmessage_->::GamePlayerLeftMessage::Clear(); + } + if (has_gameadminchangedmessage()) { + if (gameadminchangedmessage_ != NULL) gameadminchangedmessage_->::GameAdminChangedMessage::Clear(); + } + if (has_removedfromgamemessage()) { + if (removedfromgamemessage_ != NULL) removedfromgamemessage_->::RemovedFromGameMessage::Clear(); + } + if (has_kickplayerrequestmessage()) { + if (kickplayerrequestmessage_ != NULL) kickplayerrequestmessage_->::KickPlayerRequestMessage::Clear(); + } + if (has_leavegamerequestmessage()) { + if (leavegamerequestmessage_ != NULL) leavegamerequestmessage_->::LeaveGameRequestMessage::Clear(); + } + } + if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) { + if (has_inviteplayertogamemessage()) { + if (inviteplayertogamemessage_ != NULL) inviteplayertogamemessage_->::InvitePlayerToGameMessage::Clear(); + } + if (has_invitenotifymessage()) { + if (invitenotifymessage_ != NULL) invitenotifymessage_->::InviteNotifyMessage::Clear(); + } + if (has_rejectgameinvitationmessage()) { + if (rejectgameinvitationmessage_ != NULL) rejectgameinvitationmessage_->::RejectGameInvitationMessage::Clear(); + } + if (has_rejectinvnotifymessage()) { + if (rejectinvnotifymessage_ != NULL) rejectinvnotifymessage_->::RejectInvNotifyMessage::Clear(); + } + if (has_starteventmessage()) { + if (starteventmessage_ != NULL) starteventmessage_->::StartEventMessage::Clear(); + } + if (has_starteventackmessage()) { + if (starteventackmessage_ != NULL) starteventackmessage_->::StartEventAckMessage::Clear(); + } + if (has_gamestartinitialmessage()) { + if (gamestartinitialmessage_ != NULL) gamestartinitialmessage_->::GameStartInitialMessage::Clear(); + } + if (has_gamestartrejoinmessage()) { + if (gamestartrejoinmessage_ != NULL) gamestartrejoinmessage_->::GameStartRejoinMessage::Clear(); + } + } + if (_has_bits_[40 / 32] & (0xffu << (40 % 32))) { + if (has_handstartmessage()) { + if (handstartmessage_ != NULL) handstartmessage_->::HandStartMessage::Clear(); + } + if (has_playersturnmessage()) { + if (playersturnmessage_ != NULL) playersturnmessage_->::PlayersTurnMessage::Clear(); + } + if (has_myactionrequestmessage()) { + if (myactionrequestmessage_ != NULL) myactionrequestmessage_->::MyActionRequestMessage::Clear(); + } + if (has_youractionrejectedmessage()) { + if (youractionrejectedmessage_ != NULL) youractionrejectedmessage_->::YourActionRejectedMessage::Clear(); + } + if (has_playersactiondonemessage()) { + if (playersactiondonemessage_ != NULL) playersactiondonemessage_->::PlayersActionDoneMessage::Clear(); + } + if (has_dealflopcardsmessage()) { + if (dealflopcardsmessage_ != NULL) dealflopcardsmessage_->::DealFlopCardsMessage::Clear(); + } + if (has_dealturncardmessage()) { + if (dealturncardmessage_ != NULL) dealturncardmessage_->::DealTurnCardMessage::Clear(); + } + if (has_dealrivercardmessage()) { + if (dealrivercardmessage_ != NULL) dealrivercardmessage_->::DealRiverCardMessage::Clear(); + } + } + if (_has_bits_[48 / 32] & (0xffu << (48 % 32))) { + if (has_allinshowcardsmessage()) { + if (allinshowcardsmessage_ != NULL) allinshowcardsmessage_->::AllInShowCardsMessage::Clear(); + } + if (has_endofhandshowcardsmessage()) { + if (endofhandshowcardsmessage_ != NULL) endofhandshowcardsmessage_->::EndOfHandShowCardsMessage::Clear(); + } + if (has_endofhandhidecardsmessage()) { + if (endofhandhidecardsmessage_ != NULL) endofhandhidecardsmessage_->::EndOfHandHideCardsMessage::Clear(); + } + if (has_showmycardsrequestmessage()) { + if (showmycardsrequestmessage_ != NULL) showmycardsrequestmessage_->::ShowMyCardsRequestMessage::Clear(); + } + if (has_afterhandshowcardsmessage()) { + if (afterhandshowcardsmessage_ != NULL) afterhandshowcardsmessage_->::AfterHandShowCardsMessage::Clear(); + } + if (has_endofgamemessage()) { + if (endofgamemessage_ != NULL) endofgamemessage_->::EndOfGameMessage::Clear(); + } + if (has_playeridchangedmessage()) { + if (playeridchangedmessage_ != NULL) playeridchangedmessage_->::PlayerIdChangedMessage::Clear(); + } + if (has_askkickplayermessage()) { + if (askkickplayermessage_ != NULL) askkickplayermessage_->::AskKickPlayerMessage::Clear(); + } + } + if (_has_bits_[56 / 32] & (0xffu << (56 % 32))) { + if (has_askkickdeniedmessage()) { + if (askkickdeniedmessage_ != NULL) askkickdeniedmessage_->::AskKickDeniedMessage::Clear(); + } + if (has_startkickpetitionmessage()) { + if (startkickpetitionmessage_ != NULL) startkickpetitionmessage_->::StartKickPetitionMessage::Clear(); + } + if (has_votekickrequestmessage()) { + if (votekickrequestmessage_ != NULL) votekickrequestmessage_->::VoteKickRequestMessage::Clear(); + } + if (has_votekickreplymessage()) { + if (votekickreplymessage_ != NULL) votekickreplymessage_->::VoteKickReplyMessage::Clear(); + } + if (has_kickpetitionupdatemessage()) { + if (kickpetitionupdatemessage_ != NULL) kickpetitionupdatemessage_->::KickPetitionUpdateMessage::Clear(); + } + if (has_endkickpetitionmessage()) { + if (endkickpetitionmessage_ != NULL) endkickpetitionmessage_->::EndKickPetitionMessage::Clear(); + } + if (has_statisticsmessage()) { + if (statisticsmessage_ != NULL) statisticsmessage_->::StatisticsMessage::Clear(); + } + if (has_chatrequestmessage()) { + if (chatrequestmessage_ != NULL) chatrequestmessage_->::ChatRequestMessage::Clear(); + } + } + if (_has_bits_[64 / 32] & (0xffu << (64 % 32))) { + if (has_chatmessage()) { + if (chatmessage_ != NULL) chatmessage_->::ChatMessage::Clear(); + } + if (has_chatrejectmessage()) { + if (chatrejectmessage_ != NULL) chatrejectmessage_->::ChatRejectMessage::Clear(); + } + if (has_dialogmessage()) { + if (dialogmessage_ != NULL) dialogmessage_->::DialogMessage::Clear(); + } + if (has_timeoutwarningmessage()) { + if (timeoutwarningmessage_ != NULL) timeoutwarningmessage_->::TimeoutWarningMessage::Clear(); + } + if (has_resettimeoutmessage()) { + if (resettimeoutmessage_ != NULL) resettimeoutmessage_->::ResetTimeoutMessage::Clear(); + } + if (has_reportavatarmessage()) { + if (reportavatarmessage_ != NULL) reportavatarmessage_->::ReportAvatarMessage::Clear(); + } + if (has_reportavatarackmessage()) { + if (reportavatarackmessage_ != NULL) reportavatarackmessage_->::ReportAvatarAckMessage::Clear(); + } + if (has_reportgamemessage()) { + if (reportgamemessage_ != NULL) reportgamemessage_->::ReportGameMessage::Clear(); + } + } + if (_has_bits_[72 / 32] & (0xffu << (72 % 32))) { + if (has_reportgameackmessage()) { + if (reportgameackmessage_ != NULL) reportgameackmessage_->::ReportGameAckMessage::Clear(); + } + if (has_errormessage()) { + if (errormessage_ != NULL) errormessage_->::ErrorMessage::Clear(); + } + } + ::memset(_has_bits_, 0, sizeof(_has_bits_)); + mutable_unknown_fields()->Clear(); +} + +bool PokerTHMessage::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!(EXPRESSION)) return false + ::google::protobuf::uint32 tag; + while ((tag = input->ReadTag()) != 0) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // required .PokerTHMessage.PokerTHMessageType messageType = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + int value; + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + if (::PokerTHMessage_PokerTHMessageType_IsValid(value)) { + set_messagetype(static_cast< ::PokerTHMessage_PokerTHMessageType >(value)); + } else { + mutable_unknown_fields()->AddVarint(1, value); + } + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(18)) goto parse_announceMessage; + break; + } + + // optional .AnnounceMessage announceMessage = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_announceMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_announcemessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(26)) goto parse_initMessage; + break; + } + + // optional .InitMessage initMessage = 3; + case 3: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_initMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_initmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(34)) goto parse_authServerChallengeMessage; + break; + } + + // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; + case 4: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_authServerChallengeMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_authserverchallengemessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(42)) goto parse_authClientResponseMessage; + break; + } + + // optional .AuthClientResponseMessage authClientResponseMessage = 5; + case 5: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_authClientResponseMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_authclientresponsemessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(50)) goto parse_authServerVerificationMessage; + break; + } + + // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; + case 6: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_authServerVerificationMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_authserververificationmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(58)) goto parse_initAckMessage; + break; + } + + // optional .InitAckMessage initAckMessage = 7; + case 7: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_initAckMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_initackmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(66)) goto parse_avatarRequestMessage; + break; + } + + // optional .AvatarRequestMessage avatarRequestMessage = 8; + case 8: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_avatarRequestMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_avatarrequestmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(74)) goto parse_avatarHeaderMessage; + break; + } + + // optional .AvatarHeaderMessage avatarHeaderMessage = 9; + case 9: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_avatarHeaderMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_avatarheadermessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(82)) goto parse_avatarDataMessage; + break; + } + + // optional .AvatarDataMessage avatarDataMessage = 10; + case 10: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_avatarDataMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_avatardatamessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(90)) goto parse_avatarEndMessage; + break; + } + + // optional .AvatarEndMessage avatarEndMessage = 11; + case 11: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_avatarEndMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_avatarendmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(98)) goto parse_unknownAvatarMessage; + break; + } + + // optional .UnknownAvatarMessage unknownAvatarMessage = 12; + case 12: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_unknownAvatarMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_unknownavatarmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(106)) goto parse_playerListMessage; + break; + } + + // optional .PlayerListMessage playerListMessage = 13; + case 13: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_playerListMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_playerlistmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(114)) goto parse_gameListNewMessage; + break; + } + + // optional .GameListNewMessage gameListNewMessage = 14; + case 14: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_gameListNewMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_gamelistnewmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(122)) goto parse_gameListUpdateMessage; + break; + } + + // optional .GameListUpdateMessage gameListUpdateMessage = 15; + case 15: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_gameListUpdateMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_gamelistupdatemessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(130)) goto parse_gameListPlayerJoinedMessage; + break; + } + + // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; + case 16: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_gameListPlayerJoinedMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_gamelistplayerjoinedmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(138)) goto parse_gameListPlayerLeftMessage; + break; + } + + // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; + case 17: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_gameListPlayerLeftMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_gamelistplayerleftmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(146)) goto parse_gameListAdminChangedMessage; + break; + } + + // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; + case 18: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_gameListAdminChangedMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_gamelistadminchangedmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(154)) goto parse_playerInfoRequestMessage; + break; + } + + // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; + case 19: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_playerInfoRequestMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_playerinforequestmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(162)) goto parse_playerInfoReplyMessage; + break; + } + + // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; + case 20: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_playerInfoReplyMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_playerinforeplymessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(170)) goto parse_subscriptionRequestMessage; + break; + } + + // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; + case 21: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_subscriptionRequestMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_subscriptionrequestmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(178)) goto parse_joinExistingGameMessage; + break; + } + + // optional .JoinExistingGameMessage joinExistingGameMessage = 22; + case 22: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_joinExistingGameMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_joinexistinggamemessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(186)) goto parse_joinNewGameMessage; + break; + } + + // optional .JoinNewGameMessage joinNewGameMessage = 23; + case 23: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_joinNewGameMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_joinnewgamemessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(194)) goto parse_rejoinExistingGameMessage; + break; + } + + // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; + case 24: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_rejoinExistingGameMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_rejoinexistinggamemessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(202)) goto parse_joinGameAckMessage; + break; + } + + // optional .JoinGameAckMessage joinGameAckMessage = 25; + case 25: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_joinGameAckMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_joingameackmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(210)) goto parse_joinGameFailedMessage; + break; + } + + // optional .JoinGameFailedMessage joinGameFailedMessage = 26; + case 26: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_joinGameFailedMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_joingamefailedmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(218)) goto parse_gamePlayerJoinedMessage; + break; + } + + // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; + case 27: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_gamePlayerJoinedMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_gameplayerjoinedmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(226)) goto parse_gamePlayerLeftMessage; + break; + } + + // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; + case 28: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_gamePlayerLeftMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_gameplayerleftmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(234)) goto parse_gameAdminChangedMessage; + break; + } + + // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; + case 29: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_gameAdminChangedMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_gameadminchangedmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(242)) goto parse_removedFromGameMessage; + break; + } + + // optional .RemovedFromGameMessage removedFromGameMessage = 30; + case 30: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_removedFromGameMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_removedfromgamemessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(250)) goto parse_kickPlayerRequestMessage; + break; + } + + // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; + case 31: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_kickPlayerRequestMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_kickplayerrequestmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(258)) goto parse_leaveGameRequestMessage; + break; + } + + // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; + case 32: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_leaveGameRequestMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_leavegamerequestmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(266)) goto parse_invitePlayerToGameMessage; + break; + } + + // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; + case 33: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_invitePlayerToGameMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_inviteplayertogamemessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(274)) goto parse_inviteNotifyMessage; + break; + } + + // optional .InviteNotifyMessage inviteNotifyMessage = 34; + case 34: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_inviteNotifyMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_invitenotifymessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(282)) goto parse_rejectGameInvitationMessage; + break; + } + + // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; + case 35: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_rejectGameInvitationMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_rejectgameinvitationmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(290)) goto parse_rejectInvNotifyMessage; + break; + } + + // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; + case 36: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_rejectInvNotifyMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_rejectinvnotifymessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(298)) goto parse_startEventMessage; + break; + } + + // optional .StartEventMessage startEventMessage = 37; + case 37: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_startEventMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_starteventmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(306)) goto parse_startEventAckMessage; + break; + } + + // optional .StartEventAckMessage startEventAckMessage = 38; + case 38: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_startEventAckMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_starteventackmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(314)) goto parse_gameStartInitialMessage; + break; + } + + // optional .GameStartInitialMessage gameStartInitialMessage = 39; + case 39: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_gameStartInitialMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_gamestartinitialmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(322)) goto parse_gameStartRejoinMessage; + break; + } + + // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; + case 40: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_gameStartRejoinMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_gamestartrejoinmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(330)) goto parse_handStartMessage; + break; + } + + // optional .HandStartMessage handStartMessage = 41; + case 41: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_handStartMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_handstartmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(338)) goto parse_playersTurnMessage; + break; + } + + // optional .PlayersTurnMessage playersTurnMessage = 42; + case 42: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_playersTurnMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_playersturnmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(346)) goto parse_myActionRequestMessage; + break; + } + + // optional .MyActionRequestMessage myActionRequestMessage = 43; + case 43: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_myActionRequestMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_myactionrequestmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(354)) goto parse_yourActionRejectedMessage; + break; + } + + // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; + case 44: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_yourActionRejectedMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_youractionrejectedmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(362)) goto parse_playersActionDoneMessage; + break; + } + + // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; + case 45: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_playersActionDoneMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_playersactiondonemessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(370)) goto parse_dealFlopCardsMessage; + break; + } + + // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; + case 46: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_dealFlopCardsMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_dealflopcardsmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(378)) goto parse_dealTurnCardMessage; + break; + } + + // optional .DealTurnCardMessage dealTurnCardMessage = 47; + case 47: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_dealTurnCardMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_dealturncardmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(386)) goto parse_dealRiverCardMessage; + break; + } + + // optional .DealRiverCardMessage dealRiverCardMessage = 48; + case 48: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_dealRiverCardMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_dealrivercardmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(394)) goto parse_allInShowCardsMessage; + break; + } + + // optional .AllInShowCardsMessage allInShowCardsMessage = 49; + case 49: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_allInShowCardsMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_allinshowcardsmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(402)) goto parse_endOfHandShowCardsMessage; + break; + } + + // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; + case 50: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_endOfHandShowCardsMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_endofhandshowcardsmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(410)) goto parse_endOfHandHideCardsMessage; + break; + } + + // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; + case 51: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_endOfHandHideCardsMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_endofhandhidecardsmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(418)) goto parse_showMyCardsRequestMessage; + break; + } + + // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; + case 52: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_showMyCardsRequestMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_showmycardsrequestmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(426)) goto parse_afterHandShowCardsMessage; + break; + } + + // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; + case 53: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_afterHandShowCardsMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_afterhandshowcardsmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(434)) goto parse_endOfGameMessage; + break; + } + + // optional .EndOfGameMessage endOfGameMessage = 54; + case 54: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_endOfGameMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_endofgamemessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(442)) goto parse_playerIdChangedMessage; + break; + } + + // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; + case 55: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_playerIdChangedMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_playeridchangedmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(450)) goto parse_askKickPlayerMessage; + break; + } + + // optional .AskKickPlayerMessage askKickPlayerMessage = 56; + case 56: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_askKickPlayerMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_askkickplayermessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(458)) goto parse_askKickDeniedMessage; + break; + } + + // optional .AskKickDeniedMessage askKickDeniedMessage = 57; + case 57: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_askKickDeniedMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_askkickdeniedmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(466)) goto parse_startKickPetitionMessage; + break; + } + + // optional .StartKickPetitionMessage startKickPetitionMessage = 58; + case 58: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_startKickPetitionMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_startkickpetitionmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(474)) goto parse_voteKickRequestMessage; + break; + } + + // optional .VoteKickRequestMessage voteKickRequestMessage = 59; + case 59: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_voteKickRequestMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_votekickrequestmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(482)) goto parse_voteKickReplyMessage; + break; + } + + // optional .VoteKickReplyMessage voteKickReplyMessage = 60; + case 60: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_voteKickReplyMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_votekickreplymessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(490)) goto parse_kickPetitionUpdateMessage; + break; + } + + // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; + case 61: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_kickPetitionUpdateMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_kickpetitionupdatemessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(498)) goto parse_endKickPetitionMessage; + break; + } + + // optional .EndKickPetitionMessage endKickPetitionMessage = 62; + case 62: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_endKickPetitionMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_endkickpetitionmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(506)) goto parse_statisticsMessage; + break; + } + + // optional .StatisticsMessage statisticsMessage = 63; + case 63: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_statisticsMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_statisticsmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(514)) goto parse_chatRequestMessage; + break; + } + + // optional .ChatRequestMessage chatRequestMessage = 64; + case 64: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_chatRequestMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_chatrequestmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(522)) goto parse_chatMessage; + break; + } + + // optional .ChatMessage chatMessage = 65; + case 65: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_chatMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_chatmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(530)) goto parse_chatRejectMessage; + break; + } + + // optional .ChatRejectMessage chatRejectMessage = 66; + case 66: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_chatRejectMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_chatrejectmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(538)) goto parse_dialogMessage; + break; + } + + // optional .DialogMessage dialogMessage = 67; + case 67: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_dialogMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_dialogmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(546)) goto parse_timeoutWarningMessage; + break; + } + + // optional .TimeoutWarningMessage timeoutWarningMessage = 68; + case 68: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_timeoutWarningMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_timeoutwarningmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(554)) goto parse_resetTimeoutMessage; + break; + } + + // optional .ResetTimeoutMessage resetTimeoutMessage = 69; + case 69: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_resetTimeoutMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_resettimeoutmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(562)) goto parse_reportAvatarMessage; + break; + } + + // optional .ReportAvatarMessage reportAvatarMessage = 70; + case 70: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_reportAvatarMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_reportavatarmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(570)) goto parse_reportAvatarAckMessage; + break; + } + + // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; + case 71: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_reportAvatarAckMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_reportavatarackmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(578)) goto parse_reportGameMessage; + break; + } + + // optional .ReportGameMessage reportGameMessage = 72; + case 72: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_reportGameMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_reportgamemessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(586)) goto parse_reportGameAckMessage; + break; + } + + // optional .ReportGameAckMessage reportGameAckMessage = 73; + case 73: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_reportGameAckMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_reportgameackmessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(594)) goto parse_errorMessage; + break; + } + + // optional .ErrorMessage errorMessage = 74; + case 74: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + parse_errorMessage: + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_errormessage())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectAtEnd()) return true; + break; + } + + default: { + handle_uninterpreted: + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + return true; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, mutable_unknown_fields())); + break; + } + } + } + return true; +#undef DO_ +} + +void PokerTHMessage::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // required .PokerTHMessage.PokerTHMessageType messageType = 1; + if (has_messagetype()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 1, this->messagetype(), output); + } + + // optional .AnnounceMessage announceMessage = 2; + if (has_announcemessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, this->announcemessage(), output); + } + + // optional .InitMessage initMessage = 3; + if (has_initmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, this->initmessage(), output); + } + + // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; + if (has_authserverchallengemessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, this->authserverchallengemessage(), output); + } + + // optional .AuthClientResponseMessage authClientResponseMessage = 5; + if (has_authclientresponsemessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, this->authclientresponsemessage(), output); + } + + // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; + if (has_authserververificationmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, this->authserververificationmessage(), output); + } + + // optional .InitAckMessage initAckMessage = 7; + if (has_initackmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 7, this->initackmessage(), output); + } + + // optional .AvatarRequestMessage avatarRequestMessage = 8; + if (has_avatarrequestmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 8, this->avatarrequestmessage(), output); + } + + // optional .AvatarHeaderMessage avatarHeaderMessage = 9; + if (has_avatarheadermessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 9, this->avatarheadermessage(), output); + } + + // optional .AvatarDataMessage avatarDataMessage = 10; + if (has_avatardatamessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, this->avatardatamessage(), output); + } + + // optional .AvatarEndMessage avatarEndMessage = 11; + if (has_avatarendmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 11, this->avatarendmessage(), output); + } + + // optional .UnknownAvatarMessage unknownAvatarMessage = 12; + if (has_unknownavatarmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 12, this->unknownavatarmessage(), output); + } + + // optional .PlayerListMessage playerListMessage = 13; + if (has_playerlistmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 13, this->playerlistmessage(), output); + } + + // optional .GameListNewMessage gameListNewMessage = 14; + if (has_gamelistnewmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 14, this->gamelistnewmessage(), output); + } + + // optional .GameListUpdateMessage gameListUpdateMessage = 15; + if (has_gamelistupdatemessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 15, this->gamelistupdatemessage(), output); + } + + // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; + if (has_gamelistplayerjoinedmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 16, this->gamelistplayerjoinedmessage(), output); + } + + // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; + if (has_gamelistplayerleftmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 17, this->gamelistplayerleftmessage(), output); + } + + // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; + if (has_gamelistadminchangedmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 18, this->gamelistadminchangedmessage(), output); + } + + // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; + if (has_playerinforequestmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 19, this->playerinforequestmessage(), output); + } + + // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; + if (has_playerinforeplymessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 20, this->playerinforeplymessage(), output); + } + + // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; + if (has_subscriptionrequestmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 21, this->subscriptionrequestmessage(), output); + } + + // optional .JoinExistingGameMessage joinExistingGameMessage = 22; + if (has_joinexistinggamemessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 22, this->joinexistinggamemessage(), output); + } + + // optional .JoinNewGameMessage joinNewGameMessage = 23; + if (has_joinnewgamemessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 23, this->joinnewgamemessage(), output); + } + + // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; + if (has_rejoinexistinggamemessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 24, this->rejoinexistinggamemessage(), output); + } + + // optional .JoinGameAckMessage joinGameAckMessage = 25; + if (has_joingameackmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 25, this->joingameackmessage(), output); + } + + // optional .JoinGameFailedMessage joinGameFailedMessage = 26; + if (has_joingamefailedmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 26, this->joingamefailedmessage(), output); + } + + // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; + if (has_gameplayerjoinedmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 27, this->gameplayerjoinedmessage(), output); + } + + // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; + if (has_gameplayerleftmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 28, this->gameplayerleftmessage(), output); + } + + // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; + if (has_gameadminchangedmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 29, this->gameadminchangedmessage(), output); + } + + // optional .RemovedFromGameMessage removedFromGameMessage = 30; + if (has_removedfromgamemessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 30, this->removedfromgamemessage(), output); + } + + // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; + if (has_kickplayerrequestmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 31, this->kickplayerrequestmessage(), output); + } + + // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; + if (has_leavegamerequestmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 32, this->leavegamerequestmessage(), output); + } + + // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; + if (has_inviteplayertogamemessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 33, this->inviteplayertogamemessage(), output); + } + + // optional .InviteNotifyMessage inviteNotifyMessage = 34; + if (has_invitenotifymessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 34, this->invitenotifymessage(), output); + } + + // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; + if (has_rejectgameinvitationmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 35, this->rejectgameinvitationmessage(), output); + } + + // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; + if (has_rejectinvnotifymessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 36, this->rejectinvnotifymessage(), output); + } + + // optional .StartEventMessage startEventMessage = 37; + if (has_starteventmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 37, this->starteventmessage(), output); + } + + // optional .StartEventAckMessage startEventAckMessage = 38; + if (has_starteventackmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 38, this->starteventackmessage(), output); + } + + // optional .GameStartInitialMessage gameStartInitialMessage = 39; + if (has_gamestartinitialmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 39, this->gamestartinitialmessage(), output); + } + + // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; + if (has_gamestartrejoinmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 40, this->gamestartrejoinmessage(), output); + } + + // optional .HandStartMessage handStartMessage = 41; + if (has_handstartmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 41, this->handstartmessage(), output); + } + + // optional .PlayersTurnMessage playersTurnMessage = 42; + if (has_playersturnmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 42, this->playersturnmessage(), output); + } + + // optional .MyActionRequestMessage myActionRequestMessage = 43; + if (has_myactionrequestmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 43, this->myactionrequestmessage(), output); + } + + // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; + if (has_youractionrejectedmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 44, this->youractionrejectedmessage(), output); + } + + // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; + if (has_playersactiondonemessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 45, this->playersactiondonemessage(), output); + } + + // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; + if (has_dealflopcardsmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 46, this->dealflopcardsmessage(), output); + } + + // optional .DealTurnCardMessage dealTurnCardMessage = 47; + if (has_dealturncardmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 47, this->dealturncardmessage(), output); + } + + // optional .DealRiverCardMessage dealRiverCardMessage = 48; + if (has_dealrivercardmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 48, this->dealrivercardmessage(), output); + } + + // optional .AllInShowCardsMessage allInShowCardsMessage = 49; + if (has_allinshowcardsmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 49, this->allinshowcardsmessage(), output); + } + + // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; + if (has_endofhandshowcardsmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 50, this->endofhandshowcardsmessage(), output); + } + + // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; + if (has_endofhandhidecardsmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 51, this->endofhandhidecardsmessage(), output); + } + + // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; + if (has_showmycardsrequestmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 52, this->showmycardsrequestmessage(), output); + } + + // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; + if (has_afterhandshowcardsmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 53, this->afterhandshowcardsmessage(), output); + } + + // optional .EndOfGameMessage endOfGameMessage = 54; + if (has_endofgamemessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 54, this->endofgamemessage(), output); + } + + // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; + if (has_playeridchangedmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 55, this->playeridchangedmessage(), output); + } + + // optional .AskKickPlayerMessage askKickPlayerMessage = 56; + if (has_askkickplayermessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 56, this->askkickplayermessage(), output); + } + + // optional .AskKickDeniedMessage askKickDeniedMessage = 57; + if (has_askkickdeniedmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 57, this->askkickdeniedmessage(), output); + } + + // optional .StartKickPetitionMessage startKickPetitionMessage = 58; + if (has_startkickpetitionmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 58, this->startkickpetitionmessage(), output); + } + + // optional .VoteKickRequestMessage voteKickRequestMessage = 59; + if (has_votekickrequestmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 59, this->votekickrequestmessage(), output); + } + + // optional .VoteKickReplyMessage voteKickReplyMessage = 60; + if (has_votekickreplymessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 60, this->votekickreplymessage(), output); + } + + // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; + if (has_kickpetitionupdatemessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 61, this->kickpetitionupdatemessage(), output); + } + + // optional .EndKickPetitionMessage endKickPetitionMessage = 62; + if (has_endkickpetitionmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 62, this->endkickpetitionmessage(), output); + } + + // optional .StatisticsMessage statisticsMessage = 63; + if (has_statisticsmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 63, this->statisticsmessage(), output); + } + + // optional .ChatRequestMessage chatRequestMessage = 64; + if (has_chatrequestmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 64, this->chatrequestmessage(), output); + } + + // optional .ChatMessage chatMessage = 65; + if (has_chatmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 65, this->chatmessage(), output); + } + + // optional .ChatRejectMessage chatRejectMessage = 66; + if (has_chatrejectmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 66, this->chatrejectmessage(), output); + } + + // optional .DialogMessage dialogMessage = 67; + if (has_dialogmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 67, this->dialogmessage(), output); + } + + // optional .TimeoutWarningMessage timeoutWarningMessage = 68; + if (has_timeoutwarningmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 68, this->timeoutwarningmessage(), output); + } + + // optional .ResetTimeoutMessage resetTimeoutMessage = 69; + if (has_resettimeoutmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 69, this->resettimeoutmessage(), output); + } + + // optional .ReportAvatarMessage reportAvatarMessage = 70; + if (has_reportavatarmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 70, this->reportavatarmessage(), output); + } + + // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; + if (has_reportavatarackmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 71, this->reportavatarackmessage(), output); + } + + // optional .ReportGameMessage reportGameMessage = 72; + if (has_reportgamemessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 72, this->reportgamemessage(), output); + } + + // optional .ReportGameAckMessage reportGameAckMessage = 73; + if (has_reportgameackmessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 73, this->reportgameackmessage(), output); + } + + // optional .ErrorMessage errorMessage = 74; + if (has_errormessage()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 74, this->errormessage(), output); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* PokerTHMessage::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .PokerTHMessage.PokerTHMessageType messageType = 1; + if (has_messagetype()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 1, this->messagetype(), target); + } + + // optional .AnnounceMessage announceMessage = 2; + if (has_announcemessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 2, this->announcemessage(), target); + } + + // optional .InitMessage initMessage = 3; + if (has_initmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 3, this->initmessage(), target); + } + + // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; + if (has_authserverchallengemessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 4, this->authserverchallengemessage(), target); + } + + // optional .AuthClientResponseMessage authClientResponseMessage = 5; + if (has_authclientresponsemessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 5, this->authclientresponsemessage(), target); + } + + // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; + if (has_authserververificationmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 6, this->authserververificationmessage(), target); + } + + // optional .InitAckMessage initAckMessage = 7; + if (has_initackmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 7, this->initackmessage(), target); + } + + // optional .AvatarRequestMessage avatarRequestMessage = 8; + if (has_avatarrequestmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 8, this->avatarrequestmessage(), target); + } + + // optional .AvatarHeaderMessage avatarHeaderMessage = 9; + if (has_avatarheadermessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 9, this->avatarheadermessage(), target); + } + + // optional .AvatarDataMessage avatarDataMessage = 10; + if (has_avatardatamessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 10, this->avatardatamessage(), target); + } + + // optional .AvatarEndMessage avatarEndMessage = 11; + if (has_avatarendmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 11, this->avatarendmessage(), target); + } + + // optional .UnknownAvatarMessage unknownAvatarMessage = 12; + if (has_unknownavatarmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 12, this->unknownavatarmessage(), target); + } + + // optional .PlayerListMessage playerListMessage = 13; + if (has_playerlistmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 13, this->playerlistmessage(), target); + } + + // optional .GameListNewMessage gameListNewMessage = 14; + if (has_gamelistnewmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 14, this->gamelistnewmessage(), target); + } + + // optional .GameListUpdateMessage gameListUpdateMessage = 15; + if (has_gamelistupdatemessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 15, this->gamelistupdatemessage(), target); + } + + // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; + if (has_gamelistplayerjoinedmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 16, this->gamelistplayerjoinedmessage(), target); + } + + // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; + if (has_gamelistplayerleftmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 17, this->gamelistplayerleftmessage(), target); + } + + // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; + if (has_gamelistadminchangedmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 18, this->gamelistadminchangedmessage(), target); + } + + // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; + if (has_playerinforequestmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 19, this->playerinforequestmessage(), target); + } + + // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; + if (has_playerinforeplymessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 20, this->playerinforeplymessage(), target); + } + + // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; + if (has_subscriptionrequestmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 21, this->subscriptionrequestmessage(), target); + } + + // optional .JoinExistingGameMessage joinExistingGameMessage = 22; + if (has_joinexistinggamemessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 22, this->joinexistinggamemessage(), target); + } + + // optional .JoinNewGameMessage joinNewGameMessage = 23; + if (has_joinnewgamemessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 23, this->joinnewgamemessage(), target); + } + + // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; + if (has_rejoinexistinggamemessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 24, this->rejoinexistinggamemessage(), target); + } + + // optional .JoinGameAckMessage joinGameAckMessage = 25; + if (has_joingameackmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 25, this->joingameackmessage(), target); + } + + // optional .JoinGameFailedMessage joinGameFailedMessage = 26; + if (has_joingamefailedmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 26, this->joingamefailedmessage(), target); + } + + // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; + if (has_gameplayerjoinedmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 27, this->gameplayerjoinedmessage(), target); + } + + // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; + if (has_gameplayerleftmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 28, this->gameplayerleftmessage(), target); + } + + // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; + if (has_gameadminchangedmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 29, this->gameadminchangedmessage(), target); + } + + // optional .RemovedFromGameMessage removedFromGameMessage = 30; + if (has_removedfromgamemessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 30, this->removedfromgamemessage(), target); + } + + // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; + if (has_kickplayerrequestmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 31, this->kickplayerrequestmessage(), target); + } + + // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; + if (has_leavegamerequestmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 32, this->leavegamerequestmessage(), target); + } + + // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; + if (has_inviteplayertogamemessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 33, this->inviteplayertogamemessage(), target); + } + + // optional .InviteNotifyMessage inviteNotifyMessage = 34; + if (has_invitenotifymessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 34, this->invitenotifymessage(), target); + } + + // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; + if (has_rejectgameinvitationmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 35, this->rejectgameinvitationmessage(), target); + } + + // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; + if (has_rejectinvnotifymessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 36, this->rejectinvnotifymessage(), target); + } + + // optional .StartEventMessage startEventMessage = 37; + if (has_starteventmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 37, this->starteventmessage(), target); + } + + // optional .StartEventAckMessage startEventAckMessage = 38; + if (has_starteventackmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 38, this->starteventackmessage(), target); + } + + // optional .GameStartInitialMessage gameStartInitialMessage = 39; + if (has_gamestartinitialmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 39, this->gamestartinitialmessage(), target); + } + + // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; + if (has_gamestartrejoinmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 40, this->gamestartrejoinmessage(), target); + } + + // optional .HandStartMessage handStartMessage = 41; + if (has_handstartmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 41, this->handstartmessage(), target); + } + + // optional .PlayersTurnMessage playersTurnMessage = 42; + if (has_playersturnmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 42, this->playersturnmessage(), target); + } + + // optional .MyActionRequestMessage myActionRequestMessage = 43; + if (has_myactionrequestmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 43, this->myactionrequestmessage(), target); + } + + // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; + if (has_youractionrejectedmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 44, this->youractionrejectedmessage(), target); + } + + // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; + if (has_playersactiondonemessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 45, this->playersactiondonemessage(), target); + } + + // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; + if (has_dealflopcardsmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 46, this->dealflopcardsmessage(), target); + } + + // optional .DealTurnCardMessage dealTurnCardMessage = 47; + if (has_dealturncardmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 47, this->dealturncardmessage(), target); + } + + // optional .DealRiverCardMessage dealRiverCardMessage = 48; + if (has_dealrivercardmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 48, this->dealrivercardmessage(), target); + } + + // optional .AllInShowCardsMessage allInShowCardsMessage = 49; + if (has_allinshowcardsmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 49, this->allinshowcardsmessage(), target); + } + + // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; + if (has_endofhandshowcardsmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 50, this->endofhandshowcardsmessage(), target); + } + + // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; + if (has_endofhandhidecardsmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 51, this->endofhandhidecardsmessage(), target); + } + + // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; + if (has_showmycardsrequestmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 52, this->showmycardsrequestmessage(), target); + } + + // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; + if (has_afterhandshowcardsmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 53, this->afterhandshowcardsmessage(), target); + } + + // optional .EndOfGameMessage endOfGameMessage = 54; + if (has_endofgamemessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 54, this->endofgamemessage(), target); + } + + // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; + if (has_playeridchangedmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 55, this->playeridchangedmessage(), target); + } + + // optional .AskKickPlayerMessage askKickPlayerMessage = 56; + if (has_askkickplayermessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 56, this->askkickplayermessage(), target); + } + + // optional .AskKickDeniedMessage askKickDeniedMessage = 57; + if (has_askkickdeniedmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 57, this->askkickdeniedmessage(), target); + } + + // optional .StartKickPetitionMessage startKickPetitionMessage = 58; + if (has_startkickpetitionmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 58, this->startkickpetitionmessage(), target); + } + + // optional .VoteKickRequestMessage voteKickRequestMessage = 59; + if (has_votekickrequestmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 59, this->votekickrequestmessage(), target); + } + + // optional .VoteKickReplyMessage voteKickReplyMessage = 60; + if (has_votekickreplymessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 60, this->votekickreplymessage(), target); + } + + // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; + if (has_kickpetitionupdatemessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 61, this->kickpetitionupdatemessage(), target); + } + + // optional .EndKickPetitionMessage endKickPetitionMessage = 62; + if (has_endkickpetitionmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 62, this->endkickpetitionmessage(), target); + } + + // optional .StatisticsMessage statisticsMessage = 63; + if (has_statisticsmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 63, this->statisticsmessage(), target); + } + + // optional .ChatRequestMessage chatRequestMessage = 64; + if (has_chatrequestmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 64, this->chatrequestmessage(), target); + } + + // optional .ChatMessage chatMessage = 65; + if (has_chatmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 65, this->chatmessage(), target); + } + + // optional .ChatRejectMessage chatRejectMessage = 66; + if (has_chatrejectmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 66, this->chatrejectmessage(), target); + } + + // optional .DialogMessage dialogMessage = 67; + if (has_dialogmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 67, this->dialogmessage(), target); + } + + // optional .TimeoutWarningMessage timeoutWarningMessage = 68; + if (has_timeoutwarningmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 68, this->timeoutwarningmessage(), target); + } + + // optional .ResetTimeoutMessage resetTimeoutMessage = 69; + if (has_resettimeoutmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 69, this->resettimeoutmessage(), target); + } + + // optional .ReportAvatarMessage reportAvatarMessage = 70; + if (has_reportavatarmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 70, this->reportavatarmessage(), target); + } + + // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; + if (has_reportavatarackmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 71, this->reportavatarackmessage(), target); + } + + // optional .ReportGameMessage reportGameMessage = 72; + if (has_reportgamemessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 72, this->reportgamemessage(), target); + } + + // optional .ReportGameAckMessage reportGameAckMessage = 73; + if (has_reportgameackmessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 73, this->reportgameackmessage(), target); + } + + // optional .ErrorMessage errorMessage = 74; + if (has_errormessage()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 74, this->errormessage(), target); + } + + if (!unknown_fields().empty()) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + unknown_fields(), target); + } + return target; +} + +int PokerTHMessage::ByteSize() const { + int total_size = 0; + + if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + // required .PokerTHMessage.PokerTHMessageType messageType = 1; + if (has_messagetype()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->messagetype()); + } + + // optional .AnnounceMessage announceMessage = 2; + if (has_announcemessage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->announcemessage()); + } + + // optional .InitMessage initMessage = 3; + if (has_initmessage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->initmessage()); + } + + // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; + if (has_authserverchallengemessage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->authserverchallengemessage()); + } + + // optional .AuthClientResponseMessage authClientResponseMessage = 5; + if (has_authclientresponsemessage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->authclientresponsemessage()); + } + + // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; + if (has_authserververificationmessage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->authserververificationmessage()); + } + + // optional .InitAckMessage initAckMessage = 7; + if (has_initackmessage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->initackmessage()); + } + + // optional .AvatarRequestMessage avatarRequestMessage = 8; + if (has_avatarrequestmessage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->avatarrequestmessage()); + } + + } + if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { + // optional .AvatarHeaderMessage avatarHeaderMessage = 9; + if (has_avatarheadermessage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->avatarheadermessage()); + } + + // optional .AvatarDataMessage avatarDataMessage = 10; + if (has_avatardatamessage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->avatardatamessage()); + } + + // optional .AvatarEndMessage avatarEndMessage = 11; + if (has_avatarendmessage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->avatarendmessage()); + } + + // optional .UnknownAvatarMessage unknownAvatarMessage = 12; + if (has_unknownavatarmessage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->unknownavatarmessage()); + } + + // optional .PlayerListMessage playerListMessage = 13; + if (has_playerlistmessage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playerlistmessage()); + } + + // optional .GameListNewMessage gameListNewMessage = 14; + if (has_gamelistnewmessage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamelistnewmessage()); + } + + // optional .GameListUpdateMessage gameListUpdateMessage = 15; + if (has_gamelistupdatemessage()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamelistupdatemessage()); + } + + // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; + if (has_gamelistplayerjoinedmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamelistplayerjoinedmessage()); + } + + } + if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { + // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; + if (has_gamelistplayerleftmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamelistplayerleftmessage()); + } + + // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; + if (has_gamelistadminchangedmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamelistadminchangedmessage()); + } + + // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; + if (has_playerinforequestmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playerinforequestmessage()); + } + + // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; + if (has_playerinforeplymessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playerinforeplymessage()); + } + + // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; + if (has_subscriptionrequestmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->subscriptionrequestmessage()); + } + + // optional .JoinExistingGameMessage joinExistingGameMessage = 22; + if (has_joinexistinggamemessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->joinexistinggamemessage()); + } + + // optional .JoinNewGameMessage joinNewGameMessage = 23; + if (has_joinnewgamemessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->joinnewgamemessage()); + } + + // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; + if (has_rejoinexistinggamemessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->rejoinexistinggamemessage()); + } + + } + if (_has_bits_[24 / 32] & (0xffu << (24 % 32))) { + // optional .JoinGameAckMessage joinGameAckMessage = 25; + if (has_joingameackmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->joingameackmessage()); + } + + // optional .JoinGameFailedMessage joinGameFailedMessage = 26; + if (has_joingamefailedmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->joingamefailedmessage()); + } + + // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; + if (has_gameplayerjoinedmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gameplayerjoinedmessage()); + } + + // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; + if (has_gameplayerleftmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gameplayerleftmessage()); + } + + // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; + if (has_gameadminchangedmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gameadminchangedmessage()); + } + + // optional .RemovedFromGameMessage removedFromGameMessage = 30; + if (has_removedfromgamemessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->removedfromgamemessage()); + } + + // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; + if (has_kickplayerrequestmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->kickplayerrequestmessage()); + } + + // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; + if (has_leavegamerequestmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->leavegamerequestmessage()); + } + + } + if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) { + // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; + if (has_inviteplayertogamemessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->inviteplayertogamemessage()); + } + + // optional .InviteNotifyMessage inviteNotifyMessage = 34; + if (has_invitenotifymessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->invitenotifymessage()); + } + + // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; + if (has_rejectgameinvitationmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->rejectgameinvitationmessage()); + } + + // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; + if (has_rejectinvnotifymessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->rejectinvnotifymessage()); + } + + // optional .StartEventMessage startEventMessage = 37; + if (has_starteventmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->starteventmessage()); + } + + // optional .StartEventAckMessage startEventAckMessage = 38; + if (has_starteventackmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->starteventackmessage()); + } + + // optional .GameStartInitialMessage gameStartInitialMessage = 39; + if (has_gamestartinitialmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamestartinitialmessage()); + } + + // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; + if (has_gamestartrejoinmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->gamestartrejoinmessage()); + } + + } + if (_has_bits_[40 / 32] & (0xffu << (40 % 32))) { + // optional .HandStartMessage handStartMessage = 41; + if (has_handstartmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->handstartmessage()); + } + + // optional .PlayersTurnMessage playersTurnMessage = 42; + if (has_playersturnmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playersturnmessage()); + } + + // optional .MyActionRequestMessage myActionRequestMessage = 43; + if (has_myactionrequestmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->myactionrequestmessage()); + } + + // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; + if (has_youractionrejectedmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->youractionrejectedmessage()); + } + + // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; + if (has_playersactiondonemessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playersactiondonemessage()); + } + + // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; + if (has_dealflopcardsmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->dealflopcardsmessage()); + } + + // optional .DealTurnCardMessage dealTurnCardMessage = 47; + if (has_dealturncardmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->dealturncardmessage()); + } + + // optional .DealRiverCardMessage dealRiverCardMessage = 48; + if (has_dealrivercardmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->dealrivercardmessage()); + } + + } + if (_has_bits_[48 / 32] & (0xffu << (48 % 32))) { + // optional .AllInShowCardsMessage allInShowCardsMessage = 49; + if (has_allinshowcardsmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->allinshowcardsmessage()); + } + + // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; + if (has_endofhandshowcardsmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->endofhandshowcardsmessage()); + } + + // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; + if (has_endofhandhidecardsmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->endofhandhidecardsmessage()); + } + + // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; + if (has_showmycardsrequestmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->showmycardsrequestmessage()); + } + + // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; + if (has_afterhandshowcardsmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->afterhandshowcardsmessage()); + } + + // optional .EndOfGameMessage endOfGameMessage = 54; + if (has_endofgamemessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->endofgamemessage()); + } + + // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; + if (has_playeridchangedmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->playeridchangedmessage()); + } + + // optional .AskKickPlayerMessage askKickPlayerMessage = 56; + if (has_askkickplayermessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->askkickplayermessage()); + } + + } + if (_has_bits_[56 / 32] & (0xffu << (56 % 32))) { + // optional .AskKickDeniedMessage askKickDeniedMessage = 57; + if (has_askkickdeniedmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->askkickdeniedmessage()); + } + + // optional .StartKickPetitionMessage startKickPetitionMessage = 58; + if (has_startkickpetitionmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->startkickpetitionmessage()); + } + + // optional .VoteKickRequestMessage voteKickRequestMessage = 59; + if (has_votekickrequestmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->votekickrequestmessage()); + } + + // optional .VoteKickReplyMessage voteKickReplyMessage = 60; + if (has_votekickreplymessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->votekickreplymessage()); + } + + // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; + if (has_kickpetitionupdatemessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->kickpetitionupdatemessage()); + } + + // optional .EndKickPetitionMessage endKickPetitionMessage = 62; + if (has_endkickpetitionmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->endkickpetitionmessage()); + } + + // optional .StatisticsMessage statisticsMessage = 63; + if (has_statisticsmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->statisticsmessage()); + } + + // optional .ChatRequestMessage chatRequestMessage = 64; + if (has_chatrequestmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->chatrequestmessage()); + } + + } + if (_has_bits_[64 / 32] & (0xffu << (64 % 32))) { + // optional .ChatMessage chatMessage = 65; + if (has_chatmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->chatmessage()); + } + + // optional .ChatRejectMessage chatRejectMessage = 66; + if (has_chatrejectmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->chatrejectmessage()); + } + + // optional .DialogMessage dialogMessage = 67; + if (has_dialogmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->dialogmessage()); + } + + // optional .TimeoutWarningMessage timeoutWarningMessage = 68; + if (has_timeoutwarningmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->timeoutwarningmessage()); + } + + // optional .ResetTimeoutMessage resetTimeoutMessage = 69; + if (has_resettimeoutmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->resettimeoutmessage()); + } + + // optional .ReportAvatarMessage reportAvatarMessage = 70; + if (has_reportavatarmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->reportavatarmessage()); + } + + // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; + if (has_reportavatarackmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->reportavatarackmessage()); + } + + // optional .ReportGameMessage reportGameMessage = 72; + if (has_reportgamemessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->reportgamemessage()); + } + + } + if (_has_bits_[72 / 32] & (0xffu << (72 % 32))) { + // optional .ReportGameAckMessage reportGameAckMessage = 73; + if (has_reportgameackmessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->reportgameackmessage()); + } + + // optional .ErrorMessage errorMessage = 74; + if (has_errormessage()) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->errormessage()); + } + + } + if (!unknown_fields().empty()) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + unknown_fields()); + } + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = total_size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); + return total_size; +} + +void PokerTHMessage::MergeFrom(const ::google::protobuf::Message& from) { + GOOGLE_CHECK_NE(&from, this); + const PokerTHMessage* source = + ::google::protobuf::internal::dynamic_cast_if_available( + &from); + if (source == NULL) { + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + MergeFrom(*source); + } +} + +void PokerTHMessage::MergeFrom(const PokerTHMessage& from) { + GOOGLE_CHECK_NE(&from, this); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_messagetype()) { + set_messagetype(from.messagetype()); + } + if (from.has_announcemessage()) { + mutable_announcemessage()->::AnnounceMessage::MergeFrom(from.announcemessage()); + } + if (from.has_initmessage()) { + mutable_initmessage()->::InitMessage::MergeFrom(from.initmessage()); + } + if (from.has_authserverchallengemessage()) { + mutable_authserverchallengemessage()->::AuthServerChallengeMessage::MergeFrom(from.authserverchallengemessage()); + } + if (from.has_authclientresponsemessage()) { + mutable_authclientresponsemessage()->::AuthClientResponseMessage::MergeFrom(from.authclientresponsemessage()); + } + if (from.has_authserververificationmessage()) { + mutable_authserververificationmessage()->::AuthServerVerificationMessage::MergeFrom(from.authserververificationmessage()); + } + if (from.has_initackmessage()) { + mutable_initackmessage()->::InitAckMessage::MergeFrom(from.initackmessage()); + } + if (from.has_avatarrequestmessage()) { + mutable_avatarrequestmessage()->::AvatarRequestMessage::MergeFrom(from.avatarrequestmessage()); + } + } + if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { + if (from.has_avatarheadermessage()) { + mutable_avatarheadermessage()->::AvatarHeaderMessage::MergeFrom(from.avatarheadermessage()); + } + if (from.has_avatardatamessage()) { + mutable_avatardatamessage()->::AvatarDataMessage::MergeFrom(from.avatardatamessage()); + } + if (from.has_avatarendmessage()) { + mutable_avatarendmessage()->::AvatarEndMessage::MergeFrom(from.avatarendmessage()); + } + if (from.has_unknownavatarmessage()) { + mutable_unknownavatarmessage()->::UnknownAvatarMessage::MergeFrom(from.unknownavatarmessage()); + } + if (from.has_playerlistmessage()) { + mutable_playerlistmessage()->::PlayerListMessage::MergeFrom(from.playerlistmessage()); + } + if (from.has_gamelistnewmessage()) { + mutable_gamelistnewmessage()->::GameListNewMessage::MergeFrom(from.gamelistnewmessage()); + } + if (from.has_gamelistupdatemessage()) { + mutable_gamelistupdatemessage()->::GameListUpdateMessage::MergeFrom(from.gamelistupdatemessage()); + } + if (from.has_gamelistplayerjoinedmessage()) { + mutable_gamelistplayerjoinedmessage()->::GameListPlayerJoinedMessage::MergeFrom(from.gamelistplayerjoinedmessage()); + } + } + if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { + if (from.has_gamelistplayerleftmessage()) { + mutable_gamelistplayerleftmessage()->::GameListPlayerLeftMessage::MergeFrom(from.gamelistplayerleftmessage()); + } + if (from.has_gamelistadminchangedmessage()) { + mutable_gamelistadminchangedmessage()->::GameListAdminChangedMessage::MergeFrom(from.gamelistadminchangedmessage()); + } + if (from.has_playerinforequestmessage()) { + mutable_playerinforequestmessage()->::PlayerInfoRequestMessage::MergeFrom(from.playerinforequestmessage()); + } + if (from.has_playerinforeplymessage()) { + mutable_playerinforeplymessage()->::PlayerInfoReplyMessage::MergeFrom(from.playerinforeplymessage()); + } + if (from.has_subscriptionrequestmessage()) { + mutable_subscriptionrequestmessage()->::SubscriptionRequestMessage::MergeFrom(from.subscriptionrequestmessage()); + } + if (from.has_joinexistinggamemessage()) { + mutable_joinexistinggamemessage()->::JoinExistingGameMessage::MergeFrom(from.joinexistinggamemessage()); + } + if (from.has_joinnewgamemessage()) { + mutable_joinnewgamemessage()->::JoinNewGameMessage::MergeFrom(from.joinnewgamemessage()); + } + if (from.has_rejoinexistinggamemessage()) { + mutable_rejoinexistinggamemessage()->::RejoinExistingGameMessage::MergeFrom(from.rejoinexistinggamemessage()); + } + } + if (from._has_bits_[24 / 32] & (0xffu << (24 % 32))) { + if (from.has_joingameackmessage()) { + mutable_joingameackmessage()->::JoinGameAckMessage::MergeFrom(from.joingameackmessage()); + } + if (from.has_joingamefailedmessage()) { + mutable_joingamefailedmessage()->::JoinGameFailedMessage::MergeFrom(from.joingamefailedmessage()); + } + if (from.has_gameplayerjoinedmessage()) { + mutable_gameplayerjoinedmessage()->::GamePlayerJoinedMessage::MergeFrom(from.gameplayerjoinedmessage()); + } + if (from.has_gameplayerleftmessage()) { + mutable_gameplayerleftmessage()->::GamePlayerLeftMessage::MergeFrom(from.gameplayerleftmessage()); + } + if (from.has_gameadminchangedmessage()) { + mutable_gameadminchangedmessage()->::GameAdminChangedMessage::MergeFrom(from.gameadminchangedmessage()); + } + if (from.has_removedfromgamemessage()) { + mutable_removedfromgamemessage()->::RemovedFromGameMessage::MergeFrom(from.removedfromgamemessage()); + } + if (from.has_kickplayerrequestmessage()) { + mutable_kickplayerrequestmessage()->::KickPlayerRequestMessage::MergeFrom(from.kickplayerrequestmessage()); + } + if (from.has_leavegamerequestmessage()) { + mutable_leavegamerequestmessage()->::LeaveGameRequestMessage::MergeFrom(from.leavegamerequestmessage()); + } + } + if (from._has_bits_[32 / 32] & (0xffu << (32 % 32))) { + if (from.has_inviteplayertogamemessage()) { + mutable_inviteplayertogamemessage()->::InvitePlayerToGameMessage::MergeFrom(from.inviteplayertogamemessage()); + } + if (from.has_invitenotifymessage()) { + mutable_invitenotifymessage()->::InviteNotifyMessage::MergeFrom(from.invitenotifymessage()); + } + if (from.has_rejectgameinvitationmessage()) { + mutable_rejectgameinvitationmessage()->::RejectGameInvitationMessage::MergeFrom(from.rejectgameinvitationmessage()); + } + if (from.has_rejectinvnotifymessage()) { + mutable_rejectinvnotifymessage()->::RejectInvNotifyMessage::MergeFrom(from.rejectinvnotifymessage()); + } + if (from.has_starteventmessage()) { + mutable_starteventmessage()->::StartEventMessage::MergeFrom(from.starteventmessage()); + } + if (from.has_starteventackmessage()) { + mutable_starteventackmessage()->::StartEventAckMessage::MergeFrom(from.starteventackmessage()); + } + if (from.has_gamestartinitialmessage()) { + mutable_gamestartinitialmessage()->::GameStartInitialMessage::MergeFrom(from.gamestartinitialmessage()); + } + if (from.has_gamestartrejoinmessage()) { + mutable_gamestartrejoinmessage()->::GameStartRejoinMessage::MergeFrom(from.gamestartrejoinmessage()); + } + } + if (from._has_bits_[40 / 32] & (0xffu << (40 % 32))) { + if (from.has_handstartmessage()) { + mutable_handstartmessage()->::HandStartMessage::MergeFrom(from.handstartmessage()); + } + if (from.has_playersturnmessage()) { + mutable_playersturnmessage()->::PlayersTurnMessage::MergeFrom(from.playersturnmessage()); + } + if (from.has_myactionrequestmessage()) { + mutable_myactionrequestmessage()->::MyActionRequestMessage::MergeFrom(from.myactionrequestmessage()); + } + if (from.has_youractionrejectedmessage()) { + mutable_youractionrejectedmessage()->::YourActionRejectedMessage::MergeFrom(from.youractionrejectedmessage()); + } + if (from.has_playersactiondonemessage()) { + mutable_playersactiondonemessage()->::PlayersActionDoneMessage::MergeFrom(from.playersactiondonemessage()); + } + if (from.has_dealflopcardsmessage()) { + mutable_dealflopcardsmessage()->::DealFlopCardsMessage::MergeFrom(from.dealflopcardsmessage()); + } + if (from.has_dealturncardmessage()) { + mutable_dealturncardmessage()->::DealTurnCardMessage::MergeFrom(from.dealturncardmessage()); + } + if (from.has_dealrivercardmessage()) { + mutable_dealrivercardmessage()->::DealRiverCardMessage::MergeFrom(from.dealrivercardmessage()); + } + } + if (from._has_bits_[48 / 32] & (0xffu << (48 % 32))) { + if (from.has_allinshowcardsmessage()) { + mutable_allinshowcardsmessage()->::AllInShowCardsMessage::MergeFrom(from.allinshowcardsmessage()); + } + if (from.has_endofhandshowcardsmessage()) { + mutable_endofhandshowcardsmessage()->::EndOfHandShowCardsMessage::MergeFrom(from.endofhandshowcardsmessage()); + } + if (from.has_endofhandhidecardsmessage()) { + mutable_endofhandhidecardsmessage()->::EndOfHandHideCardsMessage::MergeFrom(from.endofhandhidecardsmessage()); + } + if (from.has_showmycardsrequestmessage()) { + mutable_showmycardsrequestmessage()->::ShowMyCardsRequestMessage::MergeFrom(from.showmycardsrequestmessage()); + } + if (from.has_afterhandshowcardsmessage()) { + mutable_afterhandshowcardsmessage()->::AfterHandShowCardsMessage::MergeFrom(from.afterhandshowcardsmessage()); + } + if (from.has_endofgamemessage()) { + mutable_endofgamemessage()->::EndOfGameMessage::MergeFrom(from.endofgamemessage()); + } + if (from.has_playeridchangedmessage()) { + mutable_playeridchangedmessage()->::PlayerIdChangedMessage::MergeFrom(from.playeridchangedmessage()); + } + if (from.has_askkickplayermessage()) { + mutable_askkickplayermessage()->::AskKickPlayerMessage::MergeFrom(from.askkickplayermessage()); + } + } + if (from._has_bits_[56 / 32] & (0xffu << (56 % 32))) { + if (from.has_askkickdeniedmessage()) { + mutable_askkickdeniedmessage()->::AskKickDeniedMessage::MergeFrom(from.askkickdeniedmessage()); + } + if (from.has_startkickpetitionmessage()) { + mutable_startkickpetitionmessage()->::StartKickPetitionMessage::MergeFrom(from.startkickpetitionmessage()); + } + if (from.has_votekickrequestmessage()) { + mutable_votekickrequestmessage()->::VoteKickRequestMessage::MergeFrom(from.votekickrequestmessage()); + } + if (from.has_votekickreplymessage()) { + mutable_votekickreplymessage()->::VoteKickReplyMessage::MergeFrom(from.votekickreplymessage()); + } + if (from.has_kickpetitionupdatemessage()) { + mutable_kickpetitionupdatemessage()->::KickPetitionUpdateMessage::MergeFrom(from.kickpetitionupdatemessage()); + } + if (from.has_endkickpetitionmessage()) { + mutable_endkickpetitionmessage()->::EndKickPetitionMessage::MergeFrom(from.endkickpetitionmessage()); + } + if (from.has_statisticsmessage()) { + mutable_statisticsmessage()->::StatisticsMessage::MergeFrom(from.statisticsmessage()); + } + if (from.has_chatrequestmessage()) { + mutable_chatrequestmessage()->::ChatRequestMessage::MergeFrom(from.chatrequestmessage()); + } + } + if (from._has_bits_[64 / 32] & (0xffu << (64 % 32))) { + if (from.has_chatmessage()) { + mutable_chatmessage()->::ChatMessage::MergeFrom(from.chatmessage()); + } + if (from.has_chatrejectmessage()) { + mutable_chatrejectmessage()->::ChatRejectMessage::MergeFrom(from.chatrejectmessage()); + } + if (from.has_dialogmessage()) { + mutable_dialogmessage()->::DialogMessage::MergeFrom(from.dialogmessage()); + } + if (from.has_timeoutwarningmessage()) { + mutable_timeoutwarningmessage()->::TimeoutWarningMessage::MergeFrom(from.timeoutwarningmessage()); + } + if (from.has_resettimeoutmessage()) { + mutable_resettimeoutmessage()->::ResetTimeoutMessage::MergeFrom(from.resettimeoutmessage()); + } + if (from.has_reportavatarmessage()) { + mutable_reportavatarmessage()->::ReportAvatarMessage::MergeFrom(from.reportavatarmessage()); + } + if (from.has_reportavatarackmessage()) { + mutable_reportavatarackmessage()->::ReportAvatarAckMessage::MergeFrom(from.reportavatarackmessage()); + } + if (from.has_reportgamemessage()) { + mutable_reportgamemessage()->::ReportGameMessage::MergeFrom(from.reportgamemessage()); + } + } + if (from._has_bits_[72 / 32] & (0xffu << (72 % 32))) { + if (from.has_reportgameackmessage()) { + mutable_reportgameackmessage()->::ReportGameAckMessage::MergeFrom(from.reportgameackmessage()); + } + if (from.has_errormessage()) { + mutable_errormessage()->::ErrorMessage::MergeFrom(from.errormessage()); + } + } + mutable_unknown_fields()->MergeFrom(from.unknown_fields()); +} + +void PokerTHMessage::CopyFrom(const ::google::protobuf::Message& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void PokerTHMessage::CopyFrom(const PokerTHMessage& from) { + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PokerTHMessage::IsInitialized() const { + if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; + + if (has_announcemessage()) { + if (!this->announcemessage().IsInitialized()) return false; + } + if (has_initmessage()) { + if (!this->initmessage().IsInitialized()) return false; + } + if (has_authserverchallengemessage()) { + if (!this->authserverchallengemessage().IsInitialized()) return false; + } + if (has_authclientresponsemessage()) { + if (!this->authclientresponsemessage().IsInitialized()) return false; + } + if (has_authserververificationmessage()) { + if (!this->authserververificationmessage().IsInitialized()) return false; + } + if (has_initackmessage()) { + if (!this->initackmessage().IsInitialized()) return false; + } + if (has_avatarrequestmessage()) { + if (!this->avatarrequestmessage().IsInitialized()) return false; + } + if (has_avatarheadermessage()) { + if (!this->avatarheadermessage().IsInitialized()) return false; + } + if (has_avatardatamessage()) { + if (!this->avatardatamessage().IsInitialized()) return false; + } + if (has_avatarendmessage()) { + if (!this->avatarendmessage().IsInitialized()) return false; + } + if (has_unknownavatarmessage()) { + if (!this->unknownavatarmessage().IsInitialized()) return false; + } + if (has_playerlistmessage()) { + if (!this->playerlistmessage().IsInitialized()) return false; + } + if (has_gamelistnewmessage()) { + if (!this->gamelistnewmessage().IsInitialized()) return false; + } + if (has_gamelistupdatemessage()) { + if (!this->gamelistupdatemessage().IsInitialized()) return false; + } + if (has_gamelistplayerjoinedmessage()) { + if (!this->gamelistplayerjoinedmessage().IsInitialized()) return false; + } + if (has_gamelistplayerleftmessage()) { + if (!this->gamelistplayerleftmessage().IsInitialized()) return false; + } + if (has_gamelistadminchangedmessage()) { + if (!this->gamelistadminchangedmessage().IsInitialized()) return false; + } + if (has_playerinforequestmessage()) { + if (!this->playerinforequestmessage().IsInitialized()) return false; + } + if (has_playerinforeplymessage()) { + if (!this->playerinforeplymessage().IsInitialized()) return false; + } + if (has_subscriptionrequestmessage()) { + if (!this->subscriptionrequestmessage().IsInitialized()) return false; + } + if (has_joinexistinggamemessage()) { + if (!this->joinexistinggamemessage().IsInitialized()) return false; + } + if (has_joinnewgamemessage()) { + if (!this->joinnewgamemessage().IsInitialized()) return false; + } + if (has_rejoinexistinggamemessage()) { + if (!this->rejoinexistinggamemessage().IsInitialized()) return false; + } + if (has_joingameackmessage()) { + if (!this->joingameackmessage().IsInitialized()) return false; + } + if (has_joingamefailedmessage()) { + if (!this->joingamefailedmessage().IsInitialized()) return false; + } + if (has_gameplayerjoinedmessage()) { + if (!this->gameplayerjoinedmessage().IsInitialized()) return false; + } + if (has_gameplayerleftmessage()) { + if (!this->gameplayerleftmessage().IsInitialized()) return false; + } + if (has_gameadminchangedmessage()) { + if (!this->gameadminchangedmessage().IsInitialized()) return false; + } + if (has_removedfromgamemessage()) { + if (!this->removedfromgamemessage().IsInitialized()) return false; + } + if (has_kickplayerrequestmessage()) { + if (!this->kickplayerrequestmessage().IsInitialized()) return false; + } + if (has_leavegamerequestmessage()) { + if (!this->leavegamerequestmessage().IsInitialized()) return false; + } + if (has_inviteplayertogamemessage()) { + if (!this->inviteplayertogamemessage().IsInitialized()) return false; + } + if (has_invitenotifymessage()) { + if (!this->invitenotifymessage().IsInitialized()) return false; + } + if (has_rejectgameinvitationmessage()) { + if (!this->rejectgameinvitationmessage().IsInitialized()) return false; + } + if (has_rejectinvnotifymessage()) { + if (!this->rejectinvnotifymessage().IsInitialized()) return false; + } + if (has_starteventmessage()) { + if (!this->starteventmessage().IsInitialized()) return false; + } + if (has_starteventackmessage()) { + if (!this->starteventackmessage().IsInitialized()) return false; + } + if (has_gamestartinitialmessage()) { + if (!this->gamestartinitialmessage().IsInitialized()) return false; + } + if (has_gamestartrejoinmessage()) { + if (!this->gamestartrejoinmessage().IsInitialized()) return false; + } + if (has_handstartmessage()) { + if (!this->handstartmessage().IsInitialized()) return false; + } + if (has_playersturnmessage()) { + if (!this->playersturnmessage().IsInitialized()) return false; + } + if (has_myactionrequestmessage()) { + if (!this->myactionrequestmessage().IsInitialized()) return false; + } + if (has_youractionrejectedmessage()) { + if (!this->youractionrejectedmessage().IsInitialized()) return false; + } + if (has_playersactiondonemessage()) { + if (!this->playersactiondonemessage().IsInitialized()) return false; + } + if (has_dealflopcardsmessage()) { + if (!this->dealflopcardsmessage().IsInitialized()) return false; + } + if (has_dealturncardmessage()) { + if (!this->dealturncardmessage().IsInitialized()) return false; + } + if (has_dealrivercardmessage()) { + if (!this->dealrivercardmessage().IsInitialized()) return false; + } + if (has_allinshowcardsmessage()) { + if (!this->allinshowcardsmessage().IsInitialized()) return false; + } + if (has_endofhandshowcardsmessage()) { + if (!this->endofhandshowcardsmessage().IsInitialized()) return false; + } + if (has_endofhandhidecardsmessage()) { + if (!this->endofhandhidecardsmessage().IsInitialized()) return false; + } + if (has_afterhandshowcardsmessage()) { + if (!this->afterhandshowcardsmessage().IsInitialized()) return false; + } + if (has_endofgamemessage()) { + if (!this->endofgamemessage().IsInitialized()) return false; + } + if (has_playeridchangedmessage()) { + if (!this->playeridchangedmessage().IsInitialized()) return false; + } + if (has_askkickplayermessage()) { + if (!this->askkickplayermessage().IsInitialized()) return false; + } + if (has_askkickdeniedmessage()) { + if (!this->askkickdeniedmessage().IsInitialized()) return false; + } + if (has_startkickpetitionmessage()) { + if (!this->startkickpetitionmessage().IsInitialized()) return false; + } + if (has_votekickrequestmessage()) { + if (!this->votekickrequestmessage().IsInitialized()) return false; + } + if (has_votekickreplymessage()) { + if (!this->votekickreplymessage().IsInitialized()) return false; + } + if (has_kickpetitionupdatemessage()) { + if (!this->kickpetitionupdatemessage().IsInitialized()) return false; + } + if (has_endkickpetitionmessage()) { + if (!this->endkickpetitionmessage().IsInitialized()) return false; + } + if (has_statisticsmessage()) { + if (!this->statisticsmessage().IsInitialized()) return false; + } + if (has_chatrequestmessage()) { + if (!this->chatrequestmessage().IsInitialized()) return false; + } + if (has_chatmessage()) { + if (!this->chatmessage().IsInitialized()) return false; + } + if (has_chatrejectmessage()) { + if (!this->chatrejectmessage().IsInitialized()) return false; + } + if (has_dialogmessage()) { + if (!this->dialogmessage().IsInitialized()) return false; + } + if (has_timeoutwarningmessage()) { + if (!this->timeoutwarningmessage().IsInitialized()) return false; + } + if (has_reportavatarmessage()) { + if (!this->reportavatarmessage().IsInitialized()) return false; + } + if (has_reportavatarackmessage()) { + if (!this->reportavatarackmessage().IsInitialized()) return false; + } + if (has_reportgamemessage()) { + if (!this->reportgamemessage().IsInitialized()) return false; + } + if (has_reportgameackmessage()) { + if (!this->reportgameackmessage().IsInitialized()) return false; + } + if (has_errormessage()) { + if (!this->errormessage().IsInitialized()) return false; + } + return true; +} + +void PokerTHMessage::Swap(PokerTHMessage* other) { + if (other != this) { + std::swap(messagetype_, other->messagetype_); + std::swap(announcemessage_, other->announcemessage_); + std::swap(initmessage_, other->initmessage_); + std::swap(authserverchallengemessage_, other->authserverchallengemessage_); + std::swap(authclientresponsemessage_, other->authclientresponsemessage_); + std::swap(authserververificationmessage_, other->authserververificationmessage_); + std::swap(initackmessage_, other->initackmessage_); + std::swap(avatarrequestmessage_, other->avatarrequestmessage_); + std::swap(avatarheadermessage_, other->avatarheadermessage_); + std::swap(avatardatamessage_, other->avatardatamessage_); + std::swap(avatarendmessage_, other->avatarendmessage_); + std::swap(unknownavatarmessage_, other->unknownavatarmessage_); + std::swap(playerlistmessage_, other->playerlistmessage_); + std::swap(gamelistnewmessage_, other->gamelistnewmessage_); + std::swap(gamelistupdatemessage_, other->gamelistupdatemessage_); + std::swap(gamelistplayerjoinedmessage_, other->gamelistplayerjoinedmessage_); + std::swap(gamelistplayerleftmessage_, other->gamelistplayerleftmessage_); + std::swap(gamelistadminchangedmessage_, other->gamelistadminchangedmessage_); + std::swap(playerinforequestmessage_, other->playerinforequestmessage_); + std::swap(playerinforeplymessage_, other->playerinforeplymessage_); + std::swap(subscriptionrequestmessage_, other->subscriptionrequestmessage_); + std::swap(joinexistinggamemessage_, other->joinexistinggamemessage_); + std::swap(joinnewgamemessage_, other->joinnewgamemessage_); + std::swap(rejoinexistinggamemessage_, other->rejoinexistinggamemessage_); + std::swap(joingameackmessage_, other->joingameackmessage_); + std::swap(joingamefailedmessage_, other->joingamefailedmessage_); + std::swap(gameplayerjoinedmessage_, other->gameplayerjoinedmessage_); + std::swap(gameplayerleftmessage_, other->gameplayerleftmessage_); + std::swap(gameadminchangedmessage_, other->gameadminchangedmessage_); + std::swap(removedfromgamemessage_, other->removedfromgamemessage_); + std::swap(kickplayerrequestmessage_, other->kickplayerrequestmessage_); + std::swap(leavegamerequestmessage_, other->leavegamerequestmessage_); + std::swap(inviteplayertogamemessage_, other->inviteplayertogamemessage_); + std::swap(invitenotifymessage_, other->invitenotifymessage_); + std::swap(rejectgameinvitationmessage_, other->rejectgameinvitationmessage_); + std::swap(rejectinvnotifymessage_, other->rejectinvnotifymessage_); + std::swap(starteventmessage_, other->starteventmessage_); + std::swap(starteventackmessage_, other->starteventackmessage_); + std::swap(gamestartinitialmessage_, other->gamestartinitialmessage_); + std::swap(gamestartrejoinmessage_, other->gamestartrejoinmessage_); + std::swap(handstartmessage_, other->handstartmessage_); + std::swap(playersturnmessage_, other->playersturnmessage_); + std::swap(myactionrequestmessage_, other->myactionrequestmessage_); + std::swap(youractionrejectedmessage_, other->youractionrejectedmessage_); + std::swap(playersactiondonemessage_, other->playersactiondonemessage_); + std::swap(dealflopcardsmessage_, other->dealflopcardsmessage_); + std::swap(dealturncardmessage_, other->dealturncardmessage_); + std::swap(dealrivercardmessage_, other->dealrivercardmessage_); + std::swap(allinshowcardsmessage_, other->allinshowcardsmessage_); + std::swap(endofhandshowcardsmessage_, other->endofhandshowcardsmessage_); + std::swap(endofhandhidecardsmessage_, other->endofhandhidecardsmessage_); + std::swap(showmycardsrequestmessage_, other->showmycardsrequestmessage_); + std::swap(afterhandshowcardsmessage_, other->afterhandshowcardsmessage_); + std::swap(endofgamemessage_, other->endofgamemessage_); + std::swap(playeridchangedmessage_, other->playeridchangedmessage_); + std::swap(askkickplayermessage_, other->askkickplayermessage_); + std::swap(askkickdeniedmessage_, other->askkickdeniedmessage_); + std::swap(startkickpetitionmessage_, other->startkickpetitionmessage_); + std::swap(votekickrequestmessage_, other->votekickrequestmessage_); + std::swap(votekickreplymessage_, other->votekickreplymessage_); + std::swap(kickpetitionupdatemessage_, other->kickpetitionupdatemessage_); + std::swap(endkickpetitionmessage_, other->endkickpetitionmessage_); + std::swap(statisticsmessage_, other->statisticsmessage_); + std::swap(chatrequestmessage_, other->chatrequestmessage_); + std::swap(chatmessage_, other->chatmessage_); + std::swap(chatrejectmessage_, other->chatrejectmessage_); + std::swap(dialogmessage_, other->dialogmessage_); + std::swap(timeoutwarningmessage_, other->timeoutwarningmessage_); + std::swap(resettimeoutmessage_, other->resettimeoutmessage_); + std::swap(reportavatarmessage_, other->reportavatarmessage_); + std::swap(reportavatarackmessage_, other->reportavatarackmessage_); + std::swap(reportgamemessage_, other->reportgamemessage_); + std::swap(reportgameackmessage_, other->reportgameackmessage_); + std::swap(errormessage_, other->errormessage_); + std::swap(_has_bits_[0], other->_has_bits_[0]); + std::swap(_has_bits_[1], other->_has_bits_[1]); + std::swap(_has_bits_[2], other->_has_bits_[2]); + _unknown_fields_.Swap(&other->_unknown_fields_); + std::swap(_cached_size_, other->_cached_size_); + } +} + +::google::protobuf::Metadata PokerTHMessage::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = PokerTHMessage_descriptor_; + metadata.reflection = PokerTHMessage_reflection_; + return metadata; +} + + +// @@protoc_insertion_point(namespace_scope) + +// @@protoc_insertion_point(global_scope) diff --git a/src/third_party/protobuf/pokerth.pb.h b/src/third_party/protobuf/pokerth.pb.h new file mode 100644 index 00000000..4d5936f8 --- /dev/null +++ b/src/third_party/protobuf/pokerth.pb.h @@ -0,0 +1,19364 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: pokerth.proto + +#ifndef PROTOBUF_pokerth_2eproto__INCLUDED +#define PROTOBUF_pokerth_2eproto__INCLUDED + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 2004000 +#error This file was generated by a newer version of protoc which is +#error incompatible with your Protocol Buffer headers. Please update +#error your headers. +#endif +#if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +// @@protoc_insertion_point(includes) + +// Internal implementation detail -- do not call these. +void protobuf_AddDesc_pokerth_2eproto(); +void protobuf_AssignDesc_pokerth_2eproto(); +void protobuf_ShutdownFile_pokerth_2eproto(); + +class NetGameInfo; +class PlayerResult; +class AnnounceMessage; +class AnnounceMessage_Version; +class InitMessage; +class AuthServerChallengeMessage; +class AuthClientResponseMessage; +class AuthServerVerificationMessage; +class InitAckMessage; +class AvatarRequestMessage; +class AvatarHeaderMessage; +class AvatarDataMessage; +class AvatarEndMessage; +class UnknownAvatarMessage; +class PlayerListMessage; +class GameListNewMessage; +class GameListUpdateMessage; +class GameListPlayerJoinedMessage; +class GameListPlayerLeftMessage; +class GameListAdminChangedMessage; +class PlayerInfoRequestMessage; +class PlayerInfoReplyMessage; +class PlayerInfoReplyMessage_PlayerInfoData; +class PlayerInfoReplyMessage_PlayerInfoData_AvatarData; +class SubscriptionRequestMessage; +class JoinExistingGameMessage; +class JoinNewGameMessage; +class RejoinExistingGameMessage; +class JoinGameAckMessage; +class JoinGameFailedMessage; +class GamePlayerJoinedMessage; +class GamePlayerLeftMessage; +class GameAdminChangedMessage; +class RemovedFromGameMessage; +class KickPlayerRequestMessage; +class LeaveGameRequestMessage; +class InvitePlayerToGameMessage; +class InviteNotifyMessage; +class RejectGameInvitationMessage; +class RejectInvNotifyMessage; +class StartEventMessage; +class StartEventAckMessage; +class GameStartInitialMessage; +class GameStartRejoinMessage; +class GameStartRejoinMessage_RejoinPlayerData; +class HandStartMessage; +class HandStartMessage_PlainCards; +class PlayersTurnMessage; +class MyActionRequestMessage; +class YourActionRejectedMessage; +class PlayersActionDoneMessage; +class DealFlopCardsMessage; +class DealTurnCardMessage; +class DealRiverCardMessage; +class AllInShowCardsMessage; +class AllInShowCardsMessage_PlayerAllIn; +class EndOfHandShowCardsMessage; +class EndOfHandHideCardsMessage; +class ShowMyCardsRequestMessage; +class AfterHandShowCardsMessage; +class EndOfGameMessage; +class PlayerIdChangedMessage; +class AskKickPlayerMessage; +class AskKickDeniedMessage; +class StartKickPetitionMessage; +class VoteKickRequestMessage; +class VoteKickReplyMessage; +class KickPetitionUpdateMessage; +class EndKickPetitionMessage; +class StatisticsMessage; +class StatisticsMessage_StatisticsData; +class ChatRequestMessage; +class ChatMessage; +class ChatRejectMessage; +class DialogMessage; +class TimeoutWarningMessage; +class ResetTimeoutMessage; +class ReportAvatarMessage; +class ReportAvatarAckMessage; +class ReportGameMessage; +class ReportGameAckMessage; +class ErrorMessage; +class PokerTHMessage; + +enum NetGameInfo_NetGameType { + NetGameInfo_NetGameType_normalGame = 1, + NetGameInfo_NetGameType_registeredOnlyGame = 2, + NetGameInfo_NetGameType_inviteOnlyGame = 3, + NetGameInfo_NetGameType_rankingGame = 4 +}; +bool NetGameInfo_NetGameType_IsValid(int value); +const NetGameInfo_NetGameType NetGameInfo_NetGameType_NetGameType_MIN = NetGameInfo_NetGameType_normalGame; +const NetGameInfo_NetGameType NetGameInfo_NetGameType_NetGameType_MAX = NetGameInfo_NetGameType_rankingGame; +const int NetGameInfo_NetGameType_NetGameType_ARRAYSIZE = NetGameInfo_NetGameType_NetGameType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NetGameInfo_NetGameType_descriptor(); +inline const ::std::string& NetGameInfo_NetGameType_Name(NetGameInfo_NetGameType value) { + return ::google::protobuf::internal::NameOfEnum( + NetGameInfo_NetGameType_descriptor(), value); +} +inline bool NetGameInfo_NetGameType_Parse( + const ::std::string& name, NetGameInfo_NetGameType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NetGameInfo_NetGameType_descriptor(), name, value); +} +enum NetGameInfo_RaiseIntervalMode { + NetGameInfo_RaiseIntervalMode_raiseOnHandNum = 1, + NetGameInfo_RaiseIntervalMode_raiseOnMinutes = 2 +}; +bool NetGameInfo_RaiseIntervalMode_IsValid(int value); +const NetGameInfo_RaiseIntervalMode NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_MIN = NetGameInfo_RaiseIntervalMode_raiseOnHandNum; +const NetGameInfo_RaiseIntervalMode NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_MAX = NetGameInfo_RaiseIntervalMode_raiseOnMinutes; +const int NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_ARRAYSIZE = NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NetGameInfo_RaiseIntervalMode_descriptor(); +inline const ::std::string& NetGameInfo_RaiseIntervalMode_Name(NetGameInfo_RaiseIntervalMode value) { + return ::google::protobuf::internal::NameOfEnum( + NetGameInfo_RaiseIntervalMode_descriptor(), value); +} +inline bool NetGameInfo_RaiseIntervalMode_Parse( + const ::std::string& name, NetGameInfo_RaiseIntervalMode* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NetGameInfo_RaiseIntervalMode_descriptor(), name, value); +} +enum NetGameInfo_EndRaiseMode { + NetGameInfo_EndRaiseMode_doubleBlinds = 1, + NetGameInfo_EndRaiseMode_raiseByEndValue = 2, + NetGameInfo_EndRaiseMode_keepLastBlind = 3 +}; +bool NetGameInfo_EndRaiseMode_IsValid(int value); +const NetGameInfo_EndRaiseMode NetGameInfo_EndRaiseMode_EndRaiseMode_MIN = NetGameInfo_EndRaiseMode_doubleBlinds; +const NetGameInfo_EndRaiseMode NetGameInfo_EndRaiseMode_EndRaiseMode_MAX = NetGameInfo_EndRaiseMode_keepLastBlind; +const int NetGameInfo_EndRaiseMode_EndRaiseMode_ARRAYSIZE = NetGameInfo_EndRaiseMode_EndRaiseMode_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NetGameInfo_EndRaiseMode_descriptor(); +inline const ::std::string& NetGameInfo_EndRaiseMode_Name(NetGameInfo_EndRaiseMode value) { + return ::google::protobuf::internal::NameOfEnum( + NetGameInfo_EndRaiseMode_descriptor(), value); +} +inline bool NetGameInfo_EndRaiseMode_Parse( + const ::std::string& name, NetGameInfo_EndRaiseMode* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NetGameInfo_EndRaiseMode_descriptor(), name, value); +} +enum AnnounceMessage_ServerType { + AnnounceMessage_ServerType_serverTypeLAN = 0, + AnnounceMessage_ServerType_serverTypeInternetNoAuth = 1, + AnnounceMessage_ServerType_serverTypeInternetAuth = 2 +}; +bool AnnounceMessage_ServerType_IsValid(int value); +const AnnounceMessage_ServerType AnnounceMessage_ServerType_ServerType_MIN = AnnounceMessage_ServerType_serverTypeLAN; +const AnnounceMessage_ServerType AnnounceMessage_ServerType_ServerType_MAX = AnnounceMessage_ServerType_serverTypeInternetAuth; +const int AnnounceMessage_ServerType_ServerType_ARRAYSIZE = AnnounceMessage_ServerType_ServerType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* AnnounceMessage_ServerType_descriptor(); +inline const ::std::string& AnnounceMessage_ServerType_Name(AnnounceMessage_ServerType value) { + return ::google::protobuf::internal::NameOfEnum( + AnnounceMessage_ServerType_descriptor(), value); +} +inline bool AnnounceMessage_ServerType_Parse( + const ::std::string& name, AnnounceMessage_ServerType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + AnnounceMessage_ServerType_descriptor(), name, value); +} +enum InitMessage_LoginType { + InitMessage_LoginType_guestLogin = 0, + InitMessage_LoginType_authenticatedLogin = 1, + InitMessage_LoginType_unauthenticatedLogin = 2 +}; +bool InitMessage_LoginType_IsValid(int value); +const InitMessage_LoginType InitMessage_LoginType_LoginType_MIN = InitMessage_LoginType_guestLogin; +const InitMessage_LoginType InitMessage_LoginType_LoginType_MAX = InitMessage_LoginType_unauthenticatedLogin; +const int InitMessage_LoginType_LoginType_ARRAYSIZE = InitMessage_LoginType_LoginType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* InitMessage_LoginType_descriptor(); +inline const ::std::string& InitMessage_LoginType_Name(InitMessage_LoginType value) { + return ::google::protobuf::internal::NameOfEnum( + InitMessage_LoginType_descriptor(), value); +} +inline bool InitMessage_LoginType_Parse( + const ::std::string& name, InitMessage_LoginType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + InitMessage_LoginType_descriptor(), name, value); +} +enum PlayerListMessage_PlayerListNotification { + PlayerListMessage_PlayerListNotification_playerListNew = 0, + PlayerListMessage_PlayerListNotification_playerListLeft = 1 +}; +bool PlayerListMessage_PlayerListNotification_IsValid(int value); +const PlayerListMessage_PlayerListNotification PlayerListMessage_PlayerListNotification_PlayerListNotification_MIN = PlayerListMessage_PlayerListNotification_playerListNew; +const PlayerListMessage_PlayerListNotification PlayerListMessage_PlayerListNotification_PlayerListNotification_MAX = PlayerListMessage_PlayerListNotification_playerListLeft; +const int PlayerListMessage_PlayerListNotification_PlayerListNotification_ARRAYSIZE = PlayerListMessage_PlayerListNotification_PlayerListNotification_MAX + 1; + +const ::google::protobuf::EnumDescriptor* PlayerListMessage_PlayerListNotification_descriptor(); +inline const ::std::string& PlayerListMessage_PlayerListNotification_Name(PlayerListMessage_PlayerListNotification value) { + return ::google::protobuf::internal::NameOfEnum( + PlayerListMessage_PlayerListNotification_descriptor(), value); +} +inline bool PlayerListMessage_PlayerListNotification_Parse( + const ::std::string& name, PlayerListMessage_PlayerListNotification* value) { + return ::google::protobuf::internal::ParseNamedEnum( + PlayerListMessage_PlayerListNotification_descriptor(), name, value); +} +enum SubscriptionRequestMessage_SubscriptionAction { + SubscriptionRequestMessage_SubscriptionAction_unsubscribeGameList = 1, + SubscriptionRequestMessage_SubscriptionAction_resubscribeGameList = 2 +}; +bool SubscriptionRequestMessage_SubscriptionAction_IsValid(int value); +const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_MIN = SubscriptionRequestMessage_SubscriptionAction_unsubscribeGameList; +const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_MAX = SubscriptionRequestMessage_SubscriptionAction_resubscribeGameList; +const int SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_ARRAYSIZE = SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_MAX + 1; + +const ::google::protobuf::EnumDescriptor* SubscriptionRequestMessage_SubscriptionAction_descriptor(); +inline const ::std::string& SubscriptionRequestMessage_SubscriptionAction_Name(SubscriptionRequestMessage_SubscriptionAction value) { + return ::google::protobuf::internal::NameOfEnum( + SubscriptionRequestMessage_SubscriptionAction_descriptor(), value); +} +inline bool SubscriptionRequestMessage_SubscriptionAction_Parse( + const ::std::string& name, SubscriptionRequestMessage_SubscriptionAction* value) { + return ::google::protobuf::internal::ParseNamedEnum( + SubscriptionRequestMessage_SubscriptionAction_descriptor(), name, value); +} +enum JoinGameFailedMessage_JoinGameFailureReason { + JoinGameFailedMessage_JoinGameFailureReason_invalidGame = 1, + JoinGameFailedMessage_JoinGameFailureReason_gameIsFull = 2, + JoinGameFailedMessage_JoinGameFailureReason_gameIsRunning = 3, + JoinGameFailedMessage_JoinGameFailureReason_invalidPassword = 4, + JoinGameFailedMessage_JoinGameFailureReason_notAllowedAsGuest = 5, + JoinGameFailedMessage_JoinGameFailureReason_notInvited = 6, + JoinGameFailedMessage_JoinGameFailureReason_gameNameInUse = 7, + JoinGameFailedMessage_JoinGameFailureReason_badGameName = 8, + JoinGameFailedMessage_JoinGameFailureReason_invalidSettings = 9, + JoinGameFailedMessage_JoinGameFailureReason_ipAddressBlocked = 10, + JoinGameFailedMessage_JoinGameFailureReason_rejoinFailed = 11 +}; +bool JoinGameFailedMessage_JoinGameFailureReason_IsValid(int value); +const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_MIN = JoinGameFailedMessage_JoinGameFailureReason_invalidGame; +const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_MAX = JoinGameFailedMessage_JoinGameFailureReason_rejoinFailed; +const int JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_ARRAYSIZE = JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_MAX + 1; + +const ::google::protobuf::EnumDescriptor* JoinGameFailedMessage_JoinGameFailureReason_descriptor(); +inline const ::std::string& JoinGameFailedMessage_JoinGameFailureReason_Name(JoinGameFailedMessage_JoinGameFailureReason value) { + return ::google::protobuf::internal::NameOfEnum( + JoinGameFailedMessage_JoinGameFailureReason_descriptor(), value); +} +inline bool JoinGameFailedMessage_JoinGameFailureReason_Parse( + const ::std::string& name, JoinGameFailedMessage_JoinGameFailureReason* value) { + return ::google::protobuf::internal::ParseNamedEnum( + JoinGameFailedMessage_JoinGameFailureReason_descriptor(), name, value); +} +enum GamePlayerLeftMessage_GamePlayerLeftReason { + GamePlayerLeftMessage_GamePlayerLeftReason_leftOnRequest = 0, + GamePlayerLeftMessage_GamePlayerLeftReason_leftKicked = 1, + GamePlayerLeftMessage_GamePlayerLeftReason_leftError = 2 +}; +bool GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(int value); +const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_MIN = GamePlayerLeftMessage_GamePlayerLeftReason_leftOnRequest; +const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_MAX = GamePlayerLeftMessage_GamePlayerLeftReason_leftError; +const int GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_ARRAYSIZE = GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_MAX + 1; + +const ::google::protobuf::EnumDescriptor* GamePlayerLeftMessage_GamePlayerLeftReason_descriptor(); +inline const ::std::string& GamePlayerLeftMessage_GamePlayerLeftReason_Name(GamePlayerLeftMessage_GamePlayerLeftReason value) { + return ::google::protobuf::internal::NameOfEnum( + GamePlayerLeftMessage_GamePlayerLeftReason_descriptor(), value); +} +inline bool GamePlayerLeftMessage_GamePlayerLeftReason_Parse( + const ::std::string& name, GamePlayerLeftMessage_GamePlayerLeftReason* value) { + return ::google::protobuf::internal::ParseNamedEnum( + GamePlayerLeftMessage_GamePlayerLeftReason_descriptor(), name, value); +} +enum RemovedFromGameMessage_RemovedFromGameReason { + RemovedFromGameMessage_RemovedFromGameReason_removedOnRequest = 0, + RemovedFromGameMessage_RemovedFromGameReason_kickedFromGame = 1, + RemovedFromGameMessage_RemovedFromGameReason_gameIsFull = 2, + RemovedFromGameMessage_RemovedFromGameReason_gameIsRunning = 3, + RemovedFromGameMessage_RemovedFromGameReason_gameTimeout = 4, + RemovedFromGameMessage_RemovedFromGameReason_removedStartFailed = 5 +}; +bool RemovedFromGameMessage_RemovedFromGameReason_IsValid(int value); +const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_MIN = RemovedFromGameMessage_RemovedFromGameReason_removedOnRequest; +const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_MAX = RemovedFromGameMessage_RemovedFromGameReason_removedStartFailed; +const int RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_ARRAYSIZE = RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_MAX + 1; + +const ::google::protobuf::EnumDescriptor* RemovedFromGameMessage_RemovedFromGameReason_descriptor(); +inline const ::std::string& RemovedFromGameMessage_RemovedFromGameReason_Name(RemovedFromGameMessage_RemovedFromGameReason value) { + return ::google::protobuf::internal::NameOfEnum( + RemovedFromGameMessage_RemovedFromGameReason_descriptor(), value); +} +inline bool RemovedFromGameMessage_RemovedFromGameReason_Parse( + const ::std::string& name, RemovedFromGameMessage_RemovedFromGameReason* value) { + return ::google::protobuf::internal::ParseNamedEnum( + RemovedFromGameMessage_RemovedFromGameReason_descriptor(), name, value); +} +enum RejectGameInvitationMessage_RejectGameInvReason { + RejectGameInvitationMessage_RejectGameInvReason_rejectReasonNo = 0, + RejectGameInvitationMessage_RejectGameInvReason_rejectReasonBusy = 1 +}; +bool RejectGameInvitationMessage_RejectGameInvReason_IsValid(int value); +const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_MIN = RejectGameInvitationMessage_RejectGameInvReason_rejectReasonNo; +const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_MAX = RejectGameInvitationMessage_RejectGameInvReason_rejectReasonBusy; +const int RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_ARRAYSIZE = RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_MAX + 1; + +const ::google::protobuf::EnumDescriptor* RejectGameInvitationMessage_RejectGameInvReason_descriptor(); +inline const ::std::string& RejectGameInvitationMessage_RejectGameInvReason_Name(RejectGameInvitationMessage_RejectGameInvReason value) { + return ::google::protobuf::internal::NameOfEnum( + RejectGameInvitationMessage_RejectGameInvReason_descriptor(), value); +} +inline bool RejectGameInvitationMessage_RejectGameInvReason_Parse( + const ::std::string& name, RejectGameInvitationMessage_RejectGameInvReason* value) { + return ::google::protobuf::internal::ParseNamedEnum( + RejectGameInvitationMessage_RejectGameInvReason_descriptor(), name, value); +} +enum StartEventMessage_StartEventType { + StartEventMessage_StartEventType_startEvent = 0, + StartEventMessage_StartEventType_rejoinEvent = 1 +}; +bool StartEventMessage_StartEventType_IsValid(int value); +const StartEventMessage_StartEventType StartEventMessage_StartEventType_StartEventType_MIN = StartEventMessage_StartEventType_startEvent; +const StartEventMessage_StartEventType StartEventMessage_StartEventType_StartEventType_MAX = StartEventMessage_StartEventType_rejoinEvent; +const int StartEventMessage_StartEventType_StartEventType_ARRAYSIZE = StartEventMessage_StartEventType_StartEventType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* StartEventMessage_StartEventType_descriptor(); +inline const ::std::string& StartEventMessage_StartEventType_Name(StartEventMessage_StartEventType value) { + return ::google::protobuf::internal::NameOfEnum( + StartEventMessage_StartEventType_descriptor(), value); +} +inline bool StartEventMessage_StartEventType_Parse( + const ::std::string& name, StartEventMessage_StartEventType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + StartEventMessage_StartEventType_descriptor(), name, value); +} +enum YourActionRejectedMessage_RejectionReason { + YourActionRejectedMessage_RejectionReason_rejectedInvalidGameState = 1, + YourActionRejectedMessage_RejectionReason_rejectedNotYourTurn = 2, + YourActionRejectedMessage_RejectionReason_rejectedActionNotAllowed = 3 +}; +bool YourActionRejectedMessage_RejectionReason_IsValid(int value); +const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage_RejectionReason_RejectionReason_MIN = YourActionRejectedMessage_RejectionReason_rejectedInvalidGameState; +const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage_RejectionReason_RejectionReason_MAX = YourActionRejectedMessage_RejectionReason_rejectedActionNotAllowed; +const int YourActionRejectedMessage_RejectionReason_RejectionReason_ARRAYSIZE = YourActionRejectedMessage_RejectionReason_RejectionReason_MAX + 1; + +const ::google::protobuf::EnumDescriptor* YourActionRejectedMessage_RejectionReason_descriptor(); +inline const ::std::string& YourActionRejectedMessage_RejectionReason_Name(YourActionRejectedMessage_RejectionReason value) { + return ::google::protobuf::internal::NameOfEnum( + YourActionRejectedMessage_RejectionReason_descriptor(), value); +} +inline bool YourActionRejectedMessage_RejectionReason_Parse( + const ::std::string& name, YourActionRejectedMessage_RejectionReason* value) { + return ::google::protobuf::internal::ParseNamedEnum( + YourActionRejectedMessage_RejectionReason_descriptor(), name, value); +} +enum AskKickDeniedMessage_KickDeniedReason { + AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidGameState = 0, + AskKickDeniedMessage_KickDeniedReason_kickDeniedNotPossible = 1, + AskKickDeniedMessage_KickDeniedReason_kickDeniedTryAgainLater = 2, + AskKickDeniedMessage_KickDeniedReason_kickDeniedAlreadyInProgress = 3, + AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidPlayerId = 4 +}; +bool AskKickDeniedMessage_KickDeniedReason_IsValid(int value); +const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_MIN = AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidGameState; +const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_MAX = AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidPlayerId; +const int AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_ARRAYSIZE = AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_MAX + 1; + +const ::google::protobuf::EnumDescriptor* AskKickDeniedMessage_KickDeniedReason_descriptor(); +inline const ::std::string& AskKickDeniedMessage_KickDeniedReason_Name(AskKickDeniedMessage_KickDeniedReason value) { + return ::google::protobuf::internal::NameOfEnum( + AskKickDeniedMessage_KickDeniedReason_descriptor(), value); +} +inline bool AskKickDeniedMessage_KickDeniedReason_Parse( + const ::std::string& name, AskKickDeniedMessage_KickDeniedReason* value) { + return ::google::protobuf::internal::ParseNamedEnum( + AskKickDeniedMessage_KickDeniedReason_descriptor(), name, value); +} +enum VoteKickReplyMessage_VoteKickReplyType { + VoteKickReplyMessage_VoteKickReplyType_voteKickAck = 0, + VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedInvalid = 1, + VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedAlreadyVoted = 2 +}; +bool VoteKickReplyMessage_VoteKickReplyType_IsValid(int value); +const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_MIN = VoteKickReplyMessage_VoteKickReplyType_voteKickAck; +const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_MAX = VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedAlreadyVoted; +const int VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_ARRAYSIZE = VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* VoteKickReplyMessage_VoteKickReplyType_descriptor(); +inline const ::std::string& VoteKickReplyMessage_VoteKickReplyType_Name(VoteKickReplyMessage_VoteKickReplyType value) { + return ::google::protobuf::internal::NameOfEnum( + VoteKickReplyMessage_VoteKickReplyType_descriptor(), value); +} +inline bool VoteKickReplyMessage_VoteKickReplyType_Parse( + const ::std::string& name, VoteKickReplyMessage_VoteKickReplyType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + VoteKickReplyMessage_VoteKickReplyType_descriptor(), name, value); +} +enum EndKickPetitionMessage_PetitionEndReason { + EndKickPetitionMessage_PetitionEndReason_petitionEndEnoughVotes = 0, + EndKickPetitionMessage_PetitionEndReason_petitionEndTooFewPlayers = 1, + EndKickPetitionMessage_PetitionEndReason_petitionEndPlayerLeft = 2, + EndKickPetitionMessage_PetitionEndReason_petitionEndTimeout = 3 +}; +bool EndKickPetitionMessage_PetitionEndReason_IsValid(int value); +const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_MIN = EndKickPetitionMessage_PetitionEndReason_petitionEndEnoughVotes; +const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_MAX = EndKickPetitionMessage_PetitionEndReason_petitionEndTimeout; +const int EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_ARRAYSIZE = EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_MAX + 1; + +const ::google::protobuf::EnumDescriptor* EndKickPetitionMessage_PetitionEndReason_descriptor(); +inline const ::std::string& EndKickPetitionMessage_PetitionEndReason_Name(EndKickPetitionMessage_PetitionEndReason value) { + return ::google::protobuf::internal::NameOfEnum( + EndKickPetitionMessage_PetitionEndReason_descriptor(), value); +} +inline bool EndKickPetitionMessage_PetitionEndReason_Parse( + const ::std::string& name, EndKickPetitionMessage_PetitionEndReason* value) { + return ::google::protobuf::internal::ParseNamedEnum( + EndKickPetitionMessage_PetitionEndReason_descriptor(), name, value); +} +enum StatisticsMessage_StatisticsData_StatisticsType { + StatisticsMessage_StatisticsData_StatisticsType_statNumberOfPlayers = 1 +}; +bool StatisticsMessage_StatisticsData_StatisticsType_IsValid(int value); +const StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_MIN = StatisticsMessage_StatisticsData_StatisticsType_statNumberOfPlayers; +const StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_MAX = StatisticsMessage_StatisticsData_StatisticsType_statNumberOfPlayers; +const int StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_ARRAYSIZE = StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* StatisticsMessage_StatisticsData_StatisticsType_descriptor(); +inline const ::std::string& StatisticsMessage_StatisticsData_StatisticsType_Name(StatisticsMessage_StatisticsData_StatisticsType value) { + return ::google::protobuf::internal::NameOfEnum( + StatisticsMessage_StatisticsData_StatisticsType_descriptor(), value); +} +inline bool StatisticsMessage_StatisticsData_StatisticsType_Parse( + const ::std::string& name, StatisticsMessage_StatisticsData_StatisticsType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + StatisticsMessage_StatisticsData_StatisticsType_descriptor(), name, value); +} +enum ChatMessage_ChatType { + ChatMessage_ChatType_chatTypeLobby = 0, + ChatMessage_ChatType_chatTypeGame = 1, + ChatMessage_ChatType_chatTypeBot = 2, + ChatMessage_ChatType_chatTypeBroadcast = 3, + ChatMessage_ChatType_chatTypePrivate = 4 +}; +bool ChatMessage_ChatType_IsValid(int value); +const ChatMessage_ChatType ChatMessage_ChatType_ChatType_MIN = ChatMessage_ChatType_chatTypeLobby; +const ChatMessage_ChatType ChatMessage_ChatType_ChatType_MAX = ChatMessage_ChatType_chatTypePrivate; +const int ChatMessage_ChatType_ChatType_ARRAYSIZE = ChatMessage_ChatType_ChatType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ChatMessage_ChatType_descriptor(); +inline const ::std::string& ChatMessage_ChatType_Name(ChatMessage_ChatType value) { + return ::google::protobuf::internal::NameOfEnum( + ChatMessage_ChatType_descriptor(), value); +} +inline bool ChatMessage_ChatType_Parse( + const ::std::string& name, ChatMessage_ChatType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ChatMessage_ChatType_descriptor(), name, value); +} +enum TimeoutWarningMessage_TimeoutReason { + TimeoutWarningMessage_TimeoutReason_timeoutNoDataReceived = 0, + TimeoutWarningMessage_TimeoutReason_timeoutInactiveGame = 1, + TimeoutWarningMessage_TimeoutReason_timeoutKickAfterAutofold = 2 +}; +bool TimeoutWarningMessage_TimeoutReason_IsValid(int value); +const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage_TimeoutReason_TimeoutReason_MIN = TimeoutWarningMessage_TimeoutReason_timeoutNoDataReceived; +const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage_TimeoutReason_TimeoutReason_MAX = TimeoutWarningMessage_TimeoutReason_timeoutKickAfterAutofold; +const int TimeoutWarningMessage_TimeoutReason_TimeoutReason_ARRAYSIZE = TimeoutWarningMessage_TimeoutReason_TimeoutReason_MAX + 1; + +const ::google::protobuf::EnumDescriptor* TimeoutWarningMessage_TimeoutReason_descriptor(); +inline const ::std::string& TimeoutWarningMessage_TimeoutReason_Name(TimeoutWarningMessage_TimeoutReason value) { + return ::google::protobuf::internal::NameOfEnum( + TimeoutWarningMessage_TimeoutReason_descriptor(), value); +} +inline bool TimeoutWarningMessage_TimeoutReason_Parse( + const ::std::string& name, TimeoutWarningMessage_TimeoutReason* value) { + return ::google::protobuf::internal::ParseNamedEnum( + TimeoutWarningMessage_TimeoutReason_descriptor(), name, value); +} +enum ReportAvatarAckMessage_ReportAvatarResult { + ReportAvatarAckMessage_ReportAvatarResult_avatarReportAccepted = 0, + ReportAvatarAckMessage_ReportAvatarResult_avatarReportDuplicate = 1, + ReportAvatarAckMessage_ReportAvatarResult_avatarReportInvalid = 2 +}; +bool ReportAvatarAckMessage_ReportAvatarResult_IsValid(int value); +const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_MIN = ReportAvatarAckMessage_ReportAvatarResult_avatarReportAccepted; +const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_MAX = ReportAvatarAckMessage_ReportAvatarResult_avatarReportInvalid; +const int ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_ARRAYSIZE = ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ReportAvatarAckMessage_ReportAvatarResult_descriptor(); +inline const ::std::string& ReportAvatarAckMessage_ReportAvatarResult_Name(ReportAvatarAckMessage_ReportAvatarResult value) { + return ::google::protobuf::internal::NameOfEnum( + ReportAvatarAckMessage_ReportAvatarResult_descriptor(), value); +} +inline bool ReportAvatarAckMessage_ReportAvatarResult_Parse( + const ::std::string& name, ReportAvatarAckMessage_ReportAvatarResult* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ReportAvatarAckMessage_ReportAvatarResult_descriptor(), name, value); +} +enum ReportGameAckMessage_ReportGameResult { + ReportGameAckMessage_ReportGameResult_gameReportAccepted = 0, + ReportGameAckMessage_ReportGameResult_gameReportDuplicate = 1, + ReportGameAckMessage_ReportGameResult_gameReportInvalid = 2 +}; +bool ReportGameAckMessage_ReportGameResult_IsValid(int value); +const ReportGameAckMessage_ReportGameResult ReportGameAckMessage_ReportGameResult_ReportGameResult_MIN = ReportGameAckMessage_ReportGameResult_gameReportAccepted; +const ReportGameAckMessage_ReportGameResult ReportGameAckMessage_ReportGameResult_ReportGameResult_MAX = ReportGameAckMessage_ReportGameResult_gameReportInvalid; +const int ReportGameAckMessage_ReportGameResult_ReportGameResult_ARRAYSIZE = ReportGameAckMessage_ReportGameResult_ReportGameResult_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ReportGameAckMessage_ReportGameResult_descriptor(); +inline const ::std::string& ReportGameAckMessage_ReportGameResult_Name(ReportGameAckMessage_ReportGameResult value) { + return ::google::protobuf::internal::NameOfEnum( + ReportGameAckMessage_ReportGameResult_descriptor(), value); +} +inline bool ReportGameAckMessage_ReportGameResult_Parse( + const ::std::string& name, ReportGameAckMessage_ReportGameResult* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ReportGameAckMessage_ReportGameResult_descriptor(), name, value); +} +enum ErrorMessage_ErrorReason { + ErrorMessage_ErrorReason_reserved = 0, + ErrorMessage_ErrorReason_initVersionNotSupported = 1, + ErrorMessage_ErrorReason_initServerFull = 2, + ErrorMessage_ErrorReason_initAuthFailure = 3, + ErrorMessage_ErrorReason_initPlayerNameInUse = 4, + ErrorMessage_ErrorReason_initInvalidPlayerName = 5, + ErrorMessage_ErrorReason_initServerMaintenance = 6, + ErrorMessage_ErrorReason_initBlocked = 7, + ErrorMessage_ErrorReason_avatarTooLarge = 8, + ErrorMessage_ErrorReason_invalidPacket = 9, + ErrorMessage_ErrorReason_invalidState = 10, + ErrorMessage_ErrorReason_kickedFromServer = 11, + ErrorMessage_ErrorReason_bannedFromServer = 12, + ErrorMessage_ErrorReason_blockedByServer = 13, + ErrorMessage_ErrorReason_sessionTimeout = 14 +}; +bool ErrorMessage_ErrorReason_IsValid(int value); +const ErrorMessage_ErrorReason ErrorMessage_ErrorReason_ErrorReason_MIN = ErrorMessage_ErrorReason_reserved; +const ErrorMessage_ErrorReason ErrorMessage_ErrorReason_ErrorReason_MAX = ErrorMessage_ErrorReason_sessionTimeout; +const int ErrorMessage_ErrorReason_ErrorReason_ARRAYSIZE = ErrorMessage_ErrorReason_ErrorReason_MAX + 1; + +const ::google::protobuf::EnumDescriptor* ErrorMessage_ErrorReason_descriptor(); +inline const ::std::string& ErrorMessage_ErrorReason_Name(ErrorMessage_ErrorReason value) { + return ::google::protobuf::internal::NameOfEnum( + ErrorMessage_ErrorReason_descriptor(), value); +} +inline bool ErrorMessage_ErrorReason_Parse( + const ::std::string& name, ErrorMessage_ErrorReason* value) { + return ::google::protobuf::internal::ParseNamedEnum( + ErrorMessage_ErrorReason_descriptor(), name, value); +} +enum PokerTHMessage_PokerTHMessageType { + PokerTHMessage_PokerTHMessageType_Type_AnnounceMessage = 1, + PokerTHMessage_PokerTHMessageType_Type_InitMessage = 2, + PokerTHMessage_PokerTHMessageType_Type_AuthServerChallengeMessage = 3, + PokerTHMessage_PokerTHMessageType_Type_AuthClientResponseMessage = 4, + PokerTHMessage_PokerTHMessageType_Type_AuthServerVerificationMessage = 5, + PokerTHMessage_PokerTHMessageType_Type_InitAckMessage = 6, + PokerTHMessage_PokerTHMessageType_Type_AvatarRequestMessage = 7, + PokerTHMessage_PokerTHMessageType_Type_AvatarHeaderMessage = 8, + PokerTHMessage_PokerTHMessageType_Type_AvatarDataMessage = 9, + PokerTHMessage_PokerTHMessageType_Type_AvatarEndMessage = 10, + PokerTHMessage_PokerTHMessageType_Type_UnknownAvatarMessage = 11, + PokerTHMessage_PokerTHMessageType_Type_PlayerListMessage = 12, + PokerTHMessage_PokerTHMessageType_Type_GameListNewMessage = 13, + PokerTHMessage_PokerTHMessageType_Type_GameListUpdateMessage = 14, + PokerTHMessage_PokerTHMessageType_Type_GameListPlayerJoinedMessage = 15, + PokerTHMessage_PokerTHMessageType_Type_GameListPlayerLeftMessage = 16, + PokerTHMessage_PokerTHMessageType_Type_GameListAdminChangedMessage = 17, + PokerTHMessage_PokerTHMessageType_Type_PlayerInfoRequestMessage = 18, + PokerTHMessage_PokerTHMessageType_Type_PlayerInfoReplyMessage = 19, + PokerTHMessage_PokerTHMessageType_Type_SubscriptionRequestMessage = 20, + PokerTHMessage_PokerTHMessageType_Type_JoinExistingGameMessage = 21, + PokerTHMessage_PokerTHMessageType_Type_JoinNewGameMessage = 22, + PokerTHMessage_PokerTHMessageType_Type_RejoinExistingGameMessage = 23, + PokerTHMessage_PokerTHMessageType_Type_JoinGameAckMessage = 24, + PokerTHMessage_PokerTHMessageType_Type_JoinGameFailedMessage = 25, + PokerTHMessage_PokerTHMessageType_Type_GamePlayerJoinedMessage = 26, + PokerTHMessage_PokerTHMessageType_Type_GamePlayerLeftMessage = 27, + PokerTHMessage_PokerTHMessageType_Type_GameAdminChangedMessage = 28, + PokerTHMessage_PokerTHMessageType_Type_RemovedFromGameMessage = 29, + PokerTHMessage_PokerTHMessageType_Type_KickPlayerRequestMessage = 30, + PokerTHMessage_PokerTHMessageType_Type_LeaveGameRequestMessage = 31, + PokerTHMessage_PokerTHMessageType_Type_InvitePlayerToGameMessage = 32, + PokerTHMessage_PokerTHMessageType_Type_InviteNotifyMessage = 33, + PokerTHMessage_PokerTHMessageType_Type_RejectGameInvitationMessage = 34, + PokerTHMessage_PokerTHMessageType_Type_RejectInvNotifyMessage = 35, + PokerTHMessage_PokerTHMessageType_Type_StartEventMessage = 36, + PokerTHMessage_PokerTHMessageType_Type_StartEventAckMessage = 37, + PokerTHMessage_PokerTHMessageType_Type_GameStartInitialMessage = 38, + PokerTHMessage_PokerTHMessageType_Type_GameStartRejoinMessage = 39, + PokerTHMessage_PokerTHMessageType_Type_HandStartMessage = 40, + PokerTHMessage_PokerTHMessageType_Type_PlayersTurnMessage = 41, + PokerTHMessage_PokerTHMessageType_Type_MyActionRequestMessage = 42, + PokerTHMessage_PokerTHMessageType_Type_YourActionRejectedMessage = 43, + PokerTHMessage_PokerTHMessageType_Type_PlayersActionDoneMessage = 44, + PokerTHMessage_PokerTHMessageType_Type_DealFlopCardsMessage = 45, + PokerTHMessage_PokerTHMessageType_Type_DealTurnCardMessage = 46, + PokerTHMessage_PokerTHMessageType_Type_DealRiverCardMessage = 47, + PokerTHMessage_PokerTHMessageType_Type_AllInShowCardsMessage = 48, + PokerTHMessage_PokerTHMessageType_Type_EndOfHandShowCardsMessage = 49, + PokerTHMessage_PokerTHMessageType_Type_EndOfHandHideCardsMessage = 50, + PokerTHMessage_PokerTHMessageType_Type_ShowMyCardsRequestMessage = 51, + PokerTHMessage_PokerTHMessageType_Type_AfterHandShowCardsMessage = 52, + PokerTHMessage_PokerTHMessageType_Type_EndOfGameMessage = 53, + PokerTHMessage_PokerTHMessageType_Type_PlayerIdChangedMessage = 54, + PokerTHMessage_PokerTHMessageType_Type_AskKickPlayerMessage = 55, + PokerTHMessage_PokerTHMessageType_Type_AskKickDeniedMessage = 56, + PokerTHMessage_PokerTHMessageType_Type_StartKickPetitionMessage = 57, + PokerTHMessage_PokerTHMessageType_Type_VoteKickRequestMessage = 58, + PokerTHMessage_PokerTHMessageType_Type_VoteKickReplyMessage = 59, + PokerTHMessage_PokerTHMessageType_Type_KickPetitionUpdateMessage = 60, + PokerTHMessage_PokerTHMessageType_Type_EndKickPetitionMessage = 61, + PokerTHMessage_PokerTHMessageType_Type_StatisticsMessage = 62, + PokerTHMessage_PokerTHMessageType_Type_ChatRequestMessage = 63, + PokerTHMessage_PokerTHMessageType_Type_ChatMessage = 64, + PokerTHMessage_PokerTHMessageType_Type_ChatRejectMessage = 65, + PokerTHMessage_PokerTHMessageType_Type_DialogMessage = 66, + PokerTHMessage_PokerTHMessageType_Type_TimeoutWarningMessage = 67, + PokerTHMessage_PokerTHMessageType_Type_ResetTimeoutMessage = 68, + PokerTHMessage_PokerTHMessageType_Type_ReportAvatarMessage = 69, + PokerTHMessage_PokerTHMessageType_Type_ReportAvatarAckMessage = 70, + PokerTHMessage_PokerTHMessageType_Type_ReportGameMessage = 71, + PokerTHMessage_PokerTHMessageType_Type_ReportGameAckMessage = 72, + PokerTHMessage_PokerTHMessageType_Type_ErrorMessage = 73 +}; +bool PokerTHMessage_PokerTHMessageType_IsValid(int value); +const PokerTHMessage_PokerTHMessageType PokerTHMessage_PokerTHMessageType_PokerTHMessageType_MIN = PokerTHMessage_PokerTHMessageType_Type_AnnounceMessage; +const PokerTHMessage_PokerTHMessageType PokerTHMessage_PokerTHMessageType_PokerTHMessageType_MAX = PokerTHMessage_PokerTHMessageType_Type_ErrorMessage; +const int PokerTHMessage_PokerTHMessageType_PokerTHMessageType_ARRAYSIZE = PokerTHMessage_PokerTHMessageType_PokerTHMessageType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* PokerTHMessage_PokerTHMessageType_descriptor(); +inline const ::std::string& PokerTHMessage_PokerTHMessageType_Name(PokerTHMessage_PokerTHMessageType value) { + return ::google::protobuf::internal::NameOfEnum( + PokerTHMessage_PokerTHMessageType_descriptor(), value); +} +inline bool PokerTHMessage_PokerTHMessageType_Parse( + const ::std::string& name, PokerTHMessage_PokerTHMessageType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + PokerTHMessage_PokerTHMessageType_descriptor(), name, value); +} +enum NetGameMode { + gameCreated = 1, + gameStarted = 2, + gameClosed = 3 +}; +bool NetGameMode_IsValid(int value); +const NetGameMode NetGameMode_MIN = gameCreated; +const NetGameMode NetGameMode_MAX = gameClosed; +const int NetGameMode_ARRAYSIZE = NetGameMode_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NetGameMode_descriptor(); +inline const ::std::string& NetGameMode_Name(NetGameMode value) { + return ::google::protobuf::internal::NameOfEnum( + NetGameMode_descriptor(), value); +} +inline bool NetGameMode_Parse( + const ::std::string& name, NetGameMode* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NetGameMode_descriptor(), name, value); +} +enum NetGameState { + statePreflop = 0, + stateFlop = 1, + stateTurn = 2, + stateRiver = 3, + statePreflopSmallBlind = 4, + statePreflopBigBlind = 5 +}; +bool NetGameState_IsValid(int value); +const NetGameState NetGameState_MIN = statePreflop; +const NetGameState NetGameState_MAX = statePreflopBigBlind; +const int NetGameState_ARRAYSIZE = NetGameState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NetGameState_descriptor(); +inline const ::std::string& NetGameState_Name(NetGameState value) { + return ::google::protobuf::internal::NameOfEnum( + NetGameState_descriptor(), value); +} +inline bool NetGameState_Parse( + const ::std::string& name, NetGameState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NetGameState_descriptor(), name, value); +} +enum NetPlayerAction { + actionNone = 0, + actionFold = 1, + actionCheck = 2, + actionCall = 3, + actionBet = 4, + actionRaise = 5, + actionAllIn = 6 +}; +bool NetPlayerAction_IsValid(int value); +const NetPlayerAction NetPlayerAction_MIN = actionNone; +const NetPlayerAction NetPlayerAction_MAX = actionAllIn; +const int NetPlayerAction_ARRAYSIZE = NetPlayerAction_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NetPlayerAction_descriptor(); +inline const ::std::string& NetPlayerAction_Name(NetPlayerAction value) { + return ::google::protobuf::internal::NameOfEnum( + NetPlayerAction_descriptor(), value); +} +inline bool NetPlayerAction_Parse( + const ::std::string& name, NetPlayerAction* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NetPlayerAction_descriptor(), name, value); +} +enum NetPlayerState { + playerStateNormal = 0, + playerStateSessionInactive = 1, + playerStateNoMoney = 2 +}; +bool NetPlayerState_IsValid(int value); +const NetPlayerState NetPlayerState_MIN = playerStateNormal; +const NetPlayerState NetPlayerState_MAX = playerStateNoMoney; +const int NetPlayerState_ARRAYSIZE = NetPlayerState_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NetPlayerState_descriptor(); +inline const ::std::string& NetPlayerState_Name(NetPlayerState value) { + return ::google::protobuf::internal::NameOfEnum( + NetPlayerState_descriptor(), value); +} +inline bool NetPlayerState_Parse( + const ::std::string& name, NetPlayerState* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NetPlayerState_descriptor(), name, value); +} +enum PlayerInfoRights { + playerRightsGuest = 1, + playerRightsNormal = 2, + playerRightsAdmin = 3 +}; +bool PlayerInfoRights_IsValid(int value); +const PlayerInfoRights PlayerInfoRights_MIN = playerRightsGuest; +const PlayerInfoRights PlayerInfoRights_MAX = playerRightsAdmin; +const int PlayerInfoRights_ARRAYSIZE = PlayerInfoRights_MAX + 1; + +const ::google::protobuf::EnumDescriptor* PlayerInfoRights_descriptor(); +inline const ::std::string& PlayerInfoRights_Name(PlayerInfoRights value) { + return ::google::protobuf::internal::NameOfEnum( + PlayerInfoRights_descriptor(), value); +} +inline bool PlayerInfoRights_Parse( + const ::std::string& name, PlayerInfoRights* value) { + return ::google::protobuf::internal::ParseNamedEnum( + PlayerInfoRights_descriptor(), name, value); +} +enum NetAvatarType { + avatarImagePng = 0, + avatarImageJpg = 1, + avatarImageGif = 2 +}; +bool NetAvatarType_IsValid(int value); +const NetAvatarType NetAvatarType_MIN = avatarImagePng; +const NetAvatarType NetAvatarType_MAX = avatarImageGif; +const int NetAvatarType_ARRAYSIZE = NetAvatarType_MAX + 1; + +const ::google::protobuf::EnumDescriptor* NetAvatarType_descriptor(); +inline const ::std::string& NetAvatarType_Name(NetAvatarType value) { + return ::google::protobuf::internal::NameOfEnum( + NetAvatarType_descriptor(), value); +} +inline bool NetAvatarType_Parse( + const ::std::string& name, NetAvatarType* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NetAvatarType_descriptor(), name, value); +} +// =================================================================== + +class NetGameInfo : public ::google::protobuf::Message { + public: + NetGameInfo(); + virtual ~NetGameInfo(); + + NetGameInfo(const NetGameInfo& from); + + inline NetGameInfo& operator=(const NetGameInfo& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const NetGameInfo& default_instance(); + + void Swap(NetGameInfo* other); + + // implements Message ---------------------------------------------- + + NetGameInfo* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const NetGameInfo& from); + void MergeFrom(const NetGameInfo& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef NetGameInfo_NetGameType NetGameType; + static const NetGameType normalGame = NetGameInfo_NetGameType_normalGame; + static const NetGameType registeredOnlyGame = NetGameInfo_NetGameType_registeredOnlyGame; + static const NetGameType inviteOnlyGame = NetGameInfo_NetGameType_inviteOnlyGame; + static const NetGameType rankingGame = NetGameInfo_NetGameType_rankingGame; + static inline bool NetGameType_IsValid(int value) { + return NetGameInfo_NetGameType_IsValid(value); + } + static const NetGameType NetGameType_MIN = + NetGameInfo_NetGameType_NetGameType_MIN; + static const NetGameType NetGameType_MAX = + NetGameInfo_NetGameType_NetGameType_MAX; + static const int NetGameType_ARRAYSIZE = + NetGameInfo_NetGameType_NetGameType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + NetGameType_descriptor() { + return NetGameInfo_NetGameType_descriptor(); + } + static inline const ::std::string& NetGameType_Name(NetGameType value) { + return NetGameInfo_NetGameType_Name(value); + } + static inline bool NetGameType_Parse(const ::std::string& name, + NetGameType* value) { + return NetGameInfo_NetGameType_Parse(name, value); + } + + typedef NetGameInfo_RaiseIntervalMode RaiseIntervalMode; + static const RaiseIntervalMode raiseOnHandNum = NetGameInfo_RaiseIntervalMode_raiseOnHandNum; + static const RaiseIntervalMode raiseOnMinutes = NetGameInfo_RaiseIntervalMode_raiseOnMinutes; + static inline bool RaiseIntervalMode_IsValid(int value) { + return NetGameInfo_RaiseIntervalMode_IsValid(value); + } + static const RaiseIntervalMode RaiseIntervalMode_MIN = + NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_MIN; + static const RaiseIntervalMode RaiseIntervalMode_MAX = + NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_MAX; + static const int RaiseIntervalMode_ARRAYSIZE = + NetGameInfo_RaiseIntervalMode_RaiseIntervalMode_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + RaiseIntervalMode_descriptor() { + return NetGameInfo_RaiseIntervalMode_descriptor(); + } + static inline const ::std::string& RaiseIntervalMode_Name(RaiseIntervalMode value) { + return NetGameInfo_RaiseIntervalMode_Name(value); + } + static inline bool RaiseIntervalMode_Parse(const ::std::string& name, + RaiseIntervalMode* value) { + return NetGameInfo_RaiseIntervalMode_Parse(name, value); + } + + typedef NetGameInfo_EndRaiseMode EndRaiseMode; + static const EndRaiseMode doubleBlinds = NetGameInfo_EndRaiseMode_doubleBlinds; + static const EndRaiseMode raiseByEndValue = NetGameInfo_EndRaiseMode_raiseByEndValue; + static const EndRaiseMode keepLastBlind = NetGameInfo_EndRaiseMode_keepLastBlind; + static inline bool EndRaiseMode_IsValid(int value) { + return NetGameInfo_EndRaiseMode_IsValid(value); + } + static const EndRaiseMode EndRaiseMode_MIN = + NetGameInfo_EndRaiseMode_EndRaiseMode_MIN; + static const EndRaiseMode EndRaiseMode_MAX = + NetGameInfo_EndRaiseMode_EndRaiseMode_MAX; + static const int EndRaiseMode_ARRAYSIZE = + NetGameInfo_EndRaiseMode_EndRaiseMode_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + EndRaiseMode_descriptor() { + return NetGameInfo_EndRaiseMode_descriptor(); + } + static inline const ::std::string& EndRaiseMode_Name(EndRaiseMode value) { + return NetGameInfo_EndRaiseMode_Name(value); + } + static inline bool EndRaiseMode_Parse(const ::std::string& name, + EndRaiseMode* value) { + return NetGameInfo_EndRaiseMode_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required string gameName = 1; + inline bool has_gamename() const; + inline void clear_gamename(); + static const int kGameNameFieldNumber = 1; + inline const ::std::string& gamename() const; + inline void set_gamename(const ::std::string& value); + inline void set_gamename(const char* value); + inline void set_gamename(const char* value, size_t size); + inline ::std::string* mutable_gamename(); + inline ::std::string* release_gamename(); + + // required .NetGameInfo.NetGameType netGameType = 2; + inline bool has_netgametype() const; + inline void clear_netgametype(); + static const int kNetGameTypeFieldNumber = 2; + inline ::NetGameInfo_NetGameType netgametype() const; + inline void set_netgametype(::NetGameInfo_NetGameType value); + + // required uint32 maxNumPlayers = 3; + inline bool has_maxnumplayers() const; + inline void clear_maxnumplayers(); + static const int kMaxNumPlayersFieldNumber = 3; + inline ::google::protobuf::uint32 maxnumplayers() const; + inline void set_maxnumplayers(::google::protobuf::uint32 value); + + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; + inline bool has_raiseintervalmode() const; + inline void clear_raiseintervalmode(); + static const int kRaiseIntervalModeFieldNumber = 4; + inline ::NetGameInfo_RaiseIntervalMode raiseintervalmode() const; + inline void set_raiseintervalmode(::NetGameInfo_RaiseIntervalMode value); + + // optional uint32 raiseEveryHands = 5; + inline bool has_raiseeveryhands() const; + inline void clear_raiseeveryhands(); + static const int kRaiseEveryHandsFieldNumber = 5; + inline ::google::protobuf::uint32 raiseeveryhands() const; + inline void set_raiseeveryhands(::google::protobuf::uint32 value); + + // optional uint32 raiseEveryMinutes = 6; + inline bool has_raiseeveryminutes() const; + inline void clear_raiseeveryminutes(); + static const int kRaiseEveryMinutesFieldNumber = 6; + inline ::google::protobuf::uint32 raiseeveryminutes() const; + inline void set_raiseeveryminutes(::google::protobuf::uint32 value); + + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; + inline bool has_endraisemode() const; + inline void clear_endraisemode(); + static const int kEndRaiseModeFieldNumber = 7; + inline ::NetGameInfo_EndRaiseMode endraisemode() const; + inline void set_endraisemode(::NetGameInfo_EndRaiseMode value); + + // optional uint32 endRaiseSmallBlindValue = 8; + inline bool has_endraisesmallblindvalue() const; + inline void clear_endraisesmallblindvalue(); + static const int kEndRaiseSmallBlindValueFieldNumber = 8; + inline ::google::protobuf::uint32 endraisesmallblindvalue() const; + inline void set_endraisesmallblindvalue(::google::protobuf::uint32 value); + + // required uint32 proposedGuiSpeed = 9; + inline bool has_proposedguispeed() const; + inline void clear_proposedguispeed(); + static const int kProposedGuiSpeedFieldNumber = 9; + inline ::google::protobuf::uint32 proposedguispeed() const; + inline void set_proposedguispeed(::google::protobuf::uint32 value); + + // required uint32 delayBetweenHands = 10; + inline bool has_delaybetweenhands() const; + inline void clear_delaybetweenhands(); + static const int kDelayBetweenHandsFieldNumber = 10; + inline ::google::protobuf::uint32 delaybetweenhands() const; + inline void set_delaybetweenhands(::google::protobuf::uint32 value); + + // required uint32 playerActionTimeout = 11; + inline bool has_playeractiontimeout() const; + inline void clear_playeractiontimeout(); + static const int kPlayerActionTimeoutFieldNumber = 11; + inline ::google::protobuf::uint32 playeractiontimeout() const; + inline void set_playeractiontimeout(::google::protobuf::uint32 value); + + // required uint32 firstSmallBlind = 12; + inline bool has_firstsmallblind() const; + inline void clear_firstsmallblind(); + static const int kFirstSmallBlindFieldNumber = 12; + inline ::google::protobuf::uint32 firstsmallblind() const; + inline void set_firstsmallblind(::google::protobuf::uint32 value); + + // required uint32 startMoney = 13; + inline bool has_startmoney() const; + inline void clear_startmoney(); + static const int kStartMoneyFieldNumber = 13; + inline ::google::protobuf::uint32 startmoney() const; + inline void set_startmoney(::google::protobuf::uint32 value); + + // repeated uint32 manualBlinds = 14 [packed = true]; + inline int manualblinds_size() const; + inline void clear_manualblinds(); + static const int kManualBlindsFieldNumber = 14; + inline ::google::protobuf::uint32 manualblinds(int index) const; + inline void set_manualblinds(int index, ::google::protobuf::uint32 value); + inline void add_manualblinds(::google::protobuf::uint32 value); + inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + manualblinds() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_manualblinds(); + + // @@protoc_insertion_point(class_scope:NetGameInfo) + private: + inline void set_has_gamename(); + inline void clear_has_gamename(); + inline void set_has_netgametype(); + inline void clear_has_netgametype(); + inline void set_has_maxnumplayers(); + inline void clear_has_maxnumplayers(); + inline void set_has_raiseintervalmode(); + inline void clear_has_raiseintervalmode(); + inline void set_has_raiseeveryhands(); + inline void clear_has_raiseeveryhands(); + inline void set_has_raiseeveryminutes(); + inline void clear_has_raiseeveryminutes(); + inline void set_has_endraisemode(); + inline void clear_has_endraisemode(); + inline void set_has_endraisesmallblindvalue(); + inline void clear_has_endraisesmallblindvalue(); + inline void set_has_proposedguispeed(); + inline void clear_has_proposedguispeed(); + inline void set_has_delaybetweenhands(); + inline void clear_has_delaybetweenhands(); + inline void set_has_playeractiontimeout(); + inline void clear_has_playeractiontimeout(); + inline void set_has_firstsmallblind(); + inline void clear_has_firstsmallblind(); + inline void set_has_startmoney(); + inline void clear_has_startmoney(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* gamename_; + int netgametype_; + ::google::protobuf::uint32 maxnumplayers_; + int raiseintervalmode_; + ::google::protobuf::uint32 raiseeveryhands_; + ::google::protobuf::uint32 raiseeveryminutes_; + int endraisemode_; + ::google::protobuf::uint32 endraisesmallblindvalue_; + ::google::protobuf::uint32 proposedguispeed_; + ::google::protobuf::uint32 delaybetweenhands_; + ::google::protobuf::uint32 playeractiontimeout_; + ::google::protobuf::uint32 firstsmallblind_; + ::google::protobuf::uint32 startmoney_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > manualblinds_; + mutable int _manualblinds_cached_byte_size_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(14 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static NetGameInfo* default_instance_; +}; +// ------------------------------------------------------------------- + +class PlayerResult : public ::google::protobuf::Message { + public: + PlayerResult(); + virtual ~PlayerResult(); + + PlayerResult(const PlayerResult& from); + + inline PlayerResult& operator=(const PlayerResult& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PlayerResult& default_instance(); + + void Swap(PlayerResult* other); + + // implements Message ---------------------------------------------- + + PlayerResult* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const PlayerResult& from); + void MergeFrom(const PlayerResult& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 playerId = 1; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 1; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // required uint32 resultCard1 = 2; + inline bool has_resultcard1() const; + inline void clear_resultcard1(); + static const int kResultCard1FieldNumber = 2; + inline ::google::protobuf::uint32 resultcard1() const; + inline void set_resultcard1(::google::protobuf::uint32 value); + + // required uint32 resultCard2 = 3; + inline bool has_resultcard2() const; + inline void clear_resultcard2(); + static const int kResultCard2FieldNumber = 3; + inline ::google::protobuf::uint32 resultcard2() const; + inline void set_resultcard2(::google::protobuf::uint32 value); + + // repeated uint32 bestHandPosition = 4 [packed = true]; + inline int besthandposition_size() const; + inline void clear_besthandposition(); + static const int kBestHandPositionFieldNumber = 4; + inline ::google::protobuf::uint32 besthandposition(int index) const; + inline void set_besthandposition(int index, ::google::protobuf::uint32 value); + inline void add_besthandposition(::google::protobuf::uint32 value); + inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + besthandposition() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_besthandposition(); + + // required uint32 moneyWon = 5; + inline bool has_moneywon() const; + inline void clear_moneywon(); + static const int kMoneyWonFieldNumber = 5; + inline ::google::protobuf::uint32 moneywon() const; + inline void set_moneywon(::google::protobuf::uint32 value); + + // required uint32 playerMoney = 6; + inline bool has_playermoney() const; + inline void clear_playermoney(); + static const int kPlayerMoneyFieldNumber = 6; + inline ::google::protobuf::uint32 playermoney() const; + inline void set_playermoney(::google::protobuf::uint32 value); + + // optional uint32 cardsValue = 7; + inline bool has_cardsvalue() const; + inline void clear_cardsvalue(); + static const int kCardsValueFieldNumber = 7; + inline ::google::protobuf::uint32 cardsvalue() const; + inline void set_cardsvalue(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:PlayerResult) + private: + inline void set_has_playerid(); + inline void clear_has_playerid(); + inline void set_has_resultcard1(); + inline void clear_has_resultcard1(); + inline void set_has_resultcard2(); + inline void clear_has_resultcard2(); + inline void set_has_moneywon(); + inline void clear_has_moneywon(); + inline void set_has_playermoney(); + inline void clear_has_playermoney(); + inline void set_has_cardsvalue(); + inline void clear_has_cardsvalue(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 playerid_; + ::google::protobuf::uint32 resultcard1_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > besthandposition_; + mutable int _besthandposition_cached_byte_size_; + ::google::protobuf::uint32 resultcard2_; + ::google::protobuf::uint32 moneywon_; + ::google::protobuf::uint32 playermoney_; + ::google::protobuf::uint32 cardsvalue_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayerResult* default_instance_; +}; +// ------------------------------------------------------------------- + +class AnnounceMessage_Version : public ::google::protobuf::Message { + public: + AnnounceMessage_Version(); + virtual ~AnnounceMessage_Version(); + + AnnounceMessage_Version(const AnnounceMessage_Version& from); + + inline AnnounceMessage_Version& operator=(const AnnounceMessage_Version& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AnnounceMessage_Version& default_instance(); + + void Swap(AnnounceMessage_Version* other); + + // implements Message ---------------------------------------------- + + AnnounceMessage_Version* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AnnounceMessage_Version& from); + void MergeFrom(const AnnounceMessage_Version& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 major = 1; + inline bool has_major() const; + inline void clear_major(); + static const int kMajorFieldNumber = 1; + inline ::google::protobuf::uint32 major() const; + inline void set_major(::google::protobuf::uint32 value); + + // required uint32 minor = 2; + inline bool has_minor() const; + inline void clear_minor(); + static const int kMinorFieldNumber = 2; + inline ::google::protobuf::uint32 minor() const; + inline void set_minor(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:AnnounceMessage.Version) + private: + inline void set_has_major(); + inline void clear_has_major(); + inline void set_has_minor(); + inline void clear_has_minor(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 major_; + ::google::protobuf::uint32 minor_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AnnounceMessage_Version* default_instance_; +}; +// ------------------------------------------------------------------- + +class AnnounceMessage : public ::google::protobuf::Message { + public: + AnnounceMessage(); + virtual ~AnnounceMessage(); + + AnnounceMessage(const AnnounceMessage& from); + + inline AnnounceMessage& operator=(const AnnounceMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AnnounceMessage& default_instance(); + + void Swap(AnnounceMessage* other); + + // implements Message ---------------------------------------------- + + AnnounceMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AnnounceMessage& from); + void MergeFrom(const AnnounceMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef AnnounceMessage_Version Version; + + typedef AnnounceMessage_ServerType ServerType; + static const ServerType serverTypeLAN = AnnounceMessage_ServerType_serverTypeLAN; + static const ServerType serverTypeInternetNoAuth = AnnounceMessage_ServerType_serverTypeInternetNoAuth; + static const ServerType serverTypeInternetAuth = AnnounceMessage_ServerType_serverTypeInternetAuth; + static inline bool ServerType_IsValid(int value) { + return AnnounceMessage_ServerType_IsValid(value); + } + static const ServerType ServerType_MIN = + AnnounceMessage_ServerType_ServerType_MIN; + static const ServerType ServerType_MAX = + AnnounceMessage_ServerType_ServerType_MAX; + static const int ServerType_ARRAYSIZE = + AnnounceMessage_ServerType_ServerType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + ServerType_descriptor() { + return AnnounceMessage_ServerType_descriptor(); + } + static inline const ::std::string& ServerType_Name(ServerType value) { + return AnnounceMessage_ServerType_Name(value); + } + static inline bool ServerType_Parse(const ::std::string& name, + ServerType* value) { + return AnnounceMessage_ServerType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .AnnounceMessage.Version protocolVersion = 1; + inline bool has_protocolversion() const; + inline void clear_protocolversion(); + static const int kProtocolVersionFieldNumber = 1; + inline const ::AnnounceMessage_Version& protocolversion() const; + inline ::AnnounceMessage_Version* mutable_protocolversion(); + inline ::AnnounceMessage_Version* release_protocolversion(); + + // required .AnnounceMessage.Version latestGameVersion = 2; + inline bool has_latestgameversion() const; + inline void clear_latestgameversion(); + static const int kLatestGameVersionFieldNumber = 2; + inline const ::AnnounceMessage_Version& latestgameversion() const; + inline ::AnnounceMessage_Version* mutable_latestgameversion(); + inline ::AnnounceMessage_Version* release_latestgameversion(); + + // required uint32 latestBetaRevision = 3; + inline bool has_latestbetarevision() const; + inline void clear_latestbetarevision(); + static const int kLatestBetaRevisionFieldNumber = 3; + inline ::google::protobuf::uint32 latestbetarevision() const; + inline void set_latestbetarevision(::google::protobuf::uint32 value); + + // required .AnnounceMessage.ServerType serverType = 4; + inline bool has_servertype() const; + inline void clear_servertype(); + static const int kServerTypeFieldNumber = 4; + inline ::AnnounceMessage_ServerType servertype() const; + inline void set_servertype(::AnnounceMessage_ServerType value); + + // required uint32 numPlayersOnServer = 5; + inline bool has_numplayersonserver() const; + inline void clear_numplayersonserver(); + static const int kNumPlayersOnServerFieldNumber = 5; + inline ::google::protobuf::uint32 numplayersonserver() const; + inline void set_numplayersonserver(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:AnnounceMessage) + private: + inline void set_has_protocolversion(); + inline void clear_has_protocolversion(); + inline void set_has_latestgameversion(); + inline void clear_has_latestgameversion(); + inline void set_has_latestbetarevision(); + inline void clear_has_latestbetarevision(); + inline void set_has_servertype(); + inline void clear_has_servertype(); + inline void set_has_numplayersonserver(); + inline void clear_has_numplayersonserver(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::AnnounceMessage_Version* protocolversion_; + ::AnnounceMessage_Version* latestgameversion_; + ::google::protobuf::uint32 latestbetarevision_; + int servertype_; + ::google::protobuf::uint32 numplayersonserver_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AnnounceMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class InitMessage : public ::google::protobuf::Message { + public: + InitMessage(); + virtual ~InitMessage(); + + InitMessage(const InitMessage& from); + + inline InitMessage& operator=(const InitMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const InitMessage& default_instance(); + + void Swap(InitMessage* other); + + // implements Message ---------------------------------------------- + + InitMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const InitMessage& from); + void MergeFrom(const InitMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef InitMessage_LoginType LoginType; + static const LoginType guestLogin = InitMessage_LoginType_guestLogin; + static const LoginType authenticatedLogin = InitMessage_LoginType_authenticatedLogin; + static const LoginType unauthenticatedLogin = InitMessage_LoginType_unauthenticatedLogin; + static inline bool LoginType_IsValid(int value) { + return InitMessage_LoginType_IsValid(value); + } + static const LoginType LoginType_MIN = + InitMessage_LoginType_LoginType_MIN; + static const LoginType LoginType_MAX = + InitMessage_LoginType_LoginType_MAX; + static const int LoginType_ARRAYSIZE = + InitMessage_LoginType_LoginType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + LoginType_descriptor() { + return InitMessage_LoginType_descriptor(); + } + static inline const ::std::string& LoginType_Name(LoginType value) { + return InitMessage_LoginType_Name(value); + } + static inline bool LoginType_Parse(const ::std::string& name, + LoginType* value) { + return InitMessage_LoginType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .AnnounceMessage.Version requestedVersion = 1; + inline bool has_requestedversion() const; + inline void clear_requestedversion(); + static const int kRequestedVersionFieldNumber = 1; + inline const ::AnnounceMessage_Version& requestedversion() const; + inline ::AnnounceMessage_Version* mutable_requestedversion(); + inline ::AnnounceMessage_Version* release_requestedversion(); + + // required uint32 buildId = 2; + inline bool has_buildid() const; + inline void clear_buildid(); + static const int kBuildIdFieldNumber = 2; + inline ::google::protobuf::uint32 buildid() const; + inline void set_buildid(::google::protobuf::uint32 value); + + // optional bytes myLastSessionId = 3; + inline bool has_mylastsessionid() const; + inline void clear_mylastsessionid(); + static const int kMyLastSessionIdFieldNumber = 3; + inline const ::std::string& mylastsessionid() const; + inline void set_mylastsessionid(const ::std::string& value); + inline void set_mylastsessionid(const char* value); + inline void set_mylastsessionid(const void* value, size_t size); + inline ::std::string* mutable_mylastsessionid(); + inline ::std::string* release_mylastsessionid(); + + // optional string authServerPassword = 4; + inline bool has_authserverpassword() const; + inline void clear_authserverpassword(); + static const int kAuthServerPasswordFieldNumber = 4; + inline const ::std::string& authserverpassword() const; + inline void set_authserverpassword(const ::std::string& value); + inline void set_authserverpassword(const char* value); + inline void set_authserverpassword(const char* value, size_t size); + inline ::std::string* mutable_authserverpassword(); + inline ::std::string* release_authserverpassword(); + + // required .InitMessage.LoginType login = 5; + inline bool has_login() const; + inline void clear_login(); + static const int kLoginFieldNumber = 5; + inline ::InitMessage_LoginType login() const; + inline void set_login(::InitMessage_LoginType value); + + // optional string nickName = 6; + inline bool has_nickname() const; + inline void clear_nickname(); + static const int kNickNameFieldNumber = 6; + inline const ::std::string& nickname() const; + inline void set_nickname(const ::std::string& value); + inline void set_nickname(const char* value); + inline void set_nickname(const char* value, size_t size); + inline ::std::string* mutable_nickname(); + inline ::std::string* release_nickname(); + + // optional bytes clientUserData = 7; + inline bool has_clientuserdata() const; + inline void clear_clientuserdata(); + static const int kClientUserDataFieldNumber = 7; + inline const ::std::string& clientuserdata() const; + inline void set_clientuserdata(const ::std::string& value); + inline void set_clientuserdata(const char* value); + inline void set_clientuserdata(const void* value, size_t size); + inline ::std::string* mutable_clientuserdata(); + inline ::std::string* release_clientuserdata(); + + // optional bytes avatarHash = 8; + inline bool has_avatarhash() const; + inline void clear_avatarhash(); + static const int kAvatarHashFieldNumber = 8; + inline const ::std::string& avatarhash() const; + inline void set_avatarhash(const ::std::string& value); + inline void set_avatarhash(const char* value); + inline void set_avatarhash(const void* value, size_t size); + inline ::std::string* mutable_avatarhash(); + inline ::std::string* release_avatarhash(); + + // @@protoc_insertion_point(class_scope:InitMessage) + private: + inline void set_has_requestedversion(); + inline void clear_has_requestedversion(); + inline void set_has_buildid(); + inline void clear_has_buildid(); + inline void set_has_mylastsessionid(); + inline void clear_has_mylastsessionid(); + inline void set_has_authserverpassword(); + inline void clear_has_authserverpassword(); + inline void set_has_login(); + inline void clear_has_login(); + inline void set_has_nickname(); + inline void clear_has_nickname(); + inline void set_has_clientuserdata(); + inline void clear_has_clientuserdata(); + inline void set_has_avatarhash(); + inline void clear_has_avatarhash(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::AnnounceMessage_Version* requestedversion_; + ::std::string* mylastsessionid_; + ::google::protobuf::uint32 buildid_; + int login_; + ::std::string* authserverpassword_; + ::std::string* nickname_; + ::std::string* clientuserdata_; + ::std::string* avatarhash_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static InitMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class AuthServerChallengeMessage : public ::google::protobuf::Message { + public: + AuthServerChallengeMessage(); + virtual ~AuthServerChallengeMessage(); + + AuthServerChallengeMessage(const AuthServerChallengeMessage& from); + + inline AuthServerChallengeMessage& operator=(const AuthServerChallengeMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AuthServerChallengeMessage& default_instance(); + + void Swap(AuthServerChallengeMessage* other); + + // implements Message ---------------------------------------------- + + AuthServerChallengeMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AuthServerChallengeMessage& from); + void MergeFrom(const AuthServerChallengeMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes serverChallenge = 1; + inline bool has_serverchallenge() const; + inline void clear_serverchallenge(); + static const int kServerChallengeFieldNumber = 1; + inline const ::std::string& serverchallenge() const; + inline void set_serverchallenge(const ::std::string& value); + inline void set_serverchallenge(const char* value); + inline void set_serverchallenge(const void* value, size_t size); + inline ::std::string* mutable_serverchallenge(); + inline ::std::string* release_serverchallenge(); + + // @@protoc_insertion_point(class_scope:AuthServerChallengeMessage) + private: + inline void set_has_serverchallenge(); + inline void clear_has_serverchallenge(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* serverchallenge_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AuthServerChallengeMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class AuthClientResponseMessage : public ::google::protobuf::Message { + public: + AuthClientResponseMessage(); + virtual ~AuthClientResponseMessage(); + + AuthClientResponseMessage(const AuthClientResponseMessage& from); + + inline AuthClientResponseMessage& operator=(const AuthClientResponseMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AuthClientResponseMessage& default_instance(); + + void Swap(AuthClientResponseMessage* other); + + // implements Message ---------------------------------------------- + + AuthClientResponseMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AuthClientResponseMessage& from); + void MergeFrom(const AuthClientResponseMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes clientResponse = 1; + inline bool has_clientresponse() const; + inline void clear_clientresponse(); + static const int kClientResponseFieldNumber = 1; + inline const ::std::string& clientresponse() const; + inline void set_clientresponse(const ::std::string& value); + inline void set_clientresponse(const char* value); + inline void set_clientresponse(const void* value, size_t size); + inline ::std::string* mutable_clientresponse(); + inline ::std::string* release_clientresponse(); + + // @@protoc_insertion_point(class_scope:AuthClientResponseMessage) + private: + inline void set_has_clientresponse(); + inline void clear_has_clientresponse(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* clientresponse_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AuthClientResponseMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class AuthServerVerificationMessage : public ::google::protobuf::Message { + public: + AuthServerVerificationMessage(); + virtual ~AuthServerVerificationMessage(); + + AuthServerVerificationMessage(const AuthServerVerificationMessage& from); + + inline AuthServerVerificationMessage& operator=(const AuthServerVerificationMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AuthServerVerificationMessage& default_instance(); + + void Swap(AuthServerVerificationMessage* other); + + // implements Message ---------------------------------------------- + + AuthServerVerificationMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AuthServerVerificationMessage& from); + void MergeFrom(const AuthServerVerificationMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes serverVerification = 1; + inline bool has_serververification() const; + inline void clear_serververification(); + static const int kServerVerificationFieldNumber = 1; + inline const ::std::string& serververification() const; + inline void set_serververification(const ::std::string& value); + inline void set_serververification(const char* value); + inline void set_serververification(const void* value, size_t size); + inline ::std::string* mutable_serververification(); + inline ::std::string* release_serververification(); + + // @@protoc_insertion_point(class_scope:AuthServerVerificationMessage) + private: + inline void set_has_serververification(); + inline void clear_has_serververification(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* serververification_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AuthServerVerificationMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class InitAckMessage : public ::google::protobuf::Message { + public: + InitAckMessage(); + virtual ~InitAckMessage(); + + InitAckMessage(const InitAckMessage& from); + + inline InitAckMessage& operator=(const InitAckMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const InitAckMessage& default_instance(); + + void Swap(InitAckMessage* other); + + // implements Message ---------------------------------------------- + + InitAckMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const InitAckMessage& from); + void MergeFrom(const InitAckMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required bytes yourSessionId = 1; + inline bool has_yoursessionid() const; + inline void clear_yoursessionid(); + static const int kYourSessionIdFieldNumber = 1; + inline const ::std::string& yoursessionid() const; + inline void set_yoursessionid(const ::std::string& value); + inline void set_yoursessionid(const char* value); + inline void set_yoursessionid(const void* value, size_t size); + inline ::std::string* mutable_yoursessionid(); + inline ::std::string* release_yoursessionid(); + + // required uint32 yourPlayerId = 2; + inline bool has_yourplayerid() const; + inline void clear_yourplayerid(); + static const int kYourPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 yourplayerid() const; + inline void set_yourplayerid(::google::protobuf::uint32 value); + + // optional bytes yourAvatarHash = 3; + inline bool has_youravatarhash() const; + inline void clear_youravatarhash(); + static const int kYourAvatarHashFieldNumber = 3; + inline const ::std::string& youravatarhash() const; + inline void set_youravatarhash(const ::std::string& value); + inline void set_youravatarhash(const char* value); + inline void set_youravatarhash(const void* value, size_t size); + inline ::std::string* mutable_youravatarhash(); + inline ::std::string* release_youravatarhash(); + + // optional uint32 rejoinGameId = 4; + inline bool has_rejoingameid() const; + inline void clear_rejoingameid(); + static const int kRejoinGameIdFieldNumber = 4; + inline ::google::protobuf::uint32 rejoingameid() const; + inline void set_rejoingameid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:InitAckMessage) + private: + inline void set_has_yoursessionid(); + inline void clear_has_yoursessionid(); + inline void set_has_yourplayerid(); + inline void clear_has_yourplayerid(); + inline void set_has_youravatarhash(); + inline void clear_has_youravatarhash(); + inline void set_has_rejoingameid(); + inline void clear_has_rejoingameid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* yoursessionid_; + ::std::string* youravatarhash_; + ::google::protobuf::uint32 yourplayerid_; + ::google::protobuf::uint32 rejoingameid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static InitAckMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class AvatarRequestMessage : public ::google::protobuf::Message { + public: + AvatarRequestMessage(); + virtual ~AvatarRequestMessage(); + + AvatarRequestMessage(const AvatarRequestMessage& from); + + inline AvatarRequestMessage& operator=(const AvatarRequestMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AvatarRequestMessage& default_instance(); + + void Swap(AvatarRequestMessage* other); + + // implements Message ---------------------------------------------- + + AvatarRequestMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AvatarRequestMessage& from); + void MergeFrom(const AvatarRequestMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 requestId = 1; + inline bool has_requestid() const; + inline void clear_requestid(); + static const int kRequestIdFieldNumber = 1; + inline ::google::protobuf::uint32 requestid() const; + inline void set_requestid(::google::protobuf::uint32 value); + + // required bytes avatarHash = 2; + inline bool has_avatarhash() const; + inline void clear_avatarhash(); + static const int kAvatarHashFieldNumber = 2; + inline const ::std::string& avatarhash() const; + inline void set_avatarhash(const ::std::string& value); + inline void set_avatarhash(const char* value); + inline void set_avatarhash(const void* value, size_t size); + inline ::std::string* mutable_avatarhash(); + inline ::std::string* release_avatarhash(); + + // @@protoc_insertion_point(class_scope:AvatarRequestMessage) + private: + inline void set_has_requestid(); + inline void clear_has_requestid(); + inline void set_has_avatarhash(); + inline void clear_has_avatarhash(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* avatarhash_; + ::google::protobuf::uint32 requestid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AvatarRequestMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class AvatarHeaderMessage : public ::google::protobuf::Message { + public: + AvatarHeaderMessage(); + virtual ~AvatarHeaderMessage(); + + AvatarHeaderMessage(const AvatarHeaderMessage& from); + + inline AvatarHeaderMessage& operator=(const AvatarHeaderMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AvatarHeaderMessage& default_instance(); + + void Swap(AvatarHeaderMessage* other); + + // implements Message ---------------------------------------------- + + AvatarHeaderMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AvatarHeaderMessage& from); + void MergeFrom(const AvatarHeaderMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 requestId = 1; + inline bool has_requestid() const; + inline void clear_requestid(); + static const int kRequestIdFieldNumber = 1; + inline ::google::protobuf::uint32 requestid() const; + inline void set_requestid(::google::protobuf::uint32 value); + + // required .NetAvatarType avatarType = 2; + inline bool has_avatartype() const; + inline void clear_avatartype(); + static const int kAvatarTypeFieldNumber = 2; + inline NetAvatarType avatartype() const; + inline void set_avatartype(NetAvatarType value); + + // required uint32 avatarSize = 3; + inline bool has_avatarsize() const; + inline void clear_avatarsize(); + static const int kAvatarSizeFieldNumber = 3; + inline ::google::protobuf::uint32 avatarsize() const; + inline void set_avatarsize(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:AvatarHeaderMessage) + private: + inline void set_has_requestid(); + inline void clear_has_requestid(); + inline void set_has_avatartype(); + inline void clear_has_avatartype(); + inline void set_has_avatarsize(); + inline void clear_has_avatarsize(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 requestid_; + int avatartype_; + ::google::protobuf::uint32 avatarsize_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AvatarHeaderMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class AvatarDataMessage : public ::google::protobuf::Message { + public: + AvatarDataMessage(); + virtual ~AvatarDataMessage(); + + AvatarDataMessage(const AvatarDataMessage& from); + + inline AvatarDataMessage& operator=(const AvatarDataMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AvatarDataMessage& default_instance(); + + void Swap(AvatarDataMessage* other); + + // implements Message ---------------------------------------------- + + AvatarDataMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AvatarDataMessage& from); + void MergeFrom(const AvatarDataMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 requestId = 1; + inline bool has_requestid() const; + inline void clear_requestid(); + static const int kRequestIdFieldNumber = 1; + inline ::google::protobuf::uint32 requestid() const; + inline void set_requestid(::google::protobuf::uint32 value); + + // required bytes avatarBlock = 2; + inline bool has_avatarblock() const; + inline void clear_avatarblock(); + static const int kAvatarBlockFieldNumber = 2; + inline const ::std::string& avatarblock() const; + inline void set_avatarblock(const ::std::string& value); + inline void set_avatarblock(const char* value); + inline void set_avatarblock(const void* value, size_t size); + inline ::std::string* mutable_avatarblock(); + inline ::std::string* release_avatarblock(); + + // @@protoc_insertion_point(class_scope:AvatarDataMessage) + private: + inline void set_has_requestid(); + inline void clear_has_requestid(); + inline void set_has_avatarblock(); + inline void clear_has_avatarblock(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* avatarblock_; + ::google::protobuf::uint32 requestid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AvatarDataMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class AvatarEndMessage : public ::google::protobuf::Message { + public: + AvatarEndMessage(); + virtual ~AvatarEndMessage(); + + AvatarEndMessage(const AvatarEndMessage& from); + + inline AvatarEndMessage& operator=(const AvatarEndMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AvatarEndMessage& default_instance(); + + void Swap(AvatarEndMessage* other); + + // implements Message ---------------------------------------------- + + AvatarEndMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AvatarEndMessage& from); + void MergeFrom(const AvatarEndMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 requestId = 1; + inline bool has_requestid() const; + inline void clear_requestid(); + static const int kRequestIdFieldNumber = 1; + inline ::google::protobuf::uint32 requestid() const; + inline void set_requestid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:AvatarEndMessage) + private: + inline void set_has_requestid(); + inline void clear_has_requestid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 requestid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AvatarEndMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class UnknownAvatarMessage : public ::google::protobuf::Message { + public: + UnknownAvatarMessage(); + virtual ~UnknownAvatarMessage(); + + UnknownAvatarMessage(const UnknownAvatarMessage& from); + + inline UnknownAvatarMessage& operator=(const UnknownAvatarMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const UnknownAvatarMessage& default_instance(); + + void Swap(UnknownAvatarMessage* other); + + // implements Message ---------------------------------------------- + + UnknownAvatarMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const UnknownAvatarMessage& from); + void MergeFrom(const UnknownAvatarMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 requestId = 1; + inline bool has_requestid() const; + inline void clear_requestid(); + static const int kRequestIdFieldNumber = 1; + inline ::google::protobuf::uint32 requestid() const; + inline void set_requestid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:UnknownAvatarMessage) + private: + inline void set_has_requestid(); + inline void clear_has_requestid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 requestid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static UnknownAvatarMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class PlayerListMessage : public ::google::protobuf::Message { + public: + PlayerListMessage(); + virtual ~PlayerListMessage(); + + PlayerListMessage(const PlayerListMessage& from); + + inline PlayerListMessage& operator=(const PlayerListMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PlayerListMessage& default_instance(); + + void Swap(PlayerListMessage* other); + + // implements Message ---------------------------------------------- + + PlayerListMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const PlayerListMessage& from); + void MergeFrom(const PlayerListMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef PlayerListMessage_PlayerListNotification PlayerListNotification; + static const PlayerListNotification playerListNew = PlayerListMessage_PlayerListNotification_playerListNew; + static const PlayerListNotification playerListLeft = PlayerListMessage_PlayerListNotification_playerListLeft; + static inline bool PlayerListNotification_IsValid(int value) { + return PlayerListMessage_PlayerListNotification_IsValid(value); + } + static const PlayerListNotification PlayerListNotification_MIN = + PlayerListMessage_PlayerListNotification_PlayerListNotification_MIN; + static const PlayerListNotification PlayerListNotification_MAX = + PlayerListMessage_PlayerListNotification_PlayerListNotification_MAX; + static const int PlayerListNotification_ARRAYSIZE = + PlayerListMessage_PlayerListNotification_PlayerListNotification_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + PlayerListNotification_descriptor() { + return PlayerListMessage_PlayerListNotification_descriptor(); + } + static inline const ::std::string& PlayerListNotification_Name(PlayerListNotification value) { + return PlayerListMessage_PlayerListNotification_Name(value); + } + static inline bool PlayerListNotification_Parse(const ::std::string& name, + PlayerListNotification* value) { + return PlayerListMessage_PlayerListNotification_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required uint32 playerId = 1; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 1; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; + inline bool has_playerlistnotification() const; + inline void clear_playerlistnotification(); + static const int kPlayerListNotificationFieldNumber = 2; + inline ::PlayerListMessage_PlayerListNotification playerlistnotification() const; + inline void set_playerlistnotification(::PlayerListMessage_PlayerListNotification value); + + // @@protoc_insertion_point(class_scope:PlayerListMessage) + private: + inline void set_has_playerid(); + inline void clear_has_playerid(); + inline void set_has_playerlistnotification(); + inline void clear_has_playerlistnotification(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 playerid_; + int playerlistnotification_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayerListMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class GameListNewMessage : public ::google::protobuf::Message { + public: + GameListNewMessage(); + virtual ~GameListNewMessage(); + + GameListNewMessage(const GameListNewMessage& from); + + inline GameListNewMessage& operator=(const GameListNewMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GameListNewMessage& default_instance(); + + void Swap(GameListNewMessage* other); + + // implements Message ---------------------------------------------- + + GameListNewMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GameListNewMessage& from); + void MergeFrom(const GameListNewMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required .NetGameMode gameMode = 2; + inline bool has_gamemode() const; + inline void clear_gamemode(); + static const int kGameModeFieldNumber = 2; + inline NetGameMode gamemode() const; + inline void set_gamemode(NetGameMode value); + + // required bool isPrivate = 3; + inline bool has_isprivate() const; + inline void clear_isprivate(); + static const int kIsPrivateFieldNumber = 3; + inline bool isprivate() const; + inline void set_isprivate(bool value); + + // repeated uint32 playerIds = 4 [packed = true]; + inline int playerids_size() const; + inline void clear_playerids(); + static const int kPlayerIdsFieldNumber = 4; + inline ::google::protobuf::uint32 playerids(int index) const; + inline void set_playerids(int index, ::google::protobuf::uint32 value); + inline void add_playerids(::google::protobuf::uint32 value); + inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + playerids() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_playerids(); + + // required uint32 adminPlayerId = 5; + inline bool has_adminplayerid() const; + inline void clear_adminplayerid(); + static const int kAdminPlayerIdFieldNumber = 5; + inline ::google::protobuf::uint32 adminplayerid() const; + inline void set_adminplayerid(::google::protobuf::uint32 value); + + // required .NetGameInfo gameInfo = 6; + inline bool has_gameinfo() const; + inline void clear_gameinfo(); + static const int kGameInfoFieldNumber = 6; + inline const ::NetGameInfo& gameinfo() const; + inline ::NetGameInfo* mutable_gameinfo(); + inline ::NetGameInfo* release_gameinfo(); + + // @@protoc_insertion_point(class_scope:GameListNewMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_gamemode(); + inline void clear_has_gamemode(); + inline void set_has_isprivate(); + inline void clear_has_isprivate(); + inline void set_has_adminplayerid(); + inline void clear_has_adminplayerid(); + inline void set_has_gameinfo(); + inline void clear_has_gameinfo(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + int gamemode_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > playerids_; + mutable int _playerids_cached_byte_size_; + bool isprivate_; + ::google::protobuf::uint32 adminplayerid_; + ::NetGameInfo* gameinfo_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameListNewMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class GameListUpdateMessage : public ::google::protobuf::Message { + public: + GameListUpdateMessage(); + virtual ~GameListUpdateMessage(); + + GameListUpdateMessage(const GameListUpdateMessage& from); + + inline GameListUpdateMessage& operator=(const GameListUpdateMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GameListUpdateMessage& default_instance(); + + void Swap(GameListUpdateMessage* other); + + // implements Message ---------------------------------------------- + + GameListUpdateMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GameListUpdateMessage& from); + void MergeFrom(const GameListUpdateMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required .NetGameMode gameMode = 2; + inline bool has_gamemode() const; + inline void clear_gamemode(); + static const int kGameModeFieldNumber = 2; + inline NetGameMode gamemode() const; + inline void set_gamemode(NetGameMode value); + + // @@protoc_insertion_point(class_scope:GameListUpdateMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_gamemode(); + inline void clear_has_gamemode(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + int gamemode_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameListUpdateMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class GameListPlayerJoinedMessage : public ::google::protobuf::Message { + public: + GameListPlayerJoinedMessage(); + virtual ~GameListPlayerJoinedMessage(); + + GameListPlayerJoinedMessage(const GameListPlayerJoinedMessage& from); + + inline GameListPlayerJoinedMessage& operator=(const GameListPlayerJoinedMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GameListPlayerJoinedMessage& default_instance(); + + void Swap(GameListPlayerJoinedMessage* other); + + // implements Message ---------------------------------------------- + + GameListPlayerJoinedMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GameListPlayerJoinedMessage& from); + void MergeFrom(const GameListPlayerJoinedMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 playerId = 2; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:GameListPlayerJoinedMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 playerid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameListPlayerJoinedMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class GameListPlayerLeftMessage : public ::google::protobuf::Message { + public: + GameListPlayerLeftMessage(); + virtual ~GameListPlayerLeftMessage(); + + GameListPlayerLeftMessage(const GameListPlayerLeftMessage& from); + + inline GameListPlayerLeftMessage& operator=(const GameListPlayerLeftMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GameListPlayerLeftMessage& default_instance(); + + void Swap(GameListPlayerLeftMessage* other); + + // implements Message ---------------------------------------------- + + GameListPlayerLeftMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GameListPlayerLeftMessage& from); + void MergeFrom(const GameListPlayerLeftMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 playerId = 2; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:GameListPlayerLeftMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 playerid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameListPlayerLeftMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class GameListAdminChangedMessage : public ::google::protobuf::Message { + public: + GameListAdminChangedMessage(); + virtual ~GameListAdminChangedMessage(); + + GameListAdminChangedMessage(const GameListAdminChangedMessage& from); + + inline GameListAdminChangedMessage& operator=(const GameListAdminChangedMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GameListAdminChangedMessage& default_instance(); + + void Swap(GameListAdminChangedMessage* other); + + // implements Message ---------------------------------------------- + + GameListAdminChangedMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GameListAdminChangedMessage& from); + void MergeFrom(const GameListAdminChangedMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 newAdminPlayerId = 2; + inline bool has_newadminplayerid() const; + inline void clear_newadminplayerid(); + static const int kNewAdminPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 newadminplayerid() const; + inline void set_newadminplayerid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:GameListAdminChangedMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_newadminplayerid(); + inline void clear_has_newadminplayerid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 newadminplayerid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameListAdminChangedMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class PlayerInfoRequestMessage : public ::google::protobuf::Message { + public: + PlayerInfoRequestMessage(); + virtual ~PlayerInfoRequestMessage(); + + PlayerInfoRequestMessage(const PlayerInfoRequestMessage& from); + + inline PlayerInfoRequestMessage& operator=(const PlayerInfoRequestMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PlayerInfoRequestMessage& default_instance(); + + void Swap(PlayerInfoRequestMessage* other); + + // implements Message ---------------------------------------------- + + PlayerInfoRequestMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const PlayerInfoRequestMessage& from); + void MergeFrom(const PlayerInfoRequestMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 playerId = 1; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 1; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:PlayerInfoRequestMessage) + private: + inline void set_has_playerid(); + inline void clear_has_playerid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 playerid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayerInfoRequestMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class PlayerInfoReplyMessage_PlayerInfoData_AvatarData : public ::google::protobuf::Message { + public: + PlayerInfoReplyMessage_PlayerInfoData_AvatarData(); + virtual ~PlayerInfoReplyMessage_PlayerInfoData_AvatarData(); + + PlayerInfoReplyMessage_PlayerInfoData_AvatarData(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from); + + inline PlayerInfoReplyMessage_PlayerInfoData_AvatarData& operator=(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& default_instance(); + + void Swap(PlayerInfoReplyMessage_PlayerInfoData_AvatarData* other); + + // implements Message ---------------------------------------------- + + PlayerInfoReplyMessage_PlayerInfoData_AvatarData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from); + void MergeFrom(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .NetAvatarType avatarType = 1; + inline bool has_avatartype() const; + inline void clear_avatartype(); + static const int kAvatarTypeFieldNumber = 1; + inline NetAvatarType avatartype() const; + inline void set_avatartype(NetAvatarType value); + + // required bytes avatarHash = 2; + inline bool has_avatarhash() const; + inline void clear_avatarhash(); + static const int kAvatarHashFieldNumber = 2; + inline const ::std::string& avatarhash() const; + inline void set_avatarhash(const ::std::string& value); + inline void set_avatarhash(const char* value); + inline void set_avatarhash(const void* value, size_t size); + inline ::std::string* mutable_avatarhash(); + inline ::std::string* release_avatarhash(); + + // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) + private: + inline void set_has_avatartype(); + inline void clear_has_avatartype(); + inline void set_has_avatarhash(); + inline void clear_has_avatarhash(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* avatarhash_; + int avatartype_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayerInfoReplyMessage_PlayerInfoData_AvatarData* default_instance_; +}; +// ------------------------------------------------------------------- + +class PlayerInfoReplyMessage_PlayerInfoData : public ::google::protobuf::Message { + public: + PlayerInfoReplyMessage_PlayerInfoData(); + virtual ~PlayerInfoReplyMessage_PlayerInfoData(); + + PlayerInfoReplyMessage_PlayerInfoData(const PlayerInfoReplyMessage_PlayerInfoData& from); + + inline PlayerInfoReplyMessage_PlayerInfoData& operator=(const PlayerInfoReplyMessage_PlayerInfoData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PlayerInfoReplyMessage_PlayerInfoData& default_instance(); + + void Swap(PlayerInfoReplyMessage_PlayerInfoData* other); + + // implements Message ---------------------------------------------- + + PlayerInfoReplyMessage_PlayerInfoData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const PlayerInfoReplyMessage_PlayerInfoData& from); + void MergeFrom(const PlayerInfoReplyMessage_PlayerInfoData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef PlayerInfoReplyMessage_PlayerInfoData_AvatarData AvatarData; + + // accessors ------------------------------------------------------- + + // required string playerName = 1; + inline bool has_playername() const; + inline void clear_playername(); + static const int kPlayerNameFieldNumber = 1; + inline const ::std::string& playername() const; + inline void set_playername(const ::std::string& value); + inline void set_playername(const char* value); + inline void set_playername(const char* value, size_t size); + inline ::std::string* mutable_playername(); + inline ::std::string* release_playername(); + + // required bool isHuman = 2; + inline bool has_ishuman() const; + inline void clear_ishuman(); + static const int kIsHumanFieldNumber = 2; + inline bool ishuman() const; + inline void set_ishuman(bool value); + + // required .PlayerInfoRights playerRights = 3; + inline bool has_playerrights() const; + inline void clear_playerrights(); + static const int kPlayerRightsFieldNumber = 3; + inline PlayerInfoRights playerrights() const; + inline void set_playerrights(PlayerInfoRights value); + + // optional string countryCode = 4; + inline bool has_countrycode() const; + inline void clear_countrycode(); + static const int kCountryCodeFieldNumber = 4; + inline const ::std::string& countrycode() const; + inline void set_countrycode(const ::std::string& value); + inline void set_countrycode(const char* value); + inline void set_countrycode(const char* value, size_t size); + inline ::std::string* mutable_countrycode(); + inline ::std::string* release_countrycode(); + + // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; + inline bool has_avatardata() const; + inline void clear_avatardata(); + static const int kAvatarDataFieldNumber = 5; + inline const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& avatardata() const; + inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* mutable_avatardata(); + inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* release_avatardata(); + + // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage.PlayerInfoData) + private: + inline void set_has_playername(); + inline void clear_has_playername(); + inline void set_has_ishuman(); + inline void clear_has_ishuman(); + inline void set_has_playerrights(); + inline void clear_has_playerrights(); + inline void set_has_countrycode(); + inline void clear_has_countrycode(); + inline void set_has_avatardata(); + inline void clear_has_avatardata(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* playername_; + bool ishuman_; + int playerrights_; + ::std::string* countrycode_; + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayerInfoReplyMessage_PlayerInfoData* default_instance_; +}; +// ------------------------------------------------------------------- + +class PlayerInfoReplyMessage : public ::google::protobuf::Message { + public: + PlayerInfoReplyMessage(); + virtual ~PlayerInfoReplyMessage(); + + PlayerInfoReplyMessage(const PlayerInfoReplyMessage& from); + + inline PlayerInfoReplyMessage& operator=(const PlayerInfoReplyMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PlayerInfoReplyMessage& default_instance(); + + void Swap(PlayerInfoReplyMessage* other); + + // implements Message ---------------------------------------------- + + PlayerInfoReplyMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const PlayerInfoReplyMessage& from); + void MergeFrom(const PlayerInfoReplyMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef PlayerInfoReplyMessage_PlayerInfoData PlayerInfoData; + + // accessors ------------------------------------------------------- + + // required uint32 playerId = 1; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 1; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; + inline bool has_playerinfodata() const; + inline void clear_playerinfodata(); + static const int kPlayerInfoDataFieldNumber = 2; + inline const ::PlayerInfoReplyMessage_PlayerInfoData& playerinfodata() const; + inline ::PlayerInfoReplyMessage_PlayerInfoData* mutable_playerinfodata(); + inline ::PlayerInfoReplyMessage_PlayerInfoData* release_playerinfodata(); + + // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage) + private: + inline void set_has_playerid(); + inline void clear_has_playerid(); + inline void set_has_playerinfodata(); + inline void clear_has_playerinfodata(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::PlayerInfoReplyMessage_PlayerInfoData* playerinfodata_; + ::google::protobuf::uint32 playerid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayerInfoReplyMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class SubscriptionRequestMessage : public ::google::protobuf::Message { + public: + SubscriptionRequestMessage(); + virtual ~SubscriptionRequestMessage(); + + SubscriptionRequestMessage(const SubscriptionRequestMessage& from); + + inline SubscriptionRequestMessage& operator=(const SubscriptionRequestMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const SubscriptionRequestMessage& default_instance(); + + void Swap(SubscriptionRequestMessage* other); + + // implements Message ---------------------------------------------- + + SubscriptionRequestMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const SubscriptionRequestMessage& from); + void MergeFrom(const SubscriptionRequestMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef SubscriptionRequestMessage_SubscriptionAction SubscriptionAction; + static const SubscriptionAction unsubscribeGameList = SubscriptionRequestMessage_SubscriptionAction_unsubscribeGameList; + static const SubscriptionAction resubscribeGameList = SubscriptionRequestMessage_SubscriptionAction_resubscribeGameList; + static inline bool SubscriptionAction_IsValid(int value) { + return SubscriptionRequestMessage_SubscriptionAction_IsValid(value); + } + static const SubscriptionAction SubscriptionAction_MIN = + SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_MIN; + static const SubscriptionAction SubscriptionAction_MAX = + SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_MAX; + static const int SubscriptionAction_ARRAYSIZE = + SubscriptionRequestMessage_SubscriptionAction_SubscriptionAction_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + SubscriptionAction_descriptor() { + return SubscriptionRequestMessage_SubscriptionAction_descriptor(); + } + static inline const ::std::string& SubscriptionAction_Name(SubscriptionAction value) { + return SubscriptionRequestMessage_SubscriptionAction_Name(value); + } + static inline bool SubscriptionAction_Parse(const ::std::string& name, + SubscriptionAction* value) { + return SubscriptionRequestMessage_SubscriptionAction_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; + inline bool has_subscriptionaction() const; + inline void clear_subscriptionaction(); + static const int kSubscriptionActionFieldNumber = 1; + inline ::SubscriptionRequestMessage_SubscriptionAction subscriptionaction() const; + inline void set_subscriptionaction(::SubscriptionRequestMessage_SubscriptionAction value); + + // @@protoc_insertion_point(class_scope:SubscriptionRequestMessage) + private: + inline void set_has_subscriptionaction(); + inline void clear_has_subscriptionaction(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + int subscriptionaction_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static SubscriptionRequestMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class JoinExistingGameMessage : public ::google::protobuf::Message { + public: + JoinExistingGameMessage(); + virtual ~JoinExistingGameMessage(); + + JoinExistingGameMessage(const JoinExistingGameMessage& from); + + inline JoinExistingGameMessage& operator=(const JoinExistingGameMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const JoinExistingGameMessage& default_instance(); + + void Swap(JoinExistingGameMessage* other); + + // implements Message ---------------------------------------------- + + JoinExistingGameMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const JoinExistingGameMessage& from); + void MergeFrom(const JoinExistingGameMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // optional string password = 2; + inline bool has_password() const; + inline void clear_password(); + static const int kPasswordFieldNumber = 2; + inline const ::std::string& password() const; + inline void set_password(const ::std::string& value); + inline void set_password(const char* value); + inline void set_password(const char* value, size_t size); + inline ::std::string* mutable_password(); + inline ::std::string* release_password(); + + // optional bool autoLeave = 3; + inline bool has_autoleave() const; + inline void clear_autoleave(); + static const int kAutoLeaveFieldNumber = 3; + inline bool autoleave() const; + inline void set_autoleave(bool value); + + // @@protoc_insertion_point(class_scope:JoinExistingGameMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_password(); + inline void clear_has_password(); + inline void set_has_autoleave(); + inline void clear_has_autoleave(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* password_; + ::google::protobuf::uint32 gameid_; + bool autoleave_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static JoinExistingGameMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class JoinNewGameMessage : public ::google::protobuf::Message { + public: + JoinNewGameMessage(); + virtual ~JoinNewGameMessage(); + + JoinNewGameMessage(const JoinNewGameMessage& from); + + inline JoinNewGameMessage& operator=(const JoinNewGameMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const JoinNewGameMessage& default_instance(); + + void Swap(JoinNewGameMessage* other); + + // implements Message ---------------------------------------------- + + JoinNewGameMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const JoinNewGameMessage& from); + void MergeFrom(const JoinNewGameMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .NetGameInfo gameInfo = 1; + inline bool has_gameinfo() const; + inline void clear_gameinfo(); + static const int kGameInfoFieldNumber = 1; + inline const ::NetGameInfo& gameinfo() const; + inline ::NetGameInfo* mutable_gameinfo(); + inline ::NetGameInfo* release_gameinfo(); + + // optional string password = 2; + inline bool has_password() const; + inline void clear_password(); + static const int kPasswordFieldNumber = 2; + inline const ::std::string& password() const; + inline void set_password(const ::std::string& value); + inline void set_password(const char* value); + inline void set_password(const char* value, size_t size); + inline ::std::string* mutable_password(); + inline ::std::string* release_password(); + + // optional bool autoLeave = 3; + inline bool has_autoleave() const; + inline void clear_autoleave(); + static const int kAutoLeaveFieldNumber = 3; + inline bool autoleave() const; + inline void set_autoleave(bool value); + + // @@protoc_insertion_point(class_scope:JoinNewGameMessage) + private: + inline void set_has_gameinfo(); + inline void clear_has_gameinfo(); + inline void set_has_password(); + inline void clear_has_password(); + inline void set_has_autoleave(); + inline void clear_has_autoleave(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::NetGameInfo* gameinfo_; + ::std::string* password_; + bool autoleave_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static JoinNewGameMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class RejoinExistingGameMessage : public ::google::protobuf::Message { + public: + RejoinExistingGameMessage(); + virtual ~RejoinExistingGameMessage(); + + RejoinExistingGameMessage(const RejoinExistingGameMessage& from); + + inline RejoinExistingGameMessage& operator=(const RejoinExistingGameMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RejoinExistingGameMessage& default_instance(); + + void Swap(RejoinExistingGameMessage* other); + + // implements Message ---------------------------------------------- + + RejoinExistingGameMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RejoinExistingGameMessage& from); + void MergeFrom(const RejoinExistingGameMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // optional bool autoLeave = 2; + inline bool has_autoleave() const; + inline void clear_autoleave(); + static const int kAutoLeaveFieldNumber = 2; + inline bool autoleave() const; + inline void set_autoleave(bool value); + + // @@protoc_insertion_point(class_scope:RejoinExistingGameMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_autoleave(); + inline void clear_has_autoleave(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + bool autoleave_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static RejoinExistingGameMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class JoinGameAckMessage : public ::google::protobuf::Message { + public: + JoinGameAckMessage(); + virtual ~JoinGameAckMessage(); + + JoinGameAckMessage(const JoinGameAckMessage& from); + + inline JoinGameAckMessage& operator=(const JoinGameAckMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const JoinGameAckMessage& default_instance(); + + void Swap(JoinGameAckMessage* other); + + // implements Message ---------------------------------------------- + + JoinGameAckMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const JoinGameAckMessage& from); + void MergeFrom(const JoinGameAckMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required bool areYouGameAdmin = 2; + inline bool has_areyougameadmin() const; + inline void clear_areyougameadmin(); + static const int kAreYouGameAdminFieldNumber = 2; + inline bool areyougameadmin() const; + inline void set_areyougameadmin(bool value); + + // required .NetGameInfo gameInfo = 3; + inline bool has_gameinfo() const; + inline void clear_gameinfo(); + static const int kGameInfoFieldNumber = 3; + inline const ::NetGameInfo& gameinfo() const; + inline ::NetGameInfo* mutable_gameinfo(); + inline ::NetGameInfo* release_gameinfo(); + + // @@protoc_insertion_point(class_scope:JoinGameAckMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_areyougameadmin(); + inline void clear_has_areyougameadmin(); + inline void set_has_gameinfo(); + inline void clear_has_gameinfo(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + bool areyougameadmin_; + ::NetGameInfo* gameinfo_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static JoinGameAckMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class JoinGameFailedMessage : public ::google::protobuf::Message { + public: + JoinGameFailedMessage(); + virtual ~JoinGameFailedMessage(); + + JoinGameFailedMessage(const JoinGameFailedMessage& from); + + inline JoinGameFailedMessage& operator=(const JoinGameFailedMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const JoinGameFailedMessage& default_instance(); + + void Swap(JoinGameFailedMessage* other); + + // implements Message ---------------------------------------------- + + JoinGameFailedMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const JoinGameFailedMessage& from); + void MergeFrom(const JoinGameFailedMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef JoinGameFailedMessage_JoinGameFailureReason JoinGameFailureReason; + static const JoinGameFailureReason invalidGame = JoinGameFailedMessage_JoinGameFailureReason_invalidGame; + static const JoinGameFailureReason gameIsFull = JoinGameFailedMessage_JoinGameFailureReason_gameIsFull; + static const JoinGameFailureReason gameIsRunning = JoinGameFailedMessage_JoinGameFailureReason_gameIsRunning; + static const JoinGameFailureReason invalidPassword = JoinGameFailedMessage_JoinGameFailureReason_invalidPassword; + static const JoinGameFailureReason notAllowedAsGuest = JoinGameFailedMessage_JoinGameFailureReason_notAllowedAsGuest; + static const JoinGameFailureReason notInvited = JoinGameFailedMessage_JoinGameFailureReason_notInvited; + static const JoinGameFailureReason gameNameInUse = JoinGameFailedMessage_JoinGameFailureReason_gameNameInUse; + static const JoinGameFailureReason badGameName = JoinGameFailedMessage_JoinGameFailureReason_badGameName; + static const JoinGameFailureReason invalidSettings = JoinGameFailedMessage_JoinGameFailureReason_invalidSettings; + static const JoinGameFailureReason ipAddressBlocked = JoinGameFailedMessage_JoinGameFailureReason_ipAddressBlocked; + static const JoinGameFailureReason rejoinFailed = JoinGameFailedMessage_JoinGameFailureReason_rejoinFailed; + static inline bool JoinGameFailureReason_IsValid(int value) { + return JoinGameFailedMessage_JoinGameFailureReason_IsValid(value); + } + static const JoinGameFailureReason JoinGameFailureReason_MIN = + JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_MIN; + static const JoinGameFailureReason JoinGameFailureReason_MAX = + JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_MAX; + static const int JoinGameFailureReason_ARRAYSIZE = + JoinGameFailedMessage_JoinGameFailureReason_JoinGameFailureReason_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + JoinGameFailureReason_descriptor() { + return JoinGameFailedMessage_JoinGameFailureReason_descriptor(); + } + static inline const ::std::string& JoinGameFailureReason_Name(JoinGameFailureReason value) { + return JoinGameFailedMessage_JoinGameFailureReason_Name(value); + } + static inline bool JoinGameFailureReason_Parse(const ::std::string& name, + JoinGameFailureReason* value) { + return JoinGameFailedMessage_JoinGameFailureReason_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; + inline bool has_joingamefailurereason() const; + inline void clear_joingamefailurereason(); + static const int kJoinGameFailureReasonFieldNumber = 2; + inline ::JoinGameFailedMessage_JoinGameFailureReason joingamefailurereason() const; + inline void set_joingamefailurereason(::JoinGameFailedMessage_JoinGameFailureReason value); + + // @@protoc_insertion_point(class_scope:JoinGameFailedMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_joingamefailurereason(); + inline void clear_has_joingamefailurereason(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + int joingamefailurereason_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static JoinGameFailedMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class GamePlayerJoinedMessage : public ::google::protobuf::Message { + public: + GamePlayerJoinedMessage(); + virtual ~GamePlayerJoinedMessage(); + + GamePlayerJoinedMessage(const GamePlayerJoinedMessage& from); + + inline GamePlayerJoinedMessage& operator=(const GamePlayerJoinedMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GamePlayerJoinedMessage& default_instance(); + + void Swap(GamePlayerJoinedMessage* other); + + // implements Message ---------------------------------------------- + + GamePlayerJoinedMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GamePlayerJoinedMessage& from); + void MergeFrom(const GamePlayerJoinedMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 playerId = 2; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // required bool isGameAdmin = 3; + inline bool has_isgameadmin() const; + inline void clear_isgameadmin(); + static const int kIsGameAdminFieldNumber = 3; + inline bool isgameadmin() const; + inline void set_isgameadmin(bool value); + + // @@protoc_insertion_point(class_scope:GamePlayerJoinedMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + inline void set_has_isgameadmin(); + inline void clear_has_isgameadmin(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 playerid_; + bool isgameadmin_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GamePlayerJoinedMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class GamePlayerLeftMessage : public ::google::protobuf::Message { + public: + GamePlayerLeftMessage(); + virtual ~GamePlayerLeftMessage(); + + GamePlayerLeftMessage(const GamePlayerLeftMessage& from); + + inline GamePlayerLeftMessage& operator=(const GamePlayerLeftMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GamePlayerLeftMessage& default_instance(); + + void Swap(GamePlayerLeftMessage* other); + + // implements Message ---------------------------------------------- + + GamePlayerLeftMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GamePlayerLeftMessage& from); + void MergeFrom(const GamePlayerLeftMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftReason; + static const GamePlayerLeftReason leftOnRequest = GamePlayerLeftMessage_GamePlayerLeftReason_leftOnRequest; + static const GamePlayerLeftReason leftKicked = GamePlayerLeftMessage_GamePlayerLeftReason_leftKicked; + static const GamePlayerLeftReason leftError = GamePlayerLeftMessage_GamePlayerLeftReason_leftError; + static inline bool GamePlayerLeftReason_IsValid(int value) { + return GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(value); + } + static const GamePlayerLeftReason GamePlayerLeftReason_MIN = + GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_MIN; + static const GamePlayerLeftReason GamePlayerLeftReason_MAX = + GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_MAX; + static const int GamePlayerLeftReason_ARRAYSIZE = + GamePlayerLeftMessage_GamePlayerLeftReason_GamePlayerLeftReason_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + GamePlayerLeftReason_descriptor() { + return GamePlayerLeftMessage_GamePlayerLeftReason_descriptor(); + } + static inline const ::std::string& GamePlayerLeftReason_Name(GamePlayerLeftReason value) { + return GamePlayerLeftMessage_GamePlayerLeftReason_Name(value); + } + static inline bool GamePlayerLeftReason_Parse(const ::std::string& name, + GamePlayerLeftReason* value) { + return GamePlayerLeftMessage_GamePlayerLeftReason_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 playerId = 2; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; + inline bool has_gameplayerleftreason() const; + inline void clear_gameplayerleftreason(); + static const int kGamePlayerLeftReasonFieldNumber = 3; + inline ::GamePlayerLeftMessage_GamePlayerLeftReason gameplayerleftreason() const; + inline void set_gameplayerleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value); + + // @@protoc_insertion_point(class_scope:GamePlayerLeftMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + inline void set_has_gameplayerleftreason(); + inline void clear_has_gameplayerleftreason(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 playerid_; + int gameplayerleftreason_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GamePlayerLeftMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class GameAdminChangedMessage : public ::google::protobuf::Message { + public: + GameAdminChangedMessage(); + virtual ~GameAdminChangedMessage(); + + GameAdminChangedMessage(const GameAdminChangedMessage& from); + + inline GameAdminChangedMessage& operator=(const GameAdminChangedMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GameAdminChangedMessage& default_instance(); + + void Swap(GameAdminChangedMessage* other); + + // implements Message ---------------------------------------------- + + GameAdminChangedMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GameAdminChangedMessage& from); + void MergeFrom(const GameAdminChangedMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 newAdminPlayerId = 2; + inline bool has_newadminplayerid() const; + inline void clear_newadminplayerid(); + static const int kNewAdminPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 newadminplayerid() const; + inline void set_newadminplayerid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:GameAdminChangedMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_newadminplayerid(); + inline void clear_has_newadminplayerid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 newadminplayerid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameAdminChangedMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class RemovedFromGameMessage : public ::google::protobuf::Message { + public: + RemovedFromGameMessage(); + virtual ~RemovedFromGameMessage(); + + RemovedFromGameMessage(const RemovedFromGameMessage& from); + + inline RemovedFromGameMessage& operator=(const RemovedFromGameMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RemovedFromGameMessage& default_instance(); + + void Swap(RemovedFromGameMessage* other); + + // implements Message ---------------------------------------------- + + RemovedFromGameMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RemovedFromGameMessage& from); + void MergeFrom(const RemovedFromGameMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameReason; + static const RemovedFromGameReason removedOnRequest = RemovedFromGameMessage_RemovedFromGameReason_removedOnRequest; + static const RemovedFromGameReason kickedFromGame = RemovedFromGameMessage_RemovedFromGameReason_kickedFromGame; + static const RemovedFromGameReason gameIsFull = RemovedFromGameMessage_RemovedFromGameReason_gameIsFull; + static const RemovedFromGameReason gameIsRunning = RemovedFromGameMessage_RemovedFromGameReason_gameIsRunning; + static const RemovedFromGameReason gameTimeout = RemovedFromGameMessage_RemovedFromGameReason_gameTimeout; + static const RemovedFromGameReason removedStartFailed = RemovedFromGameMessage_RemovedFromGameReason_removedStartFailed; + static inline bool RemovedFromGameReason_IsValid(int value) { + return RemovedFromGameMessage_RemovedFromGameReason_IsValid(value); + } + static const RemovedFromGameReason RemovedFromGameReason_MIN = + RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_MIN; + static const RemovedFromGameReason RemovedFromGameReason_MAX = + RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_MAX; + static const int RemovedFromGameReason_ARRAYSIZE = + RemovedFromGameMessage_RemovedFromGameReason_RemovedFromGameReason_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + RemovedFromGameReason_descriptor() { + return RemovedFromGameMessage_RemovedFromGameReason_descriptor(); + } + static inline const ::std::string& RemovedFromGameReason_Name(RemovedFromGameReason value) { + return RemovedFromGameMessage_RemovedFromGameReason_Name(value); + } + static inline bool RemovedFromGameReason_Parse(const ::std::string& name, + RemovedFromGameReason* value) { + return RemovedFromGameMessage_RemovedFromGameReason_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; + inline bool has_removedfromgamereason() const; + inline void clear_removedfromgamereason(); + static const int kRemovedFromGameReasonFieldNumber = 2; + inline ::RemovedFromGameMessage_RemovedFromGameReason removedfromgamereason() const; + inline void set_removedfromgamereason(::RemovedFromGameMessage_RemovedFromGameReason value); + + // @@protoc_insertion_point(class_scope:RemovedFromGameMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_removedfromgamereason(); + inline void clear_has_removedfromgamereason(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + int removedfromgamereason_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static RemovedFromGameMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class KickPlayerRequestMessage : public ::google::protobuf::Message { + public: + KickPlayerRequestMessage(); + virtual ~KickPlayerRequestMessage(); + + KickPlayerRequestMessage(const KickPlayerRequestMessage& from); + + inline KickPlayerRequestMessage& operator=(const KickPlayerRequestMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const KickPlayerRequestMessage& default_instance(); + + void Swap(KickPlayerRequestMessage* other); + + // implements Message ---------------------------------------------- + + KickPlayerRequestMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const KickPlayerRequestMessage& from); + void MergeFrom(const KickPlayerRequestMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 playerId = 2; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:KickPlayerRequestMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 playerid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static KickPlayerRequestMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class LeaveGameRequestMessage : public ::google::protobuf::Message { + public: + LeaveGameRequestMessage(); + virtual ~LeaveGameRequestMessage(); + + LeaveGameRequestMessage(const LeaveGameRequestMessage& from); + + inline LeaveGameRequestMessage& operator=(const LeaveGameRequestMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const LeaveGameRequestMessage& default_instance(); + + void Swap(LeaveGameRequestMessage* other); + + // implements Message ---------------------------------------------- + + LeaveGameRequestMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const LeaveGameRequestMessage& from); + void MergeFrom(const LeaveGameRequestMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:LeaveGameRequestMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static LeaveGameRequestMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class InvitePlayerToGameMessage : public ::google::protobuf::Message { + public: + InvitePlayerToGameMessage(); + virtual ~InvitePlayerToGameMessage(); + + InvitePlayerToGameMessage(const InvitePlayerToGameMessage& from); + + inline InvitePlayerToGameMessage& operator=(const InvitePlayerToGameMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const InvitePlayerToGameMessage& default_instance(); + + void Swap(InvitePlayerToGameMessage* other); + + // implements Message ---------------------------------------------- + + InvitePlayerToGameMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const InvitePlayerToGameMessage& from); + void MergeFrom(const InvitePlayerToGameMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 playerId = 2; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:InvitePlayerToGameMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 playerid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static InvitePlayerToGameMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class InviteNotifyMessage : public ::google::protobuf::Message { + public: + InviteNotifyMessage(); + virtual ~InviteNotifyMessage(); + + InviteNotifyMessage(const InviteNotifyMessage& from); + + inline InviteNotifyMessage& operator=(const InviteNotifyMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const InviteNotifyMessage& default_instance(); + + void Swap(InviteNotifyMessage* other); + + // implements Message ---------------------------------------------- + + InviteNotifyMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const InviteNotifyMessage& from); + void MergeFrom(const InviteNotifyMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 playerIdWho = 2; + inline bool has_playeridwho() const; + inline void clear_playeridwho(); + static const int kPlayerIdWhoFieldNumber = 2; + inline ::google::protobuf::uint32 playeridwho() const; + inline void set_playeridwho(::google::protobuf::uint32 value); + + // required uint32 playerIdByWhom = 3; + inline bool has_playeridbywhom() const; + inline void clear_playeridbywhom(); + static const int kPlayerIdByWhomFieldNumber = 3; + inline ::google::protobuf::uint32 playeridbywhom() const; + inline void set_playeridbywhom(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:InviteNotifyMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playeridwho(); + inline void clear_has_playeridwho(); + inline void set_has_playeridbywhom(); + inline void clear_has_playeridbywhom(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 playeridwho_; + ::google::protobuf::uint32 playeridbywhom_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static InviteNotifyMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class RejectGameInvitationMessage : public ::google::protobuf::Message { + public: + RejectGameInvitationMessage(); + virtual ~RejectGameInvitationMessage(); + + RejectGameInvitationMessage(const RejectGameInvitationMessage& from); + + inline RejectGameInvitationMessage& operator=(const RejectGameInvitationMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RejectGameInvitationMessage& default_instance(); + + void Swap(RejectGameInvitationMessage* other); + + // implements Message ---------------------------------------------- + + RejectGameInvitationMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RejectGameInvitationMessage& from); + void MergeFrom(const RejectGameInvitationMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef RejectGameInvitationMessage_RejectGameInvReason RejectGameInvReason; + static const RejectGameInvReason rejectReasonNo = RejectGameInvitationMessage_RejectGameInvReason_rejectReasonNo; + static const RejectGameInvReason rejectReasonBusy = RejectGameInvitationMessage_RejectGameInvReason_rejectReasonBusy; + static inline bool RejectGameInvReason_IsValid(int value) { + return RejectGameInvitationMessage_RejectGameInvReason_IsValid(value); + } + static const RejectGameInvReason RejectGameInvReason_MIN = + RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_MIN; + static const RejectGameInvReason RejectGameInvReason_MAX = + RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_MAX; + static const int RejectGameInvReason_ARRAYSIZE = + RejectGameInvitationMessage_RejectGameInvReason_RejectGameInvReason_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + RejectGameInvReason_descriptor() { + return RejectGameInvitationMessage_RejectGameInvReason_descriptor(); + } + static inline const ::std::string& RejectGameInvReason_Name(RejectGameInvReason value) { + return RejectGameInvitationMessage_RejectGameInvReason_Name(value); + } + static inline bool RejectGameInvReason_Parse(const ::std::string& name, + RejectGameInvReason* value) { + return RejectGameInvitationMessage_RejectGameInvReason_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; + inline bool has_myrejectreason() const; + inline void clear_myrejectreason(); + static const int kMyRejectReasonFieldNumber = 2; + inline ::RejectGameInvitationMessage_RejectGameInvReason myrejectreason() const; + inline void set_myrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); + + // @@protoc_insertion_point(class_scope:RejectGameInvitationMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_myrejectreason(); + inline void clear_has_myrejectreason(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + int myrejectreason_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static RejectGameInvitationMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class RejectInvNotifyMessage : public ::google::protobuf::Message { + public: + RejectInvNotifyMessage(); + virtual ~RejectInvNotifyMessage(); + + RejectInvNotifyMessage(const RejectInvNotifyMessage& from); + + inline RejectInvNotifyMessage& operator=(const RejectInvNotifyMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const RejectInvNotifyMessage& default_instance(); + + void Swap(RejectInvNotifyMessage* other); + + // implements Message ---------------------------------------------- + + RejectInvNotifyMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const RejectInvNotifyMessage& from); + void MergeFrom(const RejectInvNotifyMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 playerId = 2; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; + inline bool has_playerrejectreason() const; + inline void clear_playerrejectreason(); + static const int kPlayerRejectReasonFieldNumber = 3; + inline ::RejectGameInvitationMessage_RejectGameInvReason playerrejectreason() const; + inline void set_playerrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); + + // @@protoc_insertion_point(class_scope:RejectInvNotifyMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + inline void set_has_playerrejectreason(); + inline void clear_has_playerrejectreason(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 playerid_; + int playerrejectreason_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static RejectInvNotifyMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class StartEventMessage : public ::google::protobuf::Message { + public: + StartEventMessage(); + virtual ~StartEventMessage(); + + StartEventMessage(const StartEventMessage& from); + + inline StartEventMessage& operator=(const StartEventMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StartEventMessage& default_instance(); + + void Swap(StartEventMessage* other); + + // implements Message ---------------------------------------------- + + StartEventMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const StartEventMessage& from); + void MergeFrom(const StartEventMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef StartEventMessage_StartEventType StartEventType; + static const StartEventType startEvent = StartEventMessage_StartEventType_startEvent; + static const StartEventType rejoinEvent = StartEventMessage_StartEventType_rejoinEvent; + static inline bool StartEventType_IsValid(int value) { + return StartEventMessage_StartEventType_IsValid(value); + } + static const StartEventType StartEventType_MIN = + StartEventMessage_StartEventType_StartEventType_MIN; + static const StartEventType StartEventType_MAX = + StartEventMessage_StartEventType_StartEventType_MAX; + static const int StartEventType_ARRAYSIZE = + StartEventMessage_StartEventType_StartEventType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + StartEventType_descriptor() { + return StartEventMessage_StartEventType_descriptor(); + } + static inline const ::std::string& StartEventType_Name(StartEventType value) { + return StartEventMessage_StartEventType_Name(value); + } + static inline bool StartEventType_Parse(const ::std::string& name, + StartEventType* value) { + return StartEventMessage_StartEventType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required .StartEventMessage.StartEventType startEventType = 2; + inline bool has_starteventtype() const; + inline void clear_starteventtype(); + static const int kStartEventTypeFieldNumber = 2; + inline ::StartEventMessage_StartEventType starteventtype() const; + inline void set_starteventtype(::StartEventMessage_StartEventType value); + + // optional bool fillWithComputerPlayers = 3; + inline bool has_fillwithcomputerplayers() const; + inline void clear_fillwithcomputerplayers(); + static const int kFillWithComputerPlayersFieldNumber = 3; + inline bool fillwithcomputerplayers() const; + inline void set_fillwithcomputerplayers(bool value); + + // @@protoc_insertion_point(class_scope:StartEventMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_starteventtype(); + inline void clear_has_starteventtype(); + inline void set_has_fillwithcomputerplayers(); + inline void clear_has_fillwithcomputerplayers(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + int starteventtype_; + bool fillwithcomputerplayers_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static StartEventMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class StartEventAckMessage : public ::google::protobuf::Message { + public: + StartEventAckMessage(); + virtual ~StartEventAckMessage(); + + StartEventAckMessage(const StartEventAckMessage& from); + + inline StartEventAckMessage& operator=(const StartEventAckMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StartEventAckMessage& default_instance(); + + void Swap(StartEventAckMessage* other); + + // implements Message ---------------------------------------------- + + StartEventAckMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const StartEventAckMessage& from); + void MergeFrom(const StartEventAckMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:StartEventAckMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static StartEventAckMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class GameStartInitialMessage : public ::google::protobuf::Message { + public: + GameStartInitialMessage(); + virtual ~GameStartInitialMessage(); + + GameStartInitialMessage(const GameStartInitialMessage& from); + + inline GameStartInitialMessage& operator=(const GameStartInitialMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GameStartInitialMessage& default_instance(); + + void Swap(GameStartInitialMessage* other); + + // implements Message ---------------------------------------------- + + GameStartInitialMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GameStartInitialMessage& from); + void MergeFrom(const GameStartInitialMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 startDealerPlayerId = 2; + inline bool has_startdealerplayerid() const; + inline void clear_startdealerplayerid(); + static const int kStartDealerPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 startdealerplayerid() const; + inline void set_startdealerplayerid(::google::protobuf::uint32 value); + + // repeated uint32 playerSeats = 3 [packed = true]; + inline int playerseats_size() const; + inline void clear_playerseats(); + static const int kPlayerSeatsFieldNumber = 3; + inline ::google::protobuf::uint32 playerseats(int index) const; + inline void set_playerseats(int index, ::google::protobuf::uint32 value); + inline void add_playerseats(::google::protobuf::uint32 value); + inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + playerseats() const; + inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + mutable_playerseats(); + + // @@protoc_insertion_point(class_scope:GameStartInitialMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_startdealerplayerid(); + inline void clear_has_startdealerplayerid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 startdealerplayerid_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > playerseats_; + mutable int _playerseats_cached_byte_size_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameStartInitialMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class GameStartRejoinMessage_RejoinPlayerData : public ::google::protobuf::Message { + public: + GameStartRejoinMessage_RejoinPlayerData(); + virtual ~GameStartRejoinMessage_RejoinPlayerData(); + + GameStartRejoinMessage_RejoinPlayerData(const GameStartRejoinMessage_RejoinPlayerData& from); + + inline GameStartRejoinMessage_RejoinPlayerData& operator=(const GameStartRejoinMessage_RejoinPlayerData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GameStartRejoinMessage_RejoinPlayerData& default_instance(); + + void Swap(GameStartRejoinMessage_RejoinPlayerData* other); + + // implements Message ---------------------------------------------- + + GameStartRejoinMessage_RejoinPlayerData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GameStartRejoinMessage_RejoinPlayerData& from); + void MergeFrom(const GameStartRejoinMessage_RejoinPlayerData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 playerId = 1; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 1; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // required uint32 playerMoney = 2; + inline bool has_playermoney() const; + inline void clear_playermoney(); + static const int kPlayerMoneyFieldNumber = 2; + inline ::google::protobuf::uint32 playermoney() const; + inline void set_playermoney(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:GameStartRejoinMessage.RejoinPlayerData) + private: + inline void set_has_playerid(); + inline void clear_has_playerid(); + inline void set_has_playermoney(); + inline void clear_has_playermoney(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 playerid_; + ::google::protobuf::uint32 playermoney_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameStartRejoinMessage_RejoinPlayerData* default_instance_; +}; +// ------------------------------------------------------------------- + +class GameStartRejoinMessage : public ::google::protobuf::Message { + public: + GameStartRejoinMessage(); + virtual ~GameStartRejoinMessage(); + + GameStartRejoinMessage(const GameStartRejoinMessage& from); + + inline GameStartRejoinMessage& operator=(const GameStartRejoinMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const GameStartRejoinMessage& default_instance(); + + void Swap(GameStartRejoinMessage* other); + + // implements Message ---------------------------------------------- + + GameStartRejoinMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const GameStartRejoinMessage& from); + void MergeFrom(const GameStartRejoinMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef GameStartRejoinMessage_RejoinPlayerData RejoinPlayerData; + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 startDealerPlayerId = 2; + inline bool has_startdealerplayerid() const; + inline void clear_startdealerplayerid(); + static const int kStartDealerPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 startdealerplayerid() const; + inline void set_startdealerplayerid(::google::protobuf::uint32 value); + + // required uint32 handNum = 3; + inline bool has_handnum() const; + inline void clear_handnum(); + static const int kHandNumFieldNumber = 3; + inline ::google::protobuf::uint32 handnum() const; + inline void set_handnum(::google::protobuf::uint32 value); + + // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; + inline int rejoinplayerdata_size() const; + inline void clear_rejoinplayerdata(); + static const int kRejoinPlayerDataFieldNumber = 4; + inline const ::GameStartRejoinMessage_RejoinPlayerData& rejoinplayerdata(int index) const; + inline ::GameStartRejoinMessage_RejoinPlayerData* mutable_rejoinplayerdata(int index); + inline ::GameStartRejoinMessage_RejoinPlayerData* add_rejoinplayerdata(); + inline const ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >& + rejoinplayerdata() const; + inline ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >* + mutable_rejoinplayerdata(); + + // @@protoc_insertion_point(class_scope:GameStartRejoinMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_startdealerplayerid(); + inline void clear_has_startdealerplayerid(); + inline void set_has_handnum(); + inline void clear_has_handnum(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 startdealerplayerid_; + ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData > rejoinplayerdata_; + ::google::protobuf::uint32 handnum_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static GameStartRejoinMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class HandStartMessage_PlainCards : public ::google::protobuf::Message { + public: + HandStartMessage_PlainCards(); + virtual ~HandStartMessage_PlainCards(); + + HandStartMessage_PlainCards(const HandStartMessage_PlainCards& from); + + inline HandStartMessage_PlainCards& operator=(const HandStartMessage_PlainCards& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const HandStartMessage_PlainCards& default_instance(); + + void Swap(HandStartMessage_PlainCards* other); + + // implements Message ---------------------------------------------- + + HandStartMessage_PlainCards* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const HandStartMessage_PlainCards& from); + void MergeFrom(const HandStartMessage_PlainCards& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 plainCard1 = 1; + inline bool has_plaincard1() const; + inline void clear_plaincard1(); + static const int kPlainCard1FieldNumber = 1; + inline ::google::protobuf::uint32 plaincard1() const; + inline void set_plaincard1(::google::protobuf::uint32 value); + + // required uint32 plainCard2 = 2; + inline bool has_plaincard2() const; + inline void clear_plaincard2(); + static const int kPlainCard2FieldNumber = 2; + inline ::google::protobuf::uint32 plaincard2() const; + inline void set_plaincard2(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:HandStartMessage.PlainCards) + private: + inline void set_has_plaincard1(); + inline void clear_has_plaincard1(); + inline void set_has_plaincard2(); + inline void clear_has_plaincard2(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 plaincard1_; + ::google::protobuf::uint32 plaincard2_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static HandStartMessage_PlainCards* default_instance_; +}; +// ------------------------------------------------------------------- + +class HandStartMessage : public ::google::protobuf::Message { + public: + HandStartMessage(); + virtual ~HandStartMessage(); + + HandStartMessage(const HandStartMessage& from); + + inline HandStartMessage& operator=(const HandStartMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const HandStartMessage& default_instance(); + + void Swap(HandStartMessage* other); + + // implements Message ---------------------------------------------- + + HandStartMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const HandStartMessage& from); + void MergeFrom(const HandStartMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef HandStartMessage_PlainCards PlainCards; + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // optional .HandStartMessage.PlainCards plainCards = 2; + inline bool has_plaincards() const; + inline void clear_plaincards(); + static const int kPlainCardsFieldNumber = 2; + inline const ::HandStartMessage_PlainCards& plaincards() const; + inline ::HandStartMessage_PlainCards* mutable_plaincards(); + inline ::HandStartMessage_PlainCards* release_plaincards(); + + // optional bytes encryptedCards = 3; + inline bool has_encryptedcards() const; + inline void clear_encryptedcards(); + static const int kEncryptedCardsFieldNumber = 3; + inline const ::std::string& encryptedcards() const; + inline void set_encryptedcards(const ::std::string& value); + inline void set_encryptedcards(const char* value); + inline void set_encryptedcards(const void* value, size_t size); + inline ::std::string* mutable_encryptedcards(); + inline ::std::string* release_encryptedcards(); + + // required uint32 smallBlind = 4; + inline bool has_smallblind() const; + inline void clear_smallblind(); + static const int kSmallBlindFieldNumber = 4; + inline ::google::protobuf::uint32 smallblind() const; + inline void set_smallblind(::google::protobuf::uint32 value); + + // repeated .NetPlayerState seatStates = 5; + inline int seatstates_size() const; + inline void clear_seatstates(); + static const int kSeatStatesFieldNumber = 5; + inline NetPlayerState seatstates(int index) const; + inline void set_seatstates(int index, NetPlayerState value); + inline void add_seatstates(NetPlayerState value); + inline const ::google::protobuf::RepeatedField& seatstates() const; + inline ::google::protobuf::RepeatedField* mutable_seatstates(); + + // @@protoc_insertion_point(class_scope:HandStartMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_plaincards(); + inline void clear_has_plaincards(); + inline void set_has_encryptedcards(); + inline void clear_has_encryptedcards(); + inline void set_has_smallblind(); + inline void clear_has_smallblind(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::HandStartMessage_PlainCards* plaincards_; + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 smallblind_; + ::std::string* encryptedcards_; + ::google::protobuf::RepeatedField seatstates_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static HandStartMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class PlayersTurnMessage : public ::google::protobuf::Message { + public: + PlayersTurnMessage(); + virtual ~PlayersTurnMessage(); + + PlayersTurnMessage(const PlayersTurnMessage& from); + + inline PlayersTurnMessage& operator=(const PlayersTurnMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PlayersTurnMessage& default_instance(); + + void Swap(PlayersTurnMessage* other); + + // implements Message ---------------------------------------------- + + PlayersTurnMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const PlayersTurnMessage& from); + void MergeFrom(const PlayersTurnMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 playerId = 2; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // required .NetGameState gameState = 3; + inline bool has_gamestate() const; + inline void clear_gamestate(); + static const int kGameStateFieldNumber = 3; + inline NetGameState gamestate() const; + inline void set_gamestate(NetGameState value); + + // @@protoc_insertion_point(class_scope:PlayersTurnMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + inline void set_has_gamestate(); + inline void clear_has_gamestate(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 playerid_; + int gamestate_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayersTurnMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class MyActionRequestMessage : public ::google::protobuf::Message { + public: + MyActionRequestMessage(); + virtual ~MyActionRequestMessage(); + + MyActionRequestMessage(const MyActionRequestMessage& from); + + inline MyActionRequestMessage& operator=(const MyActionRequestMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const MyActionRequestMessage& default_instance(); + + void Swap(MyActionRequestMessage* other); + + // implements Message ---------------------------------------------- + + MyActionRequestMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const MyActionRequestMessage& from); + void MergeFrom(const MyActionRequestMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 handNum = 2; + inline bool has_handnum() const; + inline void clear_handnum(); + static const int kHandNumFieldNumber = 2; + inline ::google::protobuf::uint32 handnum() const; + inline void set_handnum(::google::protobuf::uint32 value); + + // required .NetGameState gameState = 3; + inline bool has_gamestate() const; + inline void clear_gamestate(); + static const int kGameStateFieldNumber = 3; + inline NetGameState gamestate() const; + inline void set_gamestate(NetGameState value); + + // required .NetPlayerAction myAction = 4; + inline bool has_myaction() const; + inline void clear_myaction(); + static const int kMyActionFieldNumber = 4; + inline NetPlayerAction myaction() const; + inline void set_myaction(NetPlayerAction value); + + // required uint32 myRelativeBet = 5; + inline bool has_myrelativebet() const; + inline void clear_myrelativebet(); + static const int kMyRelativeBetFieldNumber = 5; + inline ::google::protobuf::uint32 myrelativebet() const; + inline void set_myrelativebet(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:MyActionRequestMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_handnum(); + inline void clear_has_handnum(); + inline void set_has_gamestate(); + inline void clear_has_gamestate(); + inline void set_has_myaction(); + inline void clear_has_myaction(); + inline void set_has_myrelativebet(); + inline void clear_has_myrelativebet(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 handnum_; + int gamestate_; + int myaction_; + ::google::protobuf::uint32 myrelativebet_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static MyActionRequestMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class YourActionRejectedMessage : public ::google::protobuf::Message { + public: + YourActionRejectedMessage(); + virtual ~YourActionRejectedMessage(); + + YourActionRejectedMessage(const YourActionRejectedMessage& from); + + inline YourActionRejectedMessage& operator=(const YourActionRejectedMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const YourActionRejectedMessage& default_instance(); + + void Swap(YourActionRejectedMessage* other); + + // implements Message ---------------------------------------------- + + YourActionRejectedMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const YourActionRejectedMessage& from); + void MergeFrom(const YourActionRejectedMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef YourActionRejectedMessage_RejectionReason RejectionReason; + static const RejectionReason rejectedInvalidGameState = YourActionRejectedMessage_RejectionReason_rejectedInvalidGameState; + static const RejectionReason rejectedNotYourTurn = YourActionRejectedMessage_RejectionReason_rejectedNotYourTurn; + static const RejectionReason rejectedActionNotAllowed = YourActionRejectedMessage_RejectionReason_rejectedActionNotAllowed; + static inline bool RejectionReason_IsValid(int value) { + return YourActionRejectedMessage_RejectionReason_IsValid(value); + } + static const RejectionReason RejectionReason_MIN = + YourActionRejectedMessage_RejectionReason_RejectionReason_MIN; + static const RejectionReason RejectionReason_MAX = + YourActionRejectedMessage_RejectionReason_RejectionReason_MAX; + static const int RejectionReason_ARRAYSIZE = + YourActionRejectedMessage_RejectionReason_RejectionReason_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + RejectionReason_descriptor() { + return YourActionRejectedMessage_RejectionReason_descriptor(); + } + static inline const ::std::string& RejectionReason_Name(RejectionReason value) { + return YourActionRejectedMessage_RejectionReason_Name(value); + } + static inline bool RejectionReason_Parse(const ::std::string& name, + RejectionReason* value) { + return YourActionRejectedMessage_RejectionReason_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required .NetGameState gameState = 2; + inline bool has_gamestate() const; + inline void clear_gamestate(); + static const int kGameStateFieldNumber = 2; + inline NetGameState gamestate() const; + inline void set_gamestate(NetGameState value); + + // required .NetPlayerAction yourAction = 3; + inline bool has_youraction() const; + inline void clear_youraction(); + static const int kYourActionFieldNumber = 3; + inline NetPlayerAction youraction() const; + inline void set_youraction(NetPlayerAction value); + + // required uint32 yourRelativeBet = 4; + inline bool has_yourrelativebet() const; + inline void clear_yourrelativebet(); + static const int kYourRelativeBetFieldNumber = 4; + inline ::google::protobuf::uint32 yourrelativebet() const; + inline void set_yourrelativebet(::google::protobuf::uint32 value); + + // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; + inline bool has_rejectionreason() const; + inline void clear_rejectionreason(); + static const int kRejectionReasonFieldNumber = 5; + inline ::YourActionRejectedMessage_RejectionReason rejectionreason() const; + inline void set_rejectionreason(::YourActionRejectedMessage_RejectionReason value); + + // @@protoc_insertion_point(class_scope:YourActionRejectedMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_gamestate(); + inline void clear_has_gamestate(); + inline void set_has_youraction(); + inline void clear_has_youraction(); + inline void set_has_yourrelativebet(); + inline void clear_has_yourrelativebet(); + inline void set_has_rejectionreason(); + inline void clear_has_rejectionreason(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + int gamestate_; + int youraction_; + ::google::protobuf::uint32 yourrelativebet_; + int rejectionreason_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static YourActionRejectedMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class PlayersActionDoneMessage : public ::google::protobuf::Message { + public: + PlayersActionDoneMessage(); + virtual ~PlayersActionDoneMessage(); + + PlayersActionDoneMessage(const PlayersActionDoneMessage& from); + + inline PlayersActionDoneMessage& operator=(const PlayersActionDoneMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PlayersActionDoneMessage& default_instance(); + + void Swap(PlayersActionDoneMessage* other); + + // implements Message ---------------------------------------------- + + PlayersActionDoneMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const PlayersActionDoneMessage& from); + void MergeFrom(const PlayersActionDoneMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 playerId = 2; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // required .NetGameState gameState = 3; + inline bool has_gamestate() const; + inline void clear_gamestate(); + static const int kGameStateFieldNumber = 3; + inline NetGameState gamestate() const; + inline void set_gamestate(NetGameState value); + + // required .NetPlayerAction playerAction = 4; + inline bool has_playeraction() const; + inline void clear_playeraction(); + static const int kPlayerActionFieldNumber = 4; + inline NetPlayerAction playeraction() const; + inline void set_playeraction(NetPlayerAction value); + + // required uint32 totalPlayerBet = 5; + inline bool has_totalplayerbet() const; + inline void clear_totalplayerbet(); + static const int kTotalPlayerBetFieldNumber = 5; + inline ::google::protobuf::uint32 totalplayerbet() const; + inline void set_totalplayerbet(::google::protobuf::uint32 value); + + // required uint32 playerMoney = 6; + inline bool has_playermoney() const; + inline void clear_playermoney(); + static const int kPlayerMoneyFieldNumber = 6; + inline ::google::protobuf::uint32 playermoney() const; + inline void set_playermoney(::google::protobuf::uint32 value); + + // required uint32 highestSet = 7; + inline bool has_highestset() const; + inline void clear_highestset(); + static const int kHighestSetFieldNumber = 7; + inline ::google::protobuf::uint32 highestset() const; + inline void set_highestset(::google::protobuf::uint32 value); + + // required uint32 minimumRaise = 8; + inline bool has_minimumraise() const; + inline void clear_minimumraise(); + static const int kMinimumRaiseFieldNumber = 8; + inline ::google::protobuf::uint32 minimumraise() const; + inline void set_minimumraise(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:PlayersActionDoneMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + inline void set_has_gamestate(); + inline void clear_has_gamestate(); + inline void set_has_playeraction(); + inline void clear_has_playeraction(); + inline void set_has_totalplayerbet(); + inline void clear_has_totalplayerbet(); + inline void set_has_playermoney(); + inline void clear_has_playermoney(); + inline void set_has_highestset(); + inline void clear_has_highestset(); + inline void set_has_minimumraise(); + inline void clear_has_minimumraise(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 playerid_; + int gamestate_; + int playeraction_; + ::google::protobuf::uint32 totalplayerbet_; + ::google::protobuf::uint32 playermoney_; + ::google::protobuf::uint32 highestset_; + ::google::protobuf::uint32 minimumraise_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayersActionDoneMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class DealFlopCardsMessage : public ::google::protobuf::Message { + public: + DealFlopCardsMessage(); + virtual ~DealFlopCardsMessage(); + + DealFlopCardsMessage(const DealFlopCardsMessage& from); + + inline DealFlopCardsMessage& operator=(const DealFlopCardsMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DealFlopCardsMessage& default_instance(); + + void Swap(DealFlopCardsMessage* other); + + // implements Message ---------------------------------------------- + + DealFlopCardsMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DealFlopCardsMessage& from); + void MergeFrom(const DealFlopCardsMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 flopCard1 = 2; + inline bool has_flopcard1() const; + inline void clear_flopcard1(); + static const int kFlopCard1FieldNumber = 2; + inline ::google::protobuf::uint32 flopcard1() const; + inline void set_flopcard1(::google::protobuf::uint32 value); + + // required uint32 flopCard2 = 3; + inline bool has_flopcard2() const; + inline void clear_flopcard2(); + static const int kFlopCard2FieldNumber = 3; + inline ::google::protobuf::uint32 flopcard2() const; + inline void set_flopcard2(::google::protobuf::uint32 value); + + // required uint32 flopCard3 = 4; + inline bool has_flopcard3() const; + inline void clear_flopcard3(); + static const int kFlopCard3FieldNumber = 4; + inline ::google::protobuf::uint32 flopcard3() const; + inline void set_flopcard3(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:DealFlopCardsMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_flopcard1(); + inline void clear_has_flopcard1(); + inline void set_has_flopcard2(); + inline void clear_has_flopcard2(); + inline void set_has_flopcard3(); + inline void clear_has_flopcard3(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 flopcard1_; + ::google::protobuf::uint32 flopcard2_; + ::google::protobuf::uint32 flopcard3_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static DealFlopCardsMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class DealTurnCardMessage : public ::google::protobuf::Message { + public: + DealTurnCardMessage(); + virtual ~DealTurnCardMessage(); + + DealTurnCardMessage(const DealTurnCardMessage& from); + + inline DealTurnCardMessage& operator=(const DealTurnCardMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DealTurnCardMessage& default_instance(); + + void Swap(DealTurnCardMessage* other); + + // implements Message ---------------------------------------------- + + DealTurnCardMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DealTurnCardMessage& from); + void MergeFrom(const DealTurnCardMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 turnCard = 2; + inline bool has_turncard() const; + inline void clear_turncard(); + static const int kTurnCardFieldNumber = 2; + inline ::google::protobuf::uint32 turncard() const; + inline void set_turncard(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:DealTurnCardMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_turncard(); + inline void clear_has_turncard(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 turncard_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static DealTurnCardMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class DealRiverCardMessage : public ::google::protobuf::Message { + public: + DealRiverCardMessage(); + virtual ~DealRiverCardMessage(); + + DealRiverCardMessage(const DealRiverCardMessage& from); + + inline DealRiverCardMessage& operator=(const DealRiverCardMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DealRiverCardMessage& default_instance(); + + void Swap(DealRiverCardMessage* other); + + // implements Message ---------------------------------------------- + + DealRiverCardMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DealRiverCardMessage& from); + void MergeFrom(const DealRiverCardMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 riverCard = 2; + inline bool has_rivercard() const; + inline void clear_rivercard(); + static const int kRiverCardFieldNumber = 2; + inline ::google::protobuf::uint32 rivercard() const; + inline void set_rivercard(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:DealRiverCardMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_rivercard(); + inline void clear_has_rivercard(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 rivercard_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static DealRiverCardMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class AllInShowCardsMessage_PlayerAllIn : public ::google::protobuf::Message { + public: + AllInShowCardsMessage_PlayerAllIn(); + virtual ~AllInShowCardsMessage_PlayerAllIn(); + + AllInShowCardsMessage_PlayerAllIn(const AllInShowCardsMessage_PlayerAllIn& from); + + inline AllInShowCardsMessage_PlayerAllIn& operator=(const AllInShowCardsMessage_PlayerAllIn& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AllInShowCardsMessage_PlayerAllIn& default_instance(); + + void Swap(AllInShowCardsMessage_PlayerAllIn* other); + + // implements Message ---------------------------------------------- + + AllInShowCardsMessage_PlayerAllIn* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AllInShowCardsMessage_PlayerAllIn& from); + void MergeFrom(const AllInShowCardsMessage_PlayerAllIn& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 playerId = 1; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 1; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // required uint32 allInCard1 = 2; + inline bool has_allincard1() const; + inline void clear_allincard1(); + static const int kAllInCard1FieldNumber = 2; + inline ::google::protobuf::uint32 allincard1() const; + inline void set_allincard1(::google::protobuf::uint32 value); + + // required uint32 allInCard2 = 3; + inline bool has_allincard2() const; + inline void clear_allincard2(); + static const int kAllInCard2FieldNumber = 3; + inline ::google::protobuf::uint32 allincard2() const; + inline void set_allincard2(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:AllInShowCardsMessage.PlayerAllIn) + private: + inline void set_has_playerid(); + inline void clear_has_playerid(); + inline void set_has_allincard1(); + inline void clear_has_allincard1(); + inline void set_has_allincard2(); + inline void clear_has_allincard2(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 playerid_; + ::google::protobuf::uint32 allincard1_; + ::google::protobuf::uint32 allincard2_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AllInShowCardsMessage_PlayerAllIn* default_instance_; +}; +// ------------------------------------------------------------------- + +class AllInShowCardsMessage : public ::google::protobuf::Message { + public: + AllInShowCardsMessage(); + virtual ~AllInShowCardsMessage(); + + AllInShowCardsMessage(const AllInShowCardsMessage& from); + + inline AllInShowCardsMessage& operator=(const AllInShowCardsMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AllInShowCardsMessage& default_instance(); + + void Swap(AllInShowCardsMessage* other); + + // implements Message ---------------------------------------------- + + AllInShowCardsMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AllInShowCardsMessage& from); + void MergeFrom(const AllInShowCardsMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef AllInShowCardsMessage_PlayerAllIn PlayerAllIn; + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; + inline int playersallin_size() const; + inline void clear_playersallin(); + static const int kPlayersAllInFieldNumber = 2; + inline const ::AllInShowCardsMessage_PlayerAllIn& playersallin(int index) const; + inline ::AllInShowCardsMessage_PlayerAllIn* mutable_playersallin(int index); + inline ::AllInShowCardsMessage_PlayerAllIn* add_playersallin(); + inline const ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >& + playersallin() const; + inline ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >* + mutable_playersallin(); + + // @@protoc_insertion_point(class_scope:AllInShowCardsMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn > playersallin_; + ::google::protobuf::uint32 gameid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AllInShowCardsMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class EndOfHandShowCardsMessage : public ::google::protobuf::Message { + public: + EndOfHandShowCardsMessage(); + virtual ~EndOfHandShowCardsMessage(); + + EndOfHandShowCardsMessage(const EndOfHandShowCardsMessage& from); + + inline EndOfHandShowCardsMessage& operator=(const EndOfHandShowCardsMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EndOfHandShowCardsMessage& default_instance(); + + void Swap(EndOfHandShowCardsMessage* other); + + // implements Message ---------------------------------------------- + + EndOfHandShowCardsMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const EndOfHandShowCardsMessage& from); + void MergeFrom(const EndOfHandShowCardsMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // repeated .PlayerResult playerResults = 2; + inline int playerresults_size() const; + inline void clear_playerresults(); + static const int kPlayerResultsFieldNumber = 2; + inline const ::PlayerResult& playerresults(int index) const; + inline ::PlayerResult* mutable_playerresults(int index); + inline ::PlayerResult* add_playerresults(); + inline const ::google::protobuf::RepeatedPtrField< ::PlayerResult >& + playerresults() const; + inline ::google::protobuf::RepeatedPtrField< ::PlayerResult >* + mutable_playerresults(); + + // @@protoc_insertion_point(class_scope:EndOfHandShowCardsMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::PlayerResult > playerresults_; + ::google::protobuf::uint32 gameid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static EndOfHandShowCardsMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class EndOfHandHideCardsMessage : public ::google::protobuf::Message { + public: + EndOfHandHideCardsMessage(); + virtual ~EndOfHandHideCardsMessage(); + + EndOfHandHideCardsMessage(const EndOfHandHideCardsMessage& from); + + inline EndOfHandHideCardsMessage& operator=(const EndOfHandHideCardsMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EndOfHandHideCardsMessage& default_instance(); + + void Swap(EndOfHandHideCardsMessage* other); + + // implements Message ---------------------------------------------- + + EndOfHandHideCardsMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const EndOfHandHideCardsMessage& from); + void MergeFrom(const EndOfHandHideCardsMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 playerId = 2; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // required uint32 moneyWon = 3; + inline bool has_moneywon() const; + inline void clear_moneywon(); + static const int kMoneyWonFieldNumber = 3; + inline ::google::protobuf::uint32 moneywon() const; + inline void set_moneywon(::google::protobuf::uint32 value); + + // required uint32 playerMoney = 4; + inline bool has_playermoney() const; + inline void clear_playermoney(); + static const int kPlayerMoneyFieldNumber = 4; + inline ::google::protobuf::uint32 playermoney() const; + inline void set_playermoney(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:EndOfHandHideCardsMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + inline void set_has_moneywon(); + inline void clear_has_moneywon(); + inline void set_has_playermoney(); + inline void clear_has_playermoney(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 playerid_; + ::google::protobuf::uint32 moneywon_; + ::google::protobuf::uint32 playermoney_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static EndOfHandHideCardsMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class ShowMyCardsRequestMessage : public ::google::protobuf::Message { + public: + ShowMyCardsRequestMessage(); + virtual ~ShowMyCardsRequestMessage(); + + ShowMyCardsRequestMessage(const ShowMyCardsRequestMessage& from); + + inline ShowMyCardsRequestMessage& operator=(const ShowMyCardsRequestMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ShowMyCardsRequestMessage& default_instance(); + + void Swap(ShowMyCardsRequestMessage* other); + + // implements Message ---------------------------------------------- + + ShowMyCardsRequestMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ShowMyCardsRequestMessage& from); + void MergeFrom(const ShowMyCardsRequestMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:ShowMyCardsRequestMessage) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ShowMyCardsRequestMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class AfterHandShowCardsMessage : public ::google::protobuf::Message { + public: + AfterHandShowCardsMessage(); + virtual ~AfterHandShowCardsMessage(); + + AfterHandShowCardsMessage(const AfterHandShowCardsMessage& from); + + inline AfterHandShowCardsMessage& operator=(const AfterHandShowCardsMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AfterHandShowCardsMessage& default_instance(); + + void Swap(AfterHandShowCardsMessage* other); + + // implements Message ---------------------------------------------- + + AfterHandShowCardsMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AfterHandShowCardsMessage& from); + void MergeFrom(const AfterHandShowCardsMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required .PlayerResult playerResult = 1; + inline bool has_playerresult() const; + inline void clear_playerresult(); + static const int kPlayerResultFieldNumber = 1; + inline const ::PlayerResult& playerresult() const; + inline ::PlayerResult* mutable_playerresult(); + inline ::PlayerResult* release_playerresult(); + + // @@protoc_insertion_point(class_scope:AfterHandShowCardsMessage) + private: + inline void set_has_playerresult(); + inline void clear_has_playerresult(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::PlayerResult* playerresult_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AfterHandShowCardsMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class EndOfGameMessage : public ::google::protobuf::Message { + public: + EndOfGameMessage(); + virtual ~EndOfGameMessage(); + + EndOfGameMessage(const EndOfGameMessage& from); + + inline EndOfGameMessage& operator=(const EndOfGameMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EndOfGameMessage& default_instance(); + + void Swap(EndOfGameMessage* other); + + // implements Message ---------------------------------------------- + + EndOfGameMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const EndOfGameMessage& from); + void MergeFrom(const EndOfGameMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 winnerPlayerId = 2; + inline bool has_winnerplayerid() const; + inline void clear_winnerplayerid(); + static const int kWinnerPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 winnerplayerid() const; + inline void set_winnerplayerid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:EndOfGameMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_winnerplayerid(); + inline void clear_has_winnerplayerid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 winnerplayerid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static EndOfGameMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class PlayerIdChangedMessage : public ::google::protobuf::Message { + public: + PlayerIdChangedMessage(); + virtual ~PlayerIdChangedMessage(); + + PlayerIdChangedMessage(const PlayerIdChangedMessage& from); + + inline PlayerIdChangedMessage& operator=(const PlayerIdChangedMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PlayerIdChangedMessage& default_instance(); + + void Swap(PlayerIdChangedMessage* other); + + // implements Message ---------------------------------------------- + + PlayerIdChangedMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const PlayerIdChangedMessage& from); + void MergeFrom(const PlayerIdChangedMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 oldPlayerId = 1; + inline bool has_oldplayerid() const; + inline void clear_oldplayerid(); + static const int kOldPlayerIdFieldNumber = 1; + inline ::google::protobuf::uint32 oldplayerid() const; + inline void set_oldplayerid(::google::protobuf::uint32 value); + + // required uint32 newPlayerId = 2; + inline bool has_newplayerid() const; + inline void clear_newplayerid(); + static const int kNewPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 newplayerid() const; + inline void set_newplayerid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:PlayerIdChangedMessage) + private: + inline void set_has_oldplayerid(); + inline void clear_has_oldplayerid(); + inline void set_has_newplayerid(); + inline void clear_has_newplayerid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 oldplayerid_; + ::google::protobuf::uint32 newplayerid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PlayerIdChangedMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class AskKickPlayerMessage : public ::google::protobuf::Message { + public: + AskKickPlayerMessage(); + virtual ~AskKickPlayerMessage(); + + AskKickPlayerMessage(const AskKickPlayerMessage& from); + + inline AskKickPlayerMessage& operator=(const AskKickPlayerMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AskKickPlayerMessage& default_instance(); + + void Swap(AskKickPlayerMessage* other); + + // implements Message ---------------------------------------------- + + AskKickPlayerMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AskKickPlayerMessage& from); + void MergeFrom(const AskKickPlayerMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 playerId = 2; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:AskKickPlayerMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 playerid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AskKickPlayerMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class AskKickDeniedMessage : public ::google::protobuf::Message { + public: + AskKickDeniedMessage(); + virtual ~AskKickDeniedMessage(); + + AskKickDeniedMessage(const AskKickDeniedMessage& from); + + inline AskKickDeniedMessage& operator=(const AskKickDeniedMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const AskKickDeniedMessage& default_instance(); + + void Swap(AskKickDeniedMessage* other); + + // implements Message ---------------------------------------------- + + AskKickDeniedMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const AskKickDeniedMessage& from); + void MergeFrom(const AskKickDeniedMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef AskKickDeniedMessage_KickDeniedReason KickDeniedReason; + static const KickDeniedReason kickDeniedInvalidGameState = AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidGameState; + static const KickDeniedReason kickDeniedNotPossible = AskKickDeniedMessage_KickDeniedReason_kickDeniedNotPossible; + static const KickDeniedReason kickDeniedTryAgainLater = AskKickDeniedMessage_KickDeniedReason_kickDeniedTryAgainLater; + static const KickDeniedReason kickDeniedAlreadyInProgress = AskKickDeniedMessage_KickDeniedReason_kickDeniedAlreadyInProgress; + static const KickDeniedReason kickDeniedInvalidPlayerId = AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidPlayerId; + static inline bool KickDeniedReason_IsValid(int value) { + return AskKickDeniedMessage_KickDeniedReason_IsValid(value); + } + static const KickDeniedReason KickDeniedReason_MIN = + AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_MIN; + static const KickDeniedReason KickDeniedReason_MAX = + AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_MAX; + static const int KickDeniedReason_ARRAYSIZE = + AskKickDeniedMessage_KickDeniedReason_KickDeniedReason_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + KickDeniedReason_descriptor() { + return AskKickDeniedMessage_KickDeniedReason_descriptor(); + } + static inline const ::std::string& KickDeniedReason_Name(KickDeniedReason value) { + return AskKickDeniedMessage_KickDeniedReason_Name(value); + } + static inline bool KickDeniedReason_Parse(const ::std::string& name, + KickDeniedReason* value) { + return AskKickDeniedMessage_KickDeniedReason_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 playerId = 2; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; + inline bool has_kickdeniedreason() const; + inline void clear_kickdeniedreason(); + static const int kKickDeniedReasonFieldNumber = 3; + inline ::AskKickDeniedMessage_KickDeniedReason kickdeniedreason() const; + inline void set_kickdeniedreason(::AskKickDeniedMessage_KickDeniedReason value); + + // @@protoc_insertion_point(class_scope:AskKickDeniedMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + inline void set_has_kickdeniedreason(); + inline void clear_has_kickdeniedreason(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 playerid_; + int kickdeniedreason_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static AskKickDeniedMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class StartKickPetitionMessage : public ::google::protobuf::Message { + public: + StartKickPetitionMessage(); + virtual ~StartKickPetitionMessage(); + + StartKickPetitionMessage(const StartKickPetitionMessage& from); + + inline StartKickPetitionMessage& operator=(const StartKickPetitionMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StartKickPetitionMessage& default_instance(); + + void Swap(StartKickPetitionMessage* other); + + // implements Message ---------------------------------------------- + + StartKickPetitionMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const StartKickPetitionMessage& from); + void MergeFrom(const StartKickPetitionMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 petitionId = 2; + inline bool has_petitionid() const; + inline void clear_petitionid(); + static const int kPetitionIdFieldNumber = 2; + inline ::google::protobuf::uint32 petitionid() const; + inline void set_petitionid(::google::protobuf::uint32 value); + + // required uint32 proposingPlayerId = 3; + inline bool has_proposingplayerid() const; + inline void clear_proposingplayerid(); + static const int kProposingPlayerIdFieldNumber = 3; + inline ::google::protobuf::uint32 proposingplayerid() const; + inline void set_proposingplayerid(::google::protobuf::uint32 value); + + // required uint32 kickPlayerId = 4; + inline bool has_kickplayerid() const; + inline void clear_kickplayerid(); + static const int kKickPlayerIdFieldNumber = 4; + inline ::google::protobuf::uint32 kickplayerid() const; + inline void set_kickplayerid(::google::protobuf::uint32 value); + + // required uint32 kickTimeoutSec = 5; + inline bool has_kicktimeoutsec() const; + inline void clear_kicktimeoutsec(); + static const int kKickTimeoutSecFieldNumber = 5; + inline ::google::protobuf::uint32 kicktimeoutsec() const; + inline void set_kicktimeoutsec(::google::protobuf::uint32 value); + + // required uint32 numVotesNeededToKick = 6; + inline bool has_numvotesneededtokick() const; + inline void clear_numvotesneededtokick(); + static const int kNumVotesNeededToKickFieldNumber = 6; + inline ::google::protobuf::uint32 numvotesneededtokick() const; + inline void set_numvotesneededtokick(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:StartKickPetitionMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_petitionid(); + inline void clear_has_petitionid(); + inline void set_has_proposingplayerid(); + inline void clear_has_proposingplayerid(); + inline void set_has_kickplayerid(); + inline void clear_has_kickplayerid(); + inline void set_has_kicktimeoutsec(); + inline void clear_has_kicktimeoutsec(); + inline void set_has_numvotesneededtokick(); + inline void clear_has_numvotesneededtokick(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 petitionid_; + ::google::protobuf::uint32 proposingplayerid_; + ::google::protobuf::uint32 kickplayerid_; + ::google::protobuf::uint32 kicktimeoutsec_; + ::google::protobuf::uint32 numvotesneededtokick_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static StartKickPetitionMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class VoteKickRequestMessage : public ::google::protobuf::Message { + public: + VoteKickRequestMessage(); + virtual ~VoteKickRequestMessage(); + + VoteKickRequestMessage(const VoteKickRequestMessage& from); + + inline VoteKickRequestMessage& operator=(const VoteKickRequestMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const VoteKickRequestMessage& default_instance(); + + void Swap(VoteKickRequestMessage* other); + + // implements Message ---------------------------------------------- + + VoteKickRequestMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const VoteKickRequestMessage& from); + void MergeFrom(const VoteKickRequestMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 petitionId = 2; + inline bool has_petitionid() const; + inline void clear_petitionid(); + static const int kPetitionIdFieldNumber = 2; + inline ::google::protobuf::uint32 petitionid() const; + inline void set_petitionid(::google::protobuf::uint32 value); + + // required bool voteKick = 3; + inline bool has_votekick() const; + inline void clear_votekick(); + static const int kVoteKickFieldNumber = 3; + inline bool votekick() const; + inline void set_votekick(bool value); + + // @@protoc_insertion_point(class_scope:VoteKickRequestMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_petitionid(); + inline void clear_has_petitionid(); + inline void set_has_votekick(); + inline void clear_has_votekick(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 petitionid_; + bool votekick_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static VoteKickRequestMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class VoteKickReplyMessage : public ::google::protobuf::Message { + public: + VoteKickReplyMessage(); + virtual ~VoteKickReplyMessage(); + + VoteKickReplyMessage(const VoteKickReplyMessage& from); + + inline VoteKickReplyMessage& operator=(const VoteKickReplyMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const VoteKickReplyMessage& default_instance(); + + void Swap(VoteKickReplyMessage* other); + + // implements Message ---------------------------------------------- + + VoteKickReplyMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const VoteKickReplyMessage& from); + void MergeFrom(const VoteKickReplyMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef VoteKickReplyMessage_VoteKickReplyType VoteKickReplyType; + static const VoteKickReplyType voteKickAck = VoteKickReplyMessage_VoteKickReplyType_voteKickAck; + static const VoteKickReplyType voteKickDeniedInvalid = VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedInvalid; + static const VoteKickReplyType voteKickDeniedAlreadyVoted = VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedAlreadyVoted; + static inline bool VoteKickReplyType_IsValid(int value) { + return VoteKickReplyMessage_VoteKickReplyType_IsValid(value); + } + static const VoteKickReplyType VoteKickReplyType_MIN = + VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_MIN; + static const VoteKickReplyType VoteKickReplyType_MAX = + VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_MAX; + static const int VoteKickReplyType_ARRAYSIZE = + VoteKickReplyMessage_VoteKickReplyType_VoteKickReplyType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + VoteKickReplyType_descriptor() { + return VoteKickReplyMessage_VoteKickReplyType_descriptor(); + } + static inline const ::std::string& VoteKickReplyType_Name(VoteKickReplyType value) { + return VoteKickReplyMessage_VoteKickReplyType_Name(value); + } + static inline bool VoteKickReplyType_Parse(const ::std::string& name, + VoteKickReplyType* value) { + return VoteKickReplyMessage_VoteKickReplyType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 petitionId = 2; + inline bool has_petitionid() const; + inline void clear_petitionid(); + static const int kPetitionIdFieldNumber = 2; + inline ::google::protobuf::uint32 petitionid() const; + inline void set_petitionid(::google::protobuf::uint32 value); + + // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; + inline bool has_votekickreplytype() const; + inline void clear_votekickreplytype(); + static const int kVoteKickReplyTypeFieldNumber = 3; + inline ::VoteKickReplyMessage_VoteKickReplyType votekickreplytype() const; + inline void set_votekickreplytype(::VoteKickReplyMessage_VoteKickReplyType value); + + // @@protoc_insertion_point(class_scope:VoteKickReplyMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_petitionid(); + inline void clear_has_petitionid(); + inline void set_has_votekickreplytype(); + inline void clear_has_votekickreplytype(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 petitionid_; + int votekickreplytype_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static VoteKickReplyMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class KickPetitionUpdateMessage : public ::google::protobuf::Message { + public: + KickPetitionUpdateMessage(); + virtual ~KickPetitionUpdateMessage(); + + KickPetitionUpdateMessage(const KickPetitionUpdateMessage& from); + + inline KickPetitionUpdateMessage& operator=(const KickPetitionUpdateMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const KickPetitionUpdateMessage& default_instance(); + + void Swap(KickPetitionUpdateMessage* other); + + // implements Message ---------------------------------------------- + + KickPetitionUpdateMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const KickPetitionUpdateMessage& from); + void MergeFrom(const KickPetitionUpdateMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 petitionId = 2; + inline bool has_petitionid() const; + inline void clear_petitionid(); + static const int kPetitionIdFieldNumber = 2; + inline ::google::protobuf::uint32 petitionid() const; + inline void set_petitionid(::google::protobuf::uint32 value); + + // required uint32 numVotesAgainstKicking = 3; + inline bool has_numvotesagainstkicking() const; + inline void clear_numvotesagainstkicking(); + static const int kNumVotesAgainstKickingFieldNumber = 3; + inline ::google::protobuf::uint32 numvotesagainstkicking() const; + inline void set_numvotesagainstkicking(::google::protobuf::uint32 value); + + // required uint32 numVotesInFavourOfKicking = 4; + inline bool has_numvotesinfavourofkicking() const; + inline void clear_numvotesinfavourofkicking(); + static const int kNumVotesInFavourOfKickingFieldNumber = 4; + inline ::google::protobuf::uint32 numvotesinfavourofkicking() const; + inline void set_numvotesinfavourofkicking(::google::protobuf::uint32 value); + + // required uint32 numVotesNeededToKick = 5; + inline bool has_numvotesneededtokick() const; + inline void clear_numvotesneededtokick(); + static const int kNumVotesNeededToKickFieldNumber = 5; + inline ::google::protobuf::uint32 numvotesneededtokick() const; + inline void set_numvotesneededtokick(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:KickPetitionUpdateMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_petitionid(); + inline void clear_has_petitionid(); + inline void set_has_numvotesagainstkicking(); + inline void clear_has_numvotesagainstkicking(); + inline void set_has_numvotesinfavourofkicking(); + inline void clear_has_numvotesinfavourofkicking(); + inline void set_has_numvotesneededtokick(); + inline void clear_has_numvotesneededtokick(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 petitionid_; + ::google::protobuf::uint32 numvotesagainstkicking_; + ::google::protobuf::uint32 numvotesinfavourofkicking_; + ::google::protobuf::uint32 numvotesneededtokick_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static KickPetitionUpdateMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class EndKickPetitionMessage : public ::google::protobuf::Message { + public: + EndKickPetitionMessage(); + virtual ~EndKickPetitionMessage(); + + EndKickPetitionMessage(const EndKickPetitionMessage& from); + + inline EndKickPetitionMessage& operator=(const EndKickPetitionMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const EndKickPetitionMessage& default_instance(); + + void Swap(EndKickPetitionMessage* other); + + // implements Message ---------------------------------------------- + + EndKickPetitionMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const EndKickPetitionMessage& from); + void MergeFrom(const EndKickPetitionMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef EndKickPetitionMessage_PetitionEndReason PetitionEndReason; + static const PetitionEndReason petitionEndEnoughVotes = EndKickPetitionMessage_PetitionEndReason_petitionEndEnoughVotes; + static const PetitionEndReason petitionEndTooFewPlayers = EndKickPetitionMessage_PetitionEndReason_petitionEndTooFewPlayers; + static const PetitionEndReason petitionEndPlayerLeft = EndKickPetitionMessage_PetitionEndReason_petitionEndPlayerLeft; + static const PetitionEndReason petitionEndTimeout = EndKickPetitionMessage_PetitionEndReason_petitionEndTimeout; + static inline bool PetitionEndReason_IsValid(int value) { + return EndKickPetitionMessage_PetitionEndReason_IsValid(value); + } + static const PetitionEndReason PetitionEndReason_MIN = + EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_MIN; + static const PetitionEndReason PetitionEndReason_MAX = + EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_MAX; + static const int PetitionEndReason_ARRAYSIZE = + EndKickPetitionMessage_PetitionEndReason_PetitionEndReason_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + PetitionEndReason_descriptor() { + return EndKickPetitionMessage_PetitionEndReason_descriptor(); + } + static inline const ::std::string& PetitionEndReason_Name(PetitionEndReason value) { + return EndKickPetitionMessage_PetitionEndReason_Name(value); + } + static inline bool PetitionEndReason_Parse(const ::std::string& name, + PetitionEndReason* value) { + return EndKickPetitionMessage_PetitionEndReason_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // required uint32 petitionId = 2; + inline bool has_petitionid() const; + inline void clear_petitionid(); + static const int kPetitionIdFieldNumber = 2; + inline ::google::protobuf::uint32 petitionid() const; + inline void set_petitionid(::google::protobuf::uint32 value); + + // required uint32 numVotesAgainstKicking = 3; + inline bool has_numvotesagainstkicking() const; + inline void clear_numvotesagainstkicking(); + static const int kNumVotesAgainstKickingFieldNumber = 3; + inline ::google::protobuf::uint32 numvotesagainstkicking() const; + inline void set_numvotesagainstkicking(::google::protobuf::uint32 value); + + // required uint32 numVotesInFavourOfKicking = 4; + inline bool has_numvotesinfavourofkicking() const; + inline void clear_numvotesinfavourofkicking(); + static const int kNumVotesInFavourOfKickingFieldNumber = 4; + inline ::google::protobuf::uint32 numvotesinfavourofkicking() const; + inline void set_numvotesinfavourofkicking(::google::protobuf::uint32 value); + + // required uint32 resultPlayerKicked = 5; + inline bool has_resultplayerkicked() const; + inline void clear_resultplayerkicked(); + static const int kResultPlayerKickedFieldNumber = 5; + inline ::google::protobuf::uint32 resultplayerkicked() const; + inline void set_resultplayerkicked(::google::protobuf::uint32 value); + + // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; + inline bool has_petitionendreason() const; + inline void clear_petitionendreason(); + static const int kPetitionEndReasonFieldNumber = 6; + inline ::EndKickPetitionMessage_PetitionEndReason petitionendreason() const; + inline void set_petitionendreason(::EndKickPetitionMessage_PetitionEndReason value); + + // @@protoc_insertion_point(class_scope:EndKickPetitionMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_petitionid(); + inline void clear_has_petitionid(); + inline void set_has_numvotesagainstkicking(); + inline void clear_has_numvotesagainstkicking(); + inline void set_has_numvotesinfavourofkicking(); + inline void clear_has_numvotesinfavourofkicking(); + inline void set_has_resultplayerkicked(); + inline void clear_has_resultplayerkicked(); + inline void set_has_petitionendreason(); + inline void clear_has_petitionendreason(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 petitionid_; + ::google::protobuf::uint32 numvotesagainstkicking_; + ::google::protobuf::uint32 numvotesinfavourofkicking_; + ::google::protobuf::uint32 resultplayerkicked_; + int petitionendreason_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static EndKickPetitionMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class StatisticsMessage_StatisticsData : public ::google::protobuf::Message { + public: + StatisticsMessage_StatisticsData(); + virtual ~StatisticsMessage_StatisticsData(); + + StatisticsMessage_StatisticsData(const StatisticsMessage_StatisticsData& from); + + inline StatisticsMessage_StatisticsData& operator=(const StatisticsMessage_StatisticsData& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StatisticsMessage_StatisticsData& default_instance(); + + void Swap(StatisticsMessage_StatisticsData* other); + + // implements Message ---------------------------------------------- + + StatisticsMessage_StatisticsData* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const StatisticsMessage_StatisticsData& from); + void MergeFrom(const StatisticsMessage_StatisticsData& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef StatisticsMessage_StatisticsData_StatisticsType StatisticsType; + static const StatisticsType statNumberOfPlayers = StatisticsMessage_StatisticsData_StatisticsType_statNumberOfPlayers; + static inline bool StatisticsType_IsValid(int value) { + return StatisticsMessage_StatisticsData_StatisticsType_IsValid(value); + } + static const StatisticsType StatisticsType_MIN = + StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_MIN; + static const StatisticsType StatisticsType_MAX = + StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_MAX; + static const int StatisticsType_ARRAYSIZE = + StatisticsMessage_StatisticsData_StatisticsType_StatisticsType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + StatisticsType_descriptor() { + return StatisticsMessage_StatisticsData_StatisticsType_descriptor(); + } + static inline const ::std::string& StatisticsType_Name(StatisticsType value) { + return StatisticsMessage_StatisticsData_StatisticsType_Name(value); + } + static inline bool StatisticsType_Parse(const ::std::string& name, + StatisticsType* value) { + return StatisticsMessage_StatisticsData_StatisticsType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; + inline bool has_statisticstype() const; + inline void clear_statisticstype(); + static const int kStatisticsTypeFieldNumber = 1; + inline ::StatisticsMessage_StatisticsData_StatisticsType statisticstype() const; + inline void set_statisticstype(::StatisticsMessage_StatisticsData_StatisticsType value); + + // required uint32 statisticsValue = 2; + inline bool has_statisticsvalue() const; + inline void clear_statisticsvalue(); + static const int kStatisticsValueFieldNumber = 2; + inline ::google::protobuf::uint32 statisticsvalue() const; + inline void set_statisticsvalue(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:StatisticsMessage.StatisticsData) + private: + inline void set_has_statisticstype(); + inline void clear_has_statisticstype(); + inline void set_has_statisticsvalue(); + inline void clear_has_statisticsvalue(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + int statisticstype_; + ::google::protobuf::uint32 statisticsvalue_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static StatisticsMessage_StatisticsData* default_instance_; +}; +// ------------------------------------------------------------------- + +class StatisticsMessage : public ::google::protobuf::Message { + public: + StatisticsMessage(); + virtual ~StatisticsMessage(); + + StatisticsMessage(const StatisticsMessage& from); + + inline StatisticsMessage& operator=(const StatisticsMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const StatisticsMessage& default_instance(); + + void Swap(StatisticsMessage* other); + + // implements Message ---------------------------------------------- + + StatisticsMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const StatisticsMessage& from); + void MergeFrom(const StatisticsMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef StatisticsMessage_StatisticsData StatisticsData; + + // accessors ------------------------------------------------------- + + // repeated .StatisticsMessage.StatisticsData statisticsData = 1; + inline int statisticsdata_size() const; + inline void clear_statisticsdata(); + static const int kStatisticsDataFieldNumber = 1; + inline const ::StatisticsMessage_StatisticsData& statisticsdata(int index) const; + inline ::StatisticsMessage_StatisticsData* mutable_statisticsdata(int index); + inline ::StatisticsMessage_StatisticsData* add_statisticsdata(); + inline const ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >& + statisticsdata() const; + inline ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >* + mutable_statisticsdata(); + + // @@protoc_insertion_point(class_scope:StatisticsMessage) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData > statisticsdata_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static StatisticsMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class ChatRequestMessage : public ::google::protobuf::Message { + public: + ChatRequestMessage(); + virtual ~ChatRequestMessage(); + + ChatRequestMessage(const ChatRequestMessage& from); + + inline ChatRequestMessage& operator=(const ChatRequestMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ChatRequestMessage& default_instance(); + + void Swap(ChatRequestMessage* other); + + // implements Message ---------------------------------------------- + + ChatRequestMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ChatRequestMessage& from); + void MergeFrom(const ChatRequestMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // optional uint32 targetGameId = 1; + inline bool has_targetgameid() const; + inline void clear_targetgameid(); + static const int kTargetGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 targetgameid() const; + inline void set_targetgameid(::google::protobuf::uint32 value); + + // optional uint32 targetPlayerId = 2; + inline bool has_targetplayerid() const; + inline void clear_targetplayerid(); + static const int kTargetPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 targetplayerid() const; + inline void set_targetplayerid(::google::protobuf::uint32 value); + + // required string chatText = 3; + inline bool has_chattext() const; + inline void clear_chattext(); + static const int kChatTextFieldNumber = 3; + inline const ::std::string& chattext() const; + inline void set_chattext(const ::std::string& value); + inline void set_chattext(const char* value); + inline void set_chattext(const char* value, size_t size); + inline ::std::string* mutable_chattext(); + inline ::std::string* release_chattext(); + + // @@protoc_insertion_point(class_scope:ChatRequestMessage) + private: + inline void set_has_targetgameid(); + inline void clear_has_targetgameid(); + inline void set_has_targetplayerid(); + inline void clear_has_targetplayerid(); + inline void set_has_chattext(); + inline void clear_has_chattext(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 targetgameid_; + ::google::protobuf::uint32 targetplayerid_; + ::std::string* chattext_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ChatRequestMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class ChatMessage : public ::google::protobuf::Message { + public: + ChatMessage(); + virtual ~ChatMessage(); + + ChatMessage(const ChatMessage& from); + + inline ChatMessage& operator=(const ChatMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ChatMessage& default_instance(); + + void Swap(ChatMessage* other); + + // implements Message ---------------------------------------------- + + ChatMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ChatMessage& from); + void MergeFrom(const ChatMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef ChatMessage_ChatType ChatType; + static const ChatType chatTypeLobby = ChatMessage_ChatType_chatTypeLobby; + static const ChatType chatTypeGame = ChatMessage_ChatType_chatTypeGame; + static const ChatType chatTypeBot = ChatMessage_ChatType_chatTypeBot; + static const ChatType chatTypeBroadcast = ChatMessage_ChatType_chatTypeBroadcast; + static const ChatType chatTypePrivate = ChatMessage_ChatType_chatTypePrivate; + static inline bool ChatType_IsValid(int value) { + return ChatMessage_ChatType_IsValid(value); + } + static const ChatType ChatType_MIN = + ChatMessage_ChatType_ChatType_MIN; + static const ChatType ChatType_MAX = + ChatMessage_ChatType_ChatType_MAX; + static const int ChatType_ARRAYSIZE = + ChatMessage_ChatType_ChatType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + ChatType_descriptor() { + return ChatMessage_ChatType_descriptor(); + } + static inline const ::std::string& ChatType_Name(ChatType value) { + return ChatMessage_ChatType_Name(value); + } + static inline bool ChatType_Parse(const ::std::string& name, + ChatType* value) { + return ChatMessage_ChatType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // optional uint32 gameId = 1; + inline bool has_gameid() const; + inline void clear_gameid(); + static const int kGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 gameid() const; + inline void set_gameid(::google::protobuf::uint32 value); + + // optional uint32 playerId = 2; + inline bool has_playerid() const; + inline void clear_playerid(); + static const int kPlayerIdFieldNumber = 2; + inline ::google::protobuf::uint32 playerid() const; + inline void set_playerid(::google::protobuf::uint32 value); + + // required .ChatMessage.ChatType chatType = 3; + inline bool has_chattype() const; + inline void clear_chattype(); + static const int kChatTypeFieldNumber = 3; + inline ::ChatMessage_ChatType chattype() const; + inline void set_chattype(::ChatMessage_ChatType value); + + // required string chatText = 4; + inline bool has_chattext() const; + inline void clear_chattext(); + static const int kChatTextFieldNumber = 4; + inline const ::std::string& chattext() const; + inline void set_chattext(const ::std::string& value); + inline void set_chattext(const char* value); + inline void set_chattext(const char* value, size_t size); + inline ::std::string* mutable_chattext(); + inline ::std::string* release_chattext(); + + // @@protoc_insertion_point(class_scope:ChatMessage) + private: + inline void set_has_gameid(); + inline void clear_has_gameid(); + inline void set_has_playerid(); + inline void clear_has_playerid(); + inline void set_has_chattype(); + inline void clear_has_chattype(); + inline void set_has_chattext(); + inline void clear_has_chattext(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 gameid_; + ::google::protobuf::uint32 playerid_; + ::std::string* chattext_; + int chattype_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ChatMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class ChatRejectMessage : public ::google::protobuf::Message { + public: + ChatRejectMessage(); + virtual ~ChatRejectMessage(); + + ChatRejectMessage(const ChatRejectMessage& from); + + inline ChatRejectMessage& operator=(const ChatRejectMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ChatRejectMessage& default_instance(); + + void Swap(ChatRejectMessage* other); + + // implements Message ---------------------------------------------- + + ChatRejectMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ChatRejectMessage& from); + void MergeFrom(const ChatRejectMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string chatText = 1; + inline bool has_chattext() const; + inline void clear_chattext(); + static const int kChatTextFieldNumber = 1; + inline const ::std::string& chattext() const; + inline void set_chattext(const ::std::string& value); + inline void set_chattext(const char* value); + inline void set_chattext(const char* value, size_t size); + inline ::std::string* mutable_chattext(); + inline ::std::string* release_chattext(); + + // @@protoc_insertion_point(class_scope:ChatRejectMessage) + private: + inline void set_has_chattext(); + inline void clear_has_chattext(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* chattext_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ChatRejectMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class DialogMessage : public ::google::protobuf::Message { + public: + DialogMessage(); + virtual ~DialogMessage(); + + DialogMessage(const DialogMessage& from); + + inline DialogMessage& operator=(const DialogMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const DialogMessage& default_instance(); + + void Swap(DialogMessage* other); + + // implements Message ---------------------------------------------- + + DialogMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const DialogMessage& from); + void MergeFrom(const DialogMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required string notificationText = 1; + inline bool has_notificationtext() const; + inline void clear_notificationtext(); + static const int kNotificationTextFieldNumber = 1; + inline const ::std::string& notificationtext() const; + inline void set_notificationtext(const ::std::string& value); + inline void set_notificationtext(const char* value); + inline void set_notificationtext(const char* value, size_t size); + inline ::std::string* mutable_notificationtext(); + inline ::std::string* release_notificationtext(); + + // @@protoc_insertion_point(class_scope:DialogMessage) + private: + inline void set_has_notificationtext(); + inline void clear_has_notificationtext(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* notificationtext_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static DialogMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class TimeoutWarningMessage : public ::google::protobuf::Message { + public: + TimeoutWarningMessage(); + virtual ~TimeoutWarningMessage(); + + TimeoutWarningMessage(const TimeoutWarningMessage& from); + + inline TimeoutWarningMessage& operator=(const TimeoutWarningMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const TimeoutWarningMessage& default_instance(); + + void Swap(TimeoutWarningMessage* other); + + // implements Message ---------------------------------------------- + + TimeoutWarningMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const TimeoutWarningMessage& from); + void MergeFrom(const TimeoutWarningMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef TimeoutWarningMessage_TimeoutReason TimeoutReason; + static const TimeoutReason timeoutNoDataReceived = TimeoutWarningMessage_TimeoutReason_timeoutNoDataReceived; + static const TimeoutReason timeoutInactiveGame = TimeoutWarningMessage_TimeoutReason_timeoutInactiveGame; + static const TimeoutReason timeoutKickAfterAutofold = TimeoutWarningMessage_TimeoutReason_timeoutKickAfterAutofold; + static inline bool TimeoutReason_IsValid(int value) { + return TimeoutWarningMessage_TimeoutReason_IsValid(value); + } + static const TimeoutReason TimeoutReason_MIN = + TimeoutWarningMessage_TimeoutReason_TimeoutReason_MIN; + static const TimeoutReason TimeoutReason_MAX = + TimeoutWarningMessage_TimeoutReason_TimeoutReason_MAX; + static const int TimeoutReason_ARRAYSIZE = + TimeoutWarningMessage_TimeoutReason_TimeoutReason_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + TimeoutReason_descriptor() { + return TimeoutWarningMessage_TimeoutReason_descriptor(); + } + static inline const ::std::string& TimeoutReason_Name(TimeoutReason value) { + return TimeoutWarningMessage_TimeoutReason_Name(value); + } + static inline bool TimeoutReason_Parse(const ::std::string& name, + TimeoutReason* value) { + return TimeoutWarningMessage_TimeoutReason_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; + inline bool has_timeoutreason() const; + inline void clear_timeoutreason(); + static const int kTimeoutReasonFieldNumber = 1; + inline ::TimeoutWarningMessage_TimeoutReason timeoutreason() const; + inline void set_timeoutreason(::TimeoutWarningMessage_TimeoutReason value); + + // required uint32 remainingSeconds = 2; + inline bool has_remainingseconds() const; + inline void clear_remainingseconds(); + static const int kRemainingSecondsFieldNumber = 2; + inline ::google::protobuf::uint32 remainingseconds() const; + inline void set_remainingseconds(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:TimeoutWarningMessage) + private: + inline void set_has_timeoutreason(); + inline void clear_has_timeoutreason(); + inline void set_has_remainingseconds(); + inline void clear_has_remainingseconds(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + int timeoutreason_; + ::google::protobuf::uint32 remainingseconds_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static TimeoutWarningMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class ResetTimeoutMessage : public ::google::protobuf::Message { + public: + ResetTimeoutMessage(); + virtual ~ResetTimeoutMessage(); + + ResetTimeoutMessage(const ResetTimeoutMessage& from); + + inline ResetTimeoutMessage& operator=(const ResetTimeoutMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ResetTimeoutMessage& default_instance(); + + void Swap(ResetTimeoutMessage* other); + + // implements Message ---------------------------------------------- + + ResetTimeoutMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ResetTimeoutMessage& from); + void MergeFrom(const ResetTimeoutMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:ResetTimeoutMessage) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[1]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ResetTimeoutMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReportAvatarMessage : public ::google::protobuf::Message { + public: + ReportAvatarMessage(); + virtual ~ReportAvatarMessage(); + + ReportAvatarMessage(const ReportAvatarMessage& from); + + inline ReportAvatarMessage& operator=(const ReportAvatarMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReportAvatarMessage& default_instance(); + + void Swap(ReportAvatarMessage* other); + + // implements Message ---------------------------------------------- + + ReportAvatarMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReportAvatarMessage& from); + void MergeFrom(const ReportAvatarMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 reportedPlayerId = 1; + inline bool has_reportedplayerid() const; + inline void clear_reportedplayerid(); + static const int kReportedPlayerIdFieldNumber = 1; + inline ::google::protobuf::uint32 reportedplayerid() const; + inline void set_reportedplayerid(::google::protobuf::uint32 value); + + // required bytes reportedAvatarHash = 2; + inline bool has_reportedavatarhash() const; + inline void clear_reportedavatarhash(); + static const int kReportedAvatarHashFieldNumber = 2; + inline const ::std::string& reportedavatarhash() const; + inline void set_reportedavatarhash(const ::std::string& value); + inline void set_reportedavatarhash(const char* value); + inline void set_reportedavatarhash(const void* value, size_t size); + inline ::std::string* mutable_reportedavatarhash(); + inline ::std::string* release_reportedavatarhash(); + + // @@protoc_insertion_point(class_scope:ReportAvatarMessage) + private: + inline void set_has_reportedplayerid(); + inline void clear_has_reportedplayerid(); + inline void set_has_reportedavatarhash(); + inline void clear_has_reportedavatarhash(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::std::string* reportedavatarhash_; + ::google::protobuf::uint32 reportedplayerid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ReportAvatarMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReportAvatarAckMessage : public ::google::protobuf::Message { + public: + ReportAvatarAckMessage(); + virtual ~ReportAvatarAckMessage(); + + ReportAvatarAckMessage(const ReportAvatarAckMessage& from); + + inline ReportAvatarAckMessage& operator=(const ReportAvatarAckMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReportAvatarAckMessage& default_instance(); + + void Swap(ReportAvatarAckMessage* other); + + // implements Message ---------------------------------------------- + + ReportAvatarAckMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReportAvatarAckMessage& from); + void MergeFrom(const ReportAvatarAckMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef ReportAvatarAckMessage_ReportAvatarResult ReportAvatarResult; + static const ReportAvatarResult avatarReportAccepted = ReportAvatarAckMessage_ReportAvatarResult_avatarReportAccepted; + static const ReportAvatarResult avatarReportDuplicate = ReportAvatarAckMessage_ReportAvatarResult_avatarReportDuplicate; + static const ReportAvatarResult avatarReportInvalid = ReportAvatarAckMessage_ReportAvatarResult_avatarReportInvalid; + static inline bool ReportAvatarResult_IsValid(int value) { + return ReportAvatarAckMessage_ReportAvatarResult_IsValid(value); + } + static const ReportAvatarResult ReportAvatarResult_MIN = + ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_MIN; + static const ReportAvatarResult ReportAvatarResult_MAX = + ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_MAX; + static const int ReportAvatarResult_ARRAYSIZE = + ReportAvatarAckMessage_ReportAvatarResult_ReportAvatarResult_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + ReportAvatarResult_descriptor() { + return ReportAvatarAckMessage_ReportAvatarResult_descriptor(); + } + static inline const ::std::string& ReportAvatarResult_Name(ReportAvatarResult value) { + return ReportAvatarAckMessage_ReportAvatarResult_Name(value); + } + static inline bool ReportAvatarResult_Parse(const ::std::string& name, + ReportAvatarResult* value) { + return ReportAvatarAckMessage_ReportAvatarResult_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required uint32 reportedPlayerId = 1; + inline bool has_reportedplayerid() const; + inline void clear_reportedplayerid(); + static const int kReportedPlayerIdFieldNumber = 1; + inline ::google::protobuf::uint32 reportedplayerid() const; + inline void set_reportedplayerid(::google::protobuf::uint32 value); + + // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; + inline bool has_reportavatarresult() const; + inline void clear_reportavatarresult(); + static const int kReportAvatarResultFieldNumber = 2; + inline ::ReportAvatarAckMessage_ReportAvatarResult reportavatarresult() const; + inline void set_reportavatarresult(::ReportAvatarAckMessage_ReportAvatarResult value); + + // @@protoc_insertion_point(class_scope:ReportAvatarAckMessage) + private: + inline void set_has_reportedplayerid(); + inline void clear_has_reportedplayerid(); + inline void set_has_reportavatarresult(); + inline void clear_has_reportavatarresult(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 reportedplayerid_; + int reportavatarresult_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ReportAvatarAckMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReportGameMessage : public ::google::protobuf::Message { + public: + ReportGameMessage(); + virtual ~ReportGameMessage(); + + ReportGameMessage(const ReportGameMessage& from); + + inline ReportGameMessage& operator=(const ReportGameMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReportGameMessage& default_instance(); + + void Swap(ReportGameMessage* other); + + // implements Message ---------------------------------------------- + + ReportGameMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReportGameMessage& from); + void MergeFrom(const ReportGameMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // required uint32 reportedGameId = 1; + inline bool has_reportedgameid() const; + inline void clear_reportedgameid(); + static const int kReportedGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 reportedgameid() const; + inline void set_reportedgameid(::google::protobuf::uint32 value); + + // @@protoc_insertion_point(class_scope:ReportGameMessage) + private: + inline void set_has_reportedgameid(); + inline void clear_has_reportedgameid(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 reportedgameid_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ReportGameMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class ReportGameAckMessage : public ::google::protobuf::Message { + public: + ReportGameAckMessage(); + virtual ~ReportGameAckMessage(); + + ReportGameAckMessage(const ReportGameAckMessage& from); + + inline ReportGameAckMessage& operator=(const ReportGameAckMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ReportGameAckMessage& default_instance(); + + void Swap(ReportGameAckMessage* other); + + // implements Message ---------------------------------------------- + + ReportGameAckMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ReportGameAckMessage& from); + void MergeFrom(const ReportGameAckMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef ReportGameAckMessage_ReportGameResult ReportGameResult; + static const ReportGameResult gameReportAccepted = ReportGameAckMessage_ReportGameResult_gameReportAccepted; + static const ReportGameResult gameReportDuplicate = ReportGameAckMessage_ReportGameResult_gameReportDuplicate; + static const ReportGameResult gameReportInvalid = ReportGameAckMessage_ReportGameResult_gameReportInvalid; + static inline bool ReportGameResult_IsValid(int value) { + return ReportGameAckMessage_ReportGameResult_IsValid(value); + } + static const ReportGameResult ReportGameResult_MIN = + ReportGameAckMessage_ReportGameResult_ReportGameResult_MIN; + static const ReportGameResult ReportGameResult_MAX = + ReportGameAckMessage_ReportGameResult_ReportGameResult_MAX; + static const int ReportGameResult_ARRAYSIZE = + ReportGameAckMessage_ReportGameResult_ReportGameResult_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + ReportGameResult_descriptor() { + return ReportGameAckMessage_ReportGameResult_descriptor(); + } + static inline const ::std::string& ReportGameResult_Name(ReportGameResult value) { + return ReportGameAckMessage_ReportGameResult_Name(value); + } + static inline bool ReportGameResult_Parse(const ::std::string& name, + ReportGameResult* value) { + return ReportGameAckMessage_ReportGameResult_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required uint32 reportedGameId = 1; + inline bool has_reportedgameid() const; + inline void clear_reportedgameid(); + static const int kReportedGameIdFieldNumber = 1; + inline ::google::protobuf::uint32 reportedgameid() const; + inline void set_reportedgameid(::google::protobuf::uint32 value); + + // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; + inline bool has_reportgameresult() const; + inline void clear_reportgameresult(); + static const int kReportGameResultFieldNumber = 2; + inline ::ReportGameAckMessage_ReportGameResult reportgameresult() const; + inline void set_reportgameresult(::ReportGameAckMessage_ReportGameResult value); + + // @@protoc_insertion_point(class_scope:ReportGameAckMessage) + private: + inline void set_has_reportedgameid(); + inline void clear_has_reportedgameid(); + inline void set_has_reportgameresult(); + inline void clear_has_reportgameresult(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 reportedgameid_; + int reportgameresult_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ReportGameAckMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class ErrorMessage : public ::google::protobuf::Message { + public: + ErrorMessage(); + virtual ~ErrorMessage(); + + ErrorMessage(const ErrorMessage& from); + + inline ErrorMessage& operator=(const ErrorMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const ErrorMessage& default_instance(); + + void Swap(ErrorMessage* other); + + // implements Message ---------------------------------------------- + + ErrorMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const ErrorMessage& from); + void MergeFrom(const ErrorMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef ErrorMessage_ErrorReason ErrorReason; + static const ErrorReason reserved = ErrorMessage_ErrorReason_reserved; + static const ErrorReason initVersionNotSupported = ErrorMessage_ErrorReason_initVersionNotSupported; + static const ErrorReason initServerFull = ErrorMessage_ErrorReason_initServerFull; + static const ErrorReason initAuthFailure = ErrorMessage_ErrorReason_initAuthFailure; + static const ErrorReason initPlayerNameInUse = ErrorMessage_ErrorReason_initPlayerNameInUse; + static const ErrorReason initInvalidPlayerName = ErrorMessage_ErrorReason_initInvalidPlayerName; + static const ErrorReason initServerMaintenance = ErrorMessage_ErrorReason_initServerMaintenance; + static const ErrorReason initBlocked = ErrorMessage_ErrorReason_initBlocked; + static const ErrorReason avatarTooLarge = ErrorMessage_ErrorReason_avatarTooLarge; + static const ErrorReason invalidPacket = ErrorMessage_ErrorReason_invalidPacket; + static const ErrorReason invalidState = ErrorMessage_ErrorReason_invalidState; + static const ErrorReason kickedFromServer = ErrorMessage_ErrorReason_kickedFromServer; + static const ErrorReason bannedFromServer = ErrorMessage_ErrorReason_bannedFromServer; + static const ErrorReason blockedByServer = ErrorMessage_ErrorReason_blockedByServer; + static const ErrorReason sessionTimeout = ErrorMessage_ErrorReason_sessionTimeout; + static inline bool ErrorReason_IsValid(int value) { + return ErrorMessage_ErrorReason_IsValid(value); + } + static const ErrorReason ErrorReason_MIN = + ErrorMessage_ErrorReason_ErrorReason_MIN; + static const ErrorReason ErrorReason_MAX = + ErrorMessage_ErrorReason_ErrorReason_MAX; + static const int ErrorReason_ARRAYSIZE = + ErrorMessage_ErrorReason_ErrorReason_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + ErrorReason_descriptor() { + return ErrorMessage_ErrorReason_descriptor(); + } + static inline const ::std::string& ErrorReason_Name(ErrorReason value) { + return ErrorMessage_ErrorReason_Name(value); + } + static inline bool ErrorReason_Parse(const ::std::string& name, + ErrorReason* value) { + return ErrorMessage_ErrorReason_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .ErrorMessage.ErrorReason errorReason = 1; + inline bool has_errorreason() const; + inline void clear_errorreason(); + static const int kErrorReasonFieldNumber = 1; + inline ::ErrorMessage_ErrorReason errorreason() const; + inline void set_errorreason(::ErrorMessage_ErrorReason value); + + // @@protoc_insertion_point(class_scope:ErrorMessage) + private: + inline void set_has_errorreason(); + inline void clear_has_errorreason(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + int errorreason_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static ErrorMessage* default_instance_; +}; +// ------------------------------------------------------------------- + +class PokerTHMessage : public ::google::protobuf::Message { + public: + PokerTHMessage(); + virtual ~PokerTHMessage(); + + PokerTHMessage(const PokerTHMessage& from); + + inline PokerTHMessage& operator=(const PokerTHMessage& from) { + CopyFrom(from); + return *this; + } + + inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { + return _unknown_fields_; + } + + inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { + return &_unknown_fields_; + } + + static const ::google::protobuf::Descriptor* descriptor(); + static const PokerTHMessage& default_instance(); + + void Swap(PokerTHMessage* other); + + // implements Message ---------------------------------------------- + + PokerTHMessage* New() const; + void CopyFrom(const ::google::protobuf::Message& from); + void MergeFrom(const ::google::protobuf::Message& from); + void CopyFrom(const PokerTHMessage& from); + void MergeFrom(const PokerTHMessage& from); + void Clear(); + bool IsInitialized() const; + + int ByteSize() const; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input); + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; + int GetCachedSize() const { return _cached_size_; } + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const; + public: + + ::google::protobuf::Metadata GetMetadata() const; + + // nested types ---------------------------------------------------- + + typedef PokerTHMessage_PokerTHMessageType PokerTHMessageType; + static const PokerTHMessageType Type_AnnounceMessage = PokerTHMessage_PokerTHMessageType_Type_AnnounceMessage; + static const PokerTHMessageType Type_InitMessage = PokerTHMessage_PokerTHMessageType_Type_InitMessage; + static const PokerTHMessageType Type_AuthServerChallengeMessage = PokerTHMessage_PokerTHMessageType_Type_AuthServerChallengeMessage; + static const PokerTHMessageType Type_AuthClientResponseMessage = PokerTHMessage_PokerTHMessageType_Type_AuthClientResponseMessage; + static const PokerTHMessageType Type_AuthServerVerificationMessage = PokerTHMessage_PokerTHMessageType_Type_AuthServerVerificationMessage; + static const PokerTHMessageType Type_InitAckMessage = PokerTHMessage_PokerTHMessageType_Type_InitAckMessage; + static const PokerTHMessageType Type_AvatarRequestMessage = PokerTHMessage_PokerTHMessageType_Type_AvatarRequestMessage; + static const PokerTHMessageType Type_AvatarHeaderMessage = PokerTHMessage_PokerTHMessageType_Type_AvatarHeaderMessage; + static const PokerTHMessageType Type_AvatarDataMessage = PokerTHMessage_PokerTHMessageType_Type_AvatarDataMessage; + static const PokerTHMessageType Type_AvatarEndMessage = PokerTHMessage_PokerTHMessageType_Type_AvatarEndMessage; + static const PokerTHMessageType Type_UnknownAvatarMessage = PokerTHMessage_PokerTHMessageType_Type_UnknownAvatarMessage; + static const PokerTHMessageType Type_PlayerListMessage = PokerTHMessage_PokerTHMessageType_Type_PlayerListMessage; + static const PokerTHMessageType Type_GameListNewMessage = PokerTHMessage_PokerTHMessageType_Type_GameListNewMessage; + static const PokerTHMessageType Type_GameListUpdateMessage = PokerTHMessage_PokerTHMessageType_Type_GameListUpdateMessage; + static const PokerTHMessageType Type_GameListPlayerJoinedMessage = PokerTHMessage_PokerTHMessageType_Type_GameListPlayerJoinedMessage; + static const PokerTHMessageType Type_GameListPlayerLeftMessage = PokerTHMessage_PokerTHMessageType_Type_GameListPlayerLeftMessage; + static const PokerTHMessageType Type_GameListAdminChangedMessage = PokerTHMessage_PokerTHMessageType_Type_GameListAdminChangedMessage; + static const PokerTHMessageType Type_PlayerInfoRequestMessage = PokerTHMessage_PokerTHMessageType_Type_PlayerInfoRequestMessage; + static const PokerTHMessageType Type_PlayerInfoReplyMessage = PokerTHMessage_PokerTHMessageType_Type_PlayerInfoReplyMessage; + static const PokerTHMessageType Type_SubscriptionRequestMessage = PokerTHMessage_PokerTHMessageType_Type_SubscriptionRequestMessage; + static const PokerTHMessageType Type_JoinExistingGameMessage = PokerTHMessage_PokerTHMessageType_Type_JoinExistingGameMessage; + static const PokerTHMessageType Type_JoinNewGameMessage = PokerTHMessage_PokerTHMessageType_Type_JoinNewGameMessage; + static const PokerTHMessageType Type_RejoinExistingGameMessage = PokerTHMessage_PokerTHMessageType_Type_RejoinExistingGameMessage; + static const PokerTHMessageType Type_JoinGameAckMessage = PokerTHMessage_PokerTHMessageType_Type_JoinGameAckMessage; + static const PokerTHMessageType Type_JoinGameFailedMessage = PokerTHMessage_PokerTHMessageType_Type_JoinGameFailedMessage; + static const PokerTHMessageType Type_GamePlayerJoinedMessage = PokerTHMessage_PokerTHMessageType_Type_GamePlayerJoinedMessage; + static const PokerTHMessageType Type_GamePlayerLeftMessage = PokerTHMessage_PokerTHMessageType_Type_GamePlayerLeftMessage; + static const PokerTHMessageType Type_GameAdminChangedMessage = PokerTHMessage_PokerTHMessageType_Type_GameAdminChangedMessage; + static const PokerTHMessageType Type_RemovedFromGameMessage = PokerTHMessage_PokerTHMessageType_Type_RemovedFromGameMessage; + static const PokerTHMessageType Type_KickPlayerRequestMessage = PokerTHMessage_PokerTHMessageType_Type_KickPlayerRequestMessage; + static const PokerTHMessageType Type_LeaveGameRequestMessage = PokerTHMessage_PokerTHMessageType_Type_LeaveGameRequestMessage; + static const PokerTHMessageType Type_InvitePlayerToGameMessage = PokerTHMessage_PokerTHMessageType_Type_InvitePlayerToGameMessage; + static const PokerTHMessageType Type_InviteNotifyMessage = PokerTHMessage_PokerTHMessageType_Type_InviteNotifyMessage; + static const PokerTHMessageType Type_RejectGameInvitationMessage = PokerTHMessage_PokerTHMessageType_Type_RejectGameInvitationMessage; + static const PokerTHMessageType Type_RejectInvNotifyMessage = PokerTHMessage_PokerTHMessageType_Type_RejectInvNotifyMessage; + static const PokerTHMessageType Type_StartEventMessage = PokerTHMessage_PokerTHMessageType_Type_StartEventMessage; + static const PokerTHMessageType Type_StartEventAckMessage = PokerTHMessage_PokerTHMessageType_Type_StartEventAckMessage; + static const PokerTHMessageType Type_GameStartInitialMessage = PokerTHMessage_PokerTHMessageType_Type_GameStartInitialMessage; + static const PokerTHMessageType Type_GameStartRejoinMessage = PokerTHMessage_PokerTHMessageType_Type_GameStartRejoinMessage; + static const PokerTHMessageType Type_HandStartMessage = PokerTHMessage_PokerTHMessageType_Type_HandStartMessage; + static const PokerTHMessageType Type_PlayersTurnMessage = PokerTHMessage_PokerTHMessageType_Type_PlayersTurnMessage; + static const PokerTHMessageType Type_MyActionRequestMessage = PokerTHMessage_PokerTHMessageType_Type_MyActionRequestMessage; + static const PokerTHMessageType Type_YourActionRejectedMessage = PokerTHMessage_PokerTHMessageType_Type_YourActionRejectedMessage; + static const PokerTHMessageType Type_PlayersActionDoneMessage = PokerTHMessage_PokerTHMessageType_Type_PlayersActionDoneMessage; + static const PokerTHMessageType Type_DealFlopCardsMessage = PokerTHMessage_PokerTHMessageType_Type_DealFlopCardsMessage; + static const PokerTHMessageType Type_DealTurnCardMessage = PokerTHMessage_PokerTHMessageType_Type_DealTurnCardMessage; + static const PokerTHMessageType Type_DealRiverCardMessage = PokerTHMessage_PokerTHMessageType_Type_DealRiverCardMessage; + static const PokerTHMessageType Type_AllInShowCardsMessage = PokerTHMessage_PokerTHMessageType_Type_AllInShowCardsMessage; + static const PokerTHMessageType Type_EndOfHandShowCardsMessage = PokerTHMessage_PokerTHMessageType_Type_EndOfHandShowCardsMessage; + static const PokerTHMessageType Type_EndOfHandHideCardsMessage = PokerTHMessage_PokerTHMessageType_Type_EndOfHandHideCardsMessage; + static const PokerTHMessageType Type_ShowMyCardsRequestMessage = PokerTHMessage_PokerTHMessageType_Type_ShowMyCardsRequestMessage; + static const PokerTHMessageType Type_AfterHandShowCardsMessage = PokerTHMessage_PokerTHMessageType_Type_AfterHandShowCardsMessage; + static const PokerTHMessageType Type_EndOfGameMessage = PokerTHMessage_PokerTHMessageType_Type_EndOfGameMessage; + static const PokerTHMessageType Type_PlayerIdChangedMessage = PokerTHMessage_PokerTHMessageType_Type_PlayerIdChangedMessage; + static const PokerTHMessageType Type_AskKickPlayerMessage = PokerTHMessage_PokerTHMessageType_Type_AskKickPlayerMessage; + static const PokerTHMessageType Type_AskKickDeniedMessage = PokerTHMessage_PokerTHMessageType_Type_AskKickDeniedMessage; + static const PokerTHMessageType Type_StartKickPetitionMessage = PokerTHMessage_PokerTHMessageType_Type_StartKickPetitionMessage; + static const PokerTHMessageType Type_VoteKickRequestMessage = PokerTHMessage_PokerTHMessageType_Type_VoteKickRequestMessage; + static const PokerTHMessageType Type_VoteKickReplyMessage = PokerTHMessage_PokerTHMessageType_Type_VoteKickReplyMessage; + static const PokerTHMessageType Type_KickPetitionUpdateMessage = PokerTHMessage_PokerTHMessageType_Type_KickPetitionUpdateMessage; + static const PokerTHMessageType Type_EndKickPetitionMessage = PokerTHMessage_PokerTHMessageType_Type_EndKickPetitionMessage; + static const PokerTHMessageType Type_StatisticsMessage = PokerTHMessage_PokerTHMessageType_Type_StatisticsMessage; + static const PokerTHMessageType Type_ChatRequestMessage = PokerTHMessage_PokerTHMessageType_Type_ChatRequestMessage; + static const PokerTHMessageType Type_ChatMessage = PokerTHMessage_PokerTHMessageType_Type_ChatMessage; + static const PokerTHMessageType Type_ChatRejectMessage = PokerTHMessage_PokerTHMessageType_Type_ChatRejectMessage; + static const PokerTHMessageType Type_DialogMessage = PokerTHMessage_PokerTHMessageType_Type_DialogMessage; + static const PokerTHMessageType Type_TimeoutWarningMessage = PokerTHMessage_PokerTHMessageType_Type_TimeoutWarningMessage; + static const PokerTHMessageType Type_ResetTimeoutMessage = PokerTHMessage_PokerTHMessageType_Type_ResetTimeoutMessage; + static const PokerTHMessageType Type_ReportAvatarMessage = PokerTHMessage_PokerTHMessageType_Type_ReportAvatarMessage; + static const PokerTHMessageType Type_ReportAvatarAckMessage = PokerTHMessage_PokerTHMessageType_Type_ReportAvatarAckMessage; + static const PokerTHMessageType Type_ReportGameMessage = PokerTHMessage_PokerTHMessageType_Type_ReportGameMessage; + static const PokerTHMessageType Type_ReportGameAckMessage = PokerTHMessage_PokerTHMessageType_Type_ReportGameAckMessage; + static const PokerTHMessageType Type_ErrorMessage = PokerTHMessage_PokerTHMessageType_Type_ErrorMessage; + static inline bool PokerTHMessageType_IsValid(int value) { + return PokerTHMessage_PokerTHMessageType_IsValid(value); + } + static const PokerTHMessageType PokerTHMessageType_MIN = + PokerTHMessage_PokerTHMessageType_PokerTHMessageType_MIN; + static const PokerTHMessageType PokerTHMessageType_MAX = + PokerTHMessage_PokerTHMessageType_PokerTHMessageType_MAX; + static const int PokerTHMessageType_ARRAYSIZE = + PokerTHMessage_PokerTHMessageType_PokerTHMessageType_ARRAYSIZE; + static inline const ::google::protobuf::EnumDescriptor* + PokerTHMessageType_descriptor() { + return PokerTHMessage_PokerTHMessageType_descriptor(); + } + static inline const ::std::string& PokerTHMessageType_Name(PokerTHMessageType value) { + return PokerTHMessage_PokerTHMessageType_Name(value); + } + static inline bool PokerTHMessageType_Parse(const ::std::string& name, + PokerTHMessageType* value) { + return PokerTHMessage_PokerTHMessageType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + // required .PokerTHMessage.PokerTHMessageType messageType = 1; + inline bool has_messagetype() const; + inline void clear_messagetype(); + static const int kMessageTypeFieldNumber = 1; + inline ::PokerTHMessage_PokerTHMessageType messagetype() const; + inline void set_messagetype(::PokerTHMessage_PokerTHMessageType value); + + // optional .AnnounceMessage announceMessage = 2; + inline bool has_announcemessage() const; + inline void clear_announcemessage(); + static const int kAnnounceMessageFieldNumber = 2; + inline const ::AnnounceMessage& announcemessage() const; + inline ::AnnounceMessage* mutable_announcemessage(); + inline ::AnnounceMessage* release_announcemessage(); + + // optional .InitMessage initMessage = 3; + inline bool has_initmessage() const; + inline void clear_initmessage(); + static const int kInitMessageFieldNumber = 3; + inline const ::InitMessage& initmessage() const; + inline ::InitMessage* mutable_initmessage(); + inline ::InitMessage* release_initmessage(); + + // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; + inline bool has_authserverchallengemessage() const; + inline void clear_authserverchallengemessage(); + static const int kAuthServerChallengeMessageFieldNumber = 4; + inline const ::AuthServerChallengeMessage& authserverchallengemessage() const; + inline ::AuthServerChallengeMessage* mutable_authserverchallengemessage(); + inline ::AuthServerChallengeMessage* release_authserverchallengemessage(); + + // optional .AuthClientResponseMessage authClientResponseMessage = 5; + inline bool has_authclientresponsemessage() const; + inline void clear_authclientresponsemessage(); + static const int kAuthClientResponseMessageFieldNumber = 5; + inline const ::AuthClientResponseMessage& authclientresponsemessage() const; + inline ::AuthClientResponseMessage* mutable_authclientresponsemessage(); + inline ::AuthClientResponseMessage* release_authclientresponsemessage(); + + // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; + inline bool has_authserververificationmessage() const; + inline void clear_authserververificationmessage(); + static const int kAuthServerVerificationMessageFieldNumber = 6; + inline const ::AuthServerVerificationMessage& authserververificationmessage() const; + inline ::AuthServerVerificationMessage* mutable_authserververificationmessage(); + inline ::AuthServerVerificationMessage* release_authserververificationmessage(); + + // optional .InitAckMessage initAckMessage = 7; + inline bool has_initackmessage() const; + inline void clear_initackmessage(); + static const int kInitAckMessageFieldNumber = 7; + inline const ::InitAckMessage& initackmessage() const; + inline ::InitAckMessage* mutable_initackmessage(); + inline ::InitAckMessage* release_initackmessage(); + + // optional .AvatarRequestMessage avatarRequestMessage = 8; + inline bool has_avatarrequestmessage() const; + inline void clear_avatarrequestmessage(); + static const int kAvatarRequestMessageFieldNumber = 8; + inline const ::AvatarRequestMessage& avatarrequestmessage() const; + inline ::AvatarRequestMessage* mutable_avatarrequestmessage(); + inline ::AvatarRequestMessage* release_avatarrequestmessage(); + + // optional .AvatarHeaderMessage avatarHeaderMessage = 9; + inline bool has_avatarheadermessage() const; + inline void clear_avatarheadermessage(); + static const int kAvatarHeaderMessageFieldNumber = 9; + inline const ::AvatarHeaderMessage& avatarheadermessage() const; + inline ::AvatarHeaderMessage* mutable_avatarheadermessage(); + inline ::AvatarHeaderMessage* release_avatarheadermessage(); + + // optional .AvatarDataMessage avatarDataMessage = 10; + inline bool has_avatardatamessage() const; + inline void clear_avatardatamessage(); + static const int kAvatarDataMessageFieldNumber = 10; + inline const ::AvatarDataMessage& avatardatamessage() const; + inline ::AvatarDataMessage* mutable_avatardatamessage(); + inline ::AvatarDataMessage* release_avatardatamessage(); + + // optional .AvatarEndMessage avatarEndMessage = 11; + inline bool has_avatarendmessage() const; + inline void clear_avatarendmessage(); + static const int kAvatarEndMessageFieldNumber = 11; + inline const ::AvatarEndMessage& avatarendmessage() const; + inline ::AvatarEndMessage* mutable_avatarendmessage(); + inline ::AvatarEndMessage* release_avatarendmessage(); + + // optional .UnknownAvatarMessage unknownAvatarMessage = 12; + inline bool has_unknownavatarmessage() const; + inline void clear_unknownavatarmessage(); + static const int kUnknownAvatarMessageFieldNumber = 12; + inline const ::UnknownAvatarMessage& unknownavatarmessage() const; + inline ::UnknownAvatarMessage* mutable_unknownavatarmessage(); + inline ::UnknownAvatarMessage* release_unknownavatarmessage(); + + // optional .PlayerListMessage playerListMessage = 13; + inline bool has_playerlistmessage() const; + inline void clear_playerlistmessage(); + static const int kPlayerListMessageFieldNumber = 13; + inline const ::PlayerListMessage& playerlistmessage() const; + inline ::PlayerListMessage* mutable_playerlistmessage(); + inline ::PlayerListMessage* release_playerlistmessage(); + + // optional .GameListNewMessage gameListNewMessage = 14; + inline bool has_gamelistnewmessage() const; + inline void clear_gamelistnewmessage(); + static const int kGameListNewMessageFieldNumber = 14; + inline const ::GameListNewMessage& gamelistnewmessage() const; + inline ::GameListNewMessage* mutable_gamelistnewmessage(); + inline ::GameListNewMessage* release_gamelistnewmessage(); + + // optional .GameListUpdateMessage gameListUpdateMessage = 15; + inline bool has_gamelistupdatemessage() const; + inline void clear_gamelistupdatemessage(); + static const int kGameListUpdateMessageFieldNumber = 15; + inline const ::GameListUpdateMessage& gamelistupdatemessage() const; + inline ::GameListUpdateMessage* mutable_gamelistupdatemessage(); + inline ::GameListUpdateMessage* release_gamelistupdatemessage(); + + // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; + inline bool has_gamelistplayerjoinedmessage() const; + inline void clear_gamelistplayerjoinedmessage(); + static const int kGameListPlayerJoinedMessageFieldNumber = 16; + inline const ::GameListPlayerJoinedMessage& gamelistplayerjoinedmessage() const; + inline ::GameListPlayerJoinedMessage* mutable_gamelistplayerjoinedmessage(); + inline ::GameListPlayerJoinedMessage* release_gamelistplayerjoinedmessage(); + + // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; + inline bool has_gamelistplayerleftmessage() const; + inline void clear_gamelistplayerleftmessage(); + static const int kGameListPlayerLeftMessageFieldNumber = 17; + inline const ::GameListPlayerLeftMessage& gamelistplayerleftmessage() const; + inline ::GameListPlayerLeftMessage* mutable_gamelistplayerleftmessage(); + inline ::GameListPlayerLeftMessage* release_gamelistplayerleftmessage(); + + // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; + inline bool has_gamelistadminchangedmessage() const; + inline void clear_gamelistadminchangedmessage(); + static const int kGameListAdminChangedMessageFieldNumber = 18; + inline const ::GameListAdminChangedMessage& gamelistadminchangedmessage() const; + inline ::GameListAdminChangedMessage* mutable_gamelistadminchangedmessage(); + inline ::GameListAdminChangedMessage* release_gamelistadminchangedmessage(); + + // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; + inline bool has_playerinforequestmessage() const; + inline void clear_playerinforequestmessage(); + static const int kPlayerInfoRequestMessageFieldNumber = 19; + inline const ::PlayerInfoRequestMessage& playerinforequestmessage() const; + inline ::PlayerInfoRequestMessage* mutable_playerinforequestmessage(); + inline ::PlayerInfoRequestMessage* release_playerinforequestmessage(); + + // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; + inline bool has_playerinforeplymessage() const; + inline void clear_playerinforeplymessage(); + static const int kPlayerInfoReplyMessageFieldNumber = 20; + inline const ::PlayerInfoReplyMessage& playerinforeplymessage() const; + inline ::PlayerInfoReplyMessage* mutable_playerinforeplymessage(); + inline ::PlayerInfoReplyMessage* release_playerinforeplymessage(); + + // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; + inline bool has_subscriptionrequestmessage() const; + inline void clear_subscriptionrequestmessage(); + static const int kSubscriptionRequestMessageFieldNumber = 21; + inline const ::SubscriptionRequestMessage& subscriptionrequestmessage() const; + inline ::SubscriptionRequestMessage* mutable_subscriptionrequestmessage(); + inline ::SubscriptionRequestMessage* release_subscriptionrequestmessage(); + + // optional .JoinExistingGameMessage joinExistingGameMessage = 22; + inline bool has_joinexistinggamemessage() const; + inline void clear_joinexistinggamemessage(); + static const int kJoinExistingGameMessageFieldNumber = 22; + inline const ::JoinExistingGameMessage& joinexistinggamemessage() const; + inline ::JoinExistingGameMessage* mutable_joinexistinggamemessage(); + inline ::JoinExistingGameMessage* release_joinexistinggamemessage(); + + // optional .JoinNewGameMessage joinNewGameMessage = 23; + inline bool has_joinnewgamemessage() const; + inline void clear_joinnewgamemessage(); + static const int kJoinNewGameMessageFieldNumber = 23; + inline const ::JoinNewGameMessage& joinnewgamemessage() const; + inline ::JoinNewGameMessage* mutable_joinnewgamemessage(); + inline ::JoinNewGameMessage* release_joinnewgamemessage(); + + // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; + inline bool has_rejoinexistinggamemessage() const; + inline void clear_rejoinexistinggamemessage(); + static const int kRejoinExistingGameMessageFieldNumber = 24; + inline const ::RejoinExistingGameMessage& rejoinexistinggamemessage() const; + inline ::RejoinExistingGameMessage* mutable_rejoinexistinggamemessage(); + inline ::RejoinExistingGameMessage* release_rejoinexistinggamemessage(); + + // optional .JoinGameAckMessage joinGameAckMessage = 25; + inline bool has_joingameackmessage() const; + inline void clear_joingameackmessage(); + static const int kJoinGameAckMessageFieldNumber = 25; + inline const ::JoinGameAckMessage& joingameackmessage() const; + inline ::JoinGameAckMessage* mutable_joingameackmessage(); + inline ::JoinGameAckMessage* release_joingameackmessage(); + + // optional .JoinGameFailedMessage joinGameFailedMessage = 26; + inline bool has_joingamefailedmessage() const; + inline void clear_joingamefailedmessage(); + static const int kJoinGameFailedMessageFieldNumber = 26; + inline const ::JoinGameFailedMessage& joingamefailedmessage() const; + inline ::JoinGameFailedMessage* mutable_joingamefailedmessage(); + inline ::JoinGameFailedMessage* release_joingamefailedmessage(); + + // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; + inline bool has_gameplayerjoinedmessage() const; + inline void clear_gameplayerjoinedmessage(); + static const int kGamePlayerJoinedMessageFieldNumber = 27; + inline const ::GamePlayerJoinedMessage& gameplayerjoinedmessage() const; + inline ::GamePlayerJoinedMessage* mutable_gameplayerjoinedmessage(); + inline ::GamePlayerJoinedMessage* release_gameplayerjoinedmessage(); + + // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; + inline bool has_gameplayerleftmessage() const; + inline void clear_gameplayerleftmessage(); + static const int kGamePlayerLeftMessageFieldNumber = 28; + inline const ::GamePlayerLeftMessage& gameplayerleftmessage() const; + inline ::GamePlayerLeftMessage* mutable_gameplayerleftmessage(); + inline ::GamePlayerLeftMessage* release_gameplayerleftmessage(); + + // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; + inline bool has_gameadminchangedmessage() const; + inline void clear_gameadminchangedmessage(); + static const int kGameAdminChangedMessageFieldNumber = 29; + inline const ::GameAdminChangedMessage& gameadminchangedmessage() const; + inline ::GameAdminChangedMessage* mutable_gameadminchangedmessage(); + inline ::GameAdminChangedMessage* release_gameadminchangedmessage(); + + // optional .RemovedFromGameMessage removedFromGameMessage = 30; + inline bool has_removedfromgamemessage() const; + inline void clear_removedfromgamemessage(); + static const int kRemovedFromGameMessageFieldNumber = 30; + inline const ::RemovedFromGameMessage& removedfromgamemessage() const; + inline ::RemovedFromGameMessage* mutable_removedfromgamemessage(); + inline ::RemovedFromGameMessage* release_removedfromgamemessage(); + + // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; + inline bool has_kickplayerrequestmessage() const; + inline void clear_kickplayerrequestmessage(); + static const int kKickPlayerRequestMessageFieldNumber = 31; + inline const ::KickPlayerRequestMessage& kickplayerrequestmessage() const; + inline ::KickPlayerRequestMessage* mutable_kickplayerrequestmessage(); + inline ::KickPlayerRequestMessage* release_kickplayerrequestmessage(); + + // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; + inline bool has_leavegamerequestmessage() const; + inline void clear_leavegamerequestmessage(); + static const int kLeaveGameRequestMessageFieldNumber = 32; + inline const ::LeaveGameRequestMessage& leavegamerequestmessage() const; + inline ::LeaveGameRequestMessage* mutable_leavegamerequestmessage(); + inline ::LeaveGameRequestMessage* release_leavegamerequestmessage(); + + // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; + inline bool has_inviteplayertogamemessage() const; + inline void clear_inviteplayertogamemessage(); + static const int kInvitePlayerToGameMessageFieldNumber = 33; + inline const ::InvitePlayerToGameMessage& inviteplayertogamemessage() const; + inline ::InvitePlayerToGameMessage* mutable_inviteplayertogamemessage(); + inline ::InvitePlayerToGameMessage* release_inviteplayertogamemessage(); + + // optional .InviteNotifyMessage inviteNotifyMessage = 34; + inline bool has_invitenotifymessage() const; + inline void clear_invitenotifymessage(); + static const int kInviteNotifyMessageFieldNumber = 34; + inline const ::InviteNotifyMessage& invitenotifymessage() const; + inline ::InviteNotifyMessage* mutable_invitenotifymessage(); + inline ::InviteNotifyMessage* release_invitenotifymessage(); + + // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; + inline bool has_rejectgameinvitationmessage() const; + inline void clear_rejectgameinvitationmessage(); + static const int kRejectGameInvitationMessageFieldNumber = 35; + inline const ::RejectGameInvitationMessage& rejectgameinvitationmessage() const; + inline ::RejectGameInvitationMessage* mutable_rejectgameinvitationmessage(); + inline ::RejectGameInvitationMessage* release_rejectgameinvitationmessage(); + + // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; + inline bool has_rejectinvnotifymessage() const; + inline void clear_rejectinvnotifymessage(); + static const int kRejectInvNotifyMessageFieldNumber = 36; + inline const ::RejectInvNotifyMessage& rejectinvnotifymessage() const; + inline ::RejectInvNotifyMessage* mutable_rejectinvnotifymessage(); + inline ::RejectInvNotifyMessage* release_rejectinvnotifymessage(); + + // optional .StartEventMessage startEventMessage = 37; + inline bool has_starteventmessage() const; + inline void clear_starteventmessage(); + static const int kStartEventMessageFieldNumber = 37; + inline const ::StartEventMessage& starteventmessage() const; + inline ::StartEventMessage* mutable_starteventmessage(); + inline ::StartEventMessage* release_starteventmessage(); + + // optional .StartEventAckMessage startEventAckMessage = 38; + inline bool has_starteventackmessage() const; + inline void clear_starteventackmessage(); + static const int kStartEventAckMessageFieldNumber = 38; + inline const ::StartEventAckMessage& starteventackmessage() const; + inline ::StartEventAckMessage* mutable_starteventackmessage(); + inline ::StartEventAckMessage* release_starteventackmessage(); + + // optional .GameStartInitialMessage gameStartInitialMessage = 39; + inline bool has_gamestartinitialmessage() const; + inline void clear_gamestartinitialmessage(); + static const int kGameStartInitialMessageFieldNumber = 39; + inline const ::GameStartInitialMessage& gamestartinitialmessage() const; + inline ::GameStartInitialMessage* mutable_gamestartinitialmessage(); + inline ::GameStartInitialMessage* release_gamestartinitialmessage(); + + // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; + inline bool has_gamestartrejoinmessage() const; + inline void clear_gamestartrejoinmessage(); + static const int kGameStartRejoinMessageFieldNumber = 40; + inline const ::GameStartRejoinMessage& gamestartrejoinmessage() const; + inline ::GameStartRejoinMessage* mutable_gamestartrejoinmessage(); + inline ::GameStartRejoinMessage* release_gamestartrejoinmessage(); + + // optional .HandStartMessage handStartMessage = 41; + inline bool has_handstartmessage() const; + inline void clear_handstartmessage(); + static const int kHandStartMessageFieldNumber = 41; + inline const ::HandStartMessage& handstartmessage() const; + inline ::HandStartMessage* mutable_handstartmessage(); + inline ::HandStartMessage* release_handstartmessage(); + + // optional .PlayersTurnMessage playersTurnMessage = 42; + inline bool has_playersturnmessage() const; + inline void clear_playersturnmessage(); + static const int kPlayersTurnMessageFieldNumber = 42; + inline const ::PlayersTurnMessage& playersturnmessage() const; + inline ::PlayersTurnMessage* mutable_playersturnmessage(); + inline ::PlayersTurnMessage* release_playersturnmessage(); + + // optional .MyActionRequestMessage myActionRequestMessage = 43; + inline bool has_myactionrequestmessage() const; + inline void clear_myactionrequestmessage(); + static const int kMyActionRequestMessageFieldNumber = 43; + inline const ::MyActionRequestMessage& myactionrequestmessage() const; + inline ::MyActionRequestMessage* mutable_myactionrequestmessage(); + inline ::MyActionRequestMessage* release_myactionrequestmessage(); + + // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; + inline bool has_youractionrejectedmessage() const; + inline void clear_youractionrejectedmessage(); + static const int kYourActionRejectedMessageFieldNumber = 44; + inline const ::YourActionRejectedMessage& youractionrejectedmessage() const; + inline ::YourActionRejectedMessage* mutable_youractionrejectedmessage(); + inline ::YourActionRejectedMessage* release_youractionrejectedmessage(); + + // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; + inline bool has_playersactiondonemessage() const; + inline void clear_playersactiondonemessage(); + static const int kPlayersActionDoneMessageFieldNumber = 45; + inline const ::PlayersActionDoneMessage& playersactiondonemessage() const; + inline ::PlayersActionDoneMessage* mutable_playersactiondonemessage(); + inline ::PlayersActionDoneMessage* release_playersactiondonemessage(); + + // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; + inline bool has_dealflopcardsmessage() const; + inline void clear_dealflopcardsmessage(); + static const int kDealFlopCardsMessageFieldNumber = 46; + inline const ::DealFlopCardsMessage& dealflopcardsmessage() const; + inline ::DealFlopCardsMessage* mutable_dealflopcardsmessage(); + inline ::DealFlopCardsMessage* release_dealflopcardsmessage(); + + // optional .DealTurnCardMessage dealTurnCardMessage = 47; + inline bool has_dealturncardmessage() const; + inline void clear_dealturncardmessage(); + static const int kDealTurnCardMessageFieldNumber = 47; + inline const ::DealTurnCardMessage& dealturncardmessage() const; + inline ::DealTurnCardMessage* mutable_dealturncardmessage(); + inline ::DealTurnCardMessage* release_dealturncardmessage(); + + // optional .DealRiverCardMessage dealRiverCardMessage = 48; + inline bool has_dealrivercardmessage() const; + inline void clear_dealrivercardmessage(); + static const int kDealRiverCardMessageFieldNumber = 48; + inline const ::DealRiverCardMessage& dealrivercardmessage() const; + inline ::DealRiverCardMessage* mutable_dealrivercardmessage(); + inline ::DealRiverCardMessage* release_dealrivercardmessage(); + + // optional .AllInShowCardsMessage allInShowCardsMessage = 49; + inline bool has_allinshowcardsmessage() const; + inline void clear_allinshowcardsmessage(); + static const int kAllInShowCardsMessageFieldNumber = 49; + inline const ::AllInShowCardsMessage& allinshowcardsmessage() const; + inline ::AllInShowCardsMessage* mutable_allinshowcardsmessage(); + inline ::AllInShowCardsMessage* release_allinshowcardsmessage(); + + // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; + inline bool has_endofhandshowcardsmessage() const; + inline void clear_endofhandshowcardsmessage(); + static const int kEndOfHandShowCardsMessageFieldNumber = 50; + inline const ::EndOfHandShowCardsMessage& endofhandshowcardsmessage() const; + inline ::EndOfHandShowCardsMessage* mutable_endofhandshowcardsmessage(); + inline ::EndOfHandShowCardsMessage* release_endofhandshowcardsmessage(); + + // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; + inline bool has_endofhandhidecardsmessage() const; + inline void clear_endofhandhidecardsmessage(); + static const int kEndOfHandHideCardsMessageFieldNumber = 51; + inline const ::EndOfHandHideCardsMessage& endofhandhidecardsmessage() const; + inline ::EndOfHandHideCardsMessage* mutable_endofhandhidecardsmessage(); + inline ::EndOfHandHideCardsMessage* release_endofhandhidecardsmessage(); + + // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; + inline bool has_showmycardsrequestmessage() const; + inline void clear_showmycardsrequestmessage(); + static const int kShowMyCardsRequestMessageFieldNumber = 52; + inline const ::ShowMyCardsRequestMessage& showmycardsrequestmessage() const; + inline ::ShowMyCardsRequestMessage* mutable_showmycardsrequestmessage(); + inline ::ShowMyCardsRequestMessage* release_showmycardsrequestmessage(); + + // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; + inline bool has_afterhandshowcardsmessage() const; + inline void clear_afterhandshowcardsmessage(); + static const int kAfterHandShowCardsMessageFieldNumber = 53; + inline const ::AfterHandShowCardsMessage& afterhandshowcardsmessage() const; + inline ::AfterHandShowCardsMessage* mutable_afterhandshowcardsmessage(); + inline ::AfterHandShowCardsMessage* release_afterhandshowcardsmessage(); + + // optional .EndOfGameMessage endOfGameMessage = 54; + inline bool has_endofgamemessage() const; + inline void clear_endofgamemessage(); + static const int kEndOfGameMessageFieldNumber = 54; + inline const ::EndOfGameMessage& endofgamemessage() const; + inline ::EndOfGameMessage* mutable_endofgamemessage(); + inline ::EndOfGameMessage* release_endofgamemessage(); + + // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; + inline bool has_playeridchangedmessage() const; + inline void clear_playeridchangedmessage(); + static const int kPlayerIdChangedMessageFieldNumber = 55; + inline const ::PlayerIdChangedMessage& playeridchangedmessage() const; + inline ::PlayerIdChangedMessage* mutable_playeridchangedmessage(); + inline ::PlayerIdChangedMessage* release_playeridchangedmessage(); + + // optional .AskKickPlayerMessage askKickPlayerMessage = 56; + inline bool has_askkickplayermessage() const; + inline void clear_askkickplayermessage(); + static const int kAskKickPlayerMessageFieldNumber = 56; + inline const ::AskKickPlayerMessage& askkickplayermessage() const; + inline ::AskKickPlayerMessage* mutable_askkickplayermessage(); + inline ::AskKickPlayerMessage* release_askkickplayermessage(); + + // optional .AskKickDeniedMessage askKickDeniedMessage = 57; + inline bool has_askkickdeniedmessage() const; + inline void clear_askkickdeniedmessage(); + static const int kAskKickDeniedMessageFieldNumber = 57; + inline const ::AskKickDeniedMessage& askkickdeniedmessage() const; + inline ::AskKickDeniedMessage* mutable_askkickdeniedmessage(); + inline ::AskKickDeniedMessage* release_askkickdeniedmessage(); + + // optional .StartKickPetitionMessage startKickPetitionMessage = 58; + inline bool has_startkickpetitionmessage() const; + inline void clear_startkickpetitionmessage(); + static const int kStartKickPetitionMessageFieldNumber = 58; + inline const ::StartKickPetitionMessage& startkickpetitionmessage() const; + inline ::StartKickPetitionMessage* mutable_startkickpetitionmessage(); + inline ::StartKickPetitionMessage* release_startkickpetitionmessage(); + + // optional .VoteKickRequestMessage voteKickRequestMessage = 59; + inline bool has_votekickrequestmessage() const; + inline void clear_votekickrequestmessage(); + static const int kVoteKickRequestMessageFieldNumber = 59; + inline const ::VoteKickRequestMessage& votekickrequestmessage() const; + inline ::VoteKickRequestMessage* mutable_votekickrequestmessage(); + inline ::VoteKickRequestMessage* release_votekickrequestmessage(); + + // optional .VoteKickReplyMessage voteKickReplyMessage = 60; + inline bool has_votekickreplymessage() const; + inline void clear_votekickreplymessage(); + static const int kVoteKickReplyMessageFieldNumber = 60; + inline const ::VoteKickReplyMessage& votekickreplymessage() const; + inline ::VoteKickReplyMessage* mutable_votekickreplymessage(); + inline ::VoteKickReplyMessage* release_votekickreplymessage(); + + // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; + inline bool has_kickpetitionupdatemessage() const; + inline void clear_kickpetitionupdatemessage(); + static const int kKickPetitionUpdateMessageFieldNumber = 61; + inline const ::KickPetitionUpdateMessage& kickpetitionupdatemessage() const; + inline ::KickPetitionUpdateMessage* mutable_kickpetitionupdatemessage(); + inline ::KickPetitionUpdateMessage* release_kickpetitionupdatemessage(); + + // optional .EndKickPetitionMessage endKickPetitionMessage = 62; + inline bool has_endkickpetitionmessage() const; + inline void clear_endkickpetitionmessage(); + static const int kEndKickPetitionMessageFieldNumber = 62; + inline const ::EndKickPetitionMessage& endkickpetitionmessage() const; + inline ::EndKickPetitionMessage* mutable_endkickpetitionmessage(); + inline ::EndKickPetitionMessage* release_endkickpetitionmessage(); + + // optional .StatisticsMessage statisticsMessage = 63; + inline bool has_statisticsmessage() const; + inline void clear_statisticsmessage(); + static const int kStatisticsMessageFieldNumber = 63; + inline const ::StatisticsMessage& statisticsmessage() const; + inline ::StatisticsMessage* mutable_statisticsmessage(); + inline ::StatisticsMessage* release_statisticsmessage(); + + // optional .ChatRequestMessage chatRequestMessage = 64; + inline bool has_chatrequestmessage() const; + inline void clear_chatrequestmessage(); + static const int kChatRequestMessageFieldNumber = 64; + inline const ::ChatRequestMessage& chatrequestmessage() const; + inline ::ChatRequestMessage* mutable_chatrequestmessage(); + inline ::ChatRequestMessage* release_chatrequestmessage(); + + // optional .ChatMessage chatMessage = 65; + inline bool has_chatmessage() const; + inline void clear_chatmessage(); + static const int kChatMessageFieldNumber = 65; + inline const ::ChatMessage& chatmessage() const; + inline ::ChatMessage* mutable_chatmessage(); + inline ::ChatMessage* release_chatmessage(); + + // optional .ChatRejectMessage chatRejectMessage = 66; + inline bool has_chatrejectmessage() const; + inline void clear_chatrejectmessage(); + static const int kChatRejectMessageFieldNumber = 66; + inline const ::ChatRejectMessage& chatrejectmessage() const; + inline ::ChatRejectMessage* mutable_chatrejectmessage(); + inline ::ChatRejectMessage* release_chatrejectmessage(); + + // optional .DialogMessage dialogMessage = 67; + inline bool has_dialogmessage() const; + inline void clear_dialogmessage(); + static const int kDialogMessageFieldNumber = 67; + inline const ::DialogMessage& dialogmessage() const; + inline ::DialogMessage* mutable_dialogmessage(); + inline ::DialogMessage* release_dialogmessage(); + + // optional .TimeoutWarningMessage timeoutWarningMessage = 68; + inline bool has_timeoutwarningmessage() const; + inline void clear_timeoutwarningmessage(); + static const int kTimeoutWarningMessageFieldNumber = 68; + inline const ::TimeoutWarningMessage& timeoutwarningmessage() const; + inline ::TimeoutWarningMessage* mutable_timeoutwarningmessage(); + inline ::TimeoutWarningMessage* release_timeoutwarningmessage(); + + // optional .ResetTimeoutMessage resetTimeoutMessage = 69; + inline bool has_resettimeoutmessage() const; + inline void clear_resettimeoutmessage(); + static const int kResetTimeoutMessageFieldNumber = 69; + inline const ::ResetTimeoutMessage& resettimeoutmessage() const; + inline ::ResetTimeoutMessage* mutable_resettimeoutmessage(); + inline ::ResetTimeoutMessage* release_resettimeoutmessage(); + + // optional .ReportAvatarMessage reportAvatarMessage = 70; + inline bool has_reportavatarmessage() const; + inline void clear_reportavatarmessage(); + static const int kReportAvatarMessageFieldNumber = 70; + inline const ::ReportAvatarMessage& reportavatarmessage() const; + inline ::ReportAvatarMessage* mutable_reportavatarmessage(); + inline ::ReportAvatarMessage* release_reportavatarmessage(); + + // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; + inline bool has_reportavatarackmessage() const; + inline void clear_reportavatarackmessage(); + static const int kReportAvatarAckMessageFieldNumber = 71; + inline const ::ReportAvatarAckMessage& reportavatarackmessage() const; + inline ::ReportAvatarAckMessage* mutable_reportavatarackmessage(); + inline ::ReportAvatarAckMessage* release_reportavatarackmessage(); + + // optional .ReportGameMessage reportGameMessage = 72; + inline bool has_reportgamemessage() const; + inline void clear_reportgamemessage(); + static const int kReportGameMessageFieldNumber = 72; + inline const ::ReportGameMessage& reportgamemessage() const; + inline ::ReportGameMessage* mutable_reportgamemessage(); + inline ::ReportGameMessage* release_reportgamemessage(); + + // optional .ReportGameAckMessage reportGameAckMessage = 73; + inline bool has_reportgameackmessage() const; + inline void clear_reportgameackmessage(); + static const int kReportGameAckMessageFieldNumber = 73; + inline const ::ReportGameAckMessage& reportgameackmessage() const; + inline ::ReportGameAckMessage* mutable_reportgameackmessage(); + inline ::ReportGameAckMessage* release_reportgameackmessage(); + + // optional .ErrorMessage errorMessage = 74; + inline bool has_errormessage() const; + inline void clear_errormessage(); + static const int kErrorMessageFieldNumber = 74; + inline const ::ErrorMessage& errormessage() const; + inline ::ErrorMessage* mutable_errormessage(); + inline ::ErrorMessage* release_errormessage(); + + // @@protoc_insertion_point(class_scope:PokerTHMessage) + private: + inline void set_has_messagetype(); + inline void clear_has_messagetype(); + inline void set_has_announcemessage(); + inline void clear_has_announcemessage(); + inline void set_has_initmessage(); + inline void clear_has_initmessage(); + inline void set_has_authserverchallengemessage(); + inline void clear_has_authserverchallengemessage(); + inline void set_has_authclientresponsemessage(); + inline void clear_has_authclientresponsemessage(); + inline void set_has_authserververificationmessage(); + inline void clear_has_authserververificationmessage(); + inline void set_has_initackmessage(); + inline void clear_has_initackmessage(); + inline void set_has_avatarrequestmessage(); + inline void clear_has_avatarrequestmessage(); + inline void set_has_avatarheadermessage(); + inline void clear_has_avatarheadermessage(); + inline void set_has_avatardatamessage(); + inline void clear_has_avatardatamessage(); + inline void set_has_avatarendmessage(); + inline void clear_has_avatarendmessage(); + inline void set_has_unknownavatarmessage(); + inline void clear_has_unknownavatarmessage(); + inline void set_has_playerlistmessage(); + inline void clear_has_playerlistmessage(); + inline void set_has_gamelistnewmessage(); + inline void clear_has_gamelistnewmessage(); + inline void set_has_gamelistupdatemessage(); + inline void clear_has_gamelistupdatemessage(); + inline void set_has_gamelistplayerjoinedmessage(); + inline void clear_has_gamelistplayerjoinedmessage(); + inline void set_has_gamelistplayerleftmessage(); + inline void clear_has_gamelistplayerleftmessage(); + inline void set_has_gamelistadminchangedmessage(); + inline void clear_has_gamelistadminchangedmessage(); + inline void set_has_playerinforequestmessage(); + inline void clear_has_playerinforequestmessage(); + inline void set_has_playerinforeplymessage(); + inline void clear_has_playerinforeplymessage(); + inline void set_has_subscriptionrequestmessage(); + inline void clear_has_subscriptionrequestmessage(); + inline void set_has_joinexistinggamemessage(); + inline void clear_has_joinexistinggamemessage(); + inline void set_has_joinnewgamemessage(); + inline void clear_has_joinnewgamemessage(); + inline void set_has_rejoinexistinggamemessage(); + inline void clear_has_rejoinexistinggamemessage(); + inline void set_has_joingameackmessage(); + inline void clear_has_joingameackmessage(); + inline void set_has_joingamefailedmessage(); + inline void clear_has_joingamefailedmessage(); + inline void set_has_gameplayerjoinedmessage(); + inline void clear_has_gameplayerjoinedmessage(); + inline void set_has_gameplayerleftmessage(); + inline void clear_has_gameplayerleftmessage(); + inline void set_has_gameadminchangedmessage(); + inline void clear_has_gameadminchangedmessage(); + inline void set_has_removedfromgamemessage(); + inline void clear_has_removedfromgamemessage(); + inline void set_has_kickplayerrequestmessage(); + inline void clear_has_kickplayerrequestmessage(); + inline void set_has_leavegamerequestmessage(); + inline void clear_has_leavegamerequestmessage(); + inline void set_has_inviteplayertogamemessage(); + inline void clear_has_inviteplayertogamemessage(); + inline void set_has_invitenotifymessage(); + inline void clear_has_invitenotifymessage(); + inline void set_has_rejectgameinvitationmessage(); + inline void clear_has_rejectgameinvitationmessage(); + inline void set_has_rejectinvnotifymessage(); + inline void clear_has_rejectinvnotifymessage(); + inline void set_has_starteventmessage(); + inline void clear_has_starteventmessage(); + inline void set_has_starteventackmessage(); + inline void clear_has_starteventackmessage(); + inline void set_has_gamestartinitialmessage(); + inline void clear_has_gamestartinitialmessage(); + inline void set_has_gamestartrejoinmessage(); + inline void clear_has_gamestartrejoinmessage(); + inline void set_has_handstartmessage(); + inline void clear_has_handstartmessage(); + inline void set_has_playersturnmessage(); + inline void clear_has_playersturnmessage(); + inline void set_has_myactionrequestmessage(); + inline void clear_has_myactionrequestmessage(); + inline void set_has_youractionrejectedmessage(); + inline void clear_has_youractionrejectedmessage(); + inline void set_has_playersactiondonemessage(); + inline void clear_has_playersactiondonemessage(); + inline void set_has_dealflopcardsmessage(); + inline void clear_has_dealflopcardsmessage(); + inline void set_has_dealturncardmessage(); + inline void clear_has_dealturncardmessage(); + inline void set_has_dealrivercardmessage(); + inline void clear_has_dealrivercardmessage(); + inline void set_has_allinshowcardsmessage(); + inline void clear_has_allinshowcardsmessage(); + inline void set_has_endofhandshowcardsmessage(); + inline void clear_has_endofhandshowcardsmessage(); + inline void set_has_endofhandhidecardsmessage(); + inline void clear_has_endofhandhidecardsmessage(); + inline void set_has_showmycardsrequestmessage(); + inline void clear_has_showmycardsrequestmessage(); + inline void set_has_afterhandshowcardsmessage(); + inline void clear_has_afterhandshowcardsmessage(); + inline void set_has_endofgamemessage(); + inline void clear_has_endofgamemessage(); + inline void set_has_playeridchangedmessage(); + inline void clear_has_playeridchangedmessage(); + inline void set_has_askkickplayermessage(); + inline void clear_has_askkickplayermessage(); + inline void set_has_askkickdeniedmessage(); + inline void clear_has_askkickdeniedmessage(); + inline void set_has_startkickpetitionmessage(); + inline void clear_has_startkickpetitionmessage(); + inline void set_has_votekickrequestmessage(); + inline void clear_has_votekickrequestmessage(); + inline void set_has_votekickreplymessage(); + inline void clear_has_votekickreplymessage(); + inline void set_has_kickpetitionupdatemessage(); + inline void clear_has_kickpetitionupdatemessage(); + inline void set_has_endkickpetitionmessage(); + inline void clear_has_endkickpetitionmessage(); + inline void set_has_statisticsmessage(); + inline void clear_has_statisticsmessage(); + inline void set_has_chatrequestmessage(); + inline void clear_has_chatrequestmessage(); + inline void set_has_chatmessage(); + inline void clear_has_chatmessage(); + inline void set_has_chatrejectmessage(); + inline void clear_has_chatrejectmessage(); + inline void set_has_dialogmessage(); + inline void clear_has_dialogmessage(); + inline void set_has_timeoutwarningmessage(); + inline void clear_has_timeoutwarningmessage(); + inline void set_has_resettimeoutmessage(); + inline void clear_has_resettimeoutmessage(); + inline void set_has_reportavatarmessage(); + inline void clear_has_reportavatarmessage(); + inline void set_has_reportavatarackmessage(); + inline void clear_has_reportavatarackmessage(); + inline void set_has_reportgamemessage(); + inline void clear_has_reportgamemessage(); + inline void set_has_reportgameackmessage(); + inline void clear_has_reportgameackmessage(); + inline void set_has_errormessage(); + inline void clear_has_errormessage(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::AnnounceMessage* announcemessage_; + ::InitMessage* initmessage_; + ::AuthServerChallengeMessage* authserverchallengemessage_; + ::AuthClientResponseMessage* authclientresponsemessage_; + ::AuthServerVerificationMessage* authserververificationmessage_; + ::InitAckMessage* initackmessage_; + ::AvatarRequestMessage* avatarrequestmessage_; + ::AvatarHeaderMessage* avatarheadermessage_; + ::AvatarDataMessage* avatardatamessage_; + ::AvatarEndMessage* avatarendmessage_; + ::UnknownAvatarMessage* unknownavatarmessage_; + ::PlayerListMessage* playerlistmessage_; + ::GameListNewMessage* gamelistnewmessage_; + ::GameListUpdateMessage* gamelistupdatemessage_; + ::GameListPlayerJoinedMessage* gamelistplayerjoinedmessage_; + ::GameListPlayerLeftMessage* gamelistplayerleftmessage_; + ::GameListAdminChangedMessage* gamelistadminchangedmessage_; + ::PlayerInfoRequestMessage* playerinforequestmessage_; + ::PlayerInfoReplyMessage* playerinforeplymessage_; + ::SubscriptionRequestMessage* subscriptionrequestmessage_; + ::JoinExistingGameMessage* joinexistinggamemessage_; + ::JoinNewGameMessage* joinnewgamemessage_; + ::RejoinExistingGameMessage* rejoinexistinggamemessage_; + ::JoinGameAckMessage* joingameackmessage_; + ::JoinGameFailedMessage* joingamefailedmessage_; + ::GamePlayerJoinedMessage* gameplayerjoinedmessage_; + ::GamePlayerLeftMessage* gameplayerleftmessage_; + ::GameAdminChangedMessage* gameadminchangedmessage_; + ::RemovedFromGameMessage* removedfromgamemessage_; + ::KickPlayerRequestMessage* kickplayerrequestmessage_; + ::LeaveGameRequestMessage* leavegamerequestmessage_; + ::InvitePlayerToGameMessage* inviteplayertogamemessage_; + ::InviteNotifyMessage* invitenotifymessage_; + ::RejectGameInvitationMessage* rejectgameinvitationmessage_; + ::RejectInvNotifyMessage* rejectinvnotifymessage_; + ::StartEventMessage* starteventmessage_; + ::StartEventAckMessage* starteventackmessage_; + ::GameStartInitialMessage* gamestartinitialmessage_; + ::GameStartRejoinMessage* gamestartrejoinmessage_; + ::HandStartMessage* handstartmessage_; + ::PlayersTurnMessage* playersturnmessage_; + ::MyActionRequestMessage* myactionrequestmessage_; + ::YourActionRejectedMessage* youractionrejectedmessage_; + ::PlayersActionDoneMessage* playersactiondonemessage_; + ::DealFlopCardsMessage* dealflopcardsmessage_; + ::DealTurnCardMessage* dealturncardmessage_; + ::DealRiverCardMessage* dealrivercardmessage_; + ::AllInShowCardsMessage* allinshowcardsmessage_; + ::EndOfHandShowCardsMessage* endofhandshowcardsmessage_; + ::EndOfHandHideCardsMessage* endofhandhidecardsmessage_; + ::ShowMyCardsRequestMessage* showmycardsrequestmessage_; + ::AfterHandShowCardsMessage* afterhandshowcardsmessage_; + ::EndOfGameMessage* endofgamemessage_; + ::PlayerIdChangedMessage* playeridchangedmessage_; + ::AskKickPlayerMessage* askkickplayermessage_; + ::AskKickDeniedMessage* askkickdeniedmessage_; + ::StartKickPetitionMessage* startkickpetitionmessage_; + ::VoteKickRequestMessage* votekickrequestmessage_; + ::VoteKickReplyMessage* votekickreplymessage_; + ::KickPetitionUpdateMessage* kickpetitionupdatemessage_; + ::EndKickPetitionMessage* endkickpetitionmessage_; + ::StatisticsMessage* statisticsmessage_; + ::ChatRequestMessage* chatrequestmessage_; + ::ChatMessage* chatmessage_; + ::ChatRejectMessage* chatrejectmessage_; + ::DialogMessage* dialogmessage_; + ::TimeoutWarningMessage* timeoutwarningmessage_; + ::ResetTimeoutMessage* resettimeoutmessage_; + ::ReportAvatarMessage* reportavatarmessage_; + ::ReportAvatarAckMessage* reportavatarackmessage_; + ::ReportGameMessage* reportgamemessage_; + ::ReportGameAckMessage* reportgameackmessage_; + ::ErrorMessage* errormessage_; + int messagetype_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(74 + 31) / 32]; + + friend void protobuf_AddDesc_pokerth_2eproto(); + friend void protobuf_AssignDesc_pokerth_2eproto(); + friend void protobuf_ShutdownFile_pokerth_2eproto(); + + void InitAsDefaultInstance(); + static PokerTHMessage* default_instance_; +}; +// =================================================================== + + +// =================================================================== + +// NetGameInfo + +// required string gameName = 1; +inline bool NetGameInfo::has_gamename() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void NetGameInfo::set_has_gamename() { + _has_bits_[0] |= 0x00000001u; +} +inline void NetGameInfo::clear_has_gamename() { + _has_bits_[0] &= ~0x00000001u; +} +inline void NetGameInfo::clear_gamename() { + if (gamename_ != &::google::protobuf::internal::kEmptyString) { + gamename_->clear(); + } + clear_has_gamename(); +} +inline const ::std::string& NetGameInfo::gamename() const { + return *gamename_; +} +inline void NetGameInfo::set_gamename(const ::std::string& value) { + set_has_gamename(); + if (gamename_ == &::google::protobuf::internal::kEmptyString) { + gamename_ = new ::std::string; + } + gamename_->assign(value); +} +inline void NetGameInfo::set_gamename(const char* value) { + set_has_gamename(); + if (gamename_ == &::google::protobuf::internal::kEmptyString) { + gamename_ = new ::std::string; + } + gamename_->assign(value); +} +inline void NetGameInfo::set_gamename(const char* value, size_t size) { + set_has_gamename(); + if (gamename_ == &::google::protobuf::internal::kEmptyString) { + gamename_ = new ::std::string; + } + gamename_->assign(reinterpret_cast(value), size); +} +inline ::std::string* NetGameInfo::mutable_gamename() { + set_has_gamename(); + if (gamename_ == &::google::protobuf::internal::kEmptyString) { + gamename_ = new ::std::string; + } + return gamename_; +} +inline ::std::string* NetGameInfo::release_gamename() { + clear_has_gamename(); + if (gamename_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = gamename_; + gamename_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// required .NetGameInfo.NetGameType netGameType = 2; +inline bool NetGameInfo::has_netgametype() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void NetGameInfo::set_has_netgametype() { + _has_bits_[0] |= 0x00000002u; +} +inline void NetGameInfo::clear_has_netgametype() { + _has_bits_[0] &= ~0x00000002u; +} +inline void NetGameInfo::clear_netgametype() { + netgametype_ = 1; + clear_has_netgametype(); +} +inline ::NetGameInfo_NetGameType NetGameInfo::netgametype() const { + return static_cast< ::NetGameInfo_NetGameType >(netgametype_); +} +inline void NetGameInfo::set_netgametype(::NetGameInfo_NetGameType value) { + GOOGLE_DCHECK(::NetGameInfo_NetGameType_IsValid(value)); + set_has_netgametype(); + netgametype_ = value; +} + +// required uint32 maxNumPlayers = 3; +inline bool NetGameInfo::has_maxnumplayers() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void NetGameInfo::set_has_maxnumplayers() { + _has_bits_[0] |= 0x00000004u; +} +inline void NetGameInfo::clear_has_maxnumplayers() { + _has_bits_[0] &= ~0x00000004u; +} +inline void NetGameInfo::clear_maxnumplayers() { + maxnumplayers_ = 0u; + clear_has_maxnumplayers(); +} +inline ::google::protobuf::uint32 NetGameInfo::maxnumplayers() const { + return maxnumplayers_; +} +inline void NetGameInfo::set_maxnumplayers(::google::protobuf::uint32 value) { + set_has_maxnumplayers(); + maxnumplayers_ = value; +} + +// required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; +inline bool NetGameInfo::has_raiseintervalmode() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void NetGameInfo::set_has_raiseintervalmode() { + _has_bits_[0] |= 0x00000008u; +} +inline void NetGameInfo::clear_has_raiseintervalmode() { + _has_bits_[0] &= ~0x00000008u; +} +inline void NetGameInfo::clear_raiseintervalmode() { + raiseintervalmode_ = 1; + clear_has_raiseintervalmode(); +} +inline ::NetGameInfo_RaiseIntervalMode NetGameInfo::raiseintervalmode() const { + return static_cast< ::NetGameInfo_RaiseIntervalMode >(raiseintervalmode_); +} +inline void NetGameInfo::set_raiseintervalmode(::NetGameInfo_RaiseIntervalMode value) { + GOOGLE_DCHECK(::NetGameInfo_RaiseIntervalMode_IsValid(value)); + set_has_raiseintervalmode(); + raiseintervalmode_ = value; +} + +// optional uint32 raiseEveryHands = 5; +inline bool NetGameInfo::has_raiseeveryhands() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void NetGameInfo::set_has_raiseeveryhands() { + _has_bits_[0] |= 0x00000010u; +} +inline void NetGameInfo::clear_has_raiseeveryhands() { + _has_bits_[0] &= ~0x00000010u; +} +inline void NetGameInfo::clear_raiseeveryhands() { + raiseeveryhands_ = 0u; + clear_has_raiseeveryhands(); +} +inline ::google::protobuf::uint32 NetGameInfo::raiseeveryhands() const { + return raiseeveryhands_; +} +inline void NetGameInfo::set_raiseeveryhands(::google::protobuf::uint32 value) { + set_has_raiseeveryhands(); + raiseeveryhands_ = value; +} + +// optional uint32 raiseEveryMinutes = 6; +inline bool NetGameInfo::has_raiseeveryminutes() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void NetGameInfo::set_has_raiseeveryminutes() { + _has_bits_[0] |= 0x00000020u; +} +inline void NetGameInfo::clear_has_raiseeveryminutes() { + _has_bits_[0] &= ~0x00000020u; +} +inline void NetGameInfo::clear_raiseeveryminutes() { + raiseeveryminutes_ = 0u; + clear_has_raiseeveryminutes(); +} +inline ::google::protobuf::uint32 NetGameInfo::raiseeveryminutes() const { + return raiseeveryminutes_; +} +inline void NetGameInfo::set_raiseeveryminutes(::google::protobuf::uint32 value) { + set_has_raiseeveryminutes(); + raiseeveryminutes_ = value; +} + +// required .NetGameInfo.EndRaiseMode endRaiseMode = 7; +inline bool NetGameInfo::has_endraisemode() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void NetGameInfo::set_has_endraisemode() { + _has_bits_[0] |= 0x00000040u; +} +inline void NetGameInfo::clear_has_endraisemode() { + _has_bits_[0] &= ~0x00000040u; +} +inline void NetGameInfo::clear_endraisemode() { + endraisemode_ = 1; + clear_has_endraisemode(); +} +inline ::NetGameInfo_EndRaiseMode NetGameInfo::endraisemode() const { + return static_cast< ::NetGameInfo_EndRaiseMode >(endraisemode_); +} +inline void NetGameInfo::set_endraisemode(::NetGameInfo_EndRaiseMode value) { + GOOGLE_DCHECK(::NetGameInfo_EndRaiseMode_IsValid(value)); + set_has_endraisemode(); + endraisemode_ = value; +} + +// optional uint32 endRaiseSmallBlindValue = 8; +inline bool NetGameInfo::has_endraisesmallblindvalue() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void NetGameInfo::set_has_endraisesmallblindvalue() { + _has_bits_[0] |= 0x00000080u; +} +inline void NetGameInfo::clear_has_endraisesmallblindvalue() { + _has_bits_[0] &= ~0x00000080u; +} +inline void NetGameInfo::clear_endraisesmallblindvalue() { + endraisesmallblindvalue_ = 0u; + clear_has_endraisesmallblindvalue(); +} +inline ::google::protobuf::uint32 NetGameInfo::endraisesmallblindvalue() const { + return endraisesmallblindvalue_; +} +inline void NetGameInfo::set_endraisesmallblindvalue(::google::protobuf::uint32 value) { + set_has_endraisesmallblindvalue(); + endraisesmallblindvalue_ = value; +} + +// required uint32 proposedGuiSpeed = 9; +inline bool NetGameInfo::has_proposedguispeed() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void NetGameInfo::set_has_proposedguispeed() { + _has_bits_[0] |= 0x00000100u; +} +inline void NetGameInfo::clear_has_proposedguispeed() { + _has_bits_[0] &= ~0x00000100u; +} +inline void NetGameInfo::clear_proposedguispeed() { + proposedguispeed_ = 0u; + clear_has_proposedguispeed(); +} +inline ::google::protobuf::uint32 NetGameInfo::proposedguispeed() const { + return proposedguispeed_; +} +inline void NetGameInfo::set_proposedguispeed(::google::protobuf::uint32 value) { + set_has_proposedguispeed(); + proposedguispeed_ = value; +} + +// required uint32 delayBetweenHands = 10; +inline bool NetGameInfo::has_delaybetweenhands() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void NetGameInfo::set_has_delaybetweenhands() { + _has_bits_[0] |= 0x00000200u; +} +inline void NetGameInfo::clear_has_delaybetweenhands() { + _has_bits_[0] &= ~0x00000200u; +} +inline void NetGameInfo::clear_delaybetweenhands() { + delaybetweenhands_ = 0u; + clear_has_delaybetweenhands(); +} +inline ::google::protobuf::uint32 NetGameInfo::delaybetweenhands() const { + return delaybetweenhands_; +} +inline void NetGameInfo::set_delaybetweenhands(::google::protobuf::uint32 value) { + set_has_delaybetweenhands(); + delaybetweenhands_ = value; +} + +// required uint32 playerActionTimeout = 11; +inline bool NetGameInfo::has_playeractiontimeout() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void NetGameInfo::set_has_playeractiontimeout() { + _has_bits_[0] |= 0x00000400u; +} +inline void NetGameInfo::clear_has_playeractiontimeout() { + _has_bits_[0] &= ~0x00000400u; +} +inline void NetGameInfo::clear_playeractiontimeout() { + playeractiontimeout_ = 0u; + clear_has_playeractiontimeout(); +} +inline ::google::protobuf::uint32 NetGameInfo::playeractiontimeout() const { + return playeractiontimeout_; +} +inline void NetGameInfo::set_playeractiontimeout(::google::protobuf::uint32 value) { + set_has_playeractiontimeout(); + playeractiontimeout_ = value; +} + +// required uint32 firstSmallBlind = 12; +inline bool NetGameInfo::has_firstsmallblind() const { + return (_has_bits_[0] & 0x00000800u) != 0; +} +inline void NetGameInfo::set_has_firstsmallblind() { + _has_bits_[0] |= 0x00000800u; +} +inline void NetGameInfo::clear_has_firstsmallblind() { + _has_bits_[0] &= ~0x00000800u; +} +inline void NetGameInfo::clear_firstsmallblind() { + firstsmallblind_ = 0u; + clear_has_firstsmallblind(); +} +inline ::google::protobuf::uint32 NetGameInfo::firstsmallblind() const { + return firstsmallblind_; +} +inline void NetGameInfo::set_firstsmallblind(::google::protobuf::uint32 value) { + set_has_firstsmallblind(); + firstsmallblind_ = value; +} + +// required uint32 startMoney = 13; +inline bool NetGameInfo::has_startmoney() const { + return (_has_bits_[0] & 0x00001000u) != 0; +} +inline void NetGameInfo::set_has_startmoney() { + _has_bits_[0] |= 0x00001000u; +} +inline void NetGameInfo::clear_has_startmoney() { + _has_bits_[0] &= ~0x00001000u; +} +inline void NetGameInfo::clear_startmoney() { + startmoney_ = 0u; + clear_has_startmoney(); +} +inline ::google::protobuf::uint32 NetGameInfo::startmoney() const { + return startmoney_; +} +inline void NetGameInfo::set_startmoney(::google::protobuf::uint32 value) { + set_has_startmoney(); + startmoney_ = value; +} + +// repeated uint32 manualBlinds = 14 [packed = true]; +inline int NetGameInfo::manualblinds_size() const { + return manualblinds_.size(); +} +inline void NetGameInfo::clear_manualblinds() { + manualblinds_.Clear(); +} +inline ::google::protobuf::uint32 NetGameInfo::manualblinds(int index) const { + return manualblinds_.Get(index); +} +inline void NetGameInfo::set_manualblinds(int index, ::google::protobuf::uint32 value) { + manualblinds_.Set(index, value); +} +inline void NetGameInfo::add_manualblinds(::google::protobuf::uint32 value) { + manualblinds_.Add(value); +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +NetGameInfo::manualblinds() const { + return manualblinds_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +NetGameInfo::mutable_manualblinds() { + return &manualblinds_; +} + +// ------------------------------------------------------------------- + +// PlayerResult + +// required uint32 playerId = 1; +inline bool PlayerResult::has_playerid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PlayerResult::set_has_playerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void PlayerResult::clear_has_playerid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PlayerResult::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 PlayerResult::playerid() const { + return playerid_; +} +inline void PlayerResult::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// required uint32 resultCard1 = 2; +inline bool PlayerResult::has_resultcard1() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PlayerResult::set_has_resultcard1() { + _has_bits_[0] |= 0x00000002u; +} +inline void PlayerResult::clear_has_resultcard1() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PlayerResult::clear_resultcard1() { + resultcard1_ = 0u; + clear_has_resultcard1(); +} +inline ::google::protobuf::uint32 PlayerResult::resultcard1() const { + return resultcard1_; +} +inline void PlayerResult::set_resultcard1(::google::protobuf::uint32 value) { + set_has_resultcard1(); + resultcard1_ = value; +} + +// required uint32 resultCard2 = 3; +inline bool PlayerResult::has_resultcard2() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void PlayerResult::set_has_resultcard2() { + _has_bits_[0] |= 0x00000004u; +} +inline void PlayerResult::clear_has_resultcard2() { + _has_bits_[0] &= ~0x00000004u; +} +inline void PlayerResult::clear_resultcard2() { + resultcard2_ = 0u; + clear_has_resultcard2(); +} +inline ::google::protobuf::uint32 PlayerResult::resultcard2() const { + return resultcard2_; +} +inline void PlayerResult::set_resultcard2(::google::protobuf::uint32 value) { + set_has_resultcard2(); + resultcard2_ = value; +} + +// repeated uint32 bestHandPosition = 4 [packed = true]; +inline int PlayerResult::besthandposition_size() const { + return besthandposition_.size(); +} +inline void PlayerResult::clear_besthandposition() { + besthandposition_.Clear(); +} +inline ::google::protobuf::uint32 PlayerResult::besthandposition(int index) const { + return besthandposition_.Get(index); +} +inline void PlayerResult::set_besthandposition(int index, ::google::protobuf::uint32 value) { + besthandposition_.Set(index, value); +} +inline void PlayerResult::add_besthandposition(::google::protobuf::uint32 value) { + besthandposition_.Add(value); +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +PlayerResult::besthandposition() const { + return besthandposition_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +PlayerResult::mutable_besthandposition() { + return &besthandposition_; +} + +// required uint32 moneyWon = 5; +inline bool PlayerResult::has_moneywon() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void PlayerResult::set_has_moneywon() { + _has_bits_[0] |= 0x00000010u; +} +inline void PlayerResult::clear_has_moneywon() { + _has_bits_[0] &= ~0x00000010u; +} +inline void PlayerResult::clear_moneywon() { + moneywon_ = 0u; + clear_has_moneywon(); +} +inline ::google::protobuf::uint32 PlayerResult::moneywon() const { + return moneywon_; +} +inline void PlayerResult::set_moneywon(::google::protobuf::uint32 value) { + set_has_moneywon(); + moneywon_ = value; +} + +// required uint32 playerMoney = 6; +inline bool PlayerResult::has_playermoney() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void PlayerResult::set_has_playermoney() { + _has_bits_[0] |= 0x00000020u; +} +inline void PlayerResult::clear_has_playermoney() { + _has_bits_[0] &= ~0x00000020u; +} +inline void PlayerResult::clear_playermoney() { + playermoney_ = 0u; + clear_has_playermoney(); +} +inline ::google::protobuf::uint32 PlayerResult::playermoney() const { + return playermoney_; +} +inline void PlayerResult::set_playermoney(::google::protobuf::uint32 value) { + set_has_playermoney(); + playermoney_ = value; +} + +// optional uint32 cardsValue = 7; +inline bool PlayerResult::has_cardsvalue() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void PlayerResult::set_has_cardsvalue() { + _has_bits_[0] |= 0x00000040u; +} +inline void PlayerResult::clear_has_cardsvalue() { + _has_bits_[0] &= ~0x00000040u; +} +inline void PlayerResult::clear_cardsvalue() { + cardsvalue_ = 0u; + clear_has_cardsvalue(); +} +inline ::google::protobuf::uint32 PlayerResult::cardsvalue() const { + return cardsvalue_; +} +inline void PlayerResult::set_cardsvalue(::google::protobuf::uint32 value) { + set_has_cardsvalue(); + cardsvalue_ = value; +} + +// ------------------------------------------------------------------- + +// AnnounceMessage_Version + +// required uint32 major = 1; +inline bool AnnounceMessage_Version::has_major() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AnnounceMessage_Version::set_has_major() { + _has_bits_[0] |= 0x00000001u; +} +inline void AnnounceMessage_Version::clear_has_major() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AnnounceMessage_Version::clear_major() { + major_ = 0u; + clear_has_major(); +} +inline ::google::protobuf::uint32 AnnounceMessage_Version::major() const { + return major_; +} +inline void AnnounceMessage_Version::set_major(::google::protobuf::uint32 value) { + set_has_major(); + major_ = value; +} + +// required uint32 minor = 2; +inline bool AnnounceMessage_Version::has_minor() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AnnounceMessage_Version::set_has_minor() { + _has_bits_[0] |= 0x00000002u; +} +inline void AnnounceMessage_Version::clear_has_minor() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AnnounceMessage_Version::clear_minor() { + minor_ = 0u; + clear_has_minor(); +} +inline ::google::protobuf::uint32 AnnounceMessage_Version::minor() const { + return minor_; +} +inline void AnnounceMessage_Version::set_minor(::google::protobuf::uint32 value) { + set_has_minor(); + minor_ = value; +} + +// ------------------------------------------------------------------- + +// AnnounceMessage + +// required .AnnounceMessage.Version protocolVersion = 1; +inline bool AnnounceMessage::has_protocolversion() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AnnounceMessage::set_has_protocolversion() { + _has_bits_[0] |= 0x00000001u; +} +inline void AnnounceMessage::clear_has_protocolversion() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AnnounceMessage::clear_protocolversion() { + if (protocolversion_ != NULL) protocolversion_->::AnnounceMessage_Version::Clear(); + clear_has_protocolversion(); +} +inline const ::AnnounceMessage_Version& AnnounceMessage::protocolversion() const { + return protocolversion_ != NULL ? *protocolversion_ : *default_instance_->protocolversion_; +} +inline ::AnnounceMessage_Version* AnnounceMessage::mutable_protocolversion() { + set_has_protocolversion(); + if (protocolversion_ == NULL) protocolversion_ = new ::AnnounceMessage_Version; + return protocolversion_; +} +inline ::AnnounceMessage_Version* AnnounceMessage::release_protocolversion() { + clear_has_protocolversion(); + ::AnnounceMessage_Version* temp = protocolversion_; + protocolversion_ = NULL; + return temp; +} + +// required .AnnounceMessage.Version latestGameVersion = 2; +inline bool AnnounceMessage::has_latestgameversion() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AnnounceMessage::set_has_latestgameversion() { + _has_bits_[0] |= 0x00000002u; +} +inline void AnnounceMessage::clear_has_latestgameversion() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AnnounceMessage::clear_latestgameversion() { + if (latestgameversion_ != NULL) latestgameversion_->::AnnounceMessage_Version::Clear(); + clear_has_latestgameversion(); +} +inline const ::AnnounceMessage_Version& AnnounceMessage::latestgameversion() const { + return latestgameversion_ != NULL ? *latestgameversion_ : *default_instance_->latestgameversion_; +} +inline ::AnnounceMessage_Version* AnnounceMessage::mutable_latestgameversion() { + set_has_latestgameversion(); + if (latestgameversion_ == NULL) latestgameversion_ = new ::AnnounceMessage_Version; + return latestgameversion_; +} +inline ::AnnounceMessage_Version* AnnounceMessage::release_latestgameversion() { + clear_has_latestgameversion(); + ::AnnounceMessage_Version* temp = latestgameversion_; + latestgameversion_ = NULL; + return temp; +} + +// required uint32 latestBetaRevision = 3; +inline bool AnnounceMessage::has_latestbetarevision() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void AnnounceMessage::set_has_latestbetarevision() { + _has_bits_[0] |= 0x00000004u; +} +inline void AnnounceMessage::clear_has_latestbetarevision() { + _has_bits_[0] &= ~0x00000004u; +} +inline void AnnounceMessage::clear_latestbetarevision() { + latestbetarevision_ = 0u; + clear_has_latestbetarevision(); +} +inline ::google::protobuf::uint32 AnnounceMessage::latestbetarevision() const { + return latestbetarevision_; +} +inline void AnnounceMessage::set_latestbetarevision(::google::protobuf::uint32 value) { + set_has_latestbetarevision(); + latestbetarevision_ = value; +} + +// required .AnnounceMessage.ServerType serverType = 4; +inline bool AnnounceMessage::has_servertype() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void AnnounceMessage::set_has_servertype() { + _has_bits_[0] |= 0x00000008u; +} +inline void AnnounceMessage::clear_has_servertype() { + _has_bits_[0] &= ~0x00000008u; +} +inline void AnnounceMessage::clear_servertype() { + servertype_ = 0; + clear_has_servertype(); +} +inline ::AnnounceMessage_ServerType AnnounceMessage::servertype() const { + return static_cast< ::AnnounceMessage_ServerType >(servertype_); +} +inline void AnnounceMessage::set_servertype(::AnnounceMessage_ServerType value) { + GOOGLE_DCHECK(::AnnounceMessage_ServerType_IsValid(value)); + set_has_servertype(); + servertype_ = value; +} + +// required uint32 numPlayersOnServer = 5; +inline bool AnnounceMessage::has_numplayersonserver() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void AnnounceMessage::set_has_numplayersonserver() { + _has_bits_[0] |= 0x00000010u; +} +inline void AnnounceMessage::clear_has_numplayersonserver() { + _has_bits_[0] &= ~0x00000010u; +} +inline void AnnounceMessage::clear_numplayersonserver() { + numplayersonserver_ = 0u; + clear_has_numplayersonserver(); +} +inline ::google::protobuf::uint32 AnnounceMessage::numplayersonserver() const { + return numplayersonserver_; +} +inline void AnnounceMessage::set_numplayersonserver(::google::protobuf::uint32 value) { + set_has_numplayersonserver(); + numplayersonserver_ = value; +} + +// ------------------------------------------------------------------- + +// InitMessage + +// required .AnnounceMessage.Version requestedVersion = 1; +inline bool InitMessage::has_requestedversion() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void InitMessage::set_has_requestedversion() { + _has_bits_[0] |= 0x00000001u; +} +inline void InitMessage::clear_has_requestedversion() { + _has_bits_[0] &= ~0x00000001u; +} +inline void InitMessage::clear_requestedversion() { + if (requestedversion_ != NULL) requestedversion_->::AnnounceMessage_Version::Clear(); + clear_has_requestedversion(); +} +inline const ::AnnounceMessage_Version& InitMessage::requestedversion() const { + return requestedversion_ != NULL ? *requestedversion_ : *default_instance_->requestedversion_; +} +inline ::AnnounceMessage_Version* InitMessage::mutable_requestedversion() { + set_has_requestedversion(); + if (requestedversion_ == NULL) requestedversion_ = new ::AnnounceMessage_Version; + return requestedversion_; +} +inline ::AnnounceMessage_Version* InitMessage::release_requestedversion() { + clear_has_requestedversion(); + ::AnnounceMessage_Version* temp = requestedversion_; + requestedversion_ = NULL; + return temp; +} + +// required uint32 buildId = 2; +inline bool InitMessage::has_buildid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void InitMessage::set_has_buildid() { + _has_bits_[0] |= 0x00000002u; +} +inline void InitMessage::clear_has_buildid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void InitMessage::clear_buildid() { + buildid_ = 0u; + clear_has_buildid(); +} +inline ::google::protobuf::uint32 InitMessage::buildid() const { + return buildid_; +} +inline void InitMessage::set_buildid(::google::protobuf::uint32 value) { + set_has_buildid(); + buildid_ = value; +} + +// optional bytes myLastSessionId = 3; +inline bool InitMessage::has_mylastsessionid() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void InitMessage::set_has_mylastsessionid() { + _has_bits_[0] |= 0x00000004u; +} +inline void InitMessage::clear_has_mylastsessionid() { + _has_bits_[0] &= ~0x00000004u; +} +inline void InitMessage::clear_mylastsessionid() { + if (mylastsessionid_ != &::google::protobuf::internal::kEmptyString) { + mylastsessionid_->clear(); + } + clear_has_mylastsessionid(); +} +inline const ::std::string& InitMessage::mylastsessionid() const { + return *mylastsessionid_; +} +inline void InitMessage::set_mylastsessionid(const ::std::string& value) { + set_has_mylastsessionid(); + if (mylastsessionid_ == &::google::protobuf::internal::kEmptyString) { + mylastsessionid_ = new ::std::string; + } + mylastsessionid_->assign(value); +} +inline void InitMessage::set_mylastsessionid(const char* value) { + set_has_mylastsessionid(); + if (mylastsessionid_ == &::google::protobuf::internal::kEmptyString) { + mylastsessionid_ = new ::std::string; + } + mylastsessionid_->assign(value); +} +inline void InitMessage::set_mylastsessionid(const void* value, size_t size) { + set_has_mylastsessionid(); + if (mylastsessionid_ == &::google::protobuf::internal::kEmptyString) { + mylastsessionid_ = new ::std::string; + } + mylastsessionid_->assign(reinterpret_cast(value), size); +} +inline ::std::string* InitMessage::mutable_mylastsessionid() { + set_has_mylastsessionid(); + if (mylastsessionid_ == &::google::protobuf::internal::kEmptyString) { + mylastsessionid_ = new ::std::string; + } + return mylastsessionid_; +} +inline ::std::string* InitMessage::release_mylastsessionid() { + clear_has_mylastsessionid(); + if (mylastsessionid_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = mylastsessionid_; + mylastsessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// optional string authServerPassword = 4; +inline bool InitMessage::has_authserverpassword() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void InitMessage::set_has_authserverpassword() { + _has_bits_[0] |= 0x00000008u; +} +inline void InitMessage::clear_has_authserverpassword() { + _has_bits_[0] &= ~0x00000008u; +} +inline void InitMessage::clear_authserverpassword() { + if (authserverpassword_ != &::google::protobuf::internal::kEmptyString) { + authserverpassword_->clear(); + } + clear_has_authserverpassword(); +} +inline const ::std::string& InitMessage::authserverpassword() const { + return *authserverpassword_; +} +inline void InitMessage::set_authserverpassword(const ::std::string& value) { + set_has_authserverpassword(); + if (authserverpassword_ == &::google::protobuf::internal::kEmptyString) { + authserverpassword_ = new ::std::string; + } + authserverpassword_->assign(value); +} +inline void InitMessage::set_authserverpassword(const char* value) { + set_has_authserverpassword(); + if (authserverpassword_ == &::google::protobuf::internal::kEmptyString) { + authserverpassword_ = new ::std::string; + } + authserverpassword_->assign(value); +} +inline void InitMessage::set_authserverpassword(const char* value, size_t size) { + set_has_authserverpassword(); + if (authserverpassword_ == &::google::protobuf::internal::kEmptyString) { + authserverpassword_ = new ::std::string; + } + authserverpassword_->assign(reinterpret_cast(value), size); +} +inline ::std::string* InitMessage::mutable_authserverpassword() { + set_has_authserverpassword(); + if (authserverpassword_ == &::google::protobuf::internal::kEmptyString) { + authserverpassword_ = new ::std::string; + } + return authserverpassword_; +} +inline ::std::string* InitMessage::release_authserverpassword() { + clear_has_authserverpassword(); + if (authserverpassword_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = authserverpassword_; + authserverpassword_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// required .InitMessage.LoginType login = 5; +inline bool InitMessage::has_login() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void InitMessage::set_has_login() { + _has_bits_[0] |= 0x00000010u; +} +inline void InitMessage::clear_has_login() { + _has_bits_[0] &= ~0x00000010u; +} +inline void InitMessage::clear_login() { + login_ = 0; + clear_has_login(); +} +inline ::InitMessage_LoginType InitMessage::login() const { + return static_cast< ::InitMessage_LoginType >(login_); +} +inline void InitMessage::set_login(::InitMessage_LoginType value) { + GOOGLE_DCHECK(::InitMessage_LoginType_IsValid(value)); + set_has_login(); + login_ = value; +} + +// optional string nickName = 6; +inline bool InitMessage::has_nickname() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void InitMessage::set_has_nickname() { + _has_bits_[0] |= 0x00000020u; +} +inline void InitMessage::clear_has_nickname() { + _has_bits_[0] &= ~0x00000020u; +} +inline void InitMessage::clear_nickname() { + if (nickname_ != &::google::protobuf::internal::kEmptyString) { + nickname_->clear(); + } + clear_has_nickname(); +} +inline const ::std::string& InitMessage::nickname() const { + return *nickname_; +} +inline void InitMessage::set_nickname(const ::std::string& value) { + set_has_nickname(); + if (nickname_ == &::google::protobuf::internal::kEmptyString) { + nickname_ = new ::std::string; + } + nickname_->assign(value); +} +inline void InitMessage::set_nickname(const char* value) { + set_has_nickname(); + if (nickname_ == &::google::protobuf::internal::kEmptyString) { + nickname_ = new ::std::string; + } + nickname_->assign(value); +} +inline void InitMessage::set_nickname(const char* value, size_t size) { + set_has_nickname(); + if (nickname_ == &::google::protobuf::internal::kEmptyString) { + nickname_ = new ::std::string; + } + nickname_->assign(reinterpret_cast(value), size); +} +inline ::std::string* InitMessage::mutable_nickname() { + set_has_nickname(); + if (nickname_ == &::google::protobuf::internal::kEmptyString) { + nickname_ = new ::std::string; + } + return nickname_; +} +inline ::std::string* InitMessage::release_nickname() { + clear_has_nickname(); + if (nickname_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = nickname_; + nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// optional bytes clientUserData = 7; +inline bool InitMessage::has_clientuserdata() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void InitMessage::set_has_clientuserdata() { + _has_bits_[0] |= 0x00000040u; +} +inline void InitMessage::clear_has_clientuserdata() { + _has_bits_[0] &= ~0x00000040u; +} +inline void InitMessage::clear_clientuserdata() { + if (clientuserdata_ != &::google::protobuf::internal::kEmptyString) { + clientuserdata_->clear(); + } + clear_has_clientuserdata(); +} +inline const ::std::string& InitMessage::clientuserdata() const { + return *clientuserdata_; +} +inline void InitMessage::set_clientuserdata(const ::std::string& value) { + set_has_clientuserdata(); + if (clientuserdata_ == &::google::protobuf::internal::kEmptyString) { + clientuserdata_ = new ::std::string; + } + clientuserdata_->assign(value); +} +inline void InitMessage::set_clientuserdata(const char* value) { + set_has_clientuserdata(); + if (clientuserdata_ == &::google::protobuf::internal::kEmptyString) { + clientuserdata_ = new ::std::string; + } + clientuserdata_->assign(value); +} +inline void InitMessage::set_clientuserdata(const void* value, size_t size) { + set_has_clientuserdata(); + if (clientuserdata_ == &::google::protobuf::internal::kEmptyString) { + clientuserdata_ = new ::std::string; + } + clientuserdata_->assign(reinterpret_cast(value), size); +} +inline ::std::string* InitMessage::mutable_clientuserdata() { + set_has_clientuserdata(); + if (clientuserdata_ == &::google::protobuf::internal::kEmptyString) { + clientuserdata_ = new ::std::string; + } + return clientuserdata_; +} +inline ::std::string* InitMessage::release_clientuserdata() { + clear_has_clientuserdata(); + if (clientuserdata_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = clientuserdata_; + clientuserdata_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// optional bytes avatarHash = 8; +inline bool InitMessage::has_avatarhash() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void InitMessage::set_has_avatarhash() { + _has_bits_[0] |= 0x00000080u; +} +inline void InitMessage::clear_has_avatarhash() { + _has_bits_[0] &= ~0x00000080u; +} +inline void InitMessage::clear_avatarhash() { + if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { + avatarhash_->clear(); + } + clear_has_avatarhash(); +} +inline const ::std::string& InitMessage::avatarhash() const { + return *avatarhash_; +} +inline void InitMessage::set_avatarhash(const ::std::string& value) { + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(value); +} +inline void InitMessage::set_avatarhash(const char* value) { + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(value); +} +inline void InitMessage::set_avatarhash(const void* value, size_t size) { + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(reinterpret_cast(value), size); +} +inline ::std::string* InitMessage::mutable_avatarhash() { + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + return avatarhash_; +} +inline ::std::string* InitMessage::release_avatarhash() { + clear_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = avatarhash_; + avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// ------------------------------------------------------------------- + +// AuthServerChallengeMessage + +// required bytes serverChallenge = 1; +inline bool AuthServerChallengeMessage::has_serverchallenge() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AuthServerChallengeMessage::set_has_serverchallenge() { + _has_bits_[0] |= 0x00000001u; +} +inline void AuthServerChallengeMessage::clear_has_serverchallenge() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AuthServerChallengeMessage::clear_serverchallenge() { + if (serverchallenge_ != &::google::protobuf::internal::kEmptyString) { + serverchallenge_->clear(); + } + clear_has_serverchallenge(); +} +inline const ::std::string& AuthServerChallengeMessage::serverchallenge() const { + return *serverchallenge_; +} +inline void AuthServerChallengeMessage::set_serverchallenge(const ::std::string& value) { + set_has_serverchallenge(); + if (serverchallenge_ == &::google::protobuf::internal::kEmptyString) { + serverchallenge_ = new ::std::string; + } + serverchallenge_->assign(value); +} +inline void AuthServerChallengeMessage::set_serverchallenge(const char* value) { + set_has_serverchallenge(); + if (serverchallenge_ == &::google::protobuf::internal::kEmptyString) { + serverchallenge_ = new ::std::string; + } + serverchallenge_->assign(value); +} +inline void AuthServerChallengeMessage::set_serverchallenge(const void* value, size_t size) { + set_has_serverchallenge(); + if (serverchallenge_ == &::google::protobuf::internal::kEmptyString) { + serverchallenge_ = new ::std::string; + } + serverchallenge_->assign(reinterpret_cast(value), size); +} +inline ::std::string* AuthServerChallengeMessage::mutable_serverchallenge() { + set_has_serverchallenge(); + if (serverchallenge_ == &::google::protobuf::internal::kEmptyString) { + serverchallenge_ = new ::std::string; + } + return serverchallenge_; +} +inline ::std::string* AuthServerChallengeMessage::release_serverchallenge() { + clear_has_serverchallenge(); + if (serverchallenge_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = serverchallenge_; + serverchallenge_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// ------------------------------------------------------------------- + +// AuthClientResponseMessage + +// required bytes clientResponse = 1; +inline bool AuthClientResponseMessage::has_clientresponse() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AuthClientResponseMessage::set_has_clientresponse() { + _has_bits_[0] |= 0x00000001u; +} +inline void AuthClientResponseMessage::clear_has_clientresponse() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AuthClientResponseMessage::clear_clientresponse() { + if (clientresponse_ != &::google::protobuf::internal::kEmptyString) { + clientresponse_->clear(); + } + clear_has_clientresponse(); +} +inline const ::std::string& AuthClientResponseMessage::clientresponse() const { + return *clientresponse_; +} +inline void AuthClientResponseMessage::set_clientresponse(const ::std::string& value) { + set_has_clientresponse(); + if (clientresponse_ == &::google::protobuf::internal::kEmptyString) { + clientresponse_ = new ::std::string; + } + clientresponse_->assign(value); +} +inline void AuthClientResponseMessage::set_clientresponse(const char* value) { + set_has_clientresponse(); + if (clientresponse_ == &::google::protobuf::internal::kEmptyString) { + clientresponse_ = new ::std::string; + } + clientresponse_->assign(value); +} +inline void AuthClientResponseMessage::set_clientresponse(const void* value, size_t size) { + set_has_clientresponse(); + if (clientresponse_ == &::google::protobuf::internal::kEmptyString) { + clientresponse_ = new ::std::string; + } + clientresponse_->assign(reinterpret_cast(value), size); +} +inline ::std::string* AuthClientResponseMessage::mutable_clientresponse() { + set_has_clientresponse(); + if (clientresponse_ == &::google::protobuf::internal::kEmptyString) { + clientresponse_ = new ::std::string; + } + return clientresponse_; +} +inline ::std::string* AuthClientResponseMessage::release_clientresponse() { + clear_has_clientresponse(); + if (clientresponse_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = clientresponse_; + clientresponse_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// ------------------------------------------------------------------- + +// AuthServerVerificationMessage + +// required bytes serverVerification = 1; +inline bool AuthServerVerificationMessage::has_serververification() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AuthServerVerificationMessage::set_has_serververification() { + _has_bits_[0] |= 0x00000001u; +} +inline void AuthServerVerificationMessage::clear_has_serververification() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AuthServerVerificationMessage::clear_serververification() { + if (serververification_ != &::google::protobuf::internal::kEmptyString) { + serververification_->clear(); + } + clear_has_serververification(); +} +inline const ::std::string& AuthServerVerificationMessage::serververification() const { + return *serververification_; +} +inline void AuthServerVerificationMessage::set_serververification(const ::std::string& value) { + set_has_serververification(); + if (serververification_ == &::google::protobuf::internal::kEmptyString) { + serververification_ = new ::std::string; + } + serververification_->assign(value); +} +inline void AuthServerVerificationMessage::set_serververification(const char* value) { + set_has_serververification(); + if (serververification_ == &::google::protobuf::internal::kEmptyString) { + serververification_ = new ::std::string; + } + serververification_->assign(value); +} +inline void AuthServerVerificationMessage::set_serververification(const void* value, size_t size) { + set_has_serververification(); + if (serververification_ == &::google::protobuf::internal::kEmptyString) { + serververification_ = new ::std::string; + } + serververification_->assign(reinterpret_cast(value), size); +} +inline ::std::string* AuthServerVerificationMessage::mutable_serververification() { + set_has_serververification(); + if (serververification_ == &::google::protobuf::internal::kEmptyString) { + serververification_ = new ::std::string; + } + return serververification_; +} +inline ::std::string* AuthServerVerificationMessage::release_serververification() { + clear_has_serververification(); + if (serververification_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = serververification_; + serververification_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// ------------------------------------------------------------------- + +// InitAckMessage + +// required bytes yourSessionId = 1; +inline bool InitAckMessage::has_yoursessionid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void InitAckMessage::set_has_yoursessionid() { + _has_bits_[0] |= 0x00000001u; +} +inline void InitAckMessage::clear_has_yoursessionid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void InitAckMessage::clear_yoursessionid() { + if (yoursessionid_ != &::google::protobuf::internal::kEmptyString) { + yoursessionid_->clear(); + } + clear_has_yoursessionid(); +} +inline const ::std::string& InitAckMessage::yoursessionid() const { + return *yoursessionid_; +} +inline void InitAckMessage::set_yoursessionid(const ::std::string& value) { + set_has_yoursessionid(); + if (yoursessionid_ == &::google::protobuf::internal::kEmptyString) { + yoursessionid_ = new ::std::string; + } + yoursessionid_->assign(value); +} +inline void InitAckMessage::set_yoursessionid(const char* value) { + set_has_yoursessionid(); + if (yoursessionid_ == &::google::protobuf::internal::kEmptyString) { + yoursessionid_ = new ::std::string; + } + yoursessionid_->assign(value); +} +inline void InitAckMessage::set_yoursessionid(const void* value, size_t size) { + set_has_yoursessionid(); + if (yoursessionid_ == &::google::protobuf::internal::kEmptyString) { + yoursessionid_ = new ::std::string; + } + yoursessionid_->assign(reinterpret_cast(value), size); +} +inline ::std::string* InitAckMessage::mutable_yoursessionid() { + set_has_yoursessionid(); + if (yoursessionid_ == &::google::protobuf::internal::kEmptyString) { + yoursessionid_ = new ::std::string; + } + return yoursessionid_; +} +inline ::std::string* InitAckMessage::release_yoursessionid() { + clear_has_yoursessionid(); + if (yoursessionid_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = yoursessionid_; + yoursessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// required uint32 yourPlayerId = 2; +inline bool InitAckMessage::has_yourplayerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void InitAckMessage::set_has_yourplayerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void InitAckMessage::clear_has_yourplayerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void InitAckMessage::clear_yourplayerid() { + yourplayerid_ = 0u; + clear_has_yourplayerid(); +} +inline ::google::protobuf::uint32 InitAckMessage::yourplayerid() const { + return yourplayerid_; +} +inline void InitAckMessage::set_yourplayerid(::google::protobuf::uint32 value) { + set_has_yourplayerid(); + yourplayerid_ = value; +} + +// optional bytes yourAvatarHash = 3; +inline bool InitAckMessage::has_youravatarhash() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void InitAckMessage::set_has_youravatarhash() { + _has_bits_[0] |= 0x00000004u; +} +inline void InitAckMessage::clear_has_youravatarhash() { + _has_bits_[0] &= ~0x00000004u; +} +inline void InitAckMessage::clear_youravatarhash() { + if (youravatarhash_ != &::google::protobuf::internal::kEmptyString) { + youravatarhash_->clear(); + } + clear_has_youravatarhash(); +} +inline const ::std::string& InitAckMessage::youravatarhash() const { + return *youravatarhash_; +} +inline void InitAckMessage::set_youravatarhash(const ::std::string& value) { + set_has_youravatarhash(); + if (youravatarhash_ == &::google::protobuf::internal::kEmptyString) { + youravatarhash_ = new ::std::string; + } + youravatarhash_->assign(value); +} +inline void InitAckMessage::set_youravatarhash(const char* value) { + set_has_youravatarhash(); + if (youravatarhash_ == &::google::protobuf::internal::kEmptyString) { + youravatarhash_ = new ::std::string; + } + youravatarhash_->assign(value); +} +inline void InitAckMessage::set_youravatarhash(const void* value, size_t size) { + set_has_youravatarhash(); + if (youravatarhash_ == &::google::protobuf::internal::kEmptyString) { + youravatarhash_ = new ::std::string; + } + youravatarhash_->assign(reinterpret_cast(value), size); +} +inline ::std::string* InitAckMessage::mutable_youravatarhash() { + set_has_youravatarhash(); + if (youravatarhash_ == &::google::protobuf::internal::kEmptyString) { + youravatarhash_ = new ::std::string; + } + return youravatarhash_; +} +inline ::std::string* InitAckMessage::release_youravatarhash() { + clear_has_youravatarhash(); + if (youravatarhash_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = youravatarhash_; + youravatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// optional uint32 rejoinGameId = 4; +inline bool InitAckMessage::has_rejoingameid() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void InitAckMessage::set_has_rejoingameid() { + _has_bits_[0] |= 0x00000008u; +} +inline void InitAckMessage::clear_has_rejoingameid() { + _has_bits_[0] &= ~0x00000008u; +} +inline void InitAckMessage::clear_rejoingameid() { + rejoingameid_ = 0u; + clear_has_rejoingameid(); +} +inline ::google::protobuf::uint32 InitAckMessage::rejoingameid() const { + return rejoingameid_; +} +inline void InitAckMessage::set_rejoingameid(::google::protobuf::uint32 value) { + set_has_rejoingameid(); + rejoingameid_ = value; +} + +// ------------------------------------------------------------------- + +// AvatarRequestMessage + +// required uint32 requestId = 1; +inline bool AvatarRequestMessage::has_requestid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AvatarRequestMessage::set_has_requestid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AvatarRequestMessage::clear_has_requestid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AvatarRequestMessage::clear_requestid() { + requestid_ = 0u; + clear_has_requestid(); +} +inline ::google::protobuf::uint32 AvatarRequestMessage::requestid() const { + return requestid_; +} +inline void AvatarRequestMessage::set_requestid(::google::protobuf::uint32 value) { + set_has_requestid(); + requestid_ = value; +} + +// required bytes avatarHash = 2; +inline bool AvatarRequestMessage::has_avatarhash() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AvatarRequestMessage::set_has_avatarhash() { + _has_bits_[0] |= 0x00000002u; +} +inline void AvatarRequestMessage::clear_has_avatarhash() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AvatarRequestMessage::clear_avatarhash() { + if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { + avatarhash_->clear(); + } + clear_has_avatarhash(); +} +inline const ::std::string& AvatarRequestMessage::avatarhash() const { + return *avatarhash_; +} +inline void AvatarRequestMessage::set_avatarhash(const ::std::string& value) { + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(value); +} +inline void AvatarRequestMessage::set_avatarhash(const char* value) { + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(value); +} +inline void AvatarRequestMessage::set_avatarhash(const void* value, size_t size) { + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(reinterpret_cast(value), size); +} +inline ::std::string* AvatarRequestMessage::mutable_avatarhash() { + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + return avatarhash_; +} +inline ::std::string* AvatarRequestMessage::release_avatarhash() { + clear_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = avatarhash_; + avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// ------------------------------------------------------------------- + +// AvatarHeaderMessage + +// required uint32 requestId = 1; +inline bool AvatarHeaderMessage::has_requestid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AvatarHeaderMessage::set_has_requestid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AvatarHeaderMessage::clear_has_requestid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AvatarHeaderMessage::clear_requestid() { + requestid_ = 0u; + clear_has_requestid(); +} +inline ::google::protobuf::uint32 AvatarHeaderMessage::requestid() const { + return requestid_; +} +inline void AvatarHeaderMessage::set_requestid(::google::protobuf::uint32 value) { + set_has_requestid(); + requestid_ = value; +} + +// required .NetAvatarType avatarType = 2; +inline bool AvatarHeaderMessage::has_avatartype() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AvatarHeaderMessage::set_has_avatartype() { + _has_bits_[0] |= 0x00000002u; +} +inline void AvatarHeaderMessage::clear_has_avatartype() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AvatarHeaderMessage::clear_avatartype() { + avatartype_ = 0; + clear_has_avatartype(); +} +inline NetAvatarType AvatarHeaderMessage::avatartype() const { + return static_cast< NetAvatarType >(avatartype_); +} +inline void AvatarHeaderMessage::set_avatartype(NetAvatarType value) { + GOOGLE_DCHECK(NetAvatarType_IsValid(value)); + set_has_avatartype(); + avatartype_ = value; +} + +// required uint32 avatarSize = 3; +inline bool AvatarHeaderMessage::has_avatarsize() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void AvatarHeaderMessage::set_has_avatarsize() { + _has_bits_[0] |= 0x00000004u; +} +inline void AvatarHeaderMessage::clear_has_avatarsize() { + _has_bits_[0] &= ~0x00000004u; +} +inline void AvatarHeaderMessage::clear_avatarsize() { + avatarsize_ = 0u; + clear_has_avatarsize(); +} +inline ::google::protobuf::uint32 AvatarHeaderMessage::avatarsize() const { + return avatarsize_; +} +inline void AvatarHeaderMessage::set_avatarsize(::google::protobuf::uint32 value) { + set_has_avatarsize(); + avatarsize_ = value; +} + +// ------------------------------------------------------------------- + +// AvatarDataMessage + +// required uint32 requestId = 1; +inline bool AvatarDataMessage::has_requestid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AvatarDataMessage::set_has_requestid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AvatarDataMessage::clear_has_requestid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AvatarDataMessage::clear_requestid() { + requestid_ = 0u; + clear_has_requestid(); +} +inline ::google::protobuf::uint32 AvatarDataMessage::requestid() const { + return requestid_; +} +inline void AvatarDataMessage::set_requestid(::google::protobuf::uint32 value) { + set_has_requestid(); + requestid_ = value; +} + +// required bytes avatarBlock = 2; +inline bool AvatarDataMessage::has_avatarblock() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AvatarDataMessage::set_has_avatarblock() { + _has_bits_[0] |= 0x00000002u; +} +inline void AvatarDataMessage::clear_has_avatarblock() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AvatarDataMessage::clear_avatarblock() { + if (avatarblock_ != &::google::protobuf::internal::kEmptyString) { + avatarblock_->clear(); + } + clear_has_avatarblock(); +} +inline const ::std::string& AvatarDataMessage::avatarblock() const { + return *avatarblock_; +} +inline void AvatarDataMessage::set_avatarblock(const ::std::string& value) { + set_has_avatarblock(); + if (avatarblock_ == &::google::protobuf::internal::kEmptyString) { + avatarblock_ = new ::std::string; + } + avatarblock_->assign(value); +} +inline void AvatarDataMessage::set_avatarblock(const char* value) { + set_has_avatarblock(); + if (avatarblock_ == &::google::protobuf::internal::kEmptyString) { + avatarblock_ = new ::std::string; + } + avatarblock_->assign(value); +} +inline void AvatarDataMessage::set_avatarblock(const void* value, size_t size) { + set_has_avatarblock(); + if (avatarblock_ == &::google::protobuf::internal::kEmptyString) { + avatarblock_ = new ::std::string; + } + avatarblock_->assign(reinterpret_cast(value), size); +} +inline ::std::string* AvatarDataMessage::mutable_avatarblock() { + set_has_avatarblock(); + if (avatarblock_ == &::google::protobuf::internal::kEmptyString) { + avatarblock_ = new ::std::string; + } + return avatarblock_; +} +inline ::std::string* AvatarDataMessage::release_avatarblock() { + clear_has_avatarblock(); + if (avatarblock_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = avatarblock_; + avatarblock_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// ------------------------------------------------------------------- + +// AvatarEndMessage + +// required uint32 requestId = 1; +inline bool AvatarEndMessage::has_requestid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AvatarEndMessage::set_has_requestid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AvatarEndMessage::clear_has_requestid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AvatarEndMessage::clear_requestid() { + requestid_ = 0u; + clear_has_requestid(); +} +inline ::google::protobuf::uint32 AvatarEndMessage::requestid() const { + return requestid_; +} +inline void AvatarEndMessage::set_requestid(::google::protobuf::uint32 value) { + set_has_requestid(); + requestid_ = value; +} + +// ------------------------------------------------------------------- + +// UnknownAvatarMessage + +// required uint32 requestId = 1; +inline bool UnknownAvatarMessage::has_requestid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void UnknownAvatarMessage::set_has_requestid() { + _has_bits_[0] |= 0x00000001u; +} +inline void UnknownAvatarMessage::clear_has_requestid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void UnknownAvatarMessage::clear_requestid() { + requestid_ = 0u; + clear_has_requestid(); +} +inline ::google::protobuf::uint32 UnknownAvatarMessage::requestid() const { + return requestid_; +} +inline void UnknownAvatarMessage::set_requestid(::google::protobuf::uint32 value) { + set_has_requestid(); + requestid_ = value; +} + +// ------------------------------------------------------------------- + +// PlayerListMessage + +// required uint32 playerId = 1; +inline bool PlayerListMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PlayerListMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void PlayerListMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PlayerListMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 PlayerListMessage::playerid() const { + return playerid_; +} +inline void PlayerListMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// required .PlayerListMessage.PlayerListNotification playerListNotification = 2; +inline bool PlayerListMessage::has_playerlistnotification() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PlayerListMessage::set_has_playerlistnotification() { + _has_bits_[0] |= 0x00000002u; +} +inline void PlayerListMessage::clear_has_playerlistnotification() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PlayerListMessage::clear_playerlistnotification() { + playerlistnotification_ = 0; + clear_has_playerlistnotification(); +} +inline ::PlayerListMessage_PlayerListNotification PlayerListMessage::playerlistnotification() const { + return static_cast< ::PlayerListMessage_PlayerListNotification >(playerlistnotification_); +} +inline void PlayerListMessage::set_playerlistnotification(::PlayerListMessage_PlayerListNotification value) { + GOOGLE_DCHECK(::PlayerListMessage_PlayerListNotification_IsValid(value)); + set_has_playerlistnotification(); + playerlistnotification_ = value; +} + +// ------------------------------------------------------------------- + +// GameListNewMessage + +// required uint32 gameId = 1; +inline bool GameListNewMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GameListNewMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameListNewMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GameListNewMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 GameListNewMessage::gameid() const { + return gameid_; +} +inline void GameListNewMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required .NetGameMode gameMode = 2; +inline bool GameListNewMessage::has_gamemode() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GameListNewMessage::set_has_gamemode() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameListNewMessage::clear_has_gamemode() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GameListNewMessage::clear_gamemode() { + gamemode_ = 1; + clear_has_gamemode(); +} +inline NetGameMode GameListNewMessage::gamemode() const { + return static_cast< NetGameMode >(gamemode_); +} +inline void GameListNewMessage::set_gamemode(NetGameMode value) { + GOOGLE_DCHECK(NetGameMode_IsValid(value)); + set_has_gamemode(); + gamemode_ = value; +} + +// required bool isPrivate = 3; +inline bool GameListNewMessage::has_isprivate() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void GameListNewMessage::set_has_isprivate() { + _has_bits_[0] |= 0x00000004u; +} +inline void GameListNewMessage::clear_has_isprivate() { + _has_bits_[0] &= ~0x00000004u; +} +inline void GameListNewMessage::clear_isprivate() { + isprivate_ = false; + clear_has_isprivate(); +} +inline bool GameListNewMessage::isprivate() const { + return isprivate_; +} +inline void GameListNewMessage::set_isprivate(bool value) { + set_has_isprivate(); + isprivate_ = value; +} + +// repeated uint32 playerIds = 4 [packed = true]; +inline int GameListNewMessage::playerids_size() const { + return playerids_.size(); +} +inline void GameListNewMessage::clear_playerids() { + playerids_.Clear(); +} +inline ::google::protobuf::uint32 GameListNewMessage::playerids(int index) const { + return playerids_.Get(index); +} +inline void GameListNewMessage::set_playerids(int index, ::google::protobuf::uint32 value) { + playerids_.Set(index, value); +} +inline void GameListNewMessage::add_playerids(::google::protobuf::uint32 value) { + playerids_.Add(value); +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +GameListNewMessage::playerids() const { + return playerids_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +GameListNewMessage::mutable_playerids() { + return &playerids_; +} + +// required uint32 adminPlayerId = 5; +inline bool GameListNewMessage::has_adminplayerid() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void GameListNewMessage::set_has_adminplayerid() { + _has_bits_[0] |= 0x00000010u; +} +inline void GameListNewMessage::clear_has_adminplayerid() { + _has_bits_[0] &= ~0x00000010u; +} +inline void GameListNewMessage::clear_adminplayerid() { + adminplayerid_ = 0u; + clear_has_adminplayerid(); +} +inline ::google::protobuf::uint32 GameListNewMessage::adminplayerid() const { + return adminplayerid_; +} +inline void GameListNewMessage::set_adminplayerid(::google::protobuf::uint32 value) { + set_has_adminplayerid(); + adminplayerid_ = value; +} + +// required .NetGameInfo gameInfo = 6; +inline bool GameListNewMessage::has_gameinfo() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void GameListNewMessage::set_has_gameinfo() { + _has_bits_[0] |= 0x00000020u; +} +inline void GameListNewMessage::clear_has_gameinfo() { + _has_bits_[0] &= ~0x00000020u; +} +inline void GameListNewMessage::clear_gameinfo() { + if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); + clear_has_gameinfo(); +} +inline const ::NetGameInfo& GameListNewMessage::gameinfo() const { + return gameinfo_ != NULL ? *gameinfo_ : *default_instance_->gameinfo_; +} +inline ::NetGameInfo* GameListNewMessage::mutable_gameinfo() { + set_has_gameinfo(); + if (gameinfo_ == NULL) gameinfo_ = new ::NetGameInfo; + return gameinfo_; +} +inline ::NetGameInfo* GameListNewMessage::release_gameinfo() { + clear_has_gameinfo(); + ::NetGameInfo* temp = gameinfo_; + gameinfo_ = NULL; + return temp; +} + +// ------------------------------------------------------------------- + +// GameListUpdateMessage + +// required uint32 gameId = 1; +inline bool GameListUpdateMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GameListUpdateMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameListUpdateMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GameListUpdateMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 GameListUpdateMessage::gameid() const { + return gameid_; +} +inline void GameListUpdateMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required .NetGameMode gameMode = 2; +inline bool GameListUpdateMessage::has_gamemode() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GameListUpdateMessage::set_has_gamemode() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameListUpdateMessage::clear_has_gamemode() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GameListUpdateMessage::clear_gamemode() { + gamemode_ = 1; + clear_has_gamemode(); +} +inline NetGameMode GameListUpdateMessage::gamemode() const { + return static_cast< NetGameMode >(gamemode_); +} +inline void GameListUpdateMessage::set_gamemode(NetGameMode value) { + GOOGLE_DCHECK(NetGameMode_IsValid(value)); + set_has_gamemode(); + gamemode_ = value; +} + +// ------------------------------------------------------------------- + +// GameListPlayerJoinedMessage + +// required uint32 gameId = 1; +inline bool GameListPlayerJoinedMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GameListPlayerJoinedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameListPlayerJoinedMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GameListPlayerJoinedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 GameListPlayerJoinedMessage::gameid() const { + return gameid_; +} +inline void GameListPlayerJoinedMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 playerId = 2; +inline bool GameListPlayerJoinedMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GameListPlayerJoinedMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameListPlayerJoinedMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GameListPlayerJoinedMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 GameListPlayerJoinedMessage::playerid() const { + return playerid_; +} +inline void GameListPlayerJoinedMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// ------------------------------------------------------------------- + +// GameListPlayerLeftMessage + +// required uint32 gameId = 1; +inline bool GameListPlayerLeftMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GameListPlayerLeftMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameListPlayerLeftMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GameListPlayerLeftMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 GameListPlayerLeftMessage::gameid() const { + return gameid_; +} +inline void GameListPlayerLeftMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 playerId = 2; +inline bool GameListPlayerLeftMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GameListPlayerLeftMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameListPlayerLeftMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GameListPlayerLeftMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 GameListPlayerLeftMessage::playerid() const { + return playerid_; +} +inline void GameListPlayerLeftMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// ------------------------------------------------------------------- + +// GameListAdminChangedMessage + +// required uint32 gameId = 1; +inline bool GameListAdminChangedMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GameListAdminChangedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameListAdminChangedMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GameListAdminChangedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 GameListAdminChangedMessage::gameid() const { + return gameid_; +} +inline void GameListAdminChangedMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 newAdminPlayerId = 2; +inline bool GameListAdminChangedMessage::has_newadminplayerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GameListAdminChangedMessage::set_has_newadminplayerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameListAdminChangedMessage::clear_has_newadminplayerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GameListAdminChangedMessage::clear_newadminplayerid() { + newadminplayerid_ = 0u; + clear_has_newadminplayerid(); +} +inline ::google::protobuf::uint32 GameListAdminChangedMessage::newadminplayerid() const { + return newadminplayerid_; +} +inline void GameListAdminChangedMessage::set_newadminplayerid(::google::protobuf::uint32 value) { + set_has_newadminplayerid(); + newadminplayerid_ = value; +} + +// ------------------------------------------------------------------- + +// PlayerInfoRequestMessage + +// required uint32 playerId = 1; +inline bool PlayerInfoRequestMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PlayerInfoRequestMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void PlayerInfoRequestMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PlayerInfoRequestMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 PlayerInfoRequestMessage::playerid() const { + return playerid_; +} +inline void PlayerInfoRequestMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// ------------------------------------------------------------------- + +// PlayerInfoReplyMessage_PlayerInfoData_AvatarData + +// required .NetAvatarType avatarType = 1; +inline bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::has_avatartype() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_has_avatartype() { + _has_bits_[0] |= 0x00000001u; +} +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::clear_has_avatartype() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::clear_avatartype() { + avatartype_ = 0; + clear_has_avatartype(); +} +inline NetAvatarType PlayerInfoReplyMessage_PlayerInfoData_AvatarData::avatartype() const { + return static_cast< NetAvatarType >(avatartype_); +} +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatartype(NetAvatarType value) { + GOOGLE_DCHECK(NetAvatarType_IsValid(value)); + set_has_avatartype(); + avatartype_ = value; +} + +// required bytes avatarHash = 2; +inline bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::has_avatarhash() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_has_avatarhash() { + _has_bits_[0] |= 0x00000002u; +} +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::clear_has_avatarhash() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::clear_avatarhash() { + if (avatarhash_ != &::google::protobuf::internal::kEmptyString) { + avatarhash_->clear(); + } + clear_has_avatarhash(); +} +inline const ::std::string& PlayerInfoReplyMessage_PlayerInfoData_AvatarData::avatarhash() const { + return *avatarhash_; +} +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatarhash(const ::std::string& value) { + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(value); +} +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatarhash(const char* value) { + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(value); +} +inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatarhash(const void* value, size_t size) { + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + avatarhash_->assign(reinterpret_cast(value), size); +} +inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::mutable_avatarhash() { + set_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + avatarhash_ = new ::std::string; + } + return avatarhash_; +} +inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::release_avatarhash() { + clear_has_avatarhash(); + if (avatarhash_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = avatarhash_; + avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// ------------------------------------------------------------------- + +// PlayerInfoReplyMessage_PlayerInfoData + +// required string playerName = 1; +inline bool PlayerInfoReplyMessage_PlayerInfoData::has_playername() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_has_playername() { + _has_bits_[0] |= 0x00000001u; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::clear_has_playername() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::clear_playername() { + if (playername_ != &::google::protobuf::internal::kEmptyString) { + playername_->clear(); + } + clear_has_playername(); +} +inline const ::std::string& PlayerInfoReplyMessage_PlayerInfoData::playername() const { + return *playername_; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_playername(const ::std::string& value) { + set_has_playername(); + if (playername_ == &::google::protobuf::internal::kEmptyString) { + playername_ = new ::std::string; + } + playername_->assign(value); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_playername(const char* value) { + set_has_playername(); + if (playername_ == &::google::protobuf::internal::kEmptyString) { + playername_ = new ::std::string; + } + playername_->assign(value); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_playername(const char* value, size_t size) { + set_has_playername(); + if (playername_ == &::google::protobuf::internal::kEmptyString) { + playername_ = new ::std::string; + } + playername_->assign(reinterpret_cast(value), size); +} +inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::mutable_playername() { + set_has_playername(); + if (playername_ == &::google::protobuf::internal::kEmptyString) { + playername_ = new ::std::string; + } + return playername_; +} +inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::release_playername() { + clear_has_playername(); + if (playername_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = playername_; + playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// required bool isHuman = 2; +inline bool PlayerInfoReplyMessage_PlayerInfoData::has_ishuman() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_has_ishuman() { + _has_bits_[0] |= 0x00000002u; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::clear_has_ishuman() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::clear_ishuman() { + ishuman_ = false; + clear_has_ishuman(); +} +inline bool PlayerInfoReplyMessage_PlayerInfoData::ishuman() const { + return ishuman_; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_ishuman(bool value) { + set_has_ishuman(); + ishuman_ = value; +} + +// required .PlayerInfoRights playerRights = 3; +inline bool PlayerInfoReplyMessage_PlayerInfoData::has_playerrights() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_has_playerrights() { + _has_bits_[0] |= 0x00000004u; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::clear_has_playerrights() { + _has_bits_[0] &= ~0x00000004u; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::clear_playerrights() { + playerrights_ = 1; + clear_has_playerrights(); +} +inline PlayerInfoRights PlayerInfoReplyMessage_PlayerInfoData::playerrights() const { + return static_cast< PlayerInfoRights >(playerrights_); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_playerrights(PlayerInfoRights value) { + GOOGLE_DCHECK(PlayerInfoRights_IsValid(value)); + set_has_playerrights(); + playerrights_ = value; +} + +// optional string countryCode = 4; +inline bool PlayerInfoReplyMessage_PlayerInfoData::has_countrycode() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_has_countrycode() { + _has_bits_[0] |= 0x00000008u; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::clear_has_countrycode() { + _has_bits_[0] &= ~0x00000008u; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::clear_countrycode() { + if (countrycode_ != &::google::protobuf::internal::kEmptyString) { + countrycode_->clear(); + } + clear_has_countrycode(); +} +inline const ::std::string& PlayerInfoReplyMessage_PlayerInfoData::countrycode() const { + return *countrycode_; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_countrycode(const ::std::string& value) { + set_has_countrycode(); + if (countrycode_ == &::google::protobuf::internal::kEmptyString) { + countrycode_ = new ::std::string; + } + countrycode_->assign(value); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_countrycode(const char* value) { + set_has_countrycode(); + if (countrycode_ == &::google::protobuf::internal::kEmptyString) { + countrycode_ = new ::std::string; + } + countrycode_->assign(value); +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_countrycode(const char* value, size_t size) { + set_has_countrycode(); + if (countrycode_ == &::google::protobuf::internal::kEmptyString) { + countrycode_ = new ::std::string; + } + countrycode_->assign(reinterpret_cast(value), size); +} +inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::mutable_countrycode() { + set_has_countrycode(); + if (countrycode_ == &::google::protobuf::internal::kEmptyString) { + countrycode_ = new ::std::string; + } + return countrycode_; +} +inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::release_countrycode() { + clear_has_countrycode(); + if (countrycode_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = countrycode_; + countrycode_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; +inline bool PlayerInfoReplyMessage_PlayerInfoData::has_avatardata() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::set_has_avatardata() { + _has_bits_[0] |= 0x00000010u; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::clear_has_avatardata() { + _has_bits_[0] &= ~0x00000010u; +} +inline void PlayerInfoReplyMessage_PlayerInfoData::clear_avatardata() { + if (avatardata_ != NULL) avatardata_->::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::Clear(); + clear_has_avatardata(); +} +inline const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& PlayerInfoReplyMessage_PlayerInfoData::avatardata() const { + return avatardata_ != NULL ? *avatardata_ : *default_instance_->avatardata_; +} +inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData::mutable_avatardata() { + set_has_avatardata(); + if (avatardata_ == NULL) avatardata_ = new ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData; + return avatardata_; +} +inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData::release_avatardata() { + clear_has_avatardata(); + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* temp = avatardata_; + avatardata_ = NULL; + return temp; +} + +// ------------------------------------------------------------------- + +// PlayerInfoReplyMessage + +// required uint32 playerId = 1; +inline bool PlayerInfoReplyMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PlayerInfoReplyMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void PlayerInfoReplyMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PlayerInfoReplyMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 PlayerInfoReplyMessage::playerid() const { + return playerid_; +} +inline void PlayerInfoReplyMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; +inline bool PlayerInfoReplyMessage::has_playerinfodata() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PlayerInfoReplyMessage::set_has_playerinfodata() { + _has_bits_[0] |= 0x00000002u; +} +inline void PlayerInfoReplyMessage::clear_has_playerinfodata() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PlayerInfoReplyMessage::clear_playerinfodata() { + if (playerinfodata_ != NULL) playerinfodata_->::PlayerInfoReplyMessage_PlayerInfoData::Clear(); + clear_has_playerinfodata(); +} +inline const ::PlayerInfoReplyMessage_PlayerInfoData& PlayerInfoReplyMessage::playerinfodata() const { + return playerinfodata_ != NULL ? *playerinfodata_ : *default_instance_->playerinfodata_; +} +inline ::PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage::mutable_playerinfodata() { + set_has_playerinfodata(); + if (playerinfodata_ == NULL) playerinfodata_ = new ::PlayerInfoReplyMessage_PlayerInfoData; + return playerinfodata_; +} +inline ::PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage::release_playerinfodata() { + clear_has_playerinfodata(); + ::PlayerInfoReplyMessage_PlayerInfoData* temp = playerinfodata_; + playerinfodata_ = NULL; + return temp; +} + +// ------------------------------------------------------------------- + +// SubscriptionRequestMessage + +// required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; +inline bool SubscriptionRequestMessage::has_subscriptionaction() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void SubscriptionRequestMessage::set_has_subscriptionaction() { + _has_bits_[0] |= 0x00000001u; +} +inline void SubscriptionRequestMessage::clear_has_subscriptionaction() { + _has_bits_[0] &= ~0x00000001u; +} +inline void SubscriptionRequestMessage::clear_subscriptionaction() { + subscriptionaction_ = 1; + clear_has_subscriptionaction(); +} +inline ::SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::subscriptionaction() const { + return static_cast< ::SubscriptionRequestMessage_SubscriptionAction >(subscriptionaction_); +} +inline void SubscriptionRequestMessage::set_subscriptionaction(::SubscriptionRequestMessage_SubscriptionAction value) { + GOOGLE_DCHECK(::SubscriptionRequestMessage_SubscriptionAction_IsValid(value)); + set_has_subscriptionaction(); + subscriptionaction_ = value; +} + +// ------------------------------------------------------------------- + +// JoinExistingGameMessage + +// required uint32 gameId = 1; +inline bool JoinExistingGameMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void JoinExistingGameMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void JoinExistingGameMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void JoinExistingGameMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 JoinExistingGameMessage::gameid() const { + return gameid_; +} +inline void JoinExistingGameMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// optional string password = 2; +inline bool JoinExistingGameMessage::has_password() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void JoinExistingGameMessage::set_has_password() { + _has_bits_[0] |= 0x00000002u; +} +inline void JoinExistingGameMessage::clear_has_password() { + _has_bits_[0] &= ~0x00000002u; +} +inline void JoinExistingGameMessage::clear_password() { + if (password_ != &::google::protobuf::internal::kEmptyString) { + password_->clear(); + } + clear_has_password(); +} +inline const ::std::string& JoinExistingGameMessage::password() const { + return *password_; +} +inline void JoinExistingGameMessage::set_password(const ::std::string& value) { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(value); +} +inline void JoinExistingGameMessage::set_password(const char* value) { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(value); +} +inline void JoinExistingGameMessage::set_password(const char* value, size_t size) { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(reinterpret_cast(value), size); +} +inline ::std::string* JoinExistingGameMessage::mutable_password() { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + return password_; +} +inline ::std::string* JoinExistingGameMessage::release_password() { + clear_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = password_; + password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// optional bool autoLeave = 3; +inline bool JoinExistingGameMessage::has_autoleave() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void JoinExistingGameMessage::set_has_autoleave() { + _has_bits_[0] |= 0x00000004u; +} +inline void JoinExistingGameMessage::clear_has_autoleave() { + _has_bits_[0] &= ~0x00000004u; +} +inline void JoinExistingGameMessage::clear_autoleave() { + autoleave_ = false; + clear_has_autoleave(); +} +inline bool JoinExistingGameMessage::autoleave() const { + return autoleave_; +} +inline void JoinExistingGameMessage::set_autoleave(bool value) { + set_has_autoleave(); + autoleave_ = value; +} + +// ------------------------------------------------------------------- + +// JoinNewGameMessage + +// required .NetGameInfo gameInfo = 1; +inline bool JoinNewGameMessage::has_gameinfo() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void JoinNewGameMessage::set_has_gameinfo() { + _has_bits_[0] |= 0x00000001u; +} +inline void JoinNewGameMessage::clear_has_gameinfo() { + _has_bits_[0] &= ~0x00000001u; +} +inline void JoinNewGameMessage::clear_gameinfo() { + if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); + clear_has_gameinfo(); +} +inline const ::NetGameInfo& JoinNewGameMessage::gameinfo() const { + return gameinfo_ != NULL ? *gameinfo_ : *default_instance_->gameinfo_; +} +inline ::NetGameInfo* JoinNewGameMessage::mutable_gameinfo() { + set_has_gameinfo(); + if (gameinfo_ == NULL) gameinfo_ = new ::NetGameInfo; + return gameinfo_; +} +inline ::NetGameInfo* JoinNewGameMessage::release_gameinfo() { + clear_has_gameinfo(); + ::NetGameInfo* temp = gameinfo_; + gameinfo_ = NULL; + return temp; +} + +// optional string password = 2; +inline bool JoinNewGameMessage::has_password() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void JoinNewGameMessage::set_has_password() { + _has_bits_[0] |= 0x00000002u; +} +inline void JoinNewGameMessage::clear_has_password() { + _has_bits_[0] &= ~0x00000002u; +} +inline void JoinNewGameMessage::clear_password() { + if (password_ != &::google::protobuf::internal::kEmptyString) { + password_->clear(); + } + clear_has_password(); +} +inline const ::std::string& JoinNewGameMessage::password() const { + return *password_; +} +inline void JoinNewGameMessage::set_password(const ::std::string& value) { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(value); +} +inline void JoinNewGameMessage::set_password(const char* value) { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(value); +} +inline void JoinNewGameMessage::set_password(const char* value, size_t size) { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + password_->assign(reinterpret_cast(value), size); +} +inline ::std::string* JoinNewGameMessage::mutable_password() { + set_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + password_ = new ::std::string; + } + return password_; +} +inline ::std::string* JoinNewGameMessage::release_password() { + clear_has_password(); + if (password_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = password_; + password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// optional bool autoLeave = 3; +inline bool JoinNewGameMessage::has_autoleave() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void JoinNewGameMessage::set_has_autoleave() { + _has_bits_[0] |= 0x00000004u; +} +inline void JoinNewGameMessage::clear_has_autoleave() { + _has_bits_[0] &= ~0x00000004u; +} +inline void JoinNewGameMessage::clear_autoleave() { + autoleave_ = false; + clear_has_autoleave(); +} +inline bool JoinNewGameMessage::autoleave() const { + return autoleave_; +} +inline void JoinNewGameMessage::set_autoleave(bool value) { + set_has_autoleave(); + autoleave_ = value; +} + +// ------------------------------------------------------------------- + +// RejoinExistingGameMessage + +// required uint32 gameId = 1; +inline bool RejoinExistingGameMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RejoinExistingGameMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void RejoinExistingGameMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RejoinExistingGameMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 RejoinExistingGameMessage::gameid() const { + return gameid_; +} +inline void RejoinExistingGameMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// optional bool autoLeave = 2; +inline bool RejoinExistingGameMessage::has_autoleave() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RejoinExistingGameMessage::set_has_autoleave() { + _has_bits_[0] |= 0x00000002u; +} +inline void RejoinExistingGameMessage::clear_has_autoleave() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RejoinExistingGameMessage::clear_autoleave() { + autoleave_ = false; + clear_has_autoleave(); +} +inline bool RejoinExistingGameMessage::autoleave() const { + return autoleave_; +} +inline void RejoinExistingGameMessage::set_autoleave(bool value) { + set_has_autoleave(); + autoleave_ = value; +} + +// ------------------------------------------------------------------- + +// JoinGameAckMessage + +// required uint32 gameId = 1; +inline bool JoinGameAckMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void JoinGameAckMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void JoinGameAckMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void JoinGameAckMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 JoinGameAckMessage::gameid() const { + return gameid_; +} +inline void JoinGameAckMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required bool areYouGameAdmin = 2; +inline bool JoinGameAckMessage::has_areyougameadmin() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void JoinGameAckMessage::set_has_areyougameadmin() { + _has_bits_[0] |= 0x00000002u; +} +inline void JoinGameAckMessage::clear_has_areyougameadmin() { + _has_bits_[0] &= ~0x00000002u; +} +inline void JoinGameAckMessage::clear_areyougameadmin() { + areyougameadmin_ = false; + clear_has_areyougameadmin(); +} +inline bool JoinGameAckMessage::areyougameadmin() const { + return areyougameadmin_; +} +inline void JoinGameAckMessage::set_areyougameadmin(bool value) { + set_has_areyougameadmin(); + areyougameadmin_ = value; +} + +// required .NetGameInfo gameInfo = 3; +inline bool JoinGameAckMessage::has_gameinfo() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void JoinGameAckMessage::set_has_gameinfo() { + _has_bits_[0] |= 0x00000004u; +} +inline void JoinGameAckMessage::clear_has_gameinfo() { + _has_bits_[0] &= ~0x00000004u; +} +inline void JoinGameAckMessage::clear_gameinfo() { + if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); + clear_has_gameinfo(); +} +inline const ::NetGameInfo& JoinGameAckMessage::gameinfo() const { + return gameinfo_ != NULL ? *gameinfo_ : *default_instance_->gameinfo_; +} +inline ::NetGameInfo* JoinGameAckMessage::mutable_gameinfo() { + set_has_gameinfo(); + if (gameinfo_ == NULL) gameinfo_ = new ::NetGameInfo; + return gameinfo_; +} +inline ::NetGameInfo* JoinGameAckMessage::release_gameinfo() { + clear_has_gameinfo(); + ::NetGameInfo* temp = gameinfo_; + gameinfo_ = NULL; + return temp; +} + +// ------------------------------------------------------------------- + +// JoinGameFailedMessage + +// required uint32 gameId = 1; +inline bool JoinGameFailedMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void JoinGameFailedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void JoinGameFailedMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void JoinGameFailedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 JoinGameFailedMessage::gameid() const { + return gameid_; +} +inline void JoinGameFailedMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; +inline bool JoinGameFailedMessage::has_joingamefailurereason() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void JoinGameFailedMessage::set_has_joingamefailurereason() { + _has_bits_[0] |= 0x00000002u; +} +inline void JoinGameFailedMessage::clear_has_joingamefailurereason() { + _has_bits_[0] &= ~0x00000002u; +} +inline void JoinGameFailedMessage::clear_joingamefailurereason() { + joingamefailurereason_ = 1; + clear_has_joingamefailurereason(); +} +inline ::JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::joingamefailurereason() const { + return static_cast< ::JoinGameFailedMessage_JoinGameFailureReason >(joingamefailurereason_); +} +inline void JoinGameFailedMessage::set_joingamefailurereason(::JoinGameFailedMessage_JoinGameFailureReason value) { + GOOGLE_DCHECK(::JoinGameFailedMessage_JoinGameFailureReason_IsValid(value)); + set_has_joingamefailurereason(); + joingamefailurereason_ = value; +} + +// ------------------------------------------------------------------- + +// GamePlayerJoinedMessage + +// required uint32 gameId = 1; +inline bool GamePlayerJoinedMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GamePlayerJoinedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GamePlayerJoinedMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GamePlayerJoinedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 GamePlayerJoinedMessage::gameid() const { + return gameid_; +} +inline void GamePlayerJoinedMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 playerId = 2; +inline bool GamePlayerJoinedMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GamePlayerJoinedMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GamePlayerJoinedMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GamePlayerJoinedMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 GamePlayerJoinedMessage::playerid() const { + return playerid_; +} +inline void GamePlayerJoinedMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// required bool isGameAdmin = 3; +inline bool GamePlayerJoinedMessage::has_isgameadmin() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void GamePlayerJoinedMessage::set_has_isgameadmin() { + _has_bits_[0] |= 0x00000004u; +} +inline void GamePlayerJoinedMessage::clear_has_isgameadmin() { + _has_bits_[0] &= ~0x00000004u; +} +inline void GamePlayerJoinedMessage::clear_isgameadmin() { + isgameadmin_ = false; + clear_has_isgameadmin(); +} +inline bool GamePlayerJoinedMessage::isgameadmin() const { + return isgameadmin_; +} +inline void GamePlayerJoinedMessage::set_isgameadmin(bool value) { + set_has_isgameadmin(); + isgameadmin_ = value; +} + +// ------------------------------------------------------------------- + +// GamePlayerLeftMessage + +// required uint32 gameId = 1; +inline bool GamePlayerLeftMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GamePlayerLeftMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GamePlayerLeftMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GamePlayerLeftMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 GamePlayerLeftMessage::gameid() const { + return gameid_; +} +inline void GamePlayerLeftMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 playerId = 2; +inline bool GamePlayerLeftMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GamePlayerLeftMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GamePlayerLeftMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GamePlayerLeftMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 GamePlayerLeftMessage::playerid() const { + return playerid_; +} +inline void GamePlayerLeftMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; +inline bool GamePlayerLeftMessage::has_gameplayerleftreason() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void GamePlayerLeftMessage::set_has_gameplayerleftreason() { + _has_bits_[0] |= 0x00000004u; +} +inline void GamePlayerLeftMessage::clear_has_gameplayerleftreason() { + _has_bits_[0] &= ~0x00000004u; +} +inline void GamePlayerLeftMessage::clear_gameplayerleftreason() { + gameplayerleftreason_ = 0; + clear_has_gameplayerleftreason(); +} +inline ::GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::gameplayerleftreason() const { + return static_cast< ::GamePlayerLeftMessage_GamePlayerLeftReason >(gameplayerleftreason_); +} +inline void GamePlayerLeftMessage::set_gameplayerleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value) { + GOOGLE_DCHECK(::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(value)); + set_has_gameplayerleftreason(); + gameplayerleftreason_ = value; +} + +// ------------------------------------------------------------------- + +// GameAdminChangedMessage + +// required uint32 gameId = 1; +inline bool GameAdminChangedMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GameAdminChangedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameAdminChangedMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GameAdminChangedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 GameAdminChangedMessage::gameid() const { + return gameid_; +} +inline void GameAdminChangedMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 newAdminPlayerId = 2; +inline bool GameAdminChangedMessage::has_newadminplayerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GameAdminChangedMessage::set_has_newadminplayerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameAdminChangedMessage::clear_has_newadminplayerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GameAdminChangedMessage::clear_newadminplayerid() { + newadminplayerid_ = 0u; + clear_has_newadminplayerid(); +} +inline ::google::protobuf::uint32 GameAdminChangedMessage::newadminplayerid() const { + return newadminplayerid_; +} +inline void GameAdminChangedMessage::set_newadminplayerid(::google::protobuf::uint32 value) { + set_has_newadminplayerid(); + newadminplayerid_ = value; +} + +// ------------------------------------------------------------------- + +// RemovedFromGameMessage + +// required uint32 gameId = 1; +inline bool RemovedFromGameMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RemovedFromGameMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void RemovedFromGameMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RemovedFromGameMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 RemovedFromGameMessage::gameid() const { + return gameid_; +} +inline void RemovedFromGameMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; +inline bool RemovedFromGameMessage::has_removedfromgamereason() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RemovedFromGameMessage::set_has_removedfromgamereason() { + _has_bits_[0] |= 0x00000002u; +} +inline void RemovedFromGameMessage::clear_has_removedfromgamereason() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RemovedFromGameMessage::clear_removedfromgamereason() { + removedfromgamereason_ = 0; + clear_has_removedfromgamereason(); +} +inline ::RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::removedfromgamereason() const { + return static_cast< ::RemovedFromGameMessage_RemovedFromGameReason >(removedfromgamereason_); +} +inline void RemovedFromGameMessage::set_removedfromgamereason(::RemovedFromGameMessage_RemovedFromGameReason value) { + GOOGLE_DCHECK(::RemovedFromGameMessage_RemovedFromGameReason_IsValid(value)); + set_has_removedfromgamereason(); + removedfromgamereason_ = value; +} + +// ------------------------------------------------------------------- + +// KickPlayerRequestMessage + +// required uint32 gameId = 1; +inline bool KickPlayerRequestMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void KickPlayerRequestMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void KickPlayerRequestMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void KickPlayerRequestMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 KickPlayerRequestMessage::gameid() const { + return gameid_; +} +inline void KickPlayerRequestMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 playerId = 2; +inline bool KickPlayerRequestMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void KickPlayerRequestMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void KickPlayerRequestMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void KickPlayerRequestMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 KickPlayerRequestMessage::playerid() const { + return playerid_; +} +inline void KickPlayerRequestMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// ------------------------------------------------------------------- + +// LeaveGameRequestMessage + +// required uint32 gameId = 1; +inline bool LeaveGameRequestMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LeaveGameRequestMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void LeaveGameRequestMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LeaveGameRequestMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 LeaveGameRequestMessage::gameid() const { + return gameid_; +} +inline void LeaveGameRequestMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// ------------------------------------------------------------------- + +// InvitePlayerToGameMessage + +// required uint32 gameId = 1; +inline bool InvitePlayerToGameMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void InvitePlayerToGameMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void InvitePlayerToGameMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void InvitePlayerToGameMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 InvitePlayerToGameMessage::gameid() const { + return gameid_; +} +inline void InvitePlayerToGameMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 playerId = 2; +inline bool InvitePlayerToGameMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void InvitePlayerToGameMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void InvitePlayerToGameMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void InvitePlayerToGameMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 InvitePlayerToGameMessage::playerid() const { + return playerid_; +} +inline void InvitePlayerToGameMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// ------------------------------------------------------------------- + +// InviteNotifyMessage + +// required uint32 gameId = 1; +inline bool InviteNotifyMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void InviteNotifyMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void InviteNotifyMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void InviteNotifyMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 InviteNotifyMessage::gameid() const { + return gameid_; +} +inline void InviteNotifyMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 playerIdWho = 2; +inline bool InviteNotifyMessage::has_playeridwho() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void InviteNotifyMessage::set_has_playeridwho() { + _has_bits_[0] |= 0x00000002u; +} +inline void InviteNotifyMessage::clear_has_playeridwho() { + _has_bits_[0] &= ~0x00000002u; +} +inline void InviteNotifyMessage::clear_playeridwho() { + playeridwho_ = 0u; + clear_has_playeridwho(); +} +inline ::google::protobuf::uint32 InviteNotifyMessage::playeridwho() const { + return playeridwho_; +} +inline void InviteNotifyMessage::set_playeridwho(::google::protobuf::uint32 value) { + set_has_playeridwho(); + playeridwho_ = value; +} + +// required uint32 playerIdByWhom = 3; +inline bool InviteNotifyMessage::has_playeridbywhom() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void InviteNotifyMessage::set_has_playeridbywhom() { + _has_bits_[0] |= 0x00000004u; +} +inline void InviteNotifyMessage::clear_has_playeridbywhom() { + _has_bits_[0] &= ~0x00000004u; +} +inline void InviteNotifyMessage::clear_playeridbywhom() { + playeridbywhom_ = 0u; + clear_has_playeridbywhom(); +} +inline ::google::protobuf::uint32 InviteNotifyMessage::playeridbywhom() const { + return playeridbywhom_; +} +inline void InviteNotifyMessage::set_playeridbywhom(::google::protobuf::uint32 value) { + set_has_playeridbywhom(); + playeridbywhom_ = value; +} + +// ------------------------------------------------------------------- + +// RejectGameInvitationMessage + +// required uint32 gameId = 1; +inline bool RejectGameInvitationMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RejectGameInvitationMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void RejectGameInvitationMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RejectGameInvitationMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 RejectGameInvitationMessage::gameid() const { + return gameid_; +} +inline void RejectGameInvitationMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; +inline bool RejectGameInvitationMessage::has_myrejectreason() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RejectGameInvitationMessage::set_has_myrejectreason() { + _has_bits_[0] |= 0x00000002u; +} +inline void RejectGameInvitationMessage::clear_has_myrejectreason() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RejectGameInvitationMessage::clear_myrejectreason() { + myrejectreason_ = 0; + clear_has_myrejectreason(); +} +inline ::RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::myrejectreason() const { + return static_cast< ::RejectGameInvitationMessage_RejectGameInvReason >(myrejectreason_); +} +inline void RejectGameInvitationMessage::set_myrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value) { + GOOGLE_DCHECK(::RejectGameInvitationMessage_RejectGameInvReason_IsValid(value)); + set_has_myrejectreason(); + myrejectreason_ = value; +} + +// ------------------------------------------------------------------- + +// RejectInvNotifyMessage + +// required uint32 gameId = 1; +inline bool RejectInvNotifyMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void RejectInvNotifyMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void RejectInvNotifyMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void RejectInvNotifyMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 RejectInvNotifyMessage::gameid() const { + return gameid_; +} +inline void RejectInvNotifyMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 playerId = 2; +inline bool RejectInvNotifyMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void RejectInvNotifyMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void RejectInvNotifyMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void RejectInvNotifyMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 RejectInvNotifyMessage::playerid() const { + return playerid_; +} +inline void RejectInvNotifyMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; +inline bool RejectInvNotifyMessage::has_playerrejectreason() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void RejectInvNotifyMessage::set_has_playerrejectreason() { + _has_bits_[0] |= 0x00000004u; +} +inline void RejectInvNotifyMessage::clear_has_playerrejectreason() { + _has_bits_[0] &= ~0x00000004u; +} +inline void RejectInvNotifyMessage::clear_playerrejectreason() { + playerrejectreason_ = 0; + clear_has_playerrejectreason(); +} +inline ::RejectGameInvitationMessage_RejectGameInvReason RejectInvNotifyMessage::playerrejectreason() const { + return static_cast< ::RejectGameInvitationMessage_RejectGameInvReason >(playerrejectreason_); +} +inline void RejectInvNotifyMessage::set_playerrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value) { + GOOGLE_DCHECK(::RejectGameInvitationMessage_RejectGameInvReason_IsValid(value)); + set_has_playerrejectreason(); + playerrejectreason_ = value; +} + +// ------------------------------------------------------------------- + +// StartEventMessage + +// required uint32 gameId = 1; +inline bool StartEventMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StartEventMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void StartEventMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StartEventMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 StartEventMessage::gameid() const { + return gameid_; +} +inline void StartEventMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required .StartEventMessage.StartEventType startEventType = 2; +inline bool StartEventMessage::has_starteventtype() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StartEventMessage::set_has_starteventtype() { + _has_bits_[0] |= 0x00000002u; +} +inline void StartEventMessage::clear_has_starteventtype() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StartEventMessage::clear_starteventtype() { + starteventtype_ = 0; + clear_has_starteventtype(); +} +inline ::StartEventMessage_StartEventType StartEventMessage::starteventtype() const { + return static_cast< ::StartEventMessage_StartEventType >(starteventtype_); +} +inline void StartEventMessage::set_starteventtype(::StartEventMessage_StartEventType value) { + GOOGLE_DCHECK(::StartEventMessage_StartEventType_IsValid(value)); + set_has_starteventtype(); + starteventtype_ = value; +} + +// optional bool fillWithComputerPlayers = 3; +inline bool StartEventMessage::has_fillwithcomputerplayers() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void StartEventMessage::set_has_fillwithcomputerplayers() { + _has_bits_[0] |= 0x00000004u; +} +inline void StartEventMessage::clear_has_fillwithcomputerplayers() { + _has_bits_[0] &= ~0x00000004u; +} +inline void StartEventMessage::clear_fillwithcomputerplayers() { + fillwithcomputerplayers_ = false; + clear_has_fillwithcomputerplayers(); +} +inline bool StartEventMessage::fillwithcomputerplayers() const { + return fillwithcomputerplayers_; +} +inline void StartEventMessage::set_fillwithcomputerplayers(bool value) { + set_has_fillwithcomputerplayers(); + fillwithcomputerplayers_ = value; +} + +// ------------------------------------------------------------------- + +// StartEventAckMessage + +// required uint32 gameId = 1; +inline bool StartEventAckMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StartEventAckMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void StartEventAckMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StartEventAckMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 StartEventAckMessage::gameid() const { + return gameid_; +} +inline void StartEventAckMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// ------------------------------------------------------------------- + +// GameStartInitialMessage + +// required uint32 gameId = 1; +inline bool GameStartInitialMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GameStartInitialMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameStartInitialMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GameStartInitialMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 GameStartInitialMessage::gameid() const { + return gameid_; +} +inline void GameStartInitialMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 startDealerPlayerId = 2; +inline bool GameStartInitialMessage::has_startdealerplayerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GameStartInitialMessage::set_has_startdealerplayerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameStartInitialMessage::clear_has_startdealerplayerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GameStartInitialMessage::clear_startdealerplayerid() { + startdealerplayerid_ = 0u; + clear_has_startdealerplayerid(); +} +inline ::google::protobuf::uint32 GameStartInitialMessage::startdealerplayerid() const { + return startdealerplayerid_; +} +inline void GameStartInitialMessage::set_startdealerplayerid(::google::protobuf::uint32 value) { + set_has_startdealerplayerid(); + startdealerplayerid_ = value; +} + +// repeated uint32 playerSeats = 3 [packed = true]; +inline int GameStartInitialMessage::playerseats_size() const { + return playerseats_.size(); +} +inline void GameStartInitialMessage::clear_playerseats() { + playerseats_.Clear(); +} +inline ::google::protobuf::uint32 GameStartInitialMessage::playerseats(int index) const { + return playerseats_.Get(index); +} +inline void GameStartInitialMessage::set_playerseats(int index, ::google::protobuf::uint32 value) { + playerseats_.Set(index, value); +} +inline void GameStartInitialMessage::add_playerseats(::google::protobuf::uint32 value) { + playerseats_.Add(value); +} +inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& +GameStartInitialMessage::playerseats() const { + return playerseats_; +} +inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* +GameStartInitialMessage::mutable_playerseats() { + return &playerseats_; +} + +// ------------------------------------------------------------------- + +// GameStartRejoinMessage_RejoinPlayerData + +// required uint32 playerId = 1; +inline bool GameStartRejoinMessage_RejoinPlayerData::has_playerid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GameStartRejoinMessage_RejoinPlayerData::set_has_playerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameStartRejoinMessage_RejoinPlayerData::clear_has_playerid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GameStartRejoinMessage_RejoinPlayerData::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 GameStartRejoinMessage_RejoinPlayerData::playerid() const { + return playerid_; +} +inline void GameStartRejoinMessage_RejoinPlayerData::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// required uint32 playerMoney = 2; +inline bool GameStartRejoinMessage_RejoinPlayerData::has_playermoney() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GameStartRejoinMessage_RejoinPlayerData::set_has_playermoney() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameStartRejoinMessage_RejoinPlayerData::clear_has_playermoney() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GameStartRejoinMessage_RejoinPlayerData::clear_playermoney() { + playermoney_ = 0u; + clear_has_playermoney(); +} +inline ::google::protobuf::uint32 GameStartRejoinMessage_RejoinPlayerData::playermoney() const { + return playermoney_; +} +inline void GameStartRejoinMessage_RejoinPlayerData::set_playermoney(::google::protobuf::uint32 value) { + set_has_playermoney(); + playermoney_ = value; +} + +// ------------------------------------------------------------------- + +// GameStartRejoinMessage + +// required uint32 gameId = 1; +inline bool GameStartRejoinMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GameStartRejoinMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameStartRejoinMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GameStartRejoinMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 GameStartRejoinMessage::gameid() const { + return gameid_; +} +inline void GameStartRejoinMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 startDealerPlayerId = 2; +inline bool GameStartRejoinMessage::has_startdealerplayerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GameStartRejoinMessage::set_has_startdealerplayerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameStartRejoinMessage::clear_has_startdealerplayerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GameStartRejoinMessage::clear_startdealerplayerid() { + startdealerplayerid_ = 0u; + clear_has_startdealerplayerid(); +} +inline ::google::protobuf::uint32 GameStartRejoinMessage::startdealerplayerid() const { + return startdealerplayerid_; +} +inline void GameStartRejoinMessage::set_startdealerplayerid(::google::protobuf::uint32 value) { + set_has_startdealerplayerid(); + startdealerplayerid_ = value; +} + +// required uint32 handNum = 3; +inline bool GameStartRejoinMessage::has_handnum() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void GameStartRejoinMessage::set_has_handnum() { + _has_bits_[0] |= 0x00000004u; +} +inline void GameStartRejoinMessage::clear_has_handnum() { + _has_bits_[0] &= ~0x00000004u; +} +inline void GameStartRejoinMessage::clear_handnum() { + handnum_ = 0u; + clear_has_handnum(); +} +inline ::google::protobuf::uint32 GameStartRejoinMessage::handnum() const { + return handnum_; +} +inline void GameStartRejoinMessage::set_handnum(::google::protobuf::uint32 value) { + set_has_handnum(); + handnum_ = value; +} + +// repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; +inline int GameStartRejoinMessage::rejoinplayerdata_size() const { + return rejoinplayerdata_.size(); +} +inline void GameStartRejoinMessage::clear_rejoinplayerdata() { + rejoinplayerdata_.Clear(); +} +inline const ::GameStartRejoinMessage_RejoinPlayerData& GameStartRejoinMessage::rejoinplayerdata(int index) const { + return rejoinplayerdata_.Get(index); +} +inline ::GameStartRejoinMessage_RejoinPlayerData* GameStartRejoinMessage::mutable_rejoinplayerdata(int index) { + return rejoinplayerdata_.Mutable(index); +} +inline ::GameStartRejoinMessage_RejoinPlayerData* GameStartRejoinMessage::add_rejoinplayerdata() { + return rejoinplayerdata_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >& +GameStartRejoinMessage::rejoinplayerdata() const { + return rejoinplayerdata_; +} +inline ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >* +GameStartRejoinMessage::mutable_rejoinplayerdata() { + return &rejoinplayerdata_; +} + +// ------------------------------------------------------------------- + +// HandStartMessage_PlainCards + +// required uint32 plainCard1 = 1; +inline bool HandStartMessage_PlainCards::has_plaincard1() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void HandStartMessage_PlainCards::set_has_plaincard1() { + _has_bits_[0] |= 0x00000001u; +} +inline void HandStartMessage_PlainCards::clear_has_plaincard1() { + _has_bits_[0] &= ~0x00000001u; +} +inline void HandStartMessage_PlainCards::clear_plaincard1() { + plaincard1_ = 0u; + clear_has_plaincard1(); +} +inline ::google::protobuf::uint32 HandStartMessage_PlainCards::plaincard1() const { + return plaincard1_; +} +inline void HandStartMessage_PlainCards::set_plaincard1(::google::protobuf::uint32 value) { + set_has_plaincard1(); + plaincard1_ = value; +} + +// required uint32 plainCard2 = 2; +inline bool HandStartMessage_PlainCards::has_plaincard2() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void HandStartMessage_PlainCards::set_has_plaincard2() { + _has_bits_[0] |= 0x00000002u; +} +inline void HandStartMessage_PlainCards::clear_has_plaincard2() { + _has_bits_[0] &= ~0x00000002u; +} +inline void HandStartMessage_PlainCards::clear_plaincard2() { + plaincard2_ = 0u; + clear_has_plaincard2(); +} +inline ::google::protobuf::uint32 HandStartMessage_PlainCards::plaincard2() const { + return plaincard2_; +} +inline void HandStartMessage_PlainCards::set_plaincard2(::google::protobuf::uint32 value) { + set_has_plaincard2(); + plaincard2_ = value; +} + +// ------------------------------------------------------------------- + +// HandStartMessage + +// required uint32 gameId = 1; +inline bool HandStartMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void HandStartMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void HandStartMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void HandStartMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 HandStartMessage::gameid() const { + return gameid_; +} +inline void HandStartMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// optional .HandStartMessage.PlainCards plainCards = 2; +inline bool HandStartMessage::has_plaincards() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void HandStartMessage::set_has_plaincards() { + _has_bits_[0] |= 0x00000002u; +} +inline void HandStartMessage::clear_has_plaincards() { + _has_bits_[0] &= ~0x00000002u; +} +inline void HandStartMessage::clear_plaincards() { + if (plaincards_ != NULL) plaincards_->::HandStartMessage_PlainCards::Clear(); + clear_has_plaincards(); +} +inline const ::HandStartMessage_PlainCards& HandStartMessage::plaincards() const { + return plaincards_ != NULL ? *plaincards_ : *default_instance_->plaincards_; +} +inline ::HandStartMessage_PlainCards* HandStartMessage::mutable_plaincards() { + set_has_plaincards(); + if (plaincards_ == NULL) plaincards_ = new ::HandStartMessage_PlainCards; + return plaincards_; +} +inline ::HandStartMessage_PlainCards* HandStartMessage::release_plaincards() { + clear_has_plaincards(); + ::HandStartMessage_PlainCards* temp = plaincards_; + plaincards_ = NULL; + return temp; +} + +// optional bytes encryptedCards = 3; +inline bool HandStartMessage::has_encryptedcards() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void HandStartMessage::set_has_encryptedcards() { + _has_bits_[0] |= 0x00000004u; +} +inline void HandStartMessage::clear_has_encryptedcards() { + _has_bits_[0] &= ~0x00000004u; +} +inline void HandStartMessage::clear_encryptedcards() { + if (encryptedcards_ != &::google::protobuf::internal::kEmptyString) { + encryptedcards_->clear(); + } + clear_has_encryptedcards(); +} +inline const ::std::string& HandStartMessage::encryptedcards() const { + return *encryptedcards_; +} +inline void HandStartMessage::set_encryptedcards(const ::std::string& value) { + set_has_encryptedcards(); + if (encryptedcards_ == &::google::protobuf::internal::kEmptyString) { + encryptedcards_ = new ::std::string; + } + encryptedcards_->assign(value); +} +inline void HandStartMessage::set_encryptedcards(const char* value) { + set_has_encryptedcards(); + if (encryptedcards_ == &::google::protobuf::internal::kEmptyString) { + encryptedcards_ = new ::std::string; + } + encryptedcards_->assign(value); +} +inline void HandStartMessage::set_encryptedcards(const void* value, size_t size) { + set_has_encryptedcards(); + if (encryptedcards_ == &::google::protobuf::internal::kEmptyString) { + encryptedcards_ = new ::std::string; + } + encryptedcards_->assign(reinterpret_cast(value), size); +} +inline ::std::string* HandStartMessage::mutable_encryptedcards() { + set_has_encryptedcards(); + if (encryptedcards_ == &::google::protobuf::internal::kEmptyString) { + encryptedcards_ = new ::std::string; + } + return encryptedcards_; +} +inline ::std::string* HandStartMessage::release_encryptedcards() { + clear_has_encryptedcards(); + if (encryptedcards_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = encryptedcards_; + encryptedcards_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// required uint32 smallBlind = 4; +inline bool HandStartMessage::has_smallblind() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void HandStartMessage::set_has_smallblind() { + _has_bits_[0] |= 0x00000008u; +} +inline void HandStartMessage::clear_has_smallblind() { + _has_bits_[0] &= ~0x00000008u; +} +inline void HandStartMessage::clear_smallblind() { + smallblind_ = 0u; + clear_has_smallblind(); +} +inline ::google::protobuf::uint32 HandStartMessage::smallblind() const { + return smallblind_; +} +inline void HandStartMessage::set_smallblind(::google::protobuf::uint32 value) { + set_has_smallblind(); + smallblind_ = value; +} + +// repeated .NetPlayerState seatStates = 5; +inline int HandStartMessage::seatstates_size() const { + return seatstates_.size(); +} +inline void HandStartMessage::clear_seatstates() { + seatstates_.Clear(); +} +inline NetPlayerState HandStartMessage::seatstates(int index) const { + return static_cast< NetPlayerState >(seatstates_.Get(index)); +} +inline void HandStartMessage::set_seatstates(int index, NetPlayerState value) { + GOOGLE_DCHECK(NetPlayerState_IsValid(value)); + seatstates_.Set(index, value); +} +inline void HandStartMessage::add_seatstates(NetPlayerState value) { + GOOGLE_DCHECK(NetPlayerState_IsValid(value)); + seatstates_.Add(value); +} +inline const ::google::protobuf::RepeatedField& +HandStartMessage::seatstates() const { + return seatstates_; +} +inline ::google::protobuf::RepeatedField* +HandStartMessage::mutable_seatstates() { + return &seatstates_; +} + +// ------------------------------------------------------------------- + +// PlayersTurnMessage + +// required uint32 gameId = 1; +inline bool PlayersTurnMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PlayersTurnMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void PlayersTurnMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PlayersTurnMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 PlayersTurnMessage::gameid() const { + return gameid_; +} +inline void PlayersTurnMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 playerId = 2; +inline bool PlayersTurnMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PlayersTurnMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void PlayersTurnMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PlayersTurnMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 PlayersTurnMessage::playerid() const { + return playerid_; +} +inline void PlayersTurnMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// required .NetGameState gameState = 3; +inline bool PlayersTurnMessage::has_gamestate() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void PlayersTurnMessage::set_has_gamestate() { + _has_bits_[0] |= 0x00000004u; +} +inline void PlayersTurnMessage::clear_has_gamestate() { + _has_bits_[0] &= ~0x00000004u; +} +inline void PlayersTurnMessage::clear_gamestate() { + gamestate_ = 0; + clear_has_gamestate(); +} +inline NetGameState PlayersTurnMessage::gamestate() const { + return static_cast< NetGameState >(gamestate_); +} +inline void PlayersTurnMessage::set_gamestate(NetGameState value) { + GOOGLE_DCHECK(NetGameState_IsValid(value)); + set_has_gamestate(); + gamestate_ = value; +} + +// ------------------------------------------------------------------- + +// MyActionRequestMessage + +// required uint32 gameId = 1; +inline bool MyActionRequestMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void MyActionRequestMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void MyActionRequestMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void MyActionRequestMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 MyActionRequestMessage::gameid() const { + return gameid_; +} +inline void MyActionRequestMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 handNum = 2; +inline bool MyActionRequestMessage::has_handnum() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void MyActionRequestMessage::set_has_handnum() { + _has_bits_[0] |= 0x00000002u; +} +inline void MyActionRequestMessage::clear_has_handnum() { + _has_bits_[0] &= ~0x00000002u; +} +inline void MyActionRequestMessage::clear_handnum() { + handnum_ = 0u; + clear_has_handnum(); +} +inline ::google::protobuf::uint32 MyActionRequestMessage::handnum() const { + return handnum_; +} +inline void MyActionRequestMessage::set_handnum(::google::protobuf::uint32 value) { + set_has_handnum(); + handnum_ = value; +} + +// required .NetGameState gameState = 3; +inline bool MyActionRequestMessage::has_gamestate() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void MyActionRequestMessage::set_has_gamestate() { + _has_bits_[0] |= 0x00000004u; +} +inline void MyActionRequestMessage::clear_has_gamestate() { + _has_bits_[0] &= ~0x00000004u; +} +inline void MyActionRequestMessage::clear_gamestate() { + gamestate_ = 0; + clear_has_gamestate(); +} +inline NetGameState MyActionRequestMessage::gamestate() const { + return static_cast< NetGameState >(gamestate_); +} +inline void MyActionRequestMessage::set_gamestate(NetGameState value) { + GOOGLE_DCHECK(NetGameState_IsValid(value)); + set_has_gamestate(); + gamestate_ = value; +} + +// required .NetPlayerAction myAction = 4; +inline bool MyActionRequestMessage::has_myaction() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void MyActionRequestMessage::set_has_myaction() { + _has_bits_[0] |= 0x00000008u; +} +inline void MyActionRequestMessage::clear_has_myaction() { + _has_bits_[0] &= ~0x00000008u; +} +inline void MyActionRequestMessage::clear_myaction() { + myaction_ = 0; + clear_has_myaction(); +} +inline NetPlayerAction MyActionRequestMessage::myaction() const { + return static_cast< NetPlayerAction >(myaction_); +} +inline void MyActionRequestMessage::set_myaction(NetPlayerAction value) { + GOOGLE_DCHECK(NetPlayerAction_IsValid(value)); + set_has_myaction(); + myaction_ = value; +} + +// required uint32 myRelativeBet = 5; +inline bool MyActionRequestMessage::has_myrelativebet() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void MyActionRequestMessage::set_has_myrelativebet() { + _has_bits_[0] |= 0x00000010u; +} +inline void MyActionRequestMessage::clear_has_myrelativebet() { + _has_bits_[0] &= ~0x00000010u; +} +inline void MyActionRequestMessage::clear_myrelativebet() { + myrelativebet_ = 0u; + clear_has_myrelativebet(); +} +inline ::google::protobuf::uint32 MyActionRequestMessage::myrelativebet() const { + return myrelativebet_; +} +inline void MyActionRequestMessage::set_myrelativebet(::google::protobuf::uint32 value) { + set_has_myrelativebet(); + myrelativebet_ = value; +} + +// ------------------------------------------------------------------- + +// YourActionRejectedMessage + +// required uint32 gameId = 1; +inline bool YourActionRejectedMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void YourActionRejectedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void YourActionRejectedMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void YourActionRejectedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 YourActionRejectedMessage::gameid() const { + return gameid_; +} +inline void YourActionRejectedMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required .NetGameState gameState = 2; +inline bool YourActionRejectedMessage::has_gamestate() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void YourActionRejectedMessage::set_has_gamestate() { + _has_bits_[0] |= 0x00000002u; +} +inline void YourActionRejectedMessage::clear_has_gamestate() { + _has_bits_[0] &= ~0x00000002u; +} +inline void YourActionRejectedMessage::clear_gamestate() { + gamestate_ = 0; + clear_has_gamestate(); +} +inline NetGameState YourActionRejectedMessage::gamestate() const { + return static_cast< NetGameState >(gamestate_); +} +inline void YourActionRejectedMessage::set_gamestate(NetGameState value) { + GOOGLE_DCHECK(NetGameState_IsValid(value)); + set_has_gamestate(); + gamestate_ = value; +} + +// required .NetPlayerAction yourAction = 3; +inline bool YourActionRejectedMessage::has_youraction() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void YourActionRejectedMessage::set_has_youraction() { + _has_bits_[0] |= 0x00000004u; +} +inline void YourActionRejectedMessage::clear_has_youraction() { + _has_bits_[0] &= ~0x00000004u; +} +inline void YourActionRejectedMessage::clear_youraction() { + youraction_ = 0; + clear_has_youraction(); +} +inline NetPlayerAction YourActionRejectedMessage::youraction() const { + return static_cast< NetPlayerAction >(youraction_); +} +inline void YourActionRejectedMessage::set_youraction(NetPlayerAction value) { + GOOGLE_DCHECK(NetPlayerAction_IsValid(value)); + set_has_youraction(); + youraction_ = value; +} + +// required uint32 yourRelativeBet = 4; +inline bool YourActionRejectedMessage::has_yourrelativebet() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void YourActionRejectedMessage::set_has_yourrelativebet() { + _has_bits_[0] |= 0x00000008u; +} +inline void YourActionRejectedMessage::clear_has_yourrelativebet() { + _has_bits_[0] &= ~0x00000008u; +} +inline void YourActionRejectedMessage::clear_yourrelativebet() { + yourrelativebet_ = 0u; + clear_has_yourrelativebet(); +} +inline ::google::protobuf::uint32 YourActionRejectedMessage::yourrelativebet() const { + return yourrelativebet_; +} +inline void YourActionRejectedMessage::set_yourrelativebet(::google::protobuf::uint32 value) { + set_has_yourrelativebet(); + yourrelativebet_ = value; +} + +// required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; +inline bool YourActionRejectedMessage::has_rejectionreason() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void YourActionRejectedMessage::set_has_rejectionreason() { + _has_bits_[0] |= 0x00000010u; +} +inline void YourActionRejectedMessage::clear_has_rejectionreason() { + _has_bits_[0] &= ~0x00000010u; +} +inline void YourActionRejectedMessage::clear_rejectionreason() { + rejectionreason_ = 1; + clear_has_rejectionreason(); +} +inline ::YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectionreason() const { + return static_cast< ::YourActionRejectedMessage_RejectionReason >(rejectionreason_); +} +inline void YourActionRejectedMessage::set_rejectionreason(::YourActionRejectedMessage_RejectionReason value) { + GOOGLE_DCHECK(::YourActionRejectedMessage_RejectionReason_IsValid(value)); + set_has_rejectionreason(); + rejectionreason_ = value; +} + +// ------------------------------------------------------------------- + +// PlayersActionDoneMessage + +// required uint32 gameId = 1; +inline bool PlayersActionDoneMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PlayersActionDoneMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void PlayersActionDoneMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PlayersActionDoneMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 PlayersActionDoneMessage::gameid() const { + return gameid_; +} +inline void PlayersActionDoneMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 playerId = 2; +inline bool PlayersActionDoneMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PlayersActionDoneMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void PlayersActionDoneMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PlayersActionDoneMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 PlayersActionDoneMessage::playerid() const { + return playerid_; +} +inline void PlayersActionDoneMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// required .NetGameState gameState = 3; +inline bool PlayersActionDoneMessage::has_gamestate() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void PlayersActionDoneMessage::set_has_gamestate() { + _has_bits_[0] |= 0x00000004u; +} +inline void PlayersActionDoneMessage::clear_has_gamestate() { + _has_bits_[0] &= ~0x00000004u; +} +inline void PlayersActionDoneMessage::clear_gamestate() { + gamestate_ = 0; + clear_has_gamestate(); +} +inline NetGameState PlayersActionDoneMessage::gamestate() const { + return static_cast< NetGameState >(gamestate_); +} +inline void PlayersActionDoneMessage::set_gamestate(NetGameState value) { + GOOGLE_DCHECK(NetGameState_IsValid(value)); + set_has_gamestate(); + gamestate_ = value; +} + +// required .NetPlayerAction playerAction = 4; +inline bool PlayersActionDoneMessage::has_playeraction() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void PlayersActionDoneMessage::set_has_playeraction() { + _has_bits_[0] |= 0x00000008u; +} +inline void PlayersActionDoneMessage::clear_has_playeraction() { + _has_bits_[0] &= ~0x00000008u; +} +inline void PlayersActionDoneMessage::clear_playeraction() { + playeraction_ = 0; + clear_has_playeraction(); +} +inline NetPlayerAction PlayersActionDoneMessage::playeraction() const { + return static_cast< NetPlayerAction >(playeraction_); +} +inline void PlayersActionDoneMessage::set_playeraction(NetPlayerAction value) { + GOOGLE_DCHECK(NetPlayerAction_IsValid(value)); + set_has_playeraction(); + playeraction_ = value; +} + +// required uint32 totalPlayerBet = 5; +inline bool PlayersActionDoneMessage::has_totalplayerbet() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void PlayersActionDoneMessage::set_has_totalplayerbet() { + _has_bits_[0] |= 0x00000010u; +} +inline void PlayersActionDoneMessage::clear_has_totalplayerbet() { + _has_bits_[0] &= ~0x00000010u; +} +inline void PlayersActionDoneMessage::clear_totalplayerbet() { + totalplayerbet_ = 0u; + clear_has_totalplayerbet(); +} +inline ::google::protobuf::uint32 PlayersActionDoneMessage::totalplayerbet() const { + return totalplayerbet_; +} +inline void PlayersActionDoneMessage::set_totalplayerbet(::google::protobuf::uint32 value) { + set_has_totalplayerbet(); + totalplayerbet_ = value; +} + +// required uint32 playerMoney = 6; +inline bool PlayersActionDoneMessage::has_playermoney() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void PlayersActionDoneMessage::set_has_playermoney() { + _has_bits_[0] |= 0x00000020u; +} +inline void PlayersActionDoneMessage::clear_has_playermoney() { + _has_bits_[0] &= ~0x00000020u; +} +inline void PlayersActionDoneMessage::clear_playermoney() { + playermoney_ = 0u; + clear_has_playermoney(); +} +inline ::google::protobuf::uint32 PlayersActionDoneMessage::playermoney() const { + return playermoney_; +} +inline void PlayersActionDoneMessage::set_playermoney(::google::protobuf::uint32 value) { + set_has_playermoney(); + playermoney_ = value; +} + +// required uint32 highestSet = 7; +inline bool PlayersActionDoneMessage::has_highestset() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void PlayersActionDoneMessage::set_has_highestset() { + _has_bits_[0] |= 0x00000040u; +} +inline void PlayersActionDoneMessage::clear_has_highestset() { + _has_bits_[0] &= ~0x00000040u; +} +inline void PlayersActionDoneMessage::clear_highestset() { + highestset_ = 0u; + clear_has_highestset(); +} +inline ::google::protobuf::uint32 PlayersActionDoneMessage::highestset() const { + return highestset_; +} +inline void PlayersActionDoneMessage::set_highestset(::google::protobuf::uint32 value) { + set_has_highestset(); + highestset_ = value; +} + +// required uint32 minimumRaise = 8; +inline bool PlayersActionDoneMessage::has_minimumraise() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void PlayersActionDoneMessage::set_has_minimumraise() { + _has_bits_[0] |= 0x00000080u; +} +inline void PlayersActionDoneMessage::clear_has_minimumraise() { + _has_bits_[0] &= ~0x00000080u; +} +inline void PlayersActionDoneMessage::clear_minimumraise() { + minimumraise_ = 0u; + clear_has_minimumraise(); +} +inline ::google::protobuf::uint32 PlayersActionDoneMessage::minimumraise() const { + return minimumraise_; +} +inline void PlayersActionDoneMessage::set_minimumraise(::google::protobuf::uint32 value) { + set_has_minimumraise(); + minimumraise_ = value; +} + +// ------------------------------------------------------------------- + +// DealFlopCardsMessage + +// required uint32 gameId = 1; +inline bool DealFlopCardsMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DealFlopCardsMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void DealFlopCardsMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DealFlopCardsMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 DealFlopCardsMessage::gameid() const { + return gameid_; +} +inline void DealFlopCardsMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 flopCard1 = 2; +inline bool DealFlopCardsMessage::has_flopcard1() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DealFlopCardsMessage::set_has_flopcard1() { + _has_bits_[0] |= 0x00000002u; +} +inline void DealFlopCardsMessage::clear_has_flopcard1() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DealFlopCardsMessage::clear_flopcard1() { + flopcard1_ = 0u; + clear_has_flopcard1(); +} +inline ::google::protobuf::uint32 DealFlopCardsMessage::flopcard1() const { + return flopcard1_; +} +inline void DealFlopCardsMessage::set_flopcard1(::google::protobuf::uint32 value) { + set_has_flopcard1(); + flopcard1_ = value; +} + +// required uint32 flopCard2 = 3; +inline bool DealFlopCardsMessage::has_flopcard2() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void DealFlopCardsMessage::set_has_flopcard2() { + _has_bits_[0] |= 0x00000004u; +} +inline void DealFlopCardsMessage::clear_has_flopcard2() { + _has_bits_[0] &= ~0x00000004u; +} +inline void DealFlopCardsMessage::clear_flopcard2() { + flopcard2_ = 0u; + clear_has_flopcard2(); +} +inline ::google::protobuf::uint32 DealFlopCardsMessage::flopcard2() const { + return flopcard2_; +} +inline void DealFlopCardsMessage::set_flopcard2(::google::protobuf::uint32 value) { + set_has_flopcard2(); + flopcard2_ = value; +} + +// required uint32 flopCard3 = 4; +inline bool DealFlopCardsMessage::has_flopcard3() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void DealFlopCardsMessage::set_has_flopcard3() { + _has_bits_[0] |= 0x00000008u; +} +inline void DealFlopCardsMessage::clear_has_flopcard3() { + _has_bits_[0] &= ~0x00000008u; +} +inline void DealFlopCardsMessage::clear_flopcard3() { + flopcard3_ = 0u; + clear_has_flopcard3(); +} +inline ::google::protobuf::uint32 DealFlopCardsMessage::flopcard3() const { + return flopcard3_; +} +inline void DealFlopCardsMessage::set_flopcard3(::google::protobuf::uint32 value) { + set_has_flopcard3(); + flopcard3_ = value; +} + +// ------------------------------------------------------------------- + +// DealTurnCardMessage + +// required uint32 gameId = 1; +inline bool DealTurnCardMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DealTurnCardMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void DealTurnCardMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DealTurnCardMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 DealTurnCardMessage::gameid() const { + return gameid_; +} +inline void DealTurnCardMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 turnCard = 2; +inline bool DealTurnCardMessage::has_turncard() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DealTurnCardMessage::set_has_turncard() { + _has_bits_[0] |= 0x00000002u; +} +inline void DealTurnCardMessage::clear_has_turncard() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DealTurnCardMessage::clear_turncard() { + turncard_ = 0u; + clear_has_turncard(); +} +inline ::google::protobuf::uint32 DealTurnCardMessage::turncard() const { + return turncard_; +} +inline void DealTurnCardMessage::set_turncard(::google::protobuf::uint32 value) { + set_has_turncard(); + turncard_ = value; +} + +// ------------------------------------------------------------------- + +// DealRiverCardMessage + +// required uint32 gameId = 1; +inline bool DealRiverCardMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DealRiverCardMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void DealRiverCardMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DealRiverCardMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 DealRiverCardMessage::gameid() const { + return gameid_; +} +inline void DealRiverCardMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 riverCard = 2; +inline bool DealRiverCardMessage::has_rivercard() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void DealRiverCardMessage::set_has_rivercard() { + _has_bits_[0] |= 0x00000002u; +} +inline void DealRiverCardMessage::clear_has_rivercard() { + _has_bits_[0] &= ~0x00000002u; +} +inline void DealRiverCardMessage::clear_rivercard() { + rivercard_ = 0u; + clear_has_rivercard(); +} +inline ::google::protobuf::uint32 DealRiverCardMessage::rivercard() const { + return rivercard_; +} +inline void DealRiverCardMessage::set_rivercard(::google::protobuf::uint32 value) { + set_has_rivercard(); + rivercard_ = value; +} + +// ------------------------------------------------------------------- + +// AllInShowCardsMessage_PlayerAllIn + +// required uint32 playerId = 1; +inline bool AllInShowCardsMessage_PlayerAllIn::has_playerid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AllInShowCardsMessage_PlayerAllIn::set_has_playerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AllInShowCardsMessage_PlayerAllIn::clear_has_playerid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AllInShowCardsMessage_PlayerAllIn::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 AllInShowCardsMessage_PlayerAllIn::playerid() const { + return playerid_; +} +inline void AllInShowCardsMessage_PlayerAllIn::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// required uint32 allInCard1 = 2; +inline bool AllInShowCardsMessage_PlayerAllIn::has_allincard1() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AllInShowCardsMessage_PlayerAllIn::set_has_allincard1() { + _has_bits_[0] |= 0x00000002u; +} +inline void AllInShowCardsMessage_PlayerAllIn::clear_has_allincard1() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AllInShowCardsMessage_PlayerAllIn::clear_allincard1() { + allincard1_ = 0u; + clear_has_allincard1(); +} +inline ::google::protobuf::uint32 AllInShowCardsMessage_PlayerAllIn::allincard1() const { + return allincard1_; +} +inline void AllInShowCardsMessage_PlayerAllIn::set_allincard1(::google::protobuf::uint32 value) { + set_has_allincard1(); + allincard1_ = value; +} + +// required uint32 allInCard2 = 3; +inline bool AllInShowCardsMessage_PlayerAllIn::has_allincard2() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void AllInShowCardsMessage_PlayerAllIn::set_has_allincard2() { + _has_bits_[0] |= 0x00000004u; +} +inline void AllInShowCardsMessage_PlayerAllIn::clear_has_allincard2() { + _has_bits_[0] &= ~0x00000004u; +} +inline void AllInShowCardsMessage_PlayerAllIn::clear_allincard2() { + allincard2_ = 0u; + clear_has_allincard2(); +} +inline ::google::protobuf::uint32 AllInShowCardsMessage_PlayerAllIn::allincard2() const { + return allincard2_; +} +inline void AllInShowCardsMessage_PlayerAllIn::set_allincard2(::google::protobuf::uint32 value) { + set_has_allincard2(); + allincard2_ = value; +} + +// ------------------------------------------------------------------- + +// AllInShowCardsMessage + +// required uint32 gameId = 1; +inline bool AllInShowCardsMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AllInShowCardsMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AllInShowCardsMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AllInShowCardsMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 AllInShowCardsMessage::gameid() const { + return gameid_; +} +inline void AllInShowCardsMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; +inline int AllInShowCardsMessage::playersallin_size() const { + return playersallin_.size(); +} +inline void AllInShowCardsMessage::clear_playersallin() { + playersallin_.Clear(); +} +inline const ::AllInShowCardsMessage_PlayerAllIn& AllInShowCardsMessage::playersallin(int index) const { + return playersallin_.Get(index); +} +inline ::AllInShowCardsMessage_PlayerAllIn* AllInShowCardsMessage::mutable_playersallin(int index) { + return playersallin_.Mutable(index); +} +inline ::AllInShowCardsMessage_PlayerAllIn* AllInShowCardsMessage::add_playersallin() { + return playersallin_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >& +AllInShowCardsMessage::playersallin() const { + return playersallin_; +} +inline ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >* +AllInShowCardsMessage::mutable_playersallin() { + return &playersallin_; +} + +// ------------------------------------------------------------------- + +// EndOfHandShowCardsMessage + +// required uint32 gameId = 1; +inline bool EndOfHandShowCardsMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EndOfHandShowCardsMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void EndOfHandShowCardsMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EndOfHandShowCardsMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 EndOfHandShowCardsMessage::gameid() const { + return gameid_; +} +inline void EndOfHandShowCardsMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// repeated .PlayerResult playerResults = 2; +inline int EndOfHandShowCardsMessage::playerresults_size() const { + return playerresults_.size(); +} +inline void EndOfHandShowCardsMessage::clear_playerresults() { + playerresults_.Clear(); +} +inline const ::PlayerResult& EndOfHandShowCardsMessage::playerresults(int index) const { + return playerresults_.Get(index); +} +inline ::PlayerResult* EndOfHandShowCardsMessage::mutable_playerresults(int index) { + return playerresults_.Mutable(index); +} +inline ::PlayerResult* EndOfHandShowCardsMessage::add_playerresults() { + return playerresults_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::PlayerResult >& +EndOfHandShowCardsMessage::playerresults() const { + return playerresults_; +} +inline ::google::protobuf::RepeatedPtrField< ::PlayerResult >* +EndOfHandShowCardsMessage::mutable_playerresults() { + return &playerresults_; +} + +// ------------------------------------------------------------------- + +// EndOfHandHideCardsMessage + +// required uint32 gameId = 1; +inline bool EndOfHandHideCardsMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EndOfHandHideCardsMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void EndOfHandHideCardsMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EndOfHandHideCardsMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 EndOfHandHideCardsMessage::gameid() const { + return gameid_; +} +inline void EndOfHandHideCardsMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 playerId = 2; +inline bool EndOfHandHideCardsMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EndOfHandHideCardsMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void EndOfHandHideCardsMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EndOfHandHideCardsMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 EndOfHandHideCardsMessage::playerid() const { + return playerid_; +} +inline void EndOfHandHideCardsMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// required uint32 moneyWon = 3; +inline bool EndOfHandHideCardsMessage::has_moneywon() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EndOfHandHideCardsMessage::set_has_moneywon() { + _has_bits_[0] |= 0x00000004u; +} +inline void EndOfHandHideCardsMessage::clear_has_moneywon() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EndOfHandHideCardsMessage::clear_moneywon() { + moneywon_ = 0u; + clear_has_moneywon(); +} +inline ::google::protobuf::uint32 EndOfHandHideCardsMessage::moneywon() const { + return moneywon_; +} +inline void EndOfHandHideCardsMessage::set_moneywon(::google::protobuf::uint32 value) { + set_has_moneywon(); + moneywon_ = value; +} + +// required uint32 playerMoney = 4; +inline bool EndOfHandHideCardsMessage::has_playermoney() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void EndOfHandHideCardsMessage::set_has_playermoney() { + _has_bits_[0] |= 0x00000008u; +} +inline void EndOfHandHideCardsMessage::clear_has_playermoney() { + _has_bits_[0] &= ~0x00000008u; +} +inline void EndOfHandHideCardsMessage::clear_playermoney() { + playermoney_ = 0u; + clear_has_playermoney(); +} +inline ::google::protobuf::uint32 EndOfHandHideCardsMessage::playermoney() const { + return playermoney_; +} +inline void EndOfHandHideCardsMessage::set_playermoney(::google::protobuf::uint32 value) { + set_has_playermoney(); + playermoney_ = value; +} + +// ------------------------------------------------------------------- + +// ShowMyCardsRequestMessage + +// ------------------------------------------------------------------- + +// AfterHandShowCardsMessage + +// required .PlayerResult playerResult = 1; +inline bool AfterHandShowCardsMessage::has_playerresult() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AfterHandShowCardsMessage::set_has_playerresult() { + _has_bits_[0] |= 0x00000001u; +} +inline void AfterHandShowCardsMessage::clear_has_playerresult() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AfterHandShowCardsMessage::clear_playerresult() { + if (playerresult_ != NULL) playerresult_->::PlayerResult::Clear(); + clear_has_playerresult(); +} +inline const ::PlayerResult& AfterHandShowCardsMessage::playerresult() const { + return playerresult_ != NULL ? *playerresult_ : *default_instance_->playerresult_; +} +inline ::PlayerResult* AfterHandShowCardsMessage::mutable_playerresult() { + set_has_playerresult(); + if (playerresult_ == NULL) playerresult_ = new ::PlayerResult; + return playerresult_; +} +inline ::PlayerResult* AfterHandShowCardsMessage::release_playerresult() { + clear_has_playerresult(); + ::PlayerResult* temp = playerresult_; + playerresult_ = NULL; + return temp; +} + +// ------------------------------------------------------------------- + +// EndOfGameMessage + +// required uint32 gameId = 1; +inline bool EndOfGameMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EndOfGameMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void EndOfGameMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EndOfGameMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 EndOfGameMessage::gameid() const { + return gameid_; +} +inline void EndOfGameMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 winnerPlayerId = 2; +inline bool EndOfGameMessage::has_winnerplayerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EndOfGameMessage::set_has_winnerplayerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void EndOfGameMessage::clear_has_winnerplayerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EndOfGameMessage::clear_winnerplayerid() { + winnerplayerid_ = 0u; + clear_has_winnerplayerid(); +} +inline ::google::protobuf::uint32 EndOfGameMessage::winnerplayerid() const { + return winnerplayerid_; +} +inline void EndOfGameMessage::set_winnerplayerid(::google::protobuf::uint32 value) { + set_has_winnerplayerid(); + winnerplayerid_ = value; +} + +// ------------------------------------------------------------------- + +// PlayerIdChangedMessage + +// required uint32 oldPlayerId = 1; +inline bool PlayerIdChangedMessage::has_oldplayerid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PlayerIdChangedMessage::set_has_oldplayerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void PlayerIdChangedMessage::clear_has_oldplayerid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PlayerIdChangedMessage::clear_oldplayerid() { + oldplayerid_ = 0u; + clear_has_oldplayerid(); +} +inline ::google::protobuf::uint32 PlayerIdChangedMessage::oldplayerid() const { + return oldplayerid_; +} +inline void PlayerIdChangedMessage::set_oldplayerid(::google::protobuf::uint32 value) { + set_has_oldplayerid(); + oldplayerid_ = value; +} + +// required uint32 newPlayerId = 2; +inline bool PlayerIdChangedMessage::has_newplayerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PlayerIdChangedMessage::set_has_newplayerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void PlayerIdChangedMessage::clear_has_newplayerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PlayerIdChangedMessage::clear_newplayerid() { + newplayerid_ = 0u; + clear_has_newplayerid(); +} +inline ::google::protobuf::uint32 PlayerIdChangedMessage::newplayerid() const { + return newplayerid_; +} +inline void PlayerIdChangedMessage::set_newplayerid(::google::protobuf::uint32 value) { + set_has_newplayerid(); + newplayerid_ = value; +} + +// ------------------------------------------------------------------- + +// AskKickPlayerMessage + +// required uint32 gameId = 1; +inline bool AskKickPlayerMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AskKickPlayerMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AskKickPlayerMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AskKickPlayerMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 AskKickPlayerMessage::gameid() const { + return gameid_; +} +inline void AskKickPlayerMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 playerId = 2; +inline bool AskKickPlayerMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AskKickPlayerMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void AskKickPlayerMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AskKickPlayerMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 AskKickPlayerMessage::playerid() const { + return playerid_; +} +inline void AskKickPlayerMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// ------------------------------------------------------------------- + +// AskKickDeniedMessage + +// required uint32 gameId = 1; +inline bool AskKickDeniedMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AskKickDeniedMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void AskKickDeniedMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AskKickDeniedMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 AskKickDeniedMessage::gameid() const { + return gameid_; +} +inline void AskKickDeniedMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 playerId = 2; +inline bool AskKickDeniedMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AskKickDeniedMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void AskKickDeniedMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void AskKickDeniedMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 AskKickDeniedMessage::playerid() const { + return playerid_; +} +inline void AskKickDeniedMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; +inline bool AskKickDeniedMessage::has_kickdeniedreason() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void AskKickDeniedMessage::set_has_kickdeniedreason() { + _has_bits_[0] |= 0x00000004u; +} +inline void AskKickDeniedMessage::clear_has_kickdeniedreason() { + _has_bits_[0] &= ~0x00000004u; +} +inline void AskKickDeniedMessage::clear_kickdeniedreason() { + kickdeniedreason_ = 0; + clear_has_kickdeniedreason(); +} +inline ::AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickdeniedreason() const { + return static_cast< ::AskKickDeniedMessage_KickDeniedReason >(kickdeniedreason_); +} +inline void AskKickDeniedMessage::set_kickdeniedreason(::AskKickDeniedMessage_KickDeniedReason value) { + GOOGLE_DCHECK(::AskKickDeniedMessage_KickDeniedReason_IsValid(value)); + set_has_kickdeniedreason(); + kickdeniedreason_ = value; +} + +// ------------------------------------------------------------------- + +// StartKickPetitionMessage + +// required uint32 gameId = 1; +inline bool StartKickPetitionMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StartKickPetitionMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void StartKickPetitionMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StartKickPetitionMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 StartKickPetitionMessage::gameid() const { + return gameid_; +} +inline void StartKickPetitionMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 petitionId = 2; +inline bool StartKickPetitionMessage::has_petitionid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StartKickPetitionMessage::set_has_petitionid() { + _has_bits_[0] |= 0x00000002u; +} +inline void StartKickPetitionMessage::clear_has_petitionid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StartKickPetitionMessage::clear_petitionid() { + petitionid_ = 0u; + clear_has_petitionid(); +} +inline ::google::protobuf::uint32 StartKickPetitionMessage::petitionid() const { + return petitionid_; +} +inline void StartKickPetitionMessage::set_petitionid(::google::protobuf::uint32 value) { + set_has_petitionid(); + petitionid_ = value; +} + +// required uint32 proposingPlayerId = 3; +inline bool StartKickPetitionMessage::has_proposingplayerid() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void StartKickPetitionMessage::set_has_proposingplayerid() { + _has_bits_[0] |= 0x00000004u; +} +inline void StartKickPetitionMessage::clear_has_proposingplayerid() { + _has_bits_[0] &= ~0x00000004u; +} +inline void StartKickPetitionMessage::clear_proposingplayerid() { + proposingplayerid_ = 0u; + clear_has_proposingplayerid(); +} +inline ::google::protobuf::uint32 StartKickPetitionMessage::proposingplayerid() const { + return proposingplayerid_; +} +inline void StartKickPetitionMessage::set_proposingplayerid(::google::protobuf::uint32 value) { + set_has_proposingplayerid(); + proposingplayerid_ = value; +} + +// required uint32 kickPlayerId = 4; +inline bool StartKickPetitionMessage::has_kickplayerid() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void StartKickPetitionMessage::set_has_kickplayerid() { + _has_bits_[0] |= 0x00000008u; +} +inline void StartKickPetitionMessage::clear_has_kickplayerid() { + _has_bits_[0] &= ~0x00000008u; +} +inline void StartKickPetitionMessage::clear_kickplayerid() { + kickplayerid_ = 0u; + clear_has_kickplayerid(); +} +inline ::google::protobuf::uint32 StartKickPetitionMessage::kickplayerid() const { + return kickplayerid_; +} +inline void StartKickPetitionMessage::set_kickplayerid(::google::protobuf::uint32 value) { + set_has_kickplayerid(); + kickplayerid_ = value; +} + +// required uint32 kickTimeoutSec = 5; +inline bool StartKickPetitionMessage::has_kicktimeoutsec() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void StartKickPetitionMessage::set_has_kicktimeoutsec() { + _has_bits_[0] |= 0x00000010u; +} +inline void StartKickPetitionMessage::clear_has_kicktimeoutsec() { + _has_bits_[0] &= ~0x00000010u; +} +inline void StartKickPetitionMessage::clear_kicktimeoutsec() { + kicktimeoutsec_ = 0u; + clear_has_kicktimeoutsec(); +} +inline ::google::protobuf::uint32 StartKickPetitionMessage::kicktimeoutsec() const { + return kicktimeoutsec_; +} +inline void StartKickPetitionMessage::set_kicktimeoutsec(::google::protobuf::uint32 value) { + set_has_kicktimeoutsec(); + kicktimeoutsec_ = value; +} + +// required uint32 numVotesNeededToKick = 6; +inline bool StartKickPetitionMessage::has_numvotesneededtokick() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void StartKickPetitionMessage::set_has_numvotesneededtokick() { + _has_bits_[0] |= 0x00000020u; +} +inline void StartKickPetitionMessage::clear_has_numvotesneededtokick() { + _has_bits_[0] &= ~0x00000020u; +} +inline void StartKickPetitionMessage::clear_numvotesneededtokick() { + numvotesneededtokick_ = 0u; + clear_has_numvotesneededtokick(); +} +inline ::google::protobuf::uint32 StartKickPetitionMessage::numvotesneededtokick() const { + return numvotesneededtokick_; +} +inline void StartKickPetitionMessage::set_numvotesneededtokick(::google::protobuf::uint32 value) { + set_has_numvotesneededtokick(); + numvotesneededtokick_ = value; +} + +// ------------------------------------------------------------------- + +// VoteKickRequestMessage + +// required uint32 gameId = 1; +inline bool VoteKickRequestMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void VoteKickRequestMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void VoteKickRequestMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void VoteKickRequestMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 VoteKickRequestMessage::gameid() const { + return gameid_; +} +inline void VoteKickRequestMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 petitionId = 2; +inline bool VoteKickRequestMessage::has_petitionid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void VoteKickRequestMessage::set_has_petitionid() { + _has_bits_[0] |= 0x00000002u; +} +inline void VoteKickRequestMessage::clear_has_petitionid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void VoteKickRequestMessage::clear_petitionid() { + petitionid_ = 0u; + clear_has_petitionid(); +} +inline ::google::protobuf::uint32 VoteKickRequestMessage::petitionid() const { + return petitionid_; +} +inline void VoteKickRequestMessage::set_petitionid(::google::protobuf::uint32 value) { + set_has_petitionid(); + petitionid_ = value; +} + +// required bool voteKick = 3; +inline bool VoteKickRequestMessage::has_votekick() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void VoteKickRequestMessage::set_has_votekick() { + _has_bits_[0] |= 0x00000004u; +} +inline void VoteKickRequestMessage::clear_has_votekick() { + _has_bits_[0] &= ~0x00000004u; +} +inline void VoteKickRequestMessage::clear_votekick() { + votekick_ = false; + clear_has_votekick(); +} +inline bool VoteKickRequestMessage::votekick() const { + return votekick_; +} +inline void VoteKickRequestMessage::set_votekick(bool value) { + set_has_votekick(); + votekick_ = value; +} + +// ------------------------------------------------------------------- + +// VoteKickReplyMessage + +// required uint32 gameId = 1; +inline bool VoteKickReplyMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void VoteKickReplyMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void VoteKickReplyMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void VoteKickReplyMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 VoteKickReplyMessage::gameid() const { + return gameid_; +} +inline void VoteKickReplyMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 petitionId = 2; +inline bool VoteKickReplyMessage::has_petitionid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void VoteKickReplyMessage::set_has_petitionid() { + _has_bits_[0] |= 0x00000002u; +} +inline void VoteKickReplyMessage::clear_has_petitionid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void VoteKickReplyMessage::clear_petitionid() { + petitionid_ = 0u; + clear_has_petitionid(); +} +inline ::google::protobuf::uint32 VoteKickReplyMessage::petitionid() const { + return petitionid_; +} +inline void VoteKickReplyMessage::set_petitionid(::google::protobuf::uint32 value) { + set_has_petitionid(); + petitionid_ = value; +} + +// required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; +inline bool VoteKickReplyMessage::has_votekickreplytype() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void VoteKickReplyMessage::set_has_votekickreplytype() { + _has_bits_[0] |= 0x00000004u; +} +inline void VoteKickReplyMessage::clear_has_votekickreplytype() { + _has_bits_[0] &= ~0x00000004u; +} +inline void VoteKickReplyMessage::clear_votekickreplytype() { + votekickreplytype_ = 0; + clear_has_votekickreplytype(); +} +inline ::VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::votekickreplytype() const { + return static_cast< ::VoteKickReplyMessage_VoteKickReplyType >(votekickreplytype_); +} +inline void VoteKickReplyMessage::set_votekickreplytype(::VoteKickReplyMessage_VoteKickReplyType value) { + GOOGLE_DCHECK(::VoteKickReplyMessage_VoteKickReplyType_IsValid(value)); + set_has_votekickreplytype(); + votekickreplytype_ = value; +} + +// ------------------------------------------------------------------- + +// KickPetitionUpdateMessage + +// required uint32 gameId = 1; +inline bool KickPetitionUpdateMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void KickPetitionUpdateMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void KickPetitionUpdateMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void KickPetitionUpdateMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 KickPetitionUpdateMessage::gameid() const { + return gameid_; +} +inline void KickPetitionUpdateMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 petitionId = 2; +inline bool KickPetitionUpdateMessage::has_petitionid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void KickPetitionUpdateMessage::set_has_petitionid() { + _has_bits_[0] |= 0x00000002u; +} +inline void KickPetitionUpdateMessage::clear_has_petitionid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void KickPetitionUpdateMessage::clear_petitionid() { + petitionid_ = 0u; + clear_has_petitionid(); +} +inline ::google::protobuf::uint32 KickPetitionUpdateMessage::petitionid() const { + return petitionid_; +} +inline void KickPetitionUpdateMessage::set_petitionid(::google::protobuf::uint32 value) { + set_has_petitionid(); + petitionid_ = value; +} + +// required uint32 numVotesAgainstKicking = 3; +inline bool KickPetitionUpdateMessage::has_numvotesagainstkicking() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void KickPetitionUpdateMessage::set_has_numvotesagainstkicking() { + _has_bits_[0] |= 0x00000004u; +} +inline void KickPetitionUpdateMessage::clear_has_numvotesagainstkicking() { + _has_bits_[0] &= ~0x00000004u; +} +inline void KickPetitionUpdateMessage::clear_numvotesagainstkicking() { + numvotesagainstkicking_ = 0u; + clear_has_numvotesagainstkicking(); +} +inline ::google::protobuf::uint32 KickPetitionUpdateMessage::numvotesagainstkicking() const { + return numvotesagainstkicking_; +} +inline void KickPetitionUpdateMessage::set_numvotesagainstkicking(::google::protobuf::uint32 value) { + set_has_numvotesagainstkicking(); + numvotesagainstkicking_ = value; +} + +// required uint32 numVotesInFavourOfKicking = 4; +inline bool KickPetitionUpdateMessage::has_numvotesinfavourofkicking() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void KickPetitionUpdateMessage::set_has_numvotesinfavourofkicking() { + _has_bits_[0] |= 0x00000008u; +} +inline void KickPetitionUpdateMessage::clear_has_numvotesinfavourofkicking() { + _has_bits_[0] &= ~0x00000008u; +} +inline void KickPetitionUpdateMessage::clear_numvotesinfavourofkicking() { + numvotesinfavourofkicking_ = 0u; + clear_has_numvotesinfavourofkicking(); +} +inline ::google::protobuf::uint32 KickPetitionUpdateMessage::numvotesinfavourofkicking() const { + return numvotesinfavourofkicking_; +} +inline void KickPetitionUpdateMessage::set_numvotesinfavourofkicking(::google::protobuf::uint32 value) { + set_has_numvotesinfavourofkicking(); + numvotesinfavourofkicking_ = value; +} + +// required uint32 numVotesNeededToKick = 5; +inline bool KickPetitionUpdateMessage::has_numvotesneededtokick() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void KickPetitionUpdateMessage::set_has_numvotesneededtokick() { + _has_bits_[0] |= 0x00000010u; +} +inline void KickPetitionUpdateMessage::clear_has_numvotesneededtokick() { + _has_bits_[0] &= ~0x00000010u; +} +inline void KickPetitionUpdateMessage::clear_numvotesneededtokick() { + numvotesneededtokick_ = 0u; + clear_has_numvotesneededtokick(); +} +inline ::google::protobuf::uint32 KickPetitionUpdateMessage::numvotesneededtokick() const { + return numvotesneededtokick_; +} +inline void KickPetitionUpdateMessage::set_numvotesneededtokick(::google::protobuf::uint32 value) { + set_has_numvotesneededtokick(); + numvotesneededtokick_ = value; +} + +// ------------------------------------------------------------------- + +// EndKickPetitionMessage + +// required uint32 gameId = 1; +inline bool EndKickPetitionMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void EndKickPetitionMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void EndKickPetitionMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void EndKickPetitionMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 EndKickPetitionMessage::gameid() const { + return gameid_; +} +inline void EndKickPetitionMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// required uint32 petitionId = 2; +inline bool EndKickPetitionMessage::has_petitionid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void EndKickPetitionMessage::set_has_petitionid() { + _has_bits_[0] |= 0x00000002u; +} +inline void EndKickPetitionMessage::clear_has_petitionid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void EndKickPetitionMessage::clear_petitionid() { + petitionid_ = 0u; + clear_has_petitionid(); +} +inline ::google::protobuf::uint32 EndKickPetitionMessage::petitionid() const { + return petitionid_; +} +inline void EndKickPetitionMessage::set_petitionid(::google::protobuf::uint32 value) { + set_has_petitionid(); + petitionid_ = value; +} + +// required uint32 numVotesAgainstKicking = 3; +inline bool EndKickPetitionMessage::has_numvotesagainstkicking() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void EndKickPetitionMessage::set_has_numvotesagainstkicking() { + _has_bits_[0] |= 0x00000004u; +} +inline void EndKickPetitionMessage::clear_has_numvotesagainstkicking() { + _has_bits_[0] &= ~0x00000004u; +} +inline void EndKickPetitionMessage::clear_numvotesagainstkicking() { + numvotesagainstkicking_ = 0u; + clear_has_numvotesagainstkicking(); +} +inline ::google::protobuf::uint32 EndKickPetitionMessage::numvotesagainstkicking() const { + return numvotesagainstkicking_; +} +inline void EndKickPetitionMessage::set_numvotesagainstkicking(::google::protobuf::uint32 value) { + set_has_numvotesagainstkicking(); + numvotesagainstkicking_ = value; +} + +// required uint32 numVotesInFavourOfKicking = 4; +inline bool EndKickPetitionMessage::has_numvotesinfavourofkicking() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void EndKickPetitionMessage::set_has_numvotesinfavourofkicking() { + _has_bits_[0] |= 0x00000008u; +} +inline void EndKickPetitionMessage::clear_has_numvotesinfavourofkicking() { + _has_bits_[0] &= ~0x00000008u; +} +inline void EndKickPetitionMessage::clear_numvotesinfavourofkicking() { + numvotesinfavourofkicking_ = 0u; + clear_has_numvotesinfavourofkicking(); +} +inline ::google::protobuf::uint32 EndKickPetitionMessage::numvotesinfavourofkicking() const { + return numvotesinfavourofkicking_; +} +inline void EndKickPetitionMessage::set_numvotesinfavourofkicking(::google::protobuf::uint32 value) { + set_has_numvotesinfavourofkicking(); + numvotesinfavourofkicking_ = value; +} + +// required uint32 resultPlayerKicked = 5; +inline bool EndKickPetitionMessage::has_resultplayerkicked() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void EndKickPetitionMessage::set_has_resultplayerkicked() { + _has_bits_[0] |= 0x00000010u; +} +inline void EndKickPetitionMessage::clear_has_resultplayerkicked() { + _has_bits_[0] &= ~0x00000010u; +} +inline void EndKickPetitionMessage::clear_resultplayerkicked() { + resultplayerkicked_ = 0u; + clear_has_resultplayerkicked(); +} +inline ::google::protobuf::uint32 EndKickPetitionMessage::resultplayerkicked() const { + return resultplayerkicked_; +} +inline void EndKickPetitionMessage::set_resultplayerkicked(::google::protobuf::uint32 value) { + set_has_resultplayerkicked(); + resultplayerkicked_ = value; +} + +// required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; +inline bool EndKickPetitionMessage::has_petitionendreason() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void EndKickPetitionMessage::set_has_petitionendreason() { + _has_bits_[0] |= 0x00000020u; +} +inline void EndKickPetitionMessage::clear_has_petitionendreason() { + _has_bits_[0] &= ~0x00000020u; +} +inline void EndKickPetitionMessage::clear_petitionendreason() { + petitionendreason_ = 0; + clear_has_petitionendreason(); +} +inline ::EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionendreason() const { + return static_cast< ::EndKickPetitionMessage_PetitionEndReason >(petitionendreason_); +} +inline void EndKickPetitionMessage::set_petitionendreason(::EndKickPetitionMessage_PetitionEndReason value) { + GOOGLE_DCHECK(::EndKickPetitionMessage_PetitionEndReason_IsValid(value)); + set_has_petitionendreason(); + petitionendreason_ = value; +} + +// ------------------------------------------------------------------- + +// StatisticsMessage_StatisticsData + +// required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; +inline bool StatisticsMessage_StatisticsData::has_statisticstype() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void StatisticsMessage_StatisticsData::set_has_statisticstype() { + _has_bits_[0] |= 0x00000001u; +} +inline void StatisticsMessage_StatisticsData::clear_has_statisticstype() { + _has_bits_[0] &= ~0x00000001u; +} +inline void StatisticsMessage_StatisticsData::clear_statisticstype() { + statisticstype_ = 1; + clear_has_statisticstype(); +} +inline ::StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::statisticstype() const { + return static_cast< ::StatisticsMessage_StatisticsData_StatisticsType >(statisticstype_); +} +inline void StatisticsMessage_StatisticsData::set_statisticstype(::StatisticsMessage_StatisticsData_StatisticsType value) { + GOOGLE_DCHECK(::StatisticsMessage_StatisticsData_StatisticsType_IsValid(value)); + set_has_statisticstype(); + statisticstype_ = value; +} + +// required uint32 statisticsValue = 2; +inline bool StatisticsMessage_StatisticsData::has_statisticsvalue() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void StatisticsMessage_StatisticsData::set_has_statisticsvalue() { + _has_bits_[0] |= 0x00000002u; +} +inline void StatisticsMessage_StatisticsData::clear_has_statisticsvalue() { + _has_bits_[0] &= ~0x00000002u; +} +inline void StatisticsMessage_StatisticsData::clear_statisticsvalue() { + statisticsvalue_ = 0u; + clear_has_statisticsvalue(); +} +inline ::google::protobuf::uint32 StatisticsMessage_StatisticsData::statisticsvalue() const { + return statisticsvalue_; +} +inline void StatisticsMessage_StatisticsData::set_statisticsvalue(::google::protobuf::uint32 value) { + set_has_statisticsvalue(); + statisticsvalue_ = value; +} + +// ------------------------------------------------------------------- + +// StatisticsMessage + +// repeated .StatisticsMessage.StatisticsData statisticsData = 1; +inline int StatisticsMessage::statisticsdata_size() const { + return statisticsdata_.size(); +} +inline void StatisticsMessage::clear_statisticsdata() { + statisticsdata_.Clear(); +} +inline const ::StatisticsMessage_StatisticsData& StatisticsMessage::statisticsdata(int index) const { + return statisticsdata_.Get(index); +} +inline ::StatisticsMessage_StatisticsData* StatisticsMessage::mutable_statisticsdata(int index) { + return statisticsdata_.Mutable(index); +} +inline ::StatisticsMessage_StatisticsData* StatisticsMessage::add_statisticsdata() { + return statisticsdata_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >& +StatisticsMessage::statisticsdata() const { + return statisticsdata_; +} +inline ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >* +StatisticsMessage::mutable_statisticsdata() { + return &statisticsdata_; +} + +// ------------------------------------------------------------------- + +// ChatRequestMessage + +// optional uint32 targetGameId = 1; +inline bool ChatRequestMessage::has_targetgameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ChatRequestMessage::set_has_targetgameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void ChatRequestMessage::clear_has_targetgameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ChatRequestMessage::clear_targetgameid() { + targetgameid_ = 0u; + clear_has_targetgameid(); +} +inline ::google::protobuf::uint32 ChatRequestMessage::targetgameid() const { + return targetgameid_; +} +inline void ChatRequestMessage::set_targetgameid(::google::protobuf::uint32 value) { + set_has_targetgameid(); + targetgameid_ = value; +} + +// optional uint32 targetPlayerId = 2; +inline bool ChatRequestMessage::has_targetplayerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ChatRequestMessage::set_has_targetplayerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void ChatRequestMessage::clear_has_targetplayerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ChatRequestMessage::clear_targetplayerid() { + targetplayerid_ = 0u; + clear_has_targetplayerid(); +} +inline ::google::protobuf::uint32 ChatRequestMessage::targetplayerid() const { + return targetplayerid_; +} +inline void ChatRequestMessage::set_targetplayerid(::google::protobuf::uint32 value) { + set_has_targetplayerid(); + targetplayerid_ = value; +} + +// required string chatText = 3; +inline bool ChatRequestMessage::has_chattext() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ChatRequestMessage::set_has_chattext() { + _has_bits_[0] |= 0x00000004u; +} +inline void ChatRequestMessage::clear_has_chattext() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ChatRequestMessage::clear_chattext() { + if (chattext_ != &::google::protobuf::internal::kEmptyString) { + chattext_->clear(); + } + clear_has_chattext(); +} +inline const ::std::string& ChatRequestMessage::chattext() const { + return *chattext_; +} +inline void ChatRequestMessage::set_chattext(const ::std::string& value) { + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(value); +} +inline void ChatRequestMessage::set_chattext(const char* value) { + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(value); +} +inline void ChatRequestMessage::set_chattext(const char* value, size_t size) { + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ChatRequestMessage::mutable_chattext() { + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + return chattext_; +} +inline ::std::string* ChatRequestMessage::release_chattext() { + clear_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = chattext_; + chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// ------------------------------------------------------------------- + +// ChatMessage + +// optional uint32 gameId = 1; +inline bool ChatMessage::has_gameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ChatMessage::set_has_gameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void ChatMessage::clear_has_gameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ChatMessage::clear_gameid() { + gameid_ = 0u; + clear_has_gameid(); +} +inline ::google::protobuf::uint32 ChatMessage::gameid() const { + return gameid_; +} +inline void ChatMessage::set_gameid(::google::protobuf::uint32 value) { + set_has_gameid(); + gameid_ = value; +} + +// optional uint32 playerId = 2; +inline bool ChatMessage::has_playerid() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ChatMessage::set_has_playerid() { + _has_bits_[0] |= 0x00000002u; +} +inline void ChatMessage::clear_has_playerid() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ChatMessage::clear_playerid() { + playerid_ = 0u; + clear_has_playerid(); +} +inline ::google::protobuf::uint32 ChatMessage::playerid() const { + return playerid_; +} +inline void ChatMessage::set_playerid(::google::protobuf::uint32 value) { + set_has_playerid(); + playerid_ = value; +} + +// required .ChatMessage.ChatType chatType = 3; +inline bool ChatMessage::has_chattype() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void ChatMessage::set_has_chattype() { + _has_bits_[0] |= 0x00000004u; +} +inline void ChatMessage::clear_has_chattype() { + _has_bits_[0] &= ~0x00000004u; +} +inline void ChatMessage::clear_chattype() { + chattype_ = 0; + clear_has_chattype(); +} +inline ::ChatMessage_ChatType ChatMessage::chattype() const { + return static_cast< ::ChatMessage_ChatType >(chattype_); +} +inline void ChatMessage::set_chattype(::ChatMessage_ChatType value) { + GOOGLE_DCHECK(::ChatMessage_ChatType_IsValid(value)); + set_has_chattype(); + chattype_ = value; +} + +// required string chatText = 4; +inline bool ChatMessage::has_chattext() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void ChatMessage::set_has_chattext() { + _has_bits_[0] |= 0x00000008u; +} +inline void ChatMessage::clear_has_chattext() { + _has_bits_[0] &= ~0x00000008u; +} +inline void ChatMessage::clear_chattext() { + if (chattext_ != &::google::protobuf::internal::kEmptyString) { + chattext_->clear(); + } + clear_has_chattext(); +} +inline const ::std::string& ChatMessage::chattext() const { + return *chattext_; +} +inline void ChatMessage::set_chattext(const ::std::string& value) { + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(value); +} +inline void ChatMessage::set_chattext(const char* value) { + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(value); +} +inline void ChatMessage::set_chattext(const char* value, size_t size) { + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ChatMessage::mutable_chattext() { + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + return chattext_; +} +inline ::std::string* ChatMessage::release_chattext() { + clear_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = chattext_; + chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// ------------------------------------------------------------------- + +// ChatRejectMessage + +// required string chatText = 1; +inline bool ChatRejectMessage::has_chattext() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ChatRejectMessage::set_has_chattext() { + _has_bits_[0] |= 0x00000001u; +} +inline void ChatRejectMessage::clear_has_chattext() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ChatRejectMessage::clear_chattext() { + if (chattext_ != &::google::protobuf::internal::kEmptyString) { + chattext_->clear(); + } + clear_has_chattext(); +} +inline const ::std::string& ChatRejectMessage::chattext() const { + return *chattext_; +} +inline void ChatRejectMessage::set_chattext(const ::std::string& value) { + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(value); +} +inline void ChatRejectMessage::set_chattext(const char* value) { + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(value); +} +inline void ChatRejectMessage::set_chattext(const char* value, size_t size) { + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + chattext_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ChatRejectMessage::mutable_chattext() { + set_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + chattext_ = new ::std::string; + } + return chattext_; +} +inline ::std::string* ChatRejectMessage::release_chattext() { + clear_has_chattext(); + if (chattext_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = chattext_; + chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// ------------------------------------------------------------------- + +// DialogMessage + +// required string notificationText = 1; +inline bool DialogMessage::has_notificationtext() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void DialogMessage::set_has_notificationtext() { + _has_bits_[0] |= 0x00000001u; +} +inline void DialogMessage::clear_has_notificationtext() { + _has_bits_[0] &= ~0x00000001u; +} +inline void DialogMessage::clear_notificationtext() { + if (notificationtext_ != &::google::protobuf::internal::kEmptyString) { + notificationtext_->clear(); + } + clear_has_notificationtext(); +} +inline const ::std::string& DialogMessage::notificationtext() const { + return *notificationtext_; +} +inline void DialogMessage::set_notificationtext(const ::std::string& value) { + set_has_notificationtext(); + if (notificationtext_ == &::google::protobuf::internal::kEmptyString) { + notificationtext_ = new ::std::string; + } + notificationtext_->assign(value); +} +inline void DialogMessage::set_notificationtext(const char* value) { + set_has_notificationtext(); + if (notificationtext_ == &::google::protobuf::internal::kEmptyString) { + notificationtext_ = new ::std::string; + } + notificationtext_->assign(value); +} +inline void DialogMessage::set_notificationtext(const char* value, size_t size) { + set_has_notificationtext(); + if (notificationtext_ == &::google::protobuf::internal::kEmptyString) { + notificationtext_ = new ::std::string; + } + notificationtext_->assign(reinterpret_cast(value), size); +} +inline ::std::string* DialogMessage::mutable_notificationtext() { + set_has_notificationtext(); + if (notificationtext_ == &::google::protobuf::internal::kEmptyString) { + notificationtext_ = new ::std::string; + } + return notificationtext_; +} +inline ::std::string* DialogMessage::release_notificationtext() { + clear_has_notificationtext(); + if (notificationtext_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = notificationtext_; + notificationtext_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// ------------------------------------------------------------------- + +// TimeoutWarningMessage + +// required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; +inline bool TimeoutWarningMessage::has_timeoutreason() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void TimeoutWarningMessage::set_has_timeoutreason() { + _has_bits_[0] |= 0x00000001u; +} +inline void TimeoutWarningMessage::clear_has_timeoutreason() { + _has_bits_[0] &= ~0x00000001u; +} +inline void TimeoutWarningMessage::clear_timeoutreason() { + timeoutreason_ = 0; + clear_has_timeoutreason(); +} +inline ::TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutreason() const { + return static_cast< ::TimeoutWarningMessage_TimeoutReason >(timeoutreason_); +} +inline void TimeoutWarningMessage::set_timeoutreason(::TimeoutWarningMessage_TimeoutReason value) { + GOOGLE_DCHECK(::TimeoutWarningMessage_TimeoutReason_IsValid(value)); + set_has_timeoutreason(); + timeoutreason_ = value; +} + +// required uint32 remainingSeconds = 2; +inline bool TimeoutWarningMessage::has_remainingseconds() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void TimeoutWarningMessage::set_has_remainingseconds() { + _has_bits_[0] |= 0x00000002u; +} +inline void TimeoutWarningMessage::clear_has_remainingseconds() { + _has_bits_[0] &= ~0x00000002u; +} +inline void TimeoutWarningMessage::clear_remainingseconds() { + remainingseconds_ = 0u; + clear_has_remainingseconds(); +} +inline ::google::protobuf::uint32 TimeoutWarningMessage::remainingseconds() const { + return remainingseconds_; +} +inline void TimeoutWarningMessage::set_remainingseconds(::google::protobuf::uint32 value) { + set_has_remainingseconds(); + remainingseconds_ = value; +} + +// ------------------------------------------------------------------- + +// ResetTimeoutMessage + +// ------------------------------------------------------------------- + +// ReportAvatarMessage + +// required uint32 reportedPlayerId = 1; +inline bool ReportAvatarMessage::has_reportedplayerid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ReportAvatarMessage::set_has_reportedplayerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReportAvatarMessage::clear_has_reportedplayerid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ReportAvatarMessage::clear_reportedplayerid() { + reportedplayerid_ = 0u; + clear_has_reportedplayerid(); +} +inline ::google::protobuf::uint32 ReportAvatarMessage::reportedplayerid() const { + return reportedplayerid_; +} +inline void ReportAvatarMessage::set_reportedplayerid(::google::protobuf::uint32 value) { + set_has_reportedplayerid(); + reportedplayerid_ = value; +} + +// required bytes reportedAvatarHash = 2; +inline bool ReportAvatarMessage::has_reportedavatarhash() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ReportAvatarMessage::set_has_reportedavatarhash() { + _has_bits_[0] |= 0x00000002u; +} +inline void ReportAvatarMessage::clear_has_reportedavatarhash() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ReportAvatarMessage::clear_reportedavatarhash() { + if (reportedavatarhash_ != &::google::protobuf::internal::kEmptyString) { + reportedavatarhash_->clear(); + } + clear_has_reportedavatarhash(); +} +inline const ::std::string& ReportAvatarMessage::reportedavatarhash() const { + return *reportedavatarhash_; +} +inline void ReportAvatarMessage::set_reportedavatarhash(const ::std::string& value) { + set_has_reportedavatarhash(); + if (reportedavatarhash_ == &::google::protobuf::internal::kEmptyString) { + reportedavatarhash_ = new ::std::string; + } + reportedavatarhash_->assign(value); +} +inline void ReportAvatarMessage::set_reportedavatarhash(const char* value) { + set_has_reportedavatarhash(); + if (reportedavatarhash_ == &::google::protobuf::internal::kEmptyString) { + reportedavatarhash_ = new ::std::string; + } + reportedavatarhash_->assign(value); +} +inline void ReportAvatarMessage::set_reportedavatarhash(const void* value, size_t size) { + set_has_reportedavatarhash(); + if (reportedavatarhash_ == &::google::protobuf::internal::kEmptyString) { + reportedavatarhash_ = new ::std::string; + } + reportedavatarhash_->assign(reinterpret_cast(value), size); +} +inline ::std::string* ReportAvatarMessage::mutable_reportedavatarhash() { + set_has_reportedavatarhash(); + if (reportedavatarhash_ == &::google::protobuf::internal::kEmptyString) { + reportedavatarhash_ = new ::std::string; + } + return reportedavatarhash_; +} +inline ::std::string* ReportAvatarMessage::release_reportedavatarhash() { + clear_has_reportedavatarhash(); + if (reportedavatarhash_ == &::google::protobuf::internal::kEmptyString) { + return NULL; + } else { + ::std::string* temp = reportedavatarhash_; + reportedavatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); + return temp; + } +} + +// ------------------------------------------------------------------- + +// ReportAvatarAckMessage + +// required uint32 reportedPlayerId = 1; +inline bool ReportAvatarAckMessage::has_reportedplayerid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ReportAvatarAckMessage::set_has_reportedplayerid() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReportAvatarAckMessage::clear_has_reportedplayerid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ReportAvatarAckMessage::clear_reportedplayerid() { + reportedplayerid_ = 0u; + clear_has_reportedplayerid(); +} +inline ::google::protobuf::uint32 ReportAvatarAckMessage::reportedplayerid() const { + return reportedplayerid_; +} +inline void ReportAvatarAckMessage::set_reportedplayerid(::google::protobuf::uint32 value) { + set_has_reportedplayerid(); + reportedplayerid_ = value; +} + +// required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; +inline bool ReportAvatarAckMessage::has_reportavatarresult() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ReportAvatarAckMessage::set_has_reportavatarresult() { + _has_bits_[0] |= 0x00000002u; +} +inline void ReportAvatarAckMessage::clear_has_reportavatarresult() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ReportAvatarAckMessage::clear_reportavatarresult() { + reportavatarresult_ = 0; + clear_has_reportavatarresult(); +} +inline ::ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::reportavatarresult() const { + return static_cast< ::ReportAvatarAckMessage_ReportAvatarResult >(reportavatarresult_); +} +inline void ReportAvatarAckMessage::set_reportavatarresult(::ReportAvatarAckMessage_ReportAvatarResult value) { + GOOGLE_DCHECK(::ReportAvatarAckMessage_ReportAvatarResult_IsValid(value)); + set_has_reportavatarresult(); + reportavatarresult_ = value; +} + +// ------------------------------------------------------------------- + +// ReportGameMessage + +// required uint32 reportedGameId = 1; +inline bool ReportGameMessage::has_reportedgameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ReportGameMessage::set_has_reportedgameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReportGameMessage::clear_has_reportedgameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ReportGameMessage::clear_reportedgameid() { + reportedgameid_ = 0u; + clear_has_reportedgameid(); +} +inline ::google::protobuf::uint32 ReportGameMessage::reportedgameid() const { + return reportedgameid_; +} +inline void ReportGameMessage::set_reportedgameid(::google::protobuf::uint32 value) { + set_has_reportedgameid(); + reportedgameid_ = value; +} + +// ------------------------------------------------------------------- + +// ReportGameAckMessage + +// required uint32 reportedGameId = 1; +inline bool ReportGameAckMessage::has_reportedgameid() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ReportGameAckMessage::set_has_reportedgameid() { + _has_bits_[0] |= 0x00000001u; +} +inline void ReportGameAckMessage::clear_has_reportedgameid() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ReportGameAckMessage::clear_reportedgameid() { + reportedgameid_ = 0u; + clear_has_reportedgameid(); +} +inline ::google::protobuf::uint32 ReportGameAckMessage::reportedgameid() const { + return reportedgameid_; +} +inline void ReportGameAckMessage::set_reportedgameid(::google::protobuf::uint32 value) { + set_has_reportedgameid(); + reportedgameid_ = value; +} + +// required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; +inline bool ReportGameAckMessage::has_reportgameresult() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void ReportGameAckMessage::set_has_reportgameresult() { + _has_bits_[0] |= 0x00000002u; +} +inline void ReportGameAckMessage::clear_has_reportgameresult() { + _has_bits_[0] &= ~0x00000002u; +} +inline void ReportGameAckMessage::clear_reportgameresult() { + reportgameresult_ = 0; + clear_has_reportgameresult(); +} +inline ::ReportGameAckMessage_ReportGameResult ReportGameAckMessage::reportgameresult() const { + return static_cast< ::ReportGameAckMessage_ReportGameResult >(reportgameresult_); +} +inline void ReportGameAckMessage::set_reportgameresult(::ReportGameAckMessage_ReportGameResult value) { + GOOGLE_DCHECK(::ReportGameAckMessage_ReportGameResult_IsValid(value)); + set_has_reportgameresult(); + reportgameresult_ = value; +} + +// ------------------------------------------------------------------- + +// ErrorMessage + +// required .ErrorMessage.ErrorReason errorReason = 1; +inline bool ErrorMessage::has_errorreason() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void ErrorMessage::set_has_errorreason() { + _has_bits_[0] |= 0x00000001u; +} +inline void ErrorMessage::clear_has_errorreason() { + _has_bits_[0] &= ~0x00000001u; +} +inline void ErrorMessage::clear_errorreason() { + errorreason_ = 0; + clear_has_errorreason(); +} +inline ::ErrorMessage_ErrorReason ErrorMessage::errorreason() const { + return static_cast< ::ErrorMessage_ErrorReason >(errorreason_); +} +inline void ErrorMessage::set_errorreason(::ErrorMessage_ErrorReason value) { + GOOGLE_DCHECK(::ErrorMessage_ErrorReason_IsValid(value)); + set_has_errorreason(); + errorreason_ = value; +} + +// ------------------------------------------------------------------- + +// PokerTHMessage + +// required .PokerTHMessage.PokerTHMessageType messageType = 1; +inline bool PokerTHMessage::has_messagetype() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void PokerTHMessage::set_has_messagetype() { + _has_bits_[0] |= 0x00000001u; +} +inline void PokerTHMessage::clear_has_messagetype() { + _has_bits_[0] &= ~0x00000001u; +} +inline void PokerTHMessage::clear_messagetype() { + messagetype_ = 1; + clear_has_messagetype(); +} +inline ::PokerTHMessage_PokerTHMessageType PokerTHMessage::messagetype() const { + return static_cast< ::PokerTHMessage_PokerTHMessageType >(messagetype_); +} +inline void PokerTHMessage::set_messagetype(::PokerTHMessage_PokerTHMessageType value) { + GOOGLE_DCHECK(::PokerTHMessage_PokerTHMessageType_IsValid(value)); + set_has_messagetype(); + messagetype_ = value; +} + +// optional .AnnounceMessage announceMessage = 2; +inline bool PokerTHMessage::has_announcemessage() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void PokerTHMessage::set_has_announcemessage() { + _has_bits_[0] |= 0x00000002u; +} +inline void PokerTHMessage::clear_has_announcemessage() { + _has_bits_[0] &= ~0x00000002u; +} +inline void PokerTHMessage::clear_announcemessage() { + if (announcemessage_ != NULL) announcemessage_->::AnnounceMessage::Clear(); + clear_has_announcemessage(); +} +inline const ::AnnounceMessage& PokerTHMessage::announcemessage() const { + return announcemessage_ != NULL ? *announcemessage_ : *default_instance_->announcemessage_; +} +inline ::AnnounceMessage* PokerTHMessage::mutable_announcemessage() { + set_has_announcemessage(); + if (announcemessage_ == NULL) announcemessage_ = new ::AnnounceMessage; + return announcemessage_; +} +inline ::AnnounceMessage* PokerTHMessage::release_announcemessage() { + clear_has_announcemessage(); + ::AnnounceMessage* temp = announcemessage_; + announcemessage_ = NULL; + return temp; +} + +// optional .InitMessage initMessage = 3; +inline bool PokerTHMessage::has_initmessage() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void PokerTHMessage::set_has_initmessage() { + _has_bits_[0] |= 0x00000004u; +} +inline void PokerTHMessage::clear_has_initmessage() { + _has_bits_[0] &= ~0x00000004u; +} +inline void PokerTHMessage::clear_initmessage() { + if (initmessage_ != NULL) initmessage_->::InitMessage::Clear(); + clear_has_initmessage(); +} +inline const ::InitMessage& PokerTHMessage::initmessage() const { + return initmessage_ != NULL ? *initmessage_ : *default_instance_->initmessage_; +} +inline ::InitMessage* PokerTHMessage::mutable_initmessage() { + set_has_initmessage(); + if (initmessage_ == NULL) initmessage_ = new ::InitMessage; + return initmessage_; +} +inline ::InitMessage* PokerTHMessage::release_initmessage() { + clear_has_initmessage(); + ::InitMessage* temp = initmessage_; + initmessage_ = NULL; + return temp; +} + +// optional .AuthServerChallengeMessage authServerChallengeMessage = 4; +inline bool PokerTHMessage::has_authserverchallengemessage() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void PokerTHMessage::set_has_authserverchallengemessage() { + _has_bits_[0] |= 0x00000008u; +} +inline void PokerTHMessage::clear_has_authserverchallengemessage() { + _has_bits_[0] &= ~0x00000008u; +} +inline void PokerTHMessage::clear_authserverchallengemessage() { + if (authserverchallengemessage_ != NULL) authserverchallengemessage_->::AuthServerChallengeMessage::Clear(); + clear_has_authserverchallengemessage(); +} +inline const ::AuthServerChallengeMessage& PokerTHMessage::authserverchallengemessage() const { + return authserverchallengemessage_ != NULL ? *authserverchallengemessage_ : *default_instance_->authserverchallengemessage_; +} +inline ::AuthServerChallengeMessage* PokerTHMessage::mutable_authserverchallengemessage() { + set_has_authserverchallengemessage(); + if (authserverchallengemessage_ == NULL) authserverchallengemessage_ = new ::AuthServerChallengeMessage; + return authserverchallengemessage_; +} +inline ::AuthServerChallengeMessage* PokerTHMessage::release_authserverchallengemessage() { + clear_has_authserverchallengemessage(); + ::AuthServerChallengeMessage* temp = authserverchallengemessage_; + authserverchallengemessage_ = NULL; + return temp; +} + +// optional .AuthClientResponseMessage authClientResponseMessage = 5; +inline bool PokerTHMessage::has_authclientresponsemessage() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void PokerTHMessage::set_has_authclientresponsemessage() { + _has_bits_[0] |= 0x00000010u; +} +inline void PokerTHMessage::clear_has_authclientresponsemessage() { + _has_bits_[0] &= ~0x00000010u; +} +inline void PokerTHMessage::clear_authclientresponsemessage() { + if (authclientresponsemessage_ != NULL) authclientresponsemessage_->::AuthClientResponseMessage::Clear(); + clear_has_authclientresponsemessage(); +} +inline const ::AuthClientResponseMessage& PokerTHMessage::authclientresponsemessage() const { + return authclientresponsemessage_ != NULL ? *authclientresponsemessage_ : *default_instance_->authclientresponsemessage_; +} +inline ::AuthClientResponseMessage* PokerTHMessage::mutable_authclientresponsemessage() { + set_has_authclientresponsemessage(); + if (authclientresponsemessage_ == NULL) authclientresponsemessage_ = new ::AuthClientResponseMessage; + return authclientresponsemessage_; +} +inline ::AuthClientResponseMessage* PokerTHMessage::release_authclientresponsemessage() { + clear_has_authclientresponsemessage(); + ::AuthClientResponseMessage* temp = authclientresponsemessage_; + authclientresponsemessage_ = NULL; + return temp; +} + +// optional .AuthServerVerificationMessage authServerVerificationMessage = 6; +inline bool PokerTHMessage::has_authserververificationmessage() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void PokerTHMessage::set_has_authserververificationmessage() { + _has_bits_[0] |= 0x00000020u; +} +inline void PokerTHMessage::clear_has_authserververificationmessage() { + _has_bits_[0] &= ~0x00000020u; +} +inline void PokerTHMessage::clear_authserververificationmessage() { + if (authserververificationmessage_ != NULL) authserververificationmessage_->::AuthServerVerificationMessage::Clear(); + clear_has_authserververificationmessage(); +} +inline const ::AuthServerVerificationMessage& PokerTHMessage::authserververificationmessage() const { + return authserververificationmessage_ != NULL ? *authserververificationmessage_ : *default_instance_->authserververificationmessage_; +} +inline ::AuthServerVerificationMessage* PokerTHMessage::mutable_authserververificationmessage() { + set_has_authserververificationmessage(); + if (authserververificationmessage_ == NULL) authserververificationmessage_ = new ::AuthServerVerificationMessage; + return authserververificationmessage_; +} +inline ::AuthServerVerificationMessage* PokerTHMessage::release_authserververificationmessage() { + clear_has_authserververificationmessage(); + ::AuthServerVerificationMessage* temp = authserververificationmessage_; + authserververificationmessage_ = NULL; + return temp; +} + +// optional .InitAckMessage initAckMessage = 7; +inline bool PokerTHMessage::has_initackmessage() const { + return (_has_bits_[0] & 0x00000040u) != 0; +} +inline void PokerTHMessage::set_has_initackmessage() { + _has_bits_[0] |= 0x00000040u; +} +inline void PokerTHMessage::clear_has_initackmessage() { + _has_bits_[0] &= ~0x00000040u; +} +inline void PokerTHMessage::clear_initackmessage() { + if (initackmessage_ != NULL) initackmessage_->::InitAckMessage::Clear(); + clear_has_initackmessage(); +} +inline const ::InitAckMessage& PokerTHMessage::initackmessage() const { + return initackmessage_ != NULL ? *initackmessage_ : *default_instance_->initackmessage_; +} +inline ::InitAckMessage* PokerTHMessage::mutable_initackmessage() { + set_has_initackmessage(); + if (initackmessage_ == NULL) initackmessage_ = new ::InitAckMessage; + return initackmessage_; +} +inline ::InitAckMessage* PokerTHMessage::release_initackmessage() { + clear_has_initackmessage(); + ::InitAckMessage* temp = initackmessage_; + initackmessage_ = NULL; + return temp; +} + +// optional .AvatarRequestMessage avatarRequestMessage = 8; +inline bool PokerTHMessage::has_avatarrequestmessage() const { + return (_has_bits_[0] & 0x00000080u) != 0; +} +inline void PokerTHMessage::set_has_avatarrequestmessage() { + _has_bits_[0] |= 0x00000080u; +} +inline void PokerTHMessage::clear_has_avatarrequestmessage() { + _has_bits_[0] &= ~0x00000080u; +} +inline void PokerTHMessage::clear_avatarrequestmessage() { + if (avatarrequestmessage_ != NULL) avatarrequestmessage_->::AvatarRequestMessage::Clear(); + clear_has_avatarrequestmessage(); +} +inline const ::AvatarRequestMessage& PokerTHMessage::avatarrequestmessage() const { + return avatarrequestmessage_ != NULL ? *avatarrequestmessage_ : *default_instance_->avatarrequestmessage_; +} +inline ::AvatarRequestMessage* PokerTHMessage::mutable_avatarrequestmessage() { + set_has_avatarrequestmessage(); + if (avatarrequestmessage_ == NULL) avatarrequestmessage_ = new ::AvatarRequestMessage; + return avatarrequestmessage_; +} +inline ::AvatarRequestMessage* PokerTHMessage::release_avatarrequestmessage() { + clear_has_avatarrequestmessage(); + ::AvatarRequestMessage* temp = avatarrequestmessage_; + avatarrequestmessage_ = NULL; + return temp; +} + +// optional .AvatarHeaderMessage avatarHeaderMessage = 9; +inline bool PokerTHMessage::has_avatarheadermessage() const { + return (_has_bits_[0] & 0x00000100u) != 0; +} +inline void PokerTHMessage::set_has_avatarheadermessage() { + _has_bits_[0] |= 0x00000100u; +} +inline void PokerTHMessage::clear_has_avatarheadermessage() { + _has_bits_[0] &= ~0x00000100u; +} +inline void PokerTHMessage::clear_avatarheadermessage() { + if (avatarheadermessage_ != NULL) avatarheadermessage_->::AvatarHeaderMessage::Clear(); + clear_has_avatarheadermessage(); +} +inline const ::AvatarHeaderMessage& PokerTHMessage::avatarheadermessage() const { + return avatarheadermessage_ != NULL ? *avatarheadermessage_ : *default_instance_->avatarheadermessage_; +} +inline ::AvatarHeaderMessage* PokerTHMessage::mutable_avatarheadermessage() { + set_has_avatarheadermessage(); + if (avatarheadermessage_ == NULL) avatarheadermessage_ = new ::AvatarHeaderMessage; + return avatarheadermessage_; +} +inline ::AvatarHeaderMessage* PokerTHMessage::release_avatarheadermessage() { + clear_has_avatarheadermessage(); + ::AvatarHeaderMessage* temp = avatarheadermessage_; + avatarheadermessage_ = NULL; + return temp; +} + +// optional .AvatarDataMessage avatarDataMessage = 10; +inline bool PokerTHMessage::has_avatardatamessage() const { + return (_has_bits_[0] & 0x00000200u) != 0; +} +inline void PokerTHMessage::set_has_avatardatamessage() { + _has_bits_[0] |= 0x00000200u; +} +inline void PokerTHMessage::clear_has_avatardatamessage() { + _has_bits_[0] &= ~0x00000200u; +} +inline void PokerTHMessage::clear_avatardatamessage() { + if (avatardatamessage_ != NULL) avatardatamessage_->::AvatarDataMessage::Clear(); + clear_has_avatardatamessage(); +} +inline const ::AvatarDataMessage& PokerTHMessage::avatardatamessage() const { + return avatardatamessage_ != NULL ? *avatardatamessage_ : *default_instance_->avatardatamessage_; +} +inline ::AvatarDataMessage* PokerTHMessage::mutable_avatardatamessage() { + set_has_avatardatamessage(); + if (avatardatamessage_ == NULL) avatardatamessage_ = new ::AvatarDataMessage; + return avatardatamessage_; +} +inline ::AvatarDataMessage* PokerTHMessage::release_avatardatamessage() { + clear_has_avatardatamessage(); + ::AvatarDataMessage* temp = avatardatamessage_; + avatardatamessage_ = NULL; + return temp; +} + +// optional .AvatarEndMessage avatarEndMessage = 11; +inline bool PokerTHMessage::has_avatarendmessage() const { + return (_has_bits_[0] & 0x00000400u) != 0; +} +inline void PokerTHMessage::set_has_avatarendmessage() { + _has_bits_[0] |= 0x00000400u; +} +inline void PokerTHMessage::clear_has_avatarendmessage() { + _has_bits_[0] &= ~0x00000400u; +} +inline void PokerTHMessage::clear_avatarendmessage() { + if (avatarendmessage_ != NULL) avatarendmessage_->::AvatarEndMessage::Clear(); + clear_has_avatarendmessage(); +} +inline const ::AvatarEndMessage& PokerTHMessage::avatarendmessage() const { + return avatarendmessage_ != NULL ? *avatarendmessage_ : *default_instance_->avatarendmessage_; +} +inline ::AvatarEndMessage* PokerTHMessage::mutable_avatarendmessage() { + set_has_avatarendmessage(); + if (avatarendmessage_ == NULL) avatarendmessage_ = new ::AvatarEndMessage; + return avatarendmessage_; +} +inline ::AvatarEndMessage* PokerTHMessage::release_avatarendmessage() { + clear_has_avatarendmessage(); + ::AvatarEndMessage* temp = avatarendmessage_; + avatarendmessage_ = NULL; + return temp; +} + +// optional .UnknownAvatarMessage unknownAvatarMessage = 12; +inline bool PokerTHMessage::has_unknownavatarmessage() const { + return (_has_bits_[0] & 0x00000800u) != 0; +} +inline void PokerTHMessage::set_has_unknownavatarmessage() { + _has_bits_[0] |= 0x00000800u; +} +inline void PokerTHMessage::clear_has_unknownavatarmessage() { + _has_bits_[0] &= ~0x00000800u; +} +inline void PokerTHMessage::clear_unknownavatarmessage() { + if (unknownavatarmessage_ != NULL) unknownavatarmessage_->::UnknownAvatarMessage::Clear(); + clear_has_unknownavatarmessage(); +} +inline const ::UnknownAvatarMessage& PokerTHMessage::unknownavatarmessage() const { + return unknownavatarmessage_ != NULL ? *unknownavatarmessage_ : *default_instance_->unknownavatarmessage_; +} +inline ::UnknownAvatarMessage* PokerTHMessage::mutable_unknownavatarmessage() { + set_has_unknownavatarmessage(); + if (unknownavatarmessage_ == NULL) unknownavatarmessage_ = new ::UnknownAvatarMessage; + return unknownavatarmessage_; +} +inline ::UnknownAvatarMessage* PokerTHMessage::release_unknownavatarmessage() { + clear_has_unknownavatarmessage(); + ::UnknownAvatarMessage* temp = unknownavatarmessage_; + unknownavatarmessage_ = NULL; + return temp; +} + +// optional .PlayerListMessage playerListMessage = 13; +inline bool PokerTHMessage::has_playerlistmessage() const { + return (_has_bits_[0] & 0x00001000u) != 0; +} +inline void PokerTHMessage::set_has_playerlistmessage() { + _has_bits_[0] |= 0x00001000u; +} +inline void PokerTHMessage::clear_has_playerlistmessage() { + _has_bits_[0] &= ~0x00001000u; +} +inline void PokerTHMessage::clear_playerlistmessage() { + if (playerlistmessage_ != NULL) playerlistmessage_->::PlayerListMessage::Clear(); + clear_has_playerlistmessage(); +} +inline const ::PlayerListMessage& PokerTHMessage::playerlistmessage() const { + return playerlistmessage_ != NULL ? *playerlistmessage_ : *default_instance_->playerlistmessage_; +} +inline ::PlayerListMessage* PokerTHMessage::mutable_playerlistmessage() { + set_has_playerlistmessage(); + if (playerlistmessage_ == NULL) playerlistmessage_ = new ::PlayerListMessage; + return playerlistmessage_; +} +inline ::PlayerListMessage* PokerTHMessage::release_playerlistmessage() { + clear_has_playerlistmessage(); + ::PlayerListMessage* temp = playerlistmessage_; + playerlistmessage_ = NULL; + return temp; +} + +// optional .GameListNewMessage gameListNewMessage = 14; +inline bool PokerTHMessage::has_gamelistnewmessage() const { + return (_has_bits_[0] & 0x00002000u) != 0; +} +inline void PokerTHMessage::set_has_gamelistnewmessage() { + _has_bits_[0] |= 0x00002000u; +} +inline void PokerTHMessage::clear_has_gamelistnewmessage() { + _has_bits_[0] &= ~0x00002000u; +} +inline void PokerTHMessage::clear_gamelistnewmessage() { + if (gamelistnewmessage_ != NULL) gamelistnewmessage_->::GameListNewMessage::Clear(); + clear_has_gamelistnewmessage(); +} +inline const ::GameListNewMessage& PokerTHMessage::gamelistnewmessage() const { + return gamelistnewmessage_ != NULL ? *gamelistnewmessage_ : *default_instance_->gamelistnewmessage_; +} +inline ::GameListNewMessage* PokerTHMessage::mutable_gamelistnewmessage() { + set_has_gamelistnewmessage(); + if (gamelistnewmessage_ == NULL) gamelistnewmessage_ = new ::GameListNewMessage; + return gamelistnewmessage_; +} +inline ::GameListNewMessage* PokerTHMessage::release_gamelistnewmessage() { + clear_has_gamelistnewmessage(); + ::GameListNewMessage* temp = gamelistnewmessage_; + gamelistnewmessage_ = NULL; + return temp; +} + +// optional .GameListUpdateMessage gameListUpdateMessage = 15; +inline bool PokerTHMessage::has_gamelistupdatemessage() const { + return (_has_bits_[0] & 0x00004000u) != 0; +} +inline void PokerTHMessage::set_has_gamelistupdatemessage() { + _has_bits_[0] |= 0x00004000u; +} +inline void PokerTHMessage::clear_has_gamelistupdatemessage() { + _has_bits_[0] &= ~0x00004000u; +} +inline void PokerTHMessage::clear_gamelistupdatemessage() { + if (gamelistupdatemessage_ != NULL) gamelistupdatemessage_->::GameListUpdateMessage::Clear(); + clear_has_gamelistupdatemessage(); +} +inline const ::GameListUpdateMessage& PokerTHMessage::gamelistupdatemessage() const { + return gamelistupdatemessage_ != NULL ? *gamelistupdatemessage_ : *default_instance_->gamelistupdatemessage_; +} +inline ::GameListUpdateMessage* PokerTHMessage::mutable_gamelistupdatemessage() { + set_has_gamelistupdatemessage(); + if (gamelistupdatemessage_ == NULL) gamelistupdatemessage_ = new ::GameListUpdateMessage; + return gamelistupdatemessage_; +} +inline ::GameListUpdateMessage* PokerTHMessage::release_gamelistupdatemessage() { + clear_has_gamelistupdatemessage(); + ::GameListUpdateMessage* temp = gamelistupdatemessage_; + gamelistupdatemessage_ = NULL; + return temp; +} + +// optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; +inline bool PokerTHMessage::has_gamelistplayerjoinedmessage() const { + return (_has_bits_[0] & 0x00008000u) != 0; +} +inline void PokerTHMessage::set_has_gamelistplayerjoinedmessage() { + _has_bits_[0] |= 0x00008000u; +} +inline void PokerTHMessage::clear_has_gamelistplayerjoinedmessage() { + _has_bits_[0] &= ~0x00008000u; +} +inline void PokerTHMessage::clear_gamelistplayerjoinedmessage() { + if (gamelistplayerjoinedmessage_ != NULL) gamelistplayerjoinedmessage_->::GameListPlayerJoinedMessage::Clear(); + clear_has_gamelistplayerjoinedmessage(); +} +inline const ::GameListPlayerJoinedMessage& PokerTHMessage::gamelistplayerjoinedmessage() const { + return gamelistplayerjoinedmessage_ != NULL ? *gamelistplayerjoinedmessage_ : *default_instance_->gamelistplayerjoinedmessage_; +} +inline ::GameListPlayerJoinedMessage* PokerTHMessage::mutable_gamelistplayerjoinedmessage() { + set_has_gamelistplayerjoinedmessage(); + if (gamelistplayerjoinedmessage_ == NULL) gamelistplayerjoinedmessage_ = new ::GameListPlayerJoinedMessage; + return gamelistplayerjoinedmessage_; +} +inline ::GameListPlayerJoinedMessage* PokerTHMessage::release_gamelistplayerjoinedmessage() { + clear_has_gamelistplayerjoinedmessage(); + ::GameListPlayerJoinedMessage* temp = gamelistplayerjoinedmessage_; + gamelistplayerjoinedmessage_ = NULL; + return temp; +} + +// optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; +inline bool PokerTHMessage::has_gamelistplayerleftmessage() const { + return (_has_bits_[0] & 0x00010000u) != 0; +} +inline void PokerTHMessage::set_has_gamelistplayerleftmessage() { + _has_bits_[0] |= 0x00010000u; +} +inline void PokerTHMessage::clear_has_gamelistplayerleftmessage() { + _has_bits_[0] &= ~0x00010000u; +} +inline void PokerTHMessage::clear_gamelistplayerleftmessage() { + if (gamelistplayerleftmessage_ != NULL) gamelistplayerleftmessage_->::GameListPlayerLeftMessage::Clear(); + clear_has_gamelistplayerleftmessage(); +} +inline const ::GameListPlayerLeftMessage& PokerTHMessage::gamelistplayerleftmessage() const { + return gamelistplayerleftmessage_ != NULL ? *gamelistplayerleftmessage_ : *default_instance_->gamelistplayerleftmessage_; +} +inline ::GameListPlayerLeftMessage* PokerTHMessage::mutable_gamelistplayerleftmessage() { + set_has_gamelistplayerleftmessage(); + if (gamelistplayerleftmessage_ == NULL) gamelistplayerleftmessage_ = new ::GameListPlayerLeftMessage; + return gamelistplayerleftmessage_; +} +inline ::GameListPlayerLeftMessage* PokerTHMessage::release_gamelistplayerleftmessage() { + clear_has_gamelistplayerleftmessage(); + ::GameListPlayerLeftMessage* temp = gamelistplayerleftmessage_; + gamelistplayerleftmessage_ = NULL; + return temp; +} + +// optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; +inline bool PokerTHMessage::has_gamelistadminchangedmessage() const { + return (_has_bits_[0] & 0x00020000u) != 0; +} +inline void PokerTHMessage::set_has_gamelistadminchangedmessage() { + _has_bits_[0] |= 0x00020000u; +} +inline void PokerTHMessage::clear_has_gamelistadminchangedmessage() { + _has_bits_[0] &= ~0x00020000u; +} +inline void PokerTHMessage::clear_gamelistadminchangedmessage() { + if (gamelistadminchangedmessage_ != NULL) gamelistadminchangedmessage_->::GameListAdminChangedMessage::Clear(); + clear_has_gamelistadminchangedmessage(); +} +inline const ::GameListAdminChangedMessage& PokerTHMessage::gamelistadminchangedmessage() const { + return gamelistadminchangedmessage_ != NULL ? *gamelistadminchangedmessage_ : *default_instance_->gamelistadminchangedmessage_; +} +inline ::GameListAdminChangedMessage* PokerTHMessage::mutable_gamelistadminchangedmessage() { + set_has_gamelistadminchangedmessage(); + if (gamelistadminchangedmessage_ == NULL) gamelistadminchangedmessage_ = new ::GameListAdminChangedMessage; + return gamelistadminchangedmessage_; +} +inline ::GameListAdminChangedMessage* PokerTHMessage::release_gamelistadminchangedmessage() { + clear_has_gamelistadminchangedmessage(); + ::GameListAdminChangedMessage* temp = gamelistadminchangedmessage_; + gamelistadminchangedmessage_ = NULL; + return temp; +} + +// optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; +inline bool PokerTHMessage::has_playerinforequestmessage() const { + return (_has_bits_[0] & 0x00040000u) != 0; +} +inline void PokerTHMessage::set_has_playerinforequestmessage() { + _has_bits_[0] |= 0x00040000u; +} +inline void PokerTHMessage::clear_has_playerinforequestmessage() { + _has_bits_[0] &= ~0x00040000u; +} +inline void PokerTHMessage::clear_playerinforequestmessage() { + if (playerinforequestmessage_ != NULL) playerinforequestmessage_->::PlayerInfoRequestMessage::Clear(); + clear_has_playerinforequestmessage(); +} +inline const ::PlayerInfoRequestMessage& PokerTHMessage::playerinforequestmessage() const { + return playerinforequestmessage_ != NULL ? *playerinforequestmessage_ : *default_instance_->playerinforequestmessage_; +} +inline ::PlayerInfoRequestMessage* PokerTHMessage::mutable_playerinforequestmessage() { + set_has_playerinforequestmessage(); + if (playerinforequestmessage_ == NULL) playerinforequestmessage_ = new ::PlayerInfoRequestMessage; + return playerinforequestmessage_; +} +inline ::PlayerInfoRequestMessage* PokerTHMessage::release_playerinforequestmessage() { + clear_has_playerinforequestmessage(); + ::PlayerInfoRequestMessage* temp = playerinforequestmessage_; + playerinforequestmessage_ = NULL; + return temp; +} + +// optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; +inline bool PokerTHMessage::has_playerinforeplymessage() const { + return (_has_bits_[0] & 0x00080000u) != 0; +} +inline void PokerTHMessage::set_has_playerinforeplymessage() { + _has_bits_[0] |= 0x00080000u; +} +inline void PokerTHMessage::clear_has_playerinforeplymessage() { + _has_bits_[0] &= ~0x00080000u; +} +inline void PokerTHMessage::clear_playerinforeplymessage() { + if (playerinforeplymessage_ != NULL) playerinforeplymessage_->::PlayerInfoReplyMessage::Clear(); + clear_has_playerinforeplymessage(); +} +inline const ::PlayerInfoReplyMessage& PokerTHMessage::playerinforeplymessage() const { + return playerinforeplymessage_ != NULL ? *playerinforeplymessage_ : *default_instance_->playerinforeplymessage_; +} +inline ::PlayerInfoReplyMessage* PokerTHMessage::mutable_playerinforeplymessage() { + set_has_playerinforeplymessage(); + if (playerinforeplymessage_ == NULL) playerinforeplymessage_ = new ::PlayerInfoReplyMessage; + return playerinforeplymessage_; +} +inline ::PlayerInfoReplyMessage* PokerTHMessage::release_playerinforeplymessage() { + clear_has_playerinforeplymessage(); + ::PlayerInfoReplyMessage* temp = playerinforeplymessage_; + playerinforeplymessage_ = NULL; + return temp; +} + +// optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; +inline bool PokerTHMessage::has_subscriptionrequestmessage() const { + return (_has_bits_[0] & 0x00100000u) != 0; +} +inline void PokerTHMessage::set_has_subscriptionrequestmessage() { + _has_bits_[0] |= 0x00100000u; +} +inline void PokerTHMessage::clear_has_subscriptionrequestmessage() { + _has_bits_[0] &= ~0x00100000u; +} +inline void PokerTHMessage::clear_subscriptionrequestmessage() { + if (subscriptionrequestmessage_ != NULL) subscriptionrequestmessage_->::SubscriptionRequestMessage::Clear(); + clear_has_subscriptionrequestmessage(); +} +inline const ::SubscriptionRequestMessage& PokerTHMessage::subscriptionrequestmessage() const { + return subscriptionrequestmessage_ != NULL ? *subscriptionrequestmessage_ : *default_instance_->subscriptionrequestmessage_; +} +inline ::SubscriptionRequestMessage* PokerTHMessage::mutable_subscriptionrequestmessage() { + set_has_subscriptionrequestmessage(); + if (subscriptionrequestmessage_ == NULL) subscriptionrequestmessage_ = new ::SubscriptionRequestMessage; + return subscriptionrequestmessage_; +} +inline ::SubscriptionRequestMessage* PokerTHMessage::release_subscriptionrequestmessage() { + clear_has_subscriptionrequestmessage(); + ::SubscriptionRequestMessage* temp = subscriptionrequestmessage_; + subscriptionrequestmessage_ = NULL; + return temp; +} + +// optional .JoinExistingGameMessage joinExistingGameMessage = 22; +inline bool PokerTHMessage::has_joinexistinggamemessage() const { + return (_has_bits_[0] & 0x00200000u) != 0; +} +inline void PokerTHMessage::set_has_joinexistinggamemessage() { + _has_bits_[0] |= 0x00200000u; +} +inline void PokerTHMessage::clear_has_joinexistinggamemessage() { + _has_bits_[0] &= ~0x00200000u; +} +inline void PokerTHMessage::clear_joinexistinggamemessage() { + if (joinexistinggamemessage_ != NULL) joinexistinggamemessage_->::JoinExistingGameMessage::Clear(); + clear_has_joinexistinggamemessage(); +} +inline const ::JoinExistingGameMessage& PokerTHMessage::joinexistinggamemessage() const { + return joinexistinggamemessage_ != NULL ? *joinexistinggamemessage_ : *default_instance_->joinexistinggamemessage_; +} +inline ::JoinExistingGameMessage* PokerTHMessage::mutable_joinexistinggamemessage() { + set_has_joinexistinggamemessage(); + if (joinexistinggamemessage_ == NULL) joinexistinggamemessage_ = new ::JoinExistingGameMessage; + return joinexistinggamemessage_; +} +inline ::JoinExistingGameMessage* PokerTHMessage::release_joinexistinggamemessage() { + clear_has_joinexistinggamemessage(); + ::JoinExistingGameMessage* temp = joinexistinggamemessage_; + joinexistinggamemessage_ = NULL; + return temp; +} + +// optional .JoinNewGameMessage joinNewGameMessage = 23; +inline bool PokerTHMessage::has_joinnewgamemessage() const { + return (_has_bits_[0] & 0x00400000u) != 0; +} +inline void PokerTHMessage::set_has_joinnewgamemessage() { + _has_bits_[0] |= 0x00400000u; +} +inline void PokerTHMessage::clear_has_joinnewgamemessage() { + _has_bits_[0] &= ~0x00400000u; +} +inline void PokerTHMessage::clear_joinnewgamemessage() { + if (joinnewgamemessage_ != NULL) joinnewgamemessage_->::JoinNewGameMessage::Clear(); + clear_has_joinnewgamemessage(); +} +inline const ::JoinNewGameMessage& PokerTHMessage::joinnewgamemessage() const { + return joinnewgamemessage_ != NULL ? *joinnewgamemessage_ : *default_instance_->joinnewgamemessage_; +} +inline ::JoinNewGameMessage* PokerTHMessage::mutable_joinnewgamemessage() { + set_has_joinnewgamemessage(); + if (joinnewgamemessage_ == NULL) joinnewgamemessage_ = new ::JoinNewGameMessage; + return joinnewgamemessage_; +} +inline ::JoinNewGameMessage* PokerTHMessage::release_joinnewgamemessage() { + clear_has_joinnewgamemessage(); + ::JoinNewGameMessage* temp = joinnewgamemessage_; + joinnewgamemessage_ = NULL; + return temp; +} + +// optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; +inline bool PokerTHMessage::has_rejoinexistinggamemessage() const { + return (_has_bits_[0] & 0x00800000u) != 0; +} +inline void PokerTHMessage::set_has_rejoinexistinggamemessage() { + _has_bits_[0] |= 0x00800000u; +} +inline void PokerTHMessage::clear_has_rejoinexistinggamemessage() { + _has_bits_[0] &= ~0x00800000u; +} +inline void PokerTHMessage::clear_rejoinexistinggamemessage() { + if (rejoinexistinggamemessage_ != NULL) rejoinexistinggamemessage_->::RejoinExistingGameMessage::Clear(); + clear_has_rejoinexistinggamemessage(); +} +inline const ::RejoinExistingGameMessage& PokerTHMessage::rejoinexistinggamemessage() const { + return rejoinexistinggamemessage_ != NULL ? *rejoinexistinggamemessage_ : *default_instance_->rejoinexistinggamemessage_; +} +inline ::RejoinExistingGameMessage* PokerTHMessage::mutable_rejoinexistinggamemessage() { + set_has_rejoinexistinggamemessage(); + if (rejoinexistinggamemessage_ == NULL) rejoinexistinggamemessage_ = new ::RejoinExistingGameMessage; + return rejoinexistinggamemessage_; +} +inline ::RejoinExistingGameMessage* PokerTHMessage::release_rejoinexistinggamemessage() { + clear_has_rejoinexistinggamemessage(); + ::RejoinExistingGameMessage* temp = rejoinexistinggamemessage_; + rejoinexistinggamemessage_ = NULL; + return temp; +} + +// optional .JoinGameAckMessage joinGameAckMessage = 25; +inline bool PokerTHMessage::has_joingameackmessage() const { + return (_has_bits_[0] & 0x01000000u) != 0; +} +inline void PokerTHMessage::set_has_joingameackmessage() { + _has_bits_[0] |= 0x01000000u; +} +inline void PokerTHMessage::clear_has_joingameackmessage() { + _has_bits_[0] &= ~0x01000000u; +} +inline void PokerTHMessage::clear_joingameackmessage() { + if (joingameackmessage_ != NULL) joingameackmessage_->::JoinGameAckMessage::Clear(); + clear_has_joingameackmessage(); +} +inline const ::JoinGameAckMessage& PokerTHMessage::joingameackmessage() const { + return joingameackmessage_ != NULL ? *joingameackmessage_ : *default_instance_->joingameackmessage_; +} +inline ::JoinGameAckMessage* PokerTHMessage::mutable_joingameackmessage() { + set_has_joingameackmessage(); + if (joingameackmessage_ == NULL) joingameackmessage_ = new ::JoinGameAckMessage; + return joingameackmessage_; +} +inline ::JoinGameAckMessage* PokerTHMessage::release_joingameackmessage() { + clear_has_joingameackmessage(); + ::JoinGameAckMessage* temp = joingameackmessage_; + joingameackmessage_ = NULL; + return temp; +} + +// optional .JoinGameFailedMessage joinGameFailedMessage = 26; +inline bool PokerTHMessage::has_joingamefailedmessage() const { + return (_has_bits_[0] & 0x02000000u) != 0; +} +inline void PokerTHMessage::set_has_joingamefailedmessage() { + _has_bits_[0] |= 0x02000000u; +} +inline void PokerTHMessage::clear_has_joingamefailedmessage() { + _has_bits_[0] &= ~0x02000000u; +} +inline void PokerTHMessage::clear_joingamefailedmessage() { + if (joingamefailedmessage_ != NULL) joingamefailedmessage_->::JoinGameFailedMessage::Clear(); + clear_has_joingamefailedmessage(); +} +inline const ::JoinGameFailedMessage& PokerTHMessage::joingamefailedmessage() const { + return joingamefailedmessage_ != NULL ? *joingamefailedmessage_ : *default_instance_->joingamefailedmessage_; +} +inline ::JoinGameFailedMessage* PokerTHMessage::mutable_joingamefailedmessage() { + set_has_joingamefailedmessage(); + if (joingamefailedmessage_ == NULL) joingamefailedmessage_ = new ::JoinGameFailedMessage; + return joingamefailedmessage_; +} +inline ::JoinGameFailedMessage* PokerTHMessage::release_joingamefailedmessage() { + clear_has_joingamefailedmessage(); + ::JoinGameFailedMessage* temp = joingamefailedmessage_; + joingamefailedmessage_ = NULL; + return temp; +} + +// optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; +inline bool PokerTHMessage::has_gameplayerjoinedmessage() const { + return (_has_bits_[0] & 0x04000000u) != 0; +} +inline void PokerTHMessage::set_has_gameplayerjoinedmessage() { + _has_bits_[0] |= 0x04000000u; +} +inline void PokerTHMessage::clear_has_gameplayerjoinedmessage() { + _has_bits_[0] &= ~0x04000000u; +} +inline void PokerTHMessage::clear_gameplayerjoinedmessage() { + if (gameplayerjoinedmessage_ != NULL) gameplayerjoinedmessage_->::GamePlayerJoinedMessage::Clear(); + clear_has_gameplayerjoinedmessage(); +} +inline const ::GamePlayerJoinedMessage& PokerTHMessage::gameplayerjoinedmessage() const { + return gameplayerjoinedmessage_ != NULL ? *gameplayerjoinedmessage_ : *default_instance_->gameplayerjoinedmessage_; +} +inline ::GamePlayerJoinedMessage* PokerTHMessage::mutable_gameplayerjoinedmessage() { + set_has_gameplayerjoinedmessage(); + if (gameplayerjoinedmessage_ == NULL) gameplayerjoinedmessage_ = new ::GamePlayerJoinedMessage; + return gameplayerjoinedmessage_; +} +inline ::GamePlayerJoinedMessage* PokerTHMessage::release_gameplayerjoinedmessage() { + clear_has_gameplayerjoinedmessage(); + ::GamePlayerJoinedMessage* temp = gameplayerjoinedmessage_; + gameplayerjoinedmessage_ = NULL; + return temp; +} + +// optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; +inline bool PokerTHMessage::has_gameplayerleftmessage() const { + return (_has_bits_[0] & 0x08000000u) != 0; +} +inline void PokerTHMessage::set_has_gameplayerleftmessage() { + _has_bits_[0] |= 0x08000000u; +} +inline void PokerTHMessage::clear_has_gameplayerleftmessage() { + _has_bits_[0] &= ~0x08000000u; +} +inline void PokerTHMessage::clear_gameplayerleftmessage() { + if (gameplayerleftmessage_ != NULL) gameplayerleftmessage_->::GamePlayerLeftMessage::Clear(); + clear_has_gameplayerleftmessage(); +} +inline const ::GamePlayerLeftMessage& PokerTHMessage::gameplayerleftmessage() const { + return gameplayerleftmessage_ != NULL ? *gameplayerleftmessage_ : *default_instance_->gameplayerleftmessage_; +} +inline ::GamePlayerLeftMessage* PokerTHMessage::mutable_gameplayerleftmessage() { + set_has_gameplayerleftmessage(); + if (gameplayerleftmessage_ == NULL) gameplayerleftmessage_ = new ::GamePlayerLeftMessage; + return gameplayerleftmessage_; +} +inline ::GamePlayerLeftMessage* PokerTHMessage::release_gameplayerleftmessage() { + clear_has_gameplayerleftmessage(); + ::GamePlayerLeftMessage* temp = gameplayerleftmessage_; + gameplayerleftmessage_ = NULL; + return temp; +} + +// optional .GameAdminChangedMessage gameAdminChangedMessage = 29; +inline bool PokerTHMessage::has_gameadminchangedmessage() const { + return (_has_bits_[0] & 0x10000000u) != 0; +} +inline void PokerTHMessage::set_has_gameadminchangedmessage() { + _has_bits_[0] |= 0x10000000u; +} +inline void PokerTHMessage::clear_has_gameadminchangedmessage() { + _has_bits_[0] &= ~0x10000000u; +} +inline void PokerTHMessage::clear_gameadminchangedmessage() { + if (gameadminchangedmessage_ != NULL) gameadminchangedmessage_->::GameAdminChangedMessage::Clear(); + clear_has_gameadminchangedmessage(); +} +inline const ::GameAdminChangedMessage& PokerTHMessage::gameadminchangedmessage() const { + return gameadminchangedmessage_ != NULL ? *gameadminchangedmessage_ : *default_instance_->gameadminchangedmessage_; +} +inline ::GameAdminChangedMessage* PokerTHMessage::mutable_gameadminchangedmessage() { + set_has_gameadminchangedmessage(); + if (gameadminchangedmessage_ == NULL) gameadminchangedmessage_ = new ::GameAdminChangedMessage; + return gameadminchangedmessage_; +} +inline ::GameAdminChangedMessage* PokerTHMessage::release_gameadminchangedmessage() { + clear_has_gameadminchangedmessage(); + ::GameAdminChangedMessage* temp = gameadminchangedmessage_; + gameadminchangedmessage_ = NULL; + return temp; +} + +// optional .RemovedFromGameMessage removedFromGameMessage = 30; +inline bool PokerTHMessage::has_removedfromgamemessage() const { + return (_has_bits_[0] & 0x20000000u) != 0; +} +inline void PokerTHMessage::set_has_removedfromgamemessage() { + _has_bits_[0] |= 0x20000000u; +} +inline void PokerTHMessage::clear_has_removedfromgamemessage() { + _has_bits_[0] &= ~0x20000000u; +} +inline void PokerTHMessage::clear_removedfromgamemessage() { + if (removedfromgamemessage_ != NULL) removedfromgamemessage_->::RemovedFromGameMessage::Clear(); + clear_has_removedfromgamemessage(); +} +inline const ::RemovedFromGameMessage& PokerTHMessage::removedfromgamemessage() const { + return removedfromgamemessage_ != NULL ? *removedfromgamemessage_ : *default_instance_->removedfromgamemessage_; +} +inline ::RemovedFromGameMessage* PokerTHMessage::mutable_removedfromgamemessage() { + set_has_removedfromgamemessage(); + if (removedfromgamemessage_ == NULL) removedfromgamemessage_ = new ::RemovedFromGameMessage; + return removedfromgamemessage_; +} +inline ::RemovedFromGameMessage* PokerTHMessage::release_removedfromgamemessage() { + clear_has_removedfromgamemessage(); + ::RemovedFromGameMessage* temp = removedfromgamemessage_; + removedfromgamemessage_ = NULL; + return temp; +} + +// optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; +inline bool PokerTHMessage::has_kickplayerrequestmessage() const { + return (_has_bits_[0] & 0x40000000u) != 0; +} +inline void PokerTHMessage::set_has_kickplayerrequestmessage() { + _has_bits_[0] |= 0x40000000u; +} +inline void PokerTHMessage::clear_has_kickplayerrequestmessage() { + _has_bits_[0] &= ~0x40000000u; +} +inline void PokerTHMessage::clear_kickplayerrequestmessage() { + if (kickplayerrequestmessage_ != NULL) kickplayerrequestmessage_->::KickPlayerRequestMessage::Clear(); + clear_has_kickplayerrequestmessage(); +} +inline const ::KickPlayerRequestMessage& PokerTHMessage::kickplayerrequestmessage() const { + return kickplayerrequestmessage_ != NULL ? *kickplayerrequestmessage_ : *default_instance_->kickplayerrequestmessage_; +} +inline ::KickPlayerRequestMessage* PokerTHMessage::mutable_kickplayerrequestmessage() { + set_has_kickplayerrequestmessage(); + if (kickplayerrequestmessage_ == NULL) kickplayerrequestmessage_ = new ::KickPlayerRequestMessage; + return kickplayerrequestmessage_; +} +inline ::KickPlayerRequestMessage* PokerTHMessage::release_kickplayerrequestmessage() { + clear_has_kickplayerrequestmessage(); + ::KickPlayerRequestMessage* temp = kickplayerrequestmessage_; + kickplayerrequestmessage_ = NULL; + return temp; +} + +// optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; +inline bool PokerTHMessage::has_leavegamerequestmessage() const { + return (_has_bits_[0] & 0x80000000u) != 0; +} +inline void PokerTHMessage::set_has_leavegamerequestmessage() { + _has_bits_[0] |= 0x80000000u; +} +inline void PokerTHMessage::clear_has_leavegamerequestmessage() { + _has_bits_[0] &= ~0x80000000u; +} +inline void PokerTHMessage::clear_leavegamerequestmessage() { + if (leavegamerequestmessage_ != NULL) leavegamerequestmessage_->::LeaveGameRequestMessage::Clear(); + clear_has_leavegamerequestmessage(); +} +inline const ::LeaveGameRequestMessage& PokerTHMessage::leavegamerequestmessage() const { + return leavegamerequestmessage_ != NULL ? *leavegamerequestmessage_ : *default_instance_->leavegamerequestmessage_; +} +inline ::LeaveGameRequestMessage* PokerTHMessage::mutable_leavegamerequestmessage() { + set_has_leavegamerequestmessage(); + if (leavegamerequestmessage_ == NULL) leavegamerequestmessage_ = new ::LeaveGameRequestMessage; + return leavegamerequestmessage_; +} +inline ::LeaveGameRequestMessage* PokerTHMessage::release_leavegamerequestmessage() { + clear_has_leavegamerequestmessage(); + ::LeaveGameRequestMessage* temp = leavegamerequestmessage_; + leavegamerequestmessage_ = NULL; + return temp; +} + +// optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; +inline bool PokerTHMessage::has_inviteplayertogamemessage() const { + return (_has_bits_[1] & 0x00000001u) != 0; +} +inline void PokerTHMessage::set_has_inviteplayertogamemessage() { + _has_bits_[1] |= 0x00000001u; +} +inline void PokerTHMessage::clear_has_inviteplayertogamemessage() { + _has_bits_[1] &= ~0x00000001u; +} +inline void PokerTHMessage::clear_inviteplayertogamemessage() { + if (inviteplayertogamemessage_ != NULL) inviteplayertogamemessage_->::InvitePlayerToGameMessage::Clear(); + clear_has_inviteplayertogamemessage(); +} +inline const ::InvitePlayerToGameMessage& PokerTHMessage::inviteplayertogamemessage() const { + return inviteplayertogamemessage_ != NULL ? *inviteplayertogamemessage_ : *default_instance_->inviteplayertogamemessage_; +} +inline ::InvitePlayerToGameMessage* PokerTHMessage::mutable_inviteplayertogamemessage() { + set_has_inviteplayertogamemessage(); + if (inviteplayertogamemessage_ == NULL) inviteplayertogamemessage_ = new ::InvitePlayerToGameMessage; + return inviteplayertogamemessage_; +} +inline ::InvitePlayerToGameMessage* PokerTHMessage::release_inviteplayertogamemessage() { + clear_has_inviteplayertogamemessage(); + ::InvitePlayerToGameMessage* temp = inviteplayertogamemessage_; + inviteplayertogamemessage_ = NULL; + return temp; +} + +// optional .InviteNotifyMessage inviteNotifyMessage = 34; +inline bool PokerTHMessage::has_invitenotifymessage() const { + return (_has_bits_[1] & 0x00000002u) != 0; +} +inline void PokerTHMessage::set_has_invitenotifymessage() { + _has_bits_[1] |= 0x00000002u; +} +inline void PokerTHMessage::clear_has_invitenotifymessage() { + _has_bits_[1] &= ~0x00000002u; +} +inline void PokerTHMessage::clear_invitenotifymessage() { + if (invitenotifymessage_ != NULL) invitenotifymessage_->::InviteNotifyMessage::Clear(); + clear_has_invitenotifymessage(); +} +inline const ::InviteNotifyMessage& PokerTHMessage::invitenotifymessage() const { + return invitenotifymessage_ != NULL ? *invitenotifymessage_ : *default_instance_->invitenotifymessage_; +} +inline ::InviteNotifyMessage* PokerTHMessage::mutable_invitenotifymessage() { + set_has_invitenotifymessage(); + if (invitenotifymessage_ == NULL) invitenotifymessage_ = new ::InviteNotifyMessage; + return invitenotifymessage_; +} +inline ::InviteNotifyMessage* PokerTHMessage::release_invitenotifymessage() { + clear_has_invitenotifymessage(); + ::InviteNotifyMessage* temp = invitenotifymessage_; + invitenotifymessage_ = NULL; + return temp; +} + +// optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; +inline bool PokerTHMessage::has_rejectgameinvitationmessage() const { + return (_has_bits_[1] & 0x00000004u) != 0; +} +inline void PokerTHMessage::set_has_rejectgameinvitationmessage() { + _has_bits_[1] |= 0x00000004u; +} +inline void PokerTHMessage::clear_has_rejectgameinvitationmessage() { + _has_bits_[1] &= ~0x00000004u; +} +inline void PokerTHMessage::clear_rejectgameinvitationmessage() { + if (rejectgameinvitationmessage_ != NULL) rejectgameinvitationmessage_->::RejectGameInvitationMessage::Clear(); + clear_has_rejectgameinvitationmessage(); +} +inline const ::RejectGameInvitationMessage& PokerTHMessage::rejectgameinvitationmessage() const { + return rejectgameinvitationmessage_ != NULL ? *rejectgameinvitationmessage_ : *default_instance_->rejectgameinvitationmessage_; +} +inline ::RejectGameInvitationMessage* PokerTHMessage::mutable_rejectgameinvitationmessage() { + set_has_rejectgameinvitationmessage(); + if (rejectgameinvitationmessage_ == NULL) rejectgameinvitationmessage_ = new ::RejectGameInvitationMessage; + return rejectgameinvitationmessage_; +} +inline ::RejectGameInvitationMessage* PokerTHMessage::release_rejectgameinvitationmessage() { + clear_has_rejectgameinvitationmessage(); + ::RejectGameInvitationMessage* temp = rejectgameinvitationmessage_; + rejectgameinvitationmessage_ = NULL; + return temp; +} + +// optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; +inline bool PokerTHMessage::has_rejectinvnotifymessage() const { + return (_has_bits_[1] & 0x00000008u) != 0; +} +inline void PokerTHMessage::set_has_rejectinvnotifymessage() { + _has_bits_[1] |= 0x00000008u; +} +inline void PokerTHMessage::clear_has_rejectinvnotifymessage() { + _has_bits_[1] &= ~0x00000008u; +} +inline void PokerTHMessage::clear_rejectinvnotifymessage() { + if (rejectinvnotifymessage_ != NULL) rejectinvnotifymessage_->::RejectInvNotifyMessage::Clear(); + clear_has_rejectinvnotifymessage(); +} +inline const ::RejectInvNotifyMessage& PokerTHMessage::rejectinvnotifymessage() const { + return rejectinvnotifymessage_ != NULL ? *rejectinvnotifymessage_ : *default_instance_->rejectinvnotifymessage_; +} +inline ::RejectInvNotifyMessage* PokerTHMessage::mutable_rejectinvnotifymessage() { + set_has_rejectinvnotifymessage(); + if (rejectinvnotifymessage_ == NULL) rejectinvnotifymessage_ = new ::RejectInvNotifyMessage; + return rejectinvnotifymessage_; +} +inline ::RejectInvNotifyMessage* PokerTHMessage::release_rejectinvnotifymessage() { + clear_has_rejectinvnotifymessage(); + ::RejectInvNotifyMessage* temp = rejectinvnotifymessage_; + rejectinvnotifymessage_ = NULL; + return temp; +} + +// optional .StartEventMessage startEventMessage = 37; +inline bool PokerTHMessage::has_starteventmessage() const { + return (_has_bits_[1] & 0x00000010u) != 0; +} +inline void PokerTHMessage::set_has_starteventmessage() { + _has_bits_[1] |= 0x00000010u; +} +inline void PokerTHMessage::clear_has_starteventmessage() { + _has_bits_[1] &= ~0x00000010u; +} +inline void PokerTHMessage::clear_starteventmessage() { + if (starteventmessage_ != NULL) starteventmessage_->::StartEventMessage::Clear(); + clear_has_starteventmessage(); +} +inline const ::StartEventMessage& PokerTHMessage::starteventmessage() const { + return starteventmessage_ != NULL ? *starteventmessage_ : *default_instance_->starteventmessage_; +} +inline ::StartEventMessage* PokerTHMessage::mutable_starteventmessage() { + set_has_starteventmessage(); + if (starteventmessage_ == NULL) starteventmessage_ = new ::StartEventMessage; + return starteventmessage_; +} +inline ::StartEventMessage* PokerTHMessage::release_starteventmessage() { + clear_has_starteventmessage(); + ::StartEventMessage* temp = starteventmessage_; + starteventmessage_ = NULL; + return temp; +} + +// optional .StartEventAckMessage startEventAckMessage = 38; +inline bool PokerTHMessage::has_starteventackmessage() const { + return (_has_bits_[1] & 0x00000020u) != 0; +} +inline void PokerTHMessage::set_has_starteventackmessage() { + _has_bits_[1] |= 0x00000020u; +} +inline void PokerTHMessage::clear_has_starteventackmessage() { + _has_bits_[1] &= ~0x00000020u; +} +inline void PokerTHMessage::clear_starteventackmessage() { + if (starteventackmessage_ != NULL) starteventackmessage_->::StartEventAckMessage::Clear(); + clear_has_starteventackmessage(); +} +inline const ::StartEventAckMessage& PokerTHMessage::starteventackmessage() const { + return starteventackmessage_ != NULL ? *starteventackmessage_ : *default_instance_->starteventackmessage_; +} +inline ::StartEventAckMessage* PokerTHMessage::mutable_starteventackmessage() { + set_has_starteventackmessage(); + if (starteventackmessage_ == NULL) starteventackmessage_ = new ::StartEventAckMessage; + return starteventackmessage_; +} +inline ::StartEventAckMessage* PokerTHMessage::release_starteventackmessage() { + clear_has_starteventackmessage(); + ::StartEventAckMessage* temp = starteventackmessage_; + starteventackmessage_ = NULL; + return temp; +} + +// optional .GameStartInitialMessage gameStartInitialMessage = 39; +inline bool PokerTHMessage::has_gamestartinitialmessage() const { + return (_has_bits_[1] & 0x00000040u) != 0; +} +inline void PokerTHMessage::set_has_gamestartinitialmessage() { + _has_bits_[1] |= 0x00000040u; +} +inline void PokerTHMessage::clear_has_gamestartinitialmessage() { + _has_bits_[1] &= ~0x00000040u; +} +inline void PokerTHMessage::clear_gamestartinitialmessage() { + if (gamestartinitialmessage_ != NULL) gamestartinitialmessage_->::GameStartInitialMessage::Clear(); + clear_has_gamestartinitialmessage(); +} +inline const ::GameStartInitialMessage& PokerTHMessage::gamestartinitialmessage() const { + return gamestartinitialmessage_ != NULL ? *gamestartinitialmessage_ : *default_instance_->gamestartinitialmessage_; +} +inline ::GameStartInitialMessage* PokerTHMessage::mutable_gamestartinitialmessage() { + set_has_gamestartinitialmessage(); + if (gamestartinitialmessage_ == NULL) gamestartinitialmessage_ = new ::GameStartInitialMessage; + return gamestartinitialmessage_; +} +inline ::GameStartInitialMessage* PokerTHMessage::release_gamestartinitialmessage() { + clear_has_gamestartinitialmessage(); + ::GameStartInitialMessage* temp = gamestartinitialmessage_; + gamestartinitialmessage_ = NULL; + return temp; +} + +// optional .GameStartRejoinMessage gameStartRejoinMessage = 40; +inline bool PokerTHMessage::has_gamestartrejoinmessage() const { + return (_has_bits_[1] & 0x00000080u) != 0; +} +inline void PokerTHMessage::set_has_gamestartrejoinmessage() { + _has_bits_[1] |= 0x00000080u; +} +inline void PokerTHMessage::clear_has_gamestartrejoinmessage() { + _has_bits_[1] &= ~0x00000080u; +} +inline void PokerTHMessage::clear_gamestartrejoinmessage() { + if (gamestartrejoinmessage_ != NULL) gamestartrejoinmessage_->::GameStartRejoinMessage::Clear(); + clear_has_gamestartrejoinmessage(); +} +inline const ::GameStartRejoinMessage& PokerTHMessage::gamestartrejoinmessage() const { + return gamestartrejoinmessage_ != NULL ? *gamestartrejoinmessage_ : *default_instance_->gamestartrejoinmessage_; +} +inline ::GameStartRejoinMessage* PokerTHMessage::mutable_gamestartrejoinmessage() { + set_has_gamestartrejoinmessage(); + if (gamestartrejoinmessage_ == NULL) gamestartrejoinmessage_ = new ::GameStartRejoinMessage; + return gamestartrejoinmessage_; +} +inline ::GameStartRejoinMessage* PokerTHMessage::release_gamestartrejoinmessage() { + clear_has_gamestartrejoinmessage(); + ::GameStartRejoinMessage* temp = gamestartrejoinmessage_; + gamestartrejoinmessage_ = NULL; + return temp; +} + +// optional .HandStartMessage handStartMessage = 41; +inline bool PokerTHMessage::has_handstartmessage() const { + return (_has_bits_[1] & 0x00000100u) != 0; +} +inline void PokerTHMessage::set_has_handstartmessage() { + _has_bits_[1] |= 0x00000100u; +} +inline void PokerTHMessage::clear_has_handstartmessage() { + _has_bits_[1] &= ~0x00000100u; +} +inline void PokerTHMessage::clear_handstartmessage() { + if (handstartmessage_ != NULL) handstartmessage_->::HandStartMessage::Clear(); + clear_has_handstartmessage(); +} +inline const ::HandStartMessage& PokerTHMessage::handstartmessage() const { + return handstartmessage_ != NULL ? *handstartmessage_ : *default_instance_->handstartmessage_; +} +inline ::HandStartMessage* PokerTHMessage::mutable_handstartmessage() { + set_has_handstartmessage(); + if (handstartmessage_ == NULL) handstartmessage_ = new ::HandStartMessage; + return handstartmessage_; +} +inline ::HandStartMessage* PokerTHMessage::release_handstartmessage() { + clear_has_handstartmessage(); + ::HandStartMessage* temp = handstartmessage_; + handstartmessage_ = NULL; + return temp; +} + +// optional .PlayersTurnMessage playersTurnMessage = 42; +inline bool PokerTHMessage::has_playersturnmessage() const { + return (_has_bits_[1] & 0x00000200u) != 0; +} +inline void PokerTHMessage::set_has_playersturnmessage() { + _has_bits_[1] |= 0x00000200u; +} +inline void PokerTHMessage::clear_has_playersturnmessage() { + _has_bits_[1] &= ~0x00000200u; +} +inline void PokerTHMessage::clear_playersturnmessage() { + if (playersturnmessage_ != NULL) playersturnmessage_->::PlayersTurnMessage::Clear(); + clear_has_playersturnmessage(); +} +inline const ::PlayersTurnMessage& PokerTHMessage::playersturnmessage() const { + return playersturnmessage_ != NULL ? *playersturnmessage_ : *default_instance_->playersturnmessage_; +} +inline ::PlayersTurnMessage* PokerTHMessage::mutable_playersturnmessage() { + set_has_playersturnmessage(); + if (playersturnmessage_ == NULL) playersturnmessage_ = new ::PlayersTurnMessage; + return playersturnmessage_; +} +inline ::PlayersTurnMessage* PokerTHMessage::release_playersturnmessage() { + clear_has_playersturnmessage(); + ::PlayersTurnMessage* temp = playersturnmessage_; + playersturnmessage_ = NULL; + return temp; +} + +// optional .MyActionRequestMessage myActionRequestMessage = 43; +inline bool PokerTHMessage::has_myactionrequestmessage() const { + return (_has_bits_[1] & 0x00000400u) != 0; +} +inline void PokerTHMessage::set_has_myactionrequestmessage() { + _has_bits_[1] |= 0x00000400u; +} +inline void PokerTHMessage::clear_has_myactionrequestmessage() { + _has_bits_[1] &= ~0x00000400u; +} +inline void PokerTHMessage::clear_myactionrequestmessage() { + if (myactionrequestmessage_ != NULL) myactionrequestmessage_->::MyActionRequestMessage::Clear(); + clear_has_myactionrequestmessage(); +} +inline const ::MyActionRequestMessage& PokerTHMessage::myactionrequestmessage() const { + return myactionrequestmessage_ != NULL ? *myactionrequestmessage_ : *default_instance_->myactionrequestmessage_; +} +inline ::MyActionRequestMessage* PokerTHMessage::mutable_myactionrequestmessage() { + set_has_myactionrequestmessage(); + if (myactionrequestmessage_ == NULL) myactionrequestmessage_ = new ::MyActionRequestMessage; + return myactionrequestmessage_; +} +inline ::MyActionRequestMessage* PokerTHMessage::release_myactionrequestmessage() { + clear_has_myactionrequestmessage(); + ::MyActionRequestMessage* temp = myactionrequestmessage_; + myactionrequestmessage_ = NULL; + return temp; +} + +// optional .YourActionRejectedMessage yourActionRejectedMessage = 44; +inline bool PokerTHMessage::has_youractionrejectedmessage() const { + return (_has_bits_[1] & 0x00000800u) != 0; +} +inline void PokerTHMessage::set_has_youractionrejectedmessage() { + _has_bits_[1] |= 0x00000800u; +} +inline void PokerTHMessage::clear_has_youractionrejectedmessage() { + _has_bits_[1] &= ~0x00000800u; +} +inline void PokerTHMessage::clear_youractionrejectedmessage() { + if (youractionrejectedmessage_ != NULL) youractionrejectedmessage_->::YourActionRejectedMessage::Clear(); + clear_has_youractionrejectedmessage(); +} +inline const ::YourActionRejectedMessage& PokerTHMessage::youractionrejectedmessage() const { + return youractionrejectedmessage_ != NULL ? *youractionrejectedmessage_ : *default_instance_->youractionrejectedmessage_; +} +inline ::YourActionRejectedMessage* PokerTHMessage::mutable_youractionrejectedmessage() { + set_has_youractionrejectedmessage(); + if (youractionrejectedmessage_ == NULL) youractionrejectedmessage_ = new ::YourActionRejectedMessage; + return youractionrejectedmessage_; +} +inline ::YourActionRejectedMessage* PokerTHMessage::release_youractionrejectedmessage() { + clear_has_youractionrejectedmessage(); + ::YourActionRejectedMessage* temp = youractionrejectedmessage_; + youractionrejectedmessage_ = NULL; + return temp; +} + +// optional .PlayersActionDoneMessage playersActionDoneMessage = 45; +inline bool PokerTHMessage::has_playersactiondonemessage() const { + return (_has_bits_[1] & 0x00001000u) != 0; +} +inline void PokerTHMessage::set_has_playersactiondonemessage() { + _has_bits_[1] |= 0x00001000u; +} +inline void PokerTHMessage::clear_has_playersactiondonemessage() { + _has_bits_[1] &= ~0x00001000u; +} +inline void PokerTHMessage::clear_playersactiondonemessage() { + if (playersactiondonemessage_ != NULL) playersactiondonemessage_->::PlayersActionDoneMessage::Clear(); + clear_has_playersactiondonemessage(); +} +inline const ::PlayersActionDoneMessage& PokerTHMessage::playersactiondonemessage() const { + return playersactiondonemessage_ != NULL ? *playersactiondonemessage_ : *default_instance_->playersactiondonemessage_; +} +inline ::PlayersActionDoneMessage* PokerTHMessage::mutable_playersactiondonemessage() { + set_has_playersactiondonemessage(); + if (playersactiondonemessage_ == NULL) playersactiondonemessage_ = new ::PlayersActionDoneMessage; + return playersactiondonemessage_; +} +inline ::PlayersActionDoneMessage* PokerTHMessage::release_playersactiondonemessage() { + clear_has_playersactiondonemessage(); + ::PlayersActionDoneMessage* temp = playersactiondonemessage_; + playersactiondonemessage_ = NULL; + return temp; +} + +// optional .DealFlopCardsMessage dealFlopCardsMessage = 46; +inline bool PokerTHMessage::has_dealflopcardsmessage() const { + return (_has_bits_[1] & 0x00002000u) != 0; +} +inline void PokerTHMessage::set_has_dealflopcardsmessage() { + _has_bits_[1] |= 0x00002000u; +} +inline void PokerTHMessage::clear_has_dealflopcardsmessage() { + _has_bits_[1] &= ~0x00002000u; +} +inline void PokerTHMessage::clear_dealflopcardsmessage() { + if (dealflopcardsmessage_ != NULL) dealflopcardsmessage_->::DealFlopCardsMessage::Clear(); + clear_has_dealflopcardsmessage(); +} +inline const ::DealFlopCardsMessage& PokerTHMessage::dealflopcardsmessage() const { + return dealflopcardsmessage_ != NULL ? *dealflopcardsmessage_ : *default_instance_->dealflopcardsmessage_; +} +inline ::DealFlopCardsMessage* PokerTHMessage::mutable_dealflopcardsmessage() { + set_has_dealflopcardsmessage(); + if (dealflopcardsmessage_ == NULL) dealflopcardsmessage_ = new ::DealFlopCardsMessage; + return dealflopcardsmessage_; +} +inline ::DealFlopCardsMessage* PokerTHMessage::release_dealflopcardsmessage() { + clear_has_dealflopcardsmessage(); + ::DealFlopCardsMessage* temp = dealflopcardsmessage_; + dealflopcardsmessage_ = NULL; + return temp; +} + +// optional .DealTurnCardMessage dealTurnCardMessage = 47; +inline bool PokerTHMessage::has_dealturncardmessage() const { + return (_has_bits_[1] & 0x00004000u) != 0; +} +inline void PokerTHMessage::set_has_dealturncardmessage() { + _has_bits_[1] |= 0x00004000u; +} +inline void PokerTHMessage::clear_has_dealturncardmessage() { + _has_bits_[1] &= ~0x00004000u; +} +inline void PokerTHMessage::clear_dealturncardmessage() { + if (dealturncardmessage_ != NULL) dealturncardmessage_->::DealTurnCardMessage::Clear(); + clear_has_dealturncardmessage(); +} +inline const ::DealTurnCardMessage& PokerTHMessage::dealturncardmessage() const { + return dealturncardmessage_ != NULL ? *dealturncardmessage_ : *default_instance_->dealturncardmessage_; +} +inline ::DealTurnCardMessage* PokerTHMessage::mutable_dealturncardmessage() { + set_has_dealturncardmessage(); + if (dealturncardmessage_ == NULL) dealturncardmessage_ = new ::DealTurnCardMessage; + return dealturncardmessage_; +} +inline ::DealTurnCardMessage* PokerTHMessage::release_dealturncardmessage() { + clear_has_dealturncardmessage(); + ::DealTurnCardMessage* temp = dealturncardmessage_; + dealturncardmessage_ = NULL; + return temp; +} + +// optional .DealRiverCardMessage dealRiverCardMessage = 48; +inline bool PokerTHMessage::has_dealrivercardmessage() const { + return (_has_bits_[1] & 0x00008000u) != 0; +} +inline void PokerTHMessage::set_has_dealrivercardmessage() { + _has_bits_[1] |= 0x00008000u; +} +inline void PokerTHMessage::clear_has_dealrivercardmessage() { + _has_bits_[1] &= ~0x00008000u; +} +inline void PokerTHMessage::clear_dealrivercardmessage() { + if (dealrivercardmessage_ != NULL) dealrivercardmessage_->::DealRiverCardMessage::Clear(); + clear_has_dealrivercardmessage(); +} +inline const ::DealRiverCardMessage& PokerTHMessage::dealrivercardmessage() const { + return dealrivercardmessage_ != NULL ? *dealrivercardmessage_ : *default_instance_->dealrivercardmessage_; +} +inline ::DealRiverCardMessage* PokerTHMessage::mutable_dealrivercardmessage() { + set_has_dealrivercardmessage(); + if (dealrivercardmessage_ == NULL) dealrivercardmessage_ = new ::DealRiverCardMessage; + return dealrivercardmessage_; +} +inline ::DealRiverCardMessage* PokerTHMessage::release_dealrivercardmessage() { + clear_has_dealrivercardmessage(); + ::DealRiverCardMessage* temp = dealrivercardmessage_; + dealrivercardmessage_ = NULL; + return temp; +} + +// optional .AllInShowCardsMessage allInShowCardsMessage = 49; +inline bool PokerTHMessage::has_allinshowcardsmessage() const { + return (_has_bits_[1] & 0x00010000u) != 0; +} +inline void PokerTHMessage::set_has_allinshowcardsmessage() { + _has_bits_[1] |= 0x00010000u; +} +inline void PokerTHMessage::clear_has_allinshowcardsmessage() { + _has_bits_[1] &= ~0x00010000u; +} +inline void PokerTHMessage::clear_allinshowcardsmessage() { + if (allinshowcardsmessage_ != NULL) allinshowcardsmessage_->::AllInShowCardsMessage::Clear(); + clear_has_allinshowcardsmessage(); +} +inline const ::AllInShowCardsMessage& PokerTHMessage::allinshowcardsmessage() const { + return allinshowcardsmessage_ != NULL ? *allinshowcardsmessage_ : *default_instance_->allinshowcardsmessage_; +} +inline ::AllInShowCardsMessage* PokerTHMessage::mutable_allinshowcardsmessage() { + set_has_allinshowcardsmessage(); + if (allinshowcardsmessage_ == NULL) allinshowcardsmessage_ = new ::AllInShowCardsMessage; + return allinshowcardsmessage_; +} +inline ::AllInShowCardsMessage* PokerTHMessage::release_allinshowcardsmessage() { + clear_has_allinshowcardsmessage(); + ::AllInShowCardsMessage* temp = allinshowcardsmessage_; + allinshowcardsmessage_ = NULL; + return temp; +} + +// optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; +inline bool PokerTHMessage::has_endofhandshowcardsmessage() const { + return (_has_bits_[1] & 0x00020000u) != 0; +} +inline void PokerTHMessage::set_has_endofhandshowcardsmessage() { + _has_bits_[1] |= 0x00020000u; +} +inline void PokerTHMessage::clear_has_endofhandshowcardsmessage() { + _has_bits_[1] &= ~0x00020000u; +} +inline void PokerTHMessage::clear_endofhandshowcardsmessage() { + if (endofhandshowcardsmessage_ != NULL) endofhandshowcardsmessage_->::EndOfHandShowCardsMessage::Clear(); + clear_has_endofhandshowcardsmessage(); +} +inline const ::EndOfHandShowCardsMessage& PokerTHMessage::endofhandshowcardsmessage() const { + return endofhandshowcardsmessage_ != NULL ? *endofhandshowcardsmessage_ : *default_instance_->endofhandshowcardsmessage_; +} +inline ::EndOfHandShowCardsMessage* PokerTHMessage::mutable_endofhandshowcardsmessage() { + set_has_endofhandshowcardsmessage(); + if (endofhandshowcardsmessage_ == NULL) endofhandshowcardsmessage_ = new ::EndOfHandShowCardsMessage; + return endofhandshowcardsmessage_; +} +inline ::EndOfHandShowCardsMessage* PokerTHMessage::release_endofhandshowcardsmessage() { + clear_has_endofhandshowcardsmessage(); + ::EndOfHandShowCardsMessage* temp = endofhandshowcardsmessage_; + endofhandshowcardsmessage_ = NULL; + return temp; +} + +// optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; +inline bool PokerTHMessage::has_endofhandhidecardsmessage() const { + return (_has_bits_[1] & 0x00040000u) != 0; +} +inline void PokerTHMessage::set_has_endofhandhidecardsmessage() { + _has_bits_[1] |= 0x00040000u; +} +inline void PokerTHMessage::clear_has_endofhandhidecardsmessage() { + _has_bits_[1] &= ~0x00040000u; +} +inline void PokerTHMessage::clear_endofhandhidecardsmessage() { + if (endofhandhidecardsmessage_ != NULL) endofhandhidecardsmessage_->::EndOfHandHideCardsMessage::Clear(); + clear_has_endofhandhidecardsmessage(); +} +inline const ::EndOfHandHideCardsMessage& PokerTHMessage::endofhandhidecardsmessage() const { + return endofhandhidecardsmessage_ != NULL ? *endofhandhidecardsmessage_ : *default_instance_->endofhandhidecardsmessage_; +} +inline ::EndOfHandHideCardsMessage* PokerTHMessage::mutable_endofhandhidecardsmessage() { + set_has_endofhandhidecardsmessage(); + if (endofhandhidecardsmessage_ == NULL) endofhandhidecardsmessage_ = new ::EndOfHandHideCardsMessage; + return endofhandhidecardsmessage_; +} +inline ::EndOfHandHideCardsMessage* PokerTHMessage::release_endofhandhidecardsmessage() { + clear_has_endofhandhidecardsmessage(); + ::EndOfHandHideCardsMessage* temp = endofhandhidecardsmessage_; + endofhandhidecardsmessage_ = NULL; + return temp; +} + +// optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; +inline bool PokerTHMessage::has_showmycardsrequestmessage() const { + return (_has_bits_[1] & 0x00080000u) != 0; +} +inline void PokerTHMessage::set_has_showmycardsrequestmessage() { + _has_bits_[1] |= 0x00080000u; +} +inline void PokerTHMessage::clear_has_showmycardsrequestmessage() { + _has_bits_[1] &= ~0x00080000u; +} +inline void PokerTHMessage::clear_showmycardsrequestmessage() { + if (showmycardsrequestmessage_ != NULL) showmycardsrequestmessage_->::ShowMyCardsRequestMessage::Clear(); + clear_has_showmycardsrequestmessage(); +} +inline const ::ShowMyCardsRequestMessage& PokerTHMessage::showmycardsrequestmessage() const { + return showmycardsrequestmessage_ != NULL ? *showmycardsrequestmessage_ : *default_instance_->showmycardsrequestmessage_; +} +inline ::ShowMyCardsRequestMessage* PokerTHMessage::mutable_showmycardsrequestmessage() { + set_has_showmycardsrequestmessage(); + if (showmycardsrequestmessage_ == NULL) showmycardsrequestmessage_ = new ::ShowMyCardsRequestMessage; + return showmycardsrequestmessage_; +} +inline ::ShowMyCardsRequestMessage* PokerTHMessage::release_showmycardsrequestmessage() { + clear_has_showmycardsrequestmessage(); + ::ShowMyCardsRequestMessage* temp = showmycardsrequestmessage_; + showmycardsrequestmessage_ = NULL; + return temp; +} + +// optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; +inline bool PokerTHMessage::has_afterhandshowcardsmessage() const { + return (_has_bits_[1] & 0x00100000u) != 0; +} +inline void PokerTHMessage::set_has_afterhandshowcardsmessage() { + _has_bits_[1] |= 0x00100000u; +} +inline void PokerTHMessage::clear_has_afterhandshowcardsmessage() { + _has_bits_[1] &= ~0x00100000u; +} +inline void PokerTHMessage::clear_afterhandshowcardsmessage() { + if (afterhandshowcardsmessage_ != NULL) afterhandshowcardsmessage_->::AfterHandShowCardsMessage::Clear(); + clear_has_afterhandshowcardsmessage(); +} +inline const ::AfterHandShowCardsMessage& PokerTHMessage::afterhandshowcardsmessage() const { + return afterhandshowcardsmessage_ != NULL ? *afterhandshowcardsmessage_ : *default_instance_->afterhandshowcardsmessage_; +} +inline ::AfterHandShowCardsMessage* PokerTHMessage::mutable_afterhandshowcardsmessage() { + set_has_afterhandshowcardsmessage(); + if (afterhandshowcardsmessage_ == NULL) afterhandshowcardsmessage_ = new ::AfterHandShowCardsMessage; + return afterhandshowcardsmessage_; +} +inline ::AfterHandShowCardsMessage* PokerTHMessage::release_afterhandshowcardsmessage() { + clear_has_afterhandshowcardsmessage(); + ::AfterHandShowCardsMessage* temp = afterhandshowcardsmessage_; + afterhandshowcardsmessage_ = NULL; + return temp; +} + +// optional .EndOfGameMessage endOfGameMessage = 54; +inline bool PokerTHMessage::has_endofgamemessage() const { + return (_has_bits_[1] & 0x00200000u) != 0; +} +inline void PokerTHMessage::set_has_endofgamemessage() { + _has_bits_[1] |= 0x00200000u; +} +inline void PokerTHMessage::clear_has_endofgamemessage() { + _has_bits_[1] &= ~0x00200000u; +} +inline void PokerTHMessage::clear_endofgamemessage() { + if (endofgamemessage_ != NULL) endofgamemessage_->::EndOfGameMessage::Clear(); + clear_has_endofgamemessage(); +} +inline const ::EndOfGameMessage& PokerTHMessage::endofgamemessage() const { + return endofgamemessage_ != NULL ? *endofgamemessage_ : *default_instance_->endofgamemessage_; +} +inline ::EndOfGameMessage* PokerTHMessage::mutable_endofgamemessage() { + set_has_endofgamemessage(); + if (endofgamemessage_ == NULL) endofgamemessage_ = new ::EndOfGameMessage; + return endofgamemessage_; +} +inline ::EndOfGameMessage* PokerTHMessage::release_endofgamemessage() { + clear_has_endofgamemessage(); + ::EndOfGameMessage* temp = endofgamemessage_; + endofgamemessage_ = NULL; + return temp; +} + +// optional .PlayerIdChangedMessage playerIdChangedMessage = 55; +inline bool PokerTHMessage::has_playeridchangedmessage() const { + return (_has_bits_[1] & 0x00400000u) != 0; +} +inline void PokerTHMessage::set_has_playeridchangedmessage() { + _has_bits_[1] |= 0x00400000u; +} +inline void PokerTHMessage::clear_has_playeridchangedmessage() { + _has_bits_[1] &= ~0x00400000u; +} +inline void PokerTHMessage::clear_playeridchangedmessage() { + if (playeridchangedmessage_ != NULL) playeridchangedmessage_->::PlayerIdChangedMessage::Clear(); + clear_has_playeridchangedmessage(); +} +inline const ::PlayerIdChangedMessage& PokerTHMessage::playeridchangedmessage() const { + return playeridchangedmessage_ != NULL ? *playeridchangedmessage_ : *default_instance_->playeridchangedmessage_; +} +inline ::PlayerIdChangedMessage* PokerTHMessage::mutable_playeridchangedmessage() { + set_has_playeridchangedmessage(); + if (playeridchangedmessage_ == NULL) playeridchangedmessage_ = new ::PlayerIdChangedMessage; + return playeridchangedmessage_; +} +inline ::PlayerIdChangedMessage* PokerTHMessage::release_playeridchangedmessage() { + clear_has_playeridchangedmessage(); + ::PlayerIdChangedMessage* temp = playeridchangedmessage_; + playeridchangedmessage_ = NULL; + return temp; +} + +// optional .AskKickPlayerMessage askKickPlayerMessage = 56; +inline bool PokerTHMessage::has_askkickplayermessage() const { + return (_has_bits_[1] & 0x00800000u) != 0; +} +inline void PokerTHMessage::set_has_askkickplayermessage() { + _has_bits_[1] |= 0x00800000u; +} +inline void PokerTHMessage::clear_has_askkickplayermessage() { + _has_bits_[1] &= ~0x00800000u; +} +inline void PokerTHMessage::clear_askkickplayermessage() { + if (askkickplayermessage_ != NULL) askkickplayermessage_->::AskKickPlayerMessage::Clear(); + clear_has_askkickplayermessage(); +} +inline const ::AskKickPlayerMessage& PokerTHMessage::askkickplayermessage() const { + return askkickplayermessage_ != NULL ? *askkickplayermessage_ : *default_instance_->askkickplayermessage_; +} +inline ::AskKickPlayerMessage* PokerTHMessage::mutable_askkickplayermessage() { + set_has_askkickplayermessage(); + if (askkickplayermessage_ == NULL) askkickplayermessage_ = new ::AskKickPlayerMessage; + return askkickplayermessage_; +} +inline ::AskKickPlayerMessage* PokerTHMessage::release_askkickplayermessage() { + clear_has_askkickplayermessage(); + ::AskKickPlayerMessage* temp = askkickplayermessage_; + askkickplayermessage_ = NULL; + return temp; +} + +// optional .AskKickDeniedMessage askKickDeniedMessage = 57; +inline bool PokerTHMessage::has_askkickdeniedmessage() const { + return (_has_bits_[1] & 0x01000000u) != 0; +} +inline void PokerTHMessage::set_has_askkickdeniedmessage() { + _has_bits_[1] |= 0x01000000u; +} +inline void PokerTHMessage::clear_has_askkickdeniedmessage() { + _has_bits_[1] &= ~0x01000000u; +} +inline void PokerTHMessage::clear_askkickdeniedmessage() { + if (askkickdeniedmessage_ != NULL) askkickdeniedmessage_->::AskKickDeniedMessage::Clear(); + clear_has_askkickdeniedmessage(); +} +inline const ::AskKickDeniedMessage& PokerTHMessage::askkickdeniedmessage() const { + return askkickdeniedmessage_ != NULL ? *askkickdeniedmessage_ : *default_instance_->askkickdeniedmessage_; +} +inline ::AskKickDeniedMessage* PokerTHMessage::mutable_askkickdeniedmessage() { + set_has_askkickdeniedmessage(); + if (askkickdeniedmessage_ == NULL) askkickdeniedmessage_ = new ::AskKickDeniedMessage; + return askkickdeniedmessage_; +} +inline ::AskKickDeniedMessage* PokerTHMessage::release_askkickdeniedmessage() { + clear_has_askkickdeniedmessage(); + ::AskKickDeniedMessage* temp = askkickdeniedmessage_; + askkickdeniedmessage_ = NULL; + return temp; +} + +// optional .StartKickPetitionMessage startKickPetitionMessage = 58; +inline bool PokerTHMessage::has_startkickpetitionmessage() const { + return (_has_bits_[1] & 0x02000000u) != 0; +} +inline void PokerTHMessage::set_has_startkickpetitionmessage() { + _has_bits_[1] |= 0x02000000u; +} +inline void PokerTHMessage::clear_has_startkickpetitionmessage() { + _has_bits_[1] &= ~0x02000000u; +} +inline void PokerTHMessage::clear_startkickpetitionmessage() { + if (startkickpetitionmessage_ != NULL) startkickpetitionmessage_->::StartKickPetitionMessage::Clear(); + clear_has_startkickpetitionmessage(); +} +inline const ::StartKickPetitionMessage& PokerTHMessage::startkickpetitionmessage() const { + return startkickpetitionmessage_ != NULL ? *startkickpetitionmessage_ : *default_instance_->startkickpetitionmessage_; +} +inline ::StartKickPetitionMessage* PokerTHMessage::mutable_startkickpetitionmessage() { + set_has_startkickpetitionmessage(); + if (startkickpetitionmessage_ == NULL) startkickpetitionmessage_ = new ::StartKickPetitionMessage; + return startkickpetitionmessage_; +} +inline ::StartKickPetitionMessage* PokerTHMessage::release_startkickpetitionmessage() { + clear_has_startkickpetitionmessage(); + ::StartKickPetitionMessage* temp = startkickpetitionmessage_; + startkickpetitionmessage_ = NULL; + return temp; +} + +// optional .VoteKickRequestMessage voteKickRequestMessage = 59; +inline bool PokerTHMessage::has_votekickrequestmessage() const { + return (_has_bits_[1] & 0x04000000u) != 0; +} +inline void PokerTHMessage::set_has_votekickrequestmessage() { + _has_bits_[1] |= 0x04000000u; +} +inline void PokerTHMessage::clear_has_votekickrequestmessage() { + _has_bits_[1] &= ~0x04000000u; +} +inline void PokerTHMessage::clear_votekickrequestmessage() { + if (votekickrequestmessage_ != NULL) votekickrequestmessage_->::VoteKickRequestMessage::Clear(); + clear_has_votekickrequestmessage(); +} +inline const ::VoteKickRequestMessage& PokerTHMessage::votekickrequestmessage() const { + return votekickrequestmessage_ != NULL ? *votekickrequestmessage_ : *default_instance_->votekickrequestmessage_; +} +inline ::VoteKickRequestMessage* PokerTHMessage::mutable_votekickrequestmessage() { + set_has_votekickrequestmessage(); + if (votekickrequestmessage_ == NULL) votekickrequestmessage_ = new ::VoteKickRequestMessage; + return votekickrequestmessage_; +} +inline ::VoteKickRequestMessage* PokerTHMessage::release_votekickrequestmessage() { + clear_has_votekickrequestmessage(); + ::VoteKickRequestMessage* temp = votekickrequestmessage_; + votekickrequestmessage_ = NULL; + return temp; +} + +// optional .VoteKickReplyMessage voteKickReplyMessage = 60; +inline bool PokerTHMessage::has_votekickreplymessage() const { + return (_has_bits_[1] & 0x08000000u) != 0; +} +inline void PokerTHMessage::set_has_votekickreplymessage() { + _has_bits_[1] |= 0x08000000u; +} +inline void PokerTHMessage::clear_has_votekickreplymessage() { + _has_bits_[1] &= ~0x08000000u; +} +inline void PokerTHMessage::clear_votekickreplymessage() { + if (votekickreplymessage_ != NULL) votekickreplymessage_->::VoteKickReplyMessage::Clear(); + clear_has_votekickreplymessage(); +} +inline const ::VoteKickReplyMessage& PokerTHMessage::votekickreplymessage() const { + return votekickreplymessage_ != NULL ? *votekickreplymessage_ : *default_instance_->votekickreplymessage_; +} +inline ::VoteKickReplyMessage* PokerTHMessage::mutable_votekickreplymessage() { + set_has_votekickreplymessage(); + if (votekickreplymessage_ == NULL) votekickreplymessage_ = new ::VoteKickReplyMessage; + return votekickreplymessage_; +} +inline ::VoteKickReplyMessage* PokerTHMessage::release_votekickreplymessage() { + clear_has_votekickreplymessage(); + ::VoteKickReplyMessage* temp = votekickreplymessage_; + votekickreplymessage_ = NULL; + return temp; +} + +// optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; +inline bool PokerTHMessage::has_kickpetitionupdatemessage() const { + return (_has_bits_[1] & 0x10000000u) != 0; +} +inline void PokerTHMessage::set_has_kickpetitionupdatemessage() { + _has_bits_[1] |= 0x10000000u; +} +inline void PokerTHMessage::clear_has_kickpetitionupdatemessage() { + _has_bits_[1] &= ~0x10000000u; +} +inline void PokerTHMessage::clear_kickpetitionupdatemessage() { + if (kickpetitionupdatemessage_ != NULL) kickpetitionupdatemessage_->::KickPetitionUpdateMessage::Clear(); + clear_has_kickpetitionupdatemessage(); +} +inline const ::KickPetitionUpdateMessage& PokerTHMessage::kickpetitionupdatemessage() const { + return kickpetitionupdatemessage_ != NULL ? *kickpetitionupdatemessage_ : *default_instance_->kickpetitionupdatemessage_; +} +inline ::KickPetitionUpdateMessage* PokerTHMessage::mutable_kickpetitionupdatemessage() { + set_has_kickpetitionupdatemessage(); + if (kickpetitionupdatemessage_ == NULL) kickpetitionupdatemessage_ = new ::KickPetitionUpdateMessage; + return kickpetitionupdatemessage_; +} +inline ::KickPetitionUpdateMessage* PokerTHMessage::release_kickpetitionupdatemessage() { + clear_has_kickpetitionupdatemessage(); + ::KickPetitionUpdateMessage* temp = kickpetitionupdatemessage_; + kickpetitionupdatemessage_ = NULL; + return temp; +} + +// optional .EndKickPetitionMessage endKickPetitionMessage = 62; +inline bool PokerTHMessage::has_endkickpetitionmessage() const { + return (_has_bits_[1] & 0x20000000u) != 0; +} +inline void PokerTHMessage::set_has_endkickpetitionmessage() { + _has_bits_[1] |= 0x20000000u; +} +inline void PokerTHMessage::clear_has_endkickpetitionmessage() { + _has_bits_[1] &= ~0x20000000u; +} +inline void PokerTHMessage::clear_endkickpetitionmessage() { + if (endkickpetitionmessage_ != NULL) endkickpetitionmessage_->::EndKickPetitionMessage::Clear(); + clear_has_endkickpetitionmessage(); +} +inline const ::EndKickPetitionMessage& PokerTHMessage::endkickpetitionmessage() const { + return endkickpetitionmessage_ != NULL ? *endkickpetitionmessage_ : *default_instance_->endkickpetitionmessage_; +} +inline ::EndKickPetitionMessage* PokerTHMessage::mutable_endkickpetitionmessage() { + set_has_endkickpetitionmessage(); + if (endkickpetitionmessage_ == NULL) endkickpetitionmessage_ = new ::EndKickPetitionMessage; + return endkickpetitionmessage_; +} +inline ::EndKickPetitionMessage* PokerTHMessage::release_endkickpetitionmessage() { + clear_has_endkickpetitionmessage(); + ::EndKickPetitionMessage* temp = endkickpetitionmessage_; + endkickpetitionmessage_ = NULL; + return temp; +} + +// optional .StatisticsMessage statisticsMessage = 63; +inline bool PokerTHMessage::has_statisticsmessage() const { + return (_has_bits_[1] & 0x40000000u) != 0; +} +inline void PokerTHMessage::set_has_statisticsmessage() { + _has_bits_[1] |= 0x40000000u; +} +inline void PokerTHMessage::clear_has_statisticsmessage() { + _has_bits_[1] &= ~0x40000000u; +} +inline void PokerTHMessage::clear_statisticsmessage() { + if (statisticsmessage_ != NULL) statisticsmessage_->::StatisticsMessage::Clear(); + clear_has_statisticsmessage(); +} +inline const ::StatisticsMessage& PokerTHMessage::statisticsmessage() const { + return statisticsmessage_ != NULL ? *statisticsmessage_ : *default_instance_->statisticsmessage_; +} +inline ::StatisticsMessage* PokerTHMessage::mutable_statisticsmessage() { + set_has_statisticsmessage(); + if (statisticsmessage_ == NULL) statisticsmessage_ = new ::StatisticsMessage; + return statisticsmessage_; +} +inline ::StatisticsMessage* PokerTHMessage::release_statisticsmessage() { + clear_has_statisticsmessage(); + ::StatisticsMessage* temp = statisticsmessage_; + statisticsmessage_ = NULL; + return temp; +} + +// optional .ChatRequestMessage chatRequestMessage = 64; +inline bool PokerTHMessage::has_chatrequestmessage() const { + return (_has_bits_[1] & 0x80000000u) != 0; +} +inline void PokerTHMessage::set_has_chatrequestmessage() { + _has_bits_[1] |= 0x80000000u; +} +inline void PokerTHMessage::clear_has_chatrequestmessage() { + _has_bits_[1] &= ~0x80000000u; +} +inline void PokerTHMessage::clear_chatrequestmessage() { + if (chatrequestmessage_ != NULL) chatrequestmessage_->::ChatRequestMessage::Clear(); + clear_has_chatrequestmessage(); +} +inline const ::ChatRequestMessage& PokerTHMessage::chatrequestmessage() const { + return chatrequestmessage_ != NULL ? *chatrequestmessage_ : *default_instance_->chatrequestmessage_; +} +inline ::ChatRequestMessage* PokerTHMessage::mutable_chatrequestmessage() { + set_has_chatrequestmessage(); + if (chatrequestmessage_ == NULL) chatrequestmessage_ = new ::ChatRequestMessage; + return chatrequestmessage_; +} +inline ::ChatRequestMessage* PokerTHMessage::release_chatrequestmessage() { + clear_has_chatrequestmessage(); + ::ChatRequestMessage* temp = chatrequestmessage_; + chatrequestmessage_ = NULL; + return temp; +} + +// optional .ChatMessage chatMessage = 65; +inline bool PokerTHMessage::has_chatmessage() const { + return (_has_bits_[2] & 0x00000001u) != 0; +} +inline void PokerTHMessage::set_has_chatmessage() { + _has_bits_[2] |= 0x00000001u; +} +inline void PokerTHMessage::clear_has_chatmessage() { + _has_bits_[2] &= ~0x00000001u; +} +inline void PokerTHMessage::clear_chatmessage() { + if (chatmessage_ != NULL) chatmessage_->::ChatMessage::Clear(); + clear_has_chatmessage(); +} +inline const ::ChatMessage& PokerTHMessage::chatmessage() const { + return chatmessage_ != NULL ? *chatmessage_ : *default_instance_->chatmessage_; +} +inline ::ChatMessage* PokerTHMessage::mutable_chatmessage() { + set_has_chatmessage(); + if (chatmessage_ == NULL) chatmessage_ = new ::ChatMessage; + return chatmessage_; +} +inline ::ChatMessage* PokerTHMessage::release_chatmessage() { + clear_has_chatmessage(); + ::ChatMessage* temp = chatmessage_; + chatmessage_ = NULL; + return temp; +} + +// optional .ChatRejectMessage chatRejectMessage = 66; +inline bool PokerTHMessage::has_chatrejectmessage() const { + return (_has_bits_[2] & 0x00000002u) != 0; +} +inline void PokerTHMessage::set_has_chatrejectmessage() { + _has_bits_[2] |= 0x00000002u; +} +inline void PokerTHMessage::clear_has_chatrejectmessage() { + _has_bits_[2] &= ~0x00000002u; +} +inline void PokerTHMessage::clear_chatrejectmessage() { + if (chatrejectmessage_ != NULL) chatrejectmessage_->::ChatRejectMessage::Clear(); + clear_has_chatrejectmessage(); +} +inline const ::ChatRejectMessage& PokerTHMessage::chatrejectmessage() const { + return chatrejectmessage_ != NULL ? *chatrejectmessage_ : *default_instance_->chatrejectmessage_; +} +inline ::ChatRejectMessage* PokerTHMessage::mutable_chatrejectmessage() { + set_has_chatrejectmessage(); + if (chatrejectmessage_ == NULL) chatrejectmessage_ = new ::ChatRejectMessage; + return chatrejectmessage_; +} +inline ::ChatRejectMessage* PokerTHMessage::release_chatrejectmessage() { + clear_has_chatrejectmessage(); + ::ChatRejectMessage* temp = chatrejectmessage_; + chatrejectmessage_ = NULL; + return temp; +} + +// optional .DialogMessage dialogMessage = 67; +inline bool PokerTHMessage::has_dialogmessage() const { + return (_has_bits_[2] & 0x00000004u) != 0; +} +inline void PokerTHMessage::set_has_dialogmessage() { + _has_bits_[2] |= 0x00000004u; +} +inline void PokerTHMessage::clear_has_dialogmessage() { + _has_bits_[2] &= ~0x00000004u; +} +inline void PokerTHMessage::clear_dialogmessage() { + if (dialogmessage_ != NULL) dialogmessage_->::DialogMessage::Clear(); + clear_has_dialogmessage(); +} +inline const ::DialogMessage& PokerTHMessage::dialogmessage() const { + return dialogmessage_ != NULL ? *dialogmessage_ : *default_instance_->dialogmessage_; +} +inline ::DialogMessage* PokerTHMessage::mutable_dialogmessage() { + set_has_dialogmessage(); + if (dialogmessage_ == NULL) dialogmessage_ = new ::DialogMessage; + return dialogmessage_; +} +inline ::DialogMessage* PokerTHMessage::release_dialogmessage() { + clear_has_dialogmessage(); + ::DialogMessage* temp = dialogmessage_; + dialogmessage_ = NULL; + return temp; +} + +// optional .TimeoutWarningMessage timeoutWarningMessage = 68; +inline bool PokerTHMessage::has_timeoutwarningmessage() const { + return (_has_bits_[2] & 0x00000008u) != 0; +} +inline void PokerTHMessage::set_has_timeoutwarningmessage() { + _has_bits_[2] |= 0x00000008u; +} +inline void PokerTHMessage::clear_has_timeoutwarningmessage() { + _has_bits_[2] &= ~0x00000008u; +} +inline void PokerTHMessage::clear_timeoutwarningmessage() { + if (timeoutwarningmessage_ != NULL) timeoutwarningmessage_->::TimeoutWarningMessage::Clear(); + clear_has_timeoutwarningmessage(); +} +inline const ::TimeoutWarningMessage& PokerTHMessage::timeoutwarningmessage() const { + return timeoutwarningmessage_ != NULL ? *timeoutwarningmessage_ : *default_instance_->timeoutwarningmessage_; +} +inline ::TimeoutWarningMessage* PokerTHMessage::mutable_timeoutwarningmessage() { + set_has_timeoutwarningmessage(); + if (timeoutwarningmessage_ == NULL) timeoutwarningmessage_ = new ::TimeoutWarningMessage; + return timeoutwarningmessage_; +} +inline ::TimeoutWarningMessage* PokerTHMessage::release_timeoutwarningmessage() { + clear_has_timeoutwarningmessage(); + ::TimeoutWarningMessage* temp = timeoutwarningmessage_; + timeoutwarningmessage_ = NULL; + return temp; +} + +// optional .ResetTimeoutMessage resetTimeoutMessage = 69; +inline bool PokerTHMessage::has_resettimeoutmessage() const { + return (_has_bits_[2] & 0x00000010u) != 0; +} +inline void PokerTHMessage::set_has_resettimeoutmessage() { + _has_bits_[2] |= 0x00000010u; +} +inline void PokerTHMessage::clear_has_resettimeoutmessage() { + _has_bits_[2] &= ~0x00000010u; +} +inline void PokerTHMessage::clear_resettimeoutmessage() { + if (resettimeoutmessage_ != NULL) resettimeoutmessage_->::ResetTimeoutMessage::Clear(); + clear_has_resettimeoutmessage(); +} +inline const ::ResetTimeoutMessage& PokerTHMessage::resettimeoutmessage() const { + return resettimeoutmessage_ != NULL ? *resettimeoutmessage_ : *default_instance_->resettimeoutmessage_; +} +inline ::ResetTimeoutMessage* PokerTHMessage::mutable_resettimeoutmessage() { + set_has_resettimeoutmessage(); + if (resettimeoutmessage_ == NULL) resettimeoutmessage_ = new ::ResetTimeoutMessage; + return resettimeoutmessage_; +} +inline ::ResetTimeoutMessage* PokerTHMessage::release_resettimeoutmessage() { + clear_has_resettimeoutmessage(); + ::ResetTimeoutMessage* temp = resettimeoutmessage_; + resettimeoutmessage_ = NULL; + return temp; +} + +// optional .ReportAvatarMessage reportAvatarMessage = 70; +inline bool PokerTHMessage::has_reportavatarmessage() const { + return (_has_bits_[2] & 0x00000020u) != 0; +} +inline void PokerTHMessage::set_has_reportavatarmessage() { + _has_bits_[2] |= 0x00000020u; +} +inline void PokerTHMessage::clear_has_reportavatarmessage() { + _has_bits_[2] &= ~0x00000020u; +} +inline void PokerTHMessage::clear_reportavatarmessage() { + if (reportavatarmessage_ != NULL) reportavatarmessage_->::ReportAvatarMessage::Clear(); + clear_has_reportavatarmessage(); +} +inline const ::ReportAvatarMessage& PokerTHMessage::reportavatarmessage() const { + return reportavatarmessage_ != NULL ? *reportavatarmessage_ : *default_instance_->reportavatarmessage_; +} +inline ::ReportAvatarMessage* PokerTHMessage::mutable_reportavatarmessage() { + set_has_reportavatarmessage(); + if (reportavatarmessage_ == NULL) reportavatarmessage_ = new ::ReportAvatarMessage; + return reportavatarmessage_; +} +inline ::ReportAvatarMessage* PokerTHMessage::release_reportavatarmessage() { + clear_has_reportavatarmessage(); + ::ReportAvatarMessage* temp = reportavatarmessage_; + reportavatarmessage_ = NULL; + return temp; +} + +// optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; +inline bool PokerTHMessage::has_reportavatarackmessage() const { + return (_has_bits_[2] & 0x00000040u) != 0; +} +inline void PokerTHMessage::set_has_reportavatarackmessage() { + _has_bits_[2] |= 0x00000040u; +} +inline void PokerTHMessage::clear_has_reportavatarackmessage() { + _has_bits_[2] &= ~0x00000040u; +} +inline void PokerTHMessage::clear_reportavatarackmessage() { + if (reportavatarackmessage_ != NULL) reportavatarackmessage_->::ReportAvatarAckMessage::Clear(); + clear_has_reportavatarackmessage(); +} +inline const ::ReportAvatarAckMessage& PokerTHMessage::reportavatarackmessage() const { + return reportavatarackmessage_ != NULL ? *reportavatarackmessage_ : *default_instance_->reportavatarackmessage_; +} +inline ::ReportAvatarAckMessage* PokerTHMessage::mutable_reportavatarackmessage() { + set_has_reportavatarackmessage(); + if (reportavatarackmessage_ == NULL) reportavatarackmessage_ = new ::ReportAvatarAckMessage; + return reportavatarackmessage_; +} +inline ::ReportAvatarAckMessage* PokerTHMessage::release_reportavatarackmessage() { + clear_has_reportavatarackmessage(); + ::ReportAvatarAckMessage* temp = reportavatarackmessage_; + reportavatarackmessage_ = NULL; + return temp; +} + +// optional .ReportGameMessage reportGameMessage = 72; +inline bool PokerTHMessage::has_reportgamemessage() const { + return (_has_bits_[2] & 0x00000080u) != 0; +} +inline void PokerTHMessage::set_has_reportgamemessage() { + _has_bits_[2] |= 0x00000080u; +} +inline void PokerTHMessage::clear_has_reportgamemessage() { + _has_bits_[2] &= ~0x00000080u; +} +inline void PokerTHMessage::clear_reportgamemessage() { + if (reportgamemessage_ != NULL) reportgamemessage_->::ReportGameMessage::Clear(); + clear_has_reportgamemessage(); +} +inline const ::ReportGameMessage& PokerTHMessage::reportgamemessage() const { + return reportgamemessage_ != NULL ? *reportgamemessage_ : *default_instance_->reportgamemessage_; +} +inline ::ReportGameMessage* PokerTHMessage::mutable_reportgamemessage() { + set_has_reportgamemessage(); + if (reportgamemessage_ == NULL) reportgamemessage_ = new ::ReportGameMessage; + return reportgamemessage_; +} +inline ::ReportGameMessage* PokerTHMessage::release_reportgamemessage() { + clear_has_reportgamemessage(); + ::ReportGameMessage* temp = reportgamemessage_; + reportgamemessage_ = NULL; + return temp; +} + +// optional .ReportGameAckMessage reportGameAckMessage = 73; +inline bool PokerTHMessage::has_reportgameackmessage() const { + return (_has_bits_[2] & 0x00000100u) != 0; +} +inline void PokerTHMessage::set_has_reportgameackmessage() { + _has_bits_[2] |= 0x00000100u; +} +inline void PokerTHMessage::clear_has_reportgameackmessage() { + _has_bits_[2] &= ~0x00000100u; +} +inline void PokerTHMessage::clear_reportgameackmessage() { + if (reportgameackmessage_ != NULL) reportgameackmessage_->::ReportGameAckMessage::Clear(); + clear_has_reportgameackmessage(); +} +inline const ::ReportGameAckMessage& PokerTHMessage::reportgameackmessage() const { + return reportgameackmessage_ != NULL ? *reportgameackmessage_ : *default_instance_->reportgameackmessage_; +} +inline ::ReportGameAckMessage* PokerTHMessage::mutable_reportgameackmessage() { + set_has_reportgameackmessage(); + if (reportgameackmessage_ == NULL) reportgameackmessage_ = new ::ReportGameAckMessage; + return reportgameackmessage_; +} +inline ::ReportGameAckMessage* PokerTHMessage::release_reportgameackmessage() { + clear_has_reportgameackmessage(); + ::ReportGameAckMessage* temp = reportgameackmessage_; + reportgameackmessage_ = NULL; + return temp; +} + +// optional .ErrorMessage errorMessage = 74; +inline bool PokerTHMessage::has_errormessage() const { + return (_has_bits_[2] & 0x00000200u) != 0; +} +inline void PokerTHMessage::set_has_errormessage() { + _has_bits_[2] |= 0x00000200u; +} +inline void PokerTHMessage::clear_has_errormessage() { + _has_bits_[2] &= ~0x00000200u; +} +inline void PokerTHMessage::clear_errormessage() { + if (errormessage_ != NULL) errormessage_->::ErrorMessage::Clear(); + clear_has_errormessage(); +} +inline const ::ErrorMessage& PokerTHMessage::errormessage() const { + return errormessage_ != NULL ? *errormessage_ : *default_instance_->errormessage_; +} +inline ::ErrorMessage* PokerTHMessage::mutable_errormessage() { + set_has_errormessage(); + if (errormessage_ == NULL) errormessage_ = new ::ErrorMessage; + return errormessage_; +} +inline ::ErrorMessage* PokerTHMessage::release_errormessage() { + clear_has_errormessage(); + ::ErrorMessage* temp = errormessage_; + errormessage_ = NULL; + return temp; +} + + +// @@protoc_insertion_point(namespace_scope) + +#ifndef SWIG +namespace google { +namespace protobuf { + +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::NetGameInfo_NetGameType>() { + return ::NetGameInfo_NetGameType_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::NetGameInfo_RaiseIntervalMode>() { + return ::NetGameInfo_RaiseIntervalMode_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::NetGameInfo_EndRaiseMode>() { + return ::NetGameInfo_EndRaiseMode_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::AnnounceMessage_ServerType>() { + return ::AnnounceMessage_ServerType_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::InitMessage_LoginType>() { + return ::InitMessage_LoginType_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::PlayerListMessage_PlayerListNotification>() { + return ::PlayerListMessage_PlayerListNotification_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::SubscriptionRequestMessage_SubscriptionAction>() { + return ::SubscriptionRequestMessage_SubscriptionAction_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::JoinGameFailedMessage_JoinGameFailureReason>() { + return ::JoinGameFailedMessage_JoinGameFailureReason_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::GamePlayerLeftMessage_GamePlayerLeftReason>() { + return ::GamePlayerLeftMessage_GamePlayerLeftReason_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::RemovedFromGameMessage_RemovedFromGameReason>() { + return ::RemovedFromGameMessage_RemovedFromGameReason_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::RejectGameInvitationMessage_RejectGameInvReason>() { + return ::RejectGameInvitationMessage_RejectGameInvReason_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::StartEventMessage_StartEventType>() { + return ::StartEventMessage_StartEventType_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::YourActionRejectedMessage_RejectionReason>() { + return ::YourActionRejectedMessage_RejectionReason_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::AskKickDeniedMessage_KickDeniedReason>() { + return ::AskKickDeniedMessage_KickDeniedReason_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::VoteKickReplyMessage_VoteKickReplyType>() { + return ::VoteKickReplyMessage_VoteKickReplyType_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::EndKickPetitionMessage_PetitionEndReason>() { + return ::EndKickPetitionMessage_PetitionEndReason_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::StatisticsMessage_StatisticsData_StatisticsType>() { + return ::StatisticsMessage_StatisticsData_StatisticsType_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::ChatMessage_ChatType>() { + return ::ChatMessage_ChatType_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::TimeoutWarningMessage_TimeoutReason>() { + return ::TimeoutWarningMessage_TimeoutReason_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::ReportAvatarAckMessage_ReportAvatarResult>() { + return ::ReportAvatarAckMessage_ReportAvatarResult_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::ReportGameAckMessage_ReportGameResult>() { + return ::ReportGameAckMessage_ReportGameResult_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::ErrorMessage_ErrorReason>() { + return ::ErrorMessage_ErrorReason_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::PokerTHMessage_PokerTHMessageType>() { + return ::PokerTHMessage_PokerTHMessageType_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< NetGameMode>() { + return NetGameMode_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< NetGameState>() { + return NetGameState_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< NetPlayerAction>() { + return NetPlayerAction_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< NetPlayerState>() { + return NetPlayerState_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< PlayerInfoRights>() { + return PlayerInfoRights_descriptor(); +} +template <> +inline const EnumDescriptor* GetEnumDescriptor< NetAvatarType>() { + return NetAvatarType_descriptor(); +} + +} // namespace google +} // namespace protobuf +#endif // SWIG + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_pokerth_2eproto__INCLUDED