From f0ee0af6eccb4f336a31245ba2e47cc995231ac8 Mon Sep 17 00:00:00 2001 From: lotodore Date: Sun, 23 Sep 2012 23:19:53 +0200 Subject: [PATCH] Some work on protocol buffer details. --- docs/pokerth.proto | 54 +- src/net/common/clientstate.cpp | 14 +- src/net/common/senderhelper.cpp | 5 +- src/net/common/servergamestate.cpp | 16 +- src/net/common/serverlobbythread.cpp | 4 +- src/third_party/protobuf/pokerth.pb.cc | 771 +++++------ src/third_party/protobuf/pokerth.pb.h | 114 +- tests/src/de/pokerth/protocol/ProtoBuf.java | 1189 +++++++++-------- tests/src/de/pokerth/test/GameListTest.java | 10 +- tests/src/de/pokerth/test/LoadTest.java | 2 +- tests/src/de/pokerth/test/PlayerInfoTest.java | 8 +- .../de/pokerth/test/RunRankingGameTest.java | 4 +- tests/src/de/pokerth/test/SeatStateTest.java | 8 +- 13 files changed, 1103 insertions(+), 1096 deletions(-) diff --git a/docs/pokerth.proto b/docs/pokerth.proto index d66c1819..bc074e7e 100644 --- a/docs/pokerth.proto +++ b/docs/pokerth.proto @@ -22,46 +22,46 @@ option java_outer_classname = "ProtoBuf"; // Enumerations used by several messages. enum NetGameMode { - gameCreated = 1; - gameStarted = 2; - gameClosed = 3; + netGameCreated = 1; + netGameStarted = 2; + netGameClosed = 3; } enum NetGameState { - statePreflop = 0; - stateFlop = 1; - stateTurn = 2; - stateRiver = 3; - statePreflopSmallBlind = 4; - statePreflopBigBlind = 5; + netStatePreflop = 0; + netStateFlop = 1; + netStateTurn = 2; + netStateRiver = 3; + netStatePreflopSmallBlind = 4; + netStatePreflopBigBlind = 5; } enum NetPlayerAction { - actionNone = 0; - actionFold = 1; - actionCheck = 2; - actionCall = 3; - actionBet = 4; - actionRaise = 5; - actionAllIn = 6; + netActionNone = 0; + netActionFold = 1; + netActionCheck = 2; + netActionCall = 3; + netActionBet = 4; + netActionRaise = 5; + netActionAllIn = 6; } enum NetPlayerState { - playerStateNormal = 0; - playerStateSessionInactive = 1; - playerStateNoMoney = 2; + netPlayerStateNormal = 0; + netPlayerStateSessionInactive = 1; + netPlayerStateNoMoney = 2; } -enum PlayerInfoRights { - playerRightsGuest = 1; - playerRightsNormal = 2; - playerRightsAdmin = 3; +enum NetPlayerInfoRights { + netPlayerRightsGuest = 1; + netPlayerRightsNormal = 2; + netPlayerRightsAdmin = 3; } enum NetAvatarType { - avatarImagePng = 1; - avatarImageJpg = 2; - avatarImageGif = 3; + netAvatarImagePng = 1; + netAvatarImageJpg = 2; + netAvatarImageGif = 3; } // Message part containing game information. @@ -240,7 +240,7 @@ message PlayerInfoReplyMessage { message PlayerInfoData { required string playerName = 1; required bool isHuman = 2; - required PlayerInfoRights playerRights = 3; + required NetPlayerInfoRights playerRights = 3; optional string countryCode = 4; message AvatarData { required NetAvatarType avatarType = 1; diff --git a/src/net/common/clientstate.cpp b/src/net/common/clientstate.cpp index 2b76ef3e..cf9da557 100644 --- a/src/net/common/clientstate.cpp +++ b/src/net/common/clientstate.cpp @@ -535,7 +535,7 @@ AbstractClientStateReceiving::HandlePacket(boost::shared_ptr clien 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; + tmpInfo.isGuest = netInfo.playerrights() == netPlayerRightsGuest; if (netInfo.has_countrycode()) { tmpInfo.countryCode = netInfo.countrycode(); } @@ -696,7 +696,7 @@ AbstractClientStateReceiving::HandlePacket(boost::shared_ptr clien } 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) + if (netListUpdate.gamemode() == netGameClosed) client->RemoveGameInfo(netListUpdate.gameid()); else client->UpdateGameInfoMode(netListUpdate.gameid(), static_cast(netListUpdate.gamemode())); @@ -1532,13 +1532,13 @@ ClientStateWaitHand::InternalHandlePacket(boost::shared_ptr client if (!tmpPlayer) throw ClientException(__FILE__, __LINE__, ERR_NET_UNKNOWN_PLAYER_ID, 0); switch (seatState) { - case playerStateNormal : + case netPlayerStateNormal : tmpPlayer->setIsSessionActive(true); break; - case playerStateSessionInactive : + case netPlayerStateSessionInactive : tmpPlayer->setIsSessionActive(false); break; - case playerStateNoMoney : + case netPlayerStateNoMoney : tmpPlayer->setMyCash(0); break; } @@ -1662,10 +1662,10 @@ ClientStateRunHand::InternalHandlePacket(boost::shared_ptr client, bool isBigBlind = false; - if (netActionDone.gamestate() == statePreflopSmallBlind) { + if (netActionDone.gamestate() == netStatePreflopSmallBlind) { curGame->getCurrentHand()->getCurrentBeRo()->setSmallBlindPositionId(tmpPlayer->getMyUniqueID()); tmpPlayer->setMyButton(BUTTON_SMALL_BLIND); - } else if (netActionDone.gamestate() == statePreflopBigBlind) { + } else if (netActionDone.gamestate() == netStatePreflopBigBlind) { curGame->getCurrentHand()->getCurrentBeRo()->setBigBlindPositionId(tmpPlayer->getMyUniqueID()); tmpPlayer->setMyButton(BUTTON_BIG_BLIND); isBigBlind = true; diff --git a/src/net/common/senderhelper.cpp b/src/net/common/senderhelper.cpp index 7856c033..c37b21c5 100644 --- a/src/net/common/senderhelper.cpp +++ b/src/net/common/senderhelper.cpp @@ -84,9 +84,10 @@ void SenderHelper::InternalStorePacket(SendBuffer &tmpBuffer, boost::shared_ptr packet) { uint32_t packetSize = packet->GetMsg()->ByteSize(); - char *buf = new char[packetSize + NET_HEADER_SIZE]; + google::protobuf::uint8 *buf = new google::protobuf::uint8[packetSize + NET_HEADER_SIZE]; *((uint32_t *)buf) = htonl(packetSize); - packet->GetMsg()->SerializeToArray(&buf[NET_HEADER_SIZE], packetSize); + packet->GetMsg()->SerializeWithCachedSizesToArray(&buf[NET_HEADER_SIZE]); SendBuffer::EncodeToBuf(buf, packetSize + NET_HEADER_SIZE, &tmpBuffer); + delete[] buf; } diff --git a/src/net/common/servergamestate.cpp b/src/net/common/servergamestate.cpp index 85b7b3d9..ad22518d 100644 --- a/src/net/common/servergamestate.cpp +++ b/src/net/common/servergamestate.cpp @@ -1176,11 +1176,11 @@ ServerGameStateHand::StartNewHand(boost::shared_ptr server) while (player_i != player_end && playerCounter < server->GetStartData().numberOfPlayers) { NetPlayerState seatState; if (!(*player_i)->getMyActiveStatus()) { - seatState = playerStateNoMoney; + seatState = netPlayerStateNoMoney; } else if (!(*player_i)->isSessionActive()) { - seatState = playerStateSessionInactive; + seatState = netPlayerStateSessionInactive; } else { - seatState = playerStateNormal; + seatState = netPlayerStateNormal; } netHandStart->add_seatstates(seatState); ++player_i; @@ -1209,7 +1209,7 @@ ServerGameStateHand::StartNewHand(boost::shared_ptr server) notifySmallBlind->GetMsg()->set_messagetype(PokerTHMessage::Type_PlayersActionDoneMessage); PlayersActionDoneMessage *netSmallBlind = notifySmallBlind->GetMsg()->mutable_playersactiondonemessage(); netSmallBlind->set_gameid(server->GetId()); - netSmallBlind->set_gamestate(statePreflopSmallBlind); + netSmallBlind->set_gamestate(netStatePreflopSmallBlind); netSmallBlind->set_playerid(tmpPlayer->getMyUniqueID()); netSmallBlind->set_playeraction(static_cast(tmpPlayer->getMyAction())); netSmallBlind->set_totalplayerbet(tmpPlayer->getMySet()); @@ -1231,7 +1231,7 @@ ServerGameStateHand::StartNewHand(boost::shared_ptr server) notifyBigBlind->GetMsg()->set_messagetype(PokerTHMessage::Type_PlayersActionDoneMessage); PlayersActionDoneMessage *netBigBlind = notifyBigBlind->GetMsg()->mutable_playersactiondonemessage(); netBigBlind->set_gameid(server->GetId()); - netBigBlind->set_gamestate(statePreflopBigBlind); + netBigBlind->set_gamestate(netStatePreflopBigBlind); netBigBlind->set_playerid(tmpPlayer->getMyUniqueID()); netBigBlind->set_playeraction(static_cast(tmpPlayer->getMyAction())); netBigBlind->set_totalplayerbet(tmpPlayer->getMySet()); @@ -1431,13 +1431,13 @@ ServerGameStateWaitPlayerAction::InternalProcessPacket(boost::shared_ptrmyaction() == actionCall && netMyAction->myrelativebet() == 0) { + if (netMyAction->myaction() == netActionCall && netMyAction->myrelativebet() == 0) { if (curGame.getCurrentHand()->getCurrentBeRo()->getHighestSet() >= tmpPlayer->getMySet() + tmpPlayer->getMyCash()) - netMyAction->set_myaction(actionAllIn); + netMyAction->set_myaction(netActionAllIn); else netMyAction->set_myrelativebet(curGame.getCurrentHand()->getCurrentBeRo()->getHighestSet() - tmpPlayer->getMySet()); } - if (netMyAction->myaction() == actionAllIn && netMyAction->myrelativebet() == 0) + if (netMyAction->myaction() == netActionAllIn && netMyAction->myrelativebet() == 0) netMyAction->set_myrelativebet(tmpPlayer->getMyCash()); // Check whether the action is valid. diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index 8ba8acbd..eab826d1 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1172,7 +1172,7 @@ ServerLobbyThread::HandleNetPacketRetrievePlayerInfo(boost::shared_ptrset_playername(tmpPlayer->GetName()); data->set_ishuman(tmpPlayer->GetType() == PLAYER_TYPE_HUMAN); - data->set_playerrights(static_cast(tmpPlayer->GetRights())); + data->set_playerrights(static_cast(tmpPlayer->GetRights())); if (!tmpPlayer->GetCountry().empty()) { data->set_countrycode(tmpPlayer->GetCountry()); } @@ -2119,7 +2119,7 @@ ServerLobbyThread::CreateNetPacketGameListNew(const ServerGame &game) GameListNewMessage *netGameList = packet->GetMsg()->mutable_gamelistnewmessage(); netGameList->set_gameid(game.GetId()); netGameList->set_adminplayerid(game.GetAdminPlayerId()); - netGameList->set_gamemode(game.IsRunning() ? gameStarted : gameCreated); + netGameList->set_gamemode(game.IsRunning() ? netGameStarted : netGameCreated); NetPacket::SetGameData(game.GetGameData(), *netGameList->mutable_gameinfo()); netGameList->mutable_gameinfo()->set_gamename(game.GetName()); netGameList->set_isprivate(game.IsPasswordProtected()); diff --git a/src/third_party/protobuf/pokerth.pb.cc b/src/third_party/protobuf/pokerth.pb.cc index afc0c2ed..3b979b05 100644 --- a/src/third_party/protobuf/pokerth.pb.cc +++ b/src/third_party/protobuf/pokerth.pb.cc @@ -291,7 +291,7 @@ 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* NetPlayerInfoRights_descriptor_ = NULL; const ::google::protobuf::EnumDescriptor* NetAvatarType_descriptor_ = NULL; } // namespace @@ -1796,7 +1796,7 @@ void protobuf_AssignDesc_pokerth_2eproto() { NetGameState_descriptor_ = file->enum_type(1); NetPlayerAction_descriptor_ = file->enum_type(2); NetPlayerState_descriptor_ = file->enum_type(3); - PlayerInfoRights_descriptor_ = file->enum_type(4); + NetPlayerInfoRights_descriptor_ = file->enum_type(4); NetAvatarType_descriptor_ = file->enum_type(5); } @@ -2225,381 +2225,384 @@ void protobuf_AddDesc_pokerth_2eproto() { "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" + "stMessage\022\020\n\010playerId\030\001 \002(\r\"\360\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\001\022\022\n\016avatarImageJpg\020\002\022\022\n\016avatarIma" - "geGif\020\003B\037\n\023de.pokerth.protocolB\010ProtoBuf", 17760); + "e.PlayerInfoData\032\203\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\024.NetPlayerInfoRights\022\023\n\013" + "countryCode\030\004 \001(\t\022E\n\navatarData\030\005 \001(\01321." + "PlayerInfoReplyMessage.PlayerInfoData.Av" + "atarData\032D\n\nAvatarData\022\"\n\navatarType\030\001 \002" + "(\0162\016.NetAvatarType\022\022\n\navatarHash\030\002 \002(\014\"\260" + "\001\n\032SubscriptionRequestMessage\022J\n\022subscri" + "ptionAction\030\001 \002(\0162..SubscriptionRequestM" + "essage.SubscriptionAction\"F\n\022Subscriptio" + "nAction\022\027\n\023unsubscribeGameList\020\001\022\027\n\023resu" + "bscribeGameList\020\002\"N\n\027JoinExistingGameMes" + "sage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010password\030\002 \001(\t\022\021" + "\n\tautoLeave\030\003 \001(\010\"Y\n\022JoinNewGameMessage\022" + "\036\n\010gameInfo\030\001 \002(\0132\014.NetGameInfo\022\020\n\010passw" + "ord\030\002 \001(\t\022\021\n\tautoLeave\030\003 \001(\010\">\n\031RejoinEx" + "istingGameMessage\022\016\n\006gameId\030\001 \002(\r\022\021\n\taut" + "oLeave\030\002 \001(\010\"]\n\022JoinGameAckMessage\022\016\n\006ga" + "meId\030\001 \002(\r\022\027\n\017areYouGameAdmin\030\002 \002(\010\022\036\n\010g" + "ameInfo\030\003 \002(\0132\014.NetGameInfo\"\337\002\n\025JoinGame" + "FailedMessage\022\016\n\006gameId\030\001 \002(\r\022K\n\025joinGam" + "eFailureReason\030\002 \002(\0162,.JoinGameFailedMes" + "sage.JoinGameFailureReason\"\350\001\n\025JoinGameF" + "ailureReason\022\017\n\013invalidGame\020\001\022\016\n\ngameIsF" + "ull\020\002\022\021\n\rgameIsRunning\020\003\022\023\n\017invalidPassw" + "ord\020\004\022\025\n\021notAllowedAsGuest\020\005\022\016\n\nnotInvit" + "ed\020\006\022\021\n\rgameNameInUse\020\007\022\017\n\013badGameName\020\010" + "\022\023\n\017invalidSettings\020\t\022\024\n\020ipAddressBlocke" + "d\020\n\022\020\n\014rejoinFailed\020\013\"P\n\027GamePlayerJoine" + "dMessage\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\025GamePlayerLe" + "ftMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 " + "\002(\r\022I\n\024gamePlayerLeftReason\030\003 \002(\0162+.Game" + "PlayerLeftMessage.GamePlayerLeftReason\"H" + "\n\024GamePlayerLeftReason\022\021\n\rleftOnRequest\020" + "\000\022\016\n\nleftKicked\020\001\022\r\n\tleftError\020\002\"C\n\027Game" + "AdminChangedMessage\022\016\n\006gameId\030\001 \002(\r\022\030\n\020n" + "ewAdminPlayerId\030\002 \002(\r\"\206\002\n\026RemovedFromGam" + "eMessage\022\016\n\006gameId\030\001 \002(\r\022L\n\025removedFromG" + "ameReason\030\002 \002(\0162-.RemovedFromGameMessage" + ".RemovedFromGameReason\"\215\001\n\025RemovedFromGa" + "meReason\022\024\n\020removedOnRequest\020\000\022\022\n\016kicked" + "FromGame\020\001\022\016\n\ngameIsFull\020\002\022\021\n\rgameIsRunn" + "ing\020\003\022\017\n\013gameTimeout\020\004\022\026\n\022removedStartFa" + "iled\020\005\"<\n\030KickPlayerRequestMessage\022\016\n\006ga" + "meId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\")\n\027LeaveGam" + "eRequestMessage\022\016\n\006gameId\030\001 \002(\r\"=\n\031Invit" + "ePlayerToGameMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010" + "playerId\030\002 \002(\r\"R\n\023InviteNotifyMessage\022\016\n" + "\006gameId\030\001 \002(\r\022\023\n\013playerIdWho\030\002 \002(\r\022\026\n\016pl" + "ayerIdByWhom\030\003 \002(\r\"\270\001\n\033RejectGameInvitat" + "ionMessage\022\016\n\006gameId\030\001 \002(\r\022H\n\016myRejectRe" + "ason\030\002 \002(\01620.RejectGameInvitationMessage" + ".RejectGameInvReason\"\?\n\023RejectGameInvRea" + "son\022\022\n\016rejectReasonNo\020\000\022\024\n\020rejectReasonB" + "usy\020\001\"\210\001\n\026RejectInvNotifyMessage\022\016\n\006game" + "Id\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022L\n\022playerReje" + "ctReason\030\003 \002(\01620.RejectGameInvitationMes" + "sage.RejectGameInvReason\"\262\001\n\021StartEventM" + "essage\022\016\n\006gameId\030\001 \002(\r\0229\n\016startEventType" + "\030\002 \002(\0162!.StartEventMessage.StartEventTyp" + "e\022\037\n\027fillWithComputerPlayers\030\003 \001(\010\"1\n\016St" + "artEventType\022\016\n\nstartEvent\020\000\022\017\n\013rejoinEv" + "ent\020\001\"&\n\024StartEventAckMessage\022\016\n\006gameId\030" + "\001 \002(\r\"_\n\027GameStartInitialMessage\022\016\n\006game" + "Id\030\001 \002(\r\022\033\n\023startDealerPlayerId\030\002 \002(\r\022\027\n" + "\013playerSeats\030\003 \003(\rB\002\020\001\"\325\001\n\026GameStartRejo" + "inMessage\022\016\n\006gameId\030\001 \002(\r\022\033\n\023startDealer" + "PlayerId\030\002 \002(\r\022\017\n\007handNum\030\003 \002(\r\022B\n\020rejoi" + "nPlayerData\030\004 \003(\0132(.GameStartRejoinMessa" + "ge.RejoinPlayerData\0329\n\020RejoinPlayerData\022" + "\020\n\010playerId\030\001 \002(\r\022\023\n\013playerMoney\030\002 \002(\r\"\333" + "\001\n\020HandStartMessage\022\016\n\006gameId\030\001 \002(\r\0220\n\np" + "lainCards\030\002 \001(\0132\034.HandStartMessage.Plain" + "Cards\022\026\n\016encryptedCards\030\003 \001(\014\022\022\n\nsmallBl" + "ind\030\004 \002(\r\022#\n\nseatStates\030\005 \003(\0162\017.NetPlaye" + "rState\0324\n\nPlainCards\022\022\n\nplainCard1\030\001 \002(\r" + "\022\022\n\nplainCard2\030\002 \002(\r\"X\n\022PlayersTurnMessa" + "ge\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022 \n\t" + "gameState\030\003 \002(\0162\r.NetGameState\"\226\001\n\026MyAct" + "ionRequestMessage\022\016\n\006gameId\030\001 \002(\r\022\017\n\007han" + "dNum\030\002 \002(\r\022 \n\tgameState\030\003 \002(\0162\r.NetGameS" + "tate\022\"\n\010myAction\030\004 \002(\0162\020.NetPlayerAction" + "\022\025\n\rmyRelativeBet\030\005 \002(\r\"\271\002\n\031YourActionRe" + "jectedMessage\022\016\n\006gameId\030\001 \002(\r\022 \n\tgameSta" + "te\030\002 \002(\0162\r.NetGameState\022$\n\nyourAction\030\003 " + "\002(\0162\020.NetPlayerAction\022\027\n\017yourRelativeBet" + "\030\004 \002(\r\022C\n\017rejectionReason\030\005 \002(\0162*.YourAc" + "tionRejectedMessage.RejectionReason\"f\n\017R" + "ejectionReason\022\034\n\030rejectedInvalidGameSta" + "te\020\001\022\027\n\023rejectedNotYourTurn\020\002\022\034\n\030rejecte" + "dActionNotAllowed\020\003\"\335\001\n\030PlayersActionDon" + "eMessage\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\014" + "playerAction\030\004 \002(\0162\020.NetPlayerAction\022\026\n\016" + "totalPlayerBet\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\023DealTurnCardMess" + "age\022\016\n\006gameId\030\001 \002(\r\022\020\n\010turnCard\030\002 \002(\r\"9\n" + "\024DealRiverCardMessage\022\016\n\006gameId\030\001 \002(\r\022\021\n" + "\triverCard\030\002 \002(\r\"\252\001\n\025AllInShowCardsMessa" + "ge\022\016\n\006gameId\030\001 \002(\r\0228\n\014playersAllIn\030\002 \003(\013" + "2\".AllInShowCardsMessage.PlayerAllIn\032G\n\013" + "PlayerAllIn\022\020\n\010playerId\030\001 \002(\r\022\022\n\nallInCa" + "rd1\030\002 \002(\r\022\022\n\nallInCard2\030\003 \002(\r\"Q\n\031EndOfHa" + "ndShowCardsMessage\022\016\n\006gameId\030\001 \002(\r\022$\n\rpl" + "ayerResults\030\002 \003(\0132\r.PlayerResult\"d\n\031EndO" + "fHandHideCardsMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n" + "\010playerId\030\002 \002(\r\022\020\n\010moneyWon\030\003 \002(\r\022\023\n\013pla" + "yerMoney\030\004 \002(\r\"\033\n\031ShowMyCardsRequestMess" + "age\"@\n\031AfterHandShowCardsMessage\022#\n\014play" + "erResult\030\001 \002(\0132\r.PlayerResult\":\n\020EndOfGa" + "meMessage\022\016\n\006gameId\030\001 \002(\r\022\026\n\016winnerPlaye" + "rId\030\002 \002(\r\"B\n\026PlayerIdChangedMessage\022\023\n\013o" + "ldPlayerId\030\001 \002(\r\022\023\n\013newPlayerId\030\002 \002(\r\"8\n" + "\024AskKickPlayerMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n" + "\010playerId\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\020ki" + "ckDeniedReason\030\003 \002(\0162&.AskKickDeniedMess" + "age.KickDeniedReason\"\252\001\n\020KickDeniedReaso" + "n\022\036\n\032kickDeniedInvalidGameState\020\000\022\031\n\025kic" + "kDeniedNotPossible\020\001\022\033\n\027kickDeniedTryAga" + "inLater\020\002\022\037\n\033kickDeniedAlreadyInProgress" + "\020\003\022\035\n\031kickDeniedInvalidPlayerId\020\004\"\245\001\n\030St" + "artKickPetitionMessage\022\016\n\006gameId\030\001 \002(\r\022\022" + "\n\npetitionId\030\002 \002(\r\022\031\n\021proposingPlayerId\030" + "\003 \002(\r\022\024\n\014kickPlayerId\030\004 \002(\r\022\026\n\016kickTimeo" + "utSec\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\021voteKickReplyT" + "ype\030\003 \002(\0162\'.VoteKickReplyMessage.VoteKic" + "kReplyType\"_\n\021VoteKickReplyType\022\017\n\013voteK" + "ickAck\020\000\022\031\n\025voteKickDeniedInvalid\020\001\022\036\n\032v" + "oteKickDeniedAlreadyVoted\020\002\"\240\001\n\031KickPeti" + "tionUpdateMessage\022\016\n\006gameId\030\001 \002(\r\022\022\n\npet" + "itionId\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\026EndKi" + "ckPetitionMessage\022\016\n\006gameId\030\001 \002(\r\022\022\n\npet" + "itionId\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\021petition" + "EndReason\030\006 \002(\0162).EndKickPetitionMessage" + ".PetitionEndReason\"\200\001\n\021PetitionEndReason" + "\022\032\n\026petitionEndEnoughVotes\020\000\022\034\n\030petition" + "EndTooFewPlayers\020\001\022\031\n\025petitionEndPlayerL" + "eft\020\002\022\026\n\022petitionEndTimeout\020\003\"\357\001\n\021Statis" + "ticsMessage\0229\n\016statisticsData\030\001 \003(\0132!.St" + "atisticsMessage.StatisticsData\032\236\001\n\016Stati" + "sticsData\022H\n\016statisticsType\030\001 \002(\01620.Stat" + "isticsMessage.StatisticsData.StatisticsT" + "ype\022\027\n\017statisticsValue\030\002 \002(\r\")\n\016Statisti" + "csType\022\027\n\023statNumberOfPlayers\020\001\"T\n\022ChatR" + "equestMessage\022\024\n\014targetGameId\030\001 \001(\r\022\026\n\016t" + "argetPlayerId\030\002 \001(\r\022\020\n\010chatText\030\003 \002(\t\"\330\001" + "\n\013ChatMessage\022\016\n\006gameId\030\001 \001(\r\022\020\n\010playerI" + "d\030\002 \001(\r\022\'\n\010chatType\030\003 \002(\0162\025.ChatMessage." + "ChatType\022\020\n\010chatText\030\004 \002(\t\"l\n\010ChatType\022\021" + "\n\rchatTypeLobby\020\000\022\020\n\014chatTypeGame\020\001\022\017\n\013c" + "hatTypeBot\020\002\022\025\n\021chatTypeBroadcast\020\003\022\023\n\017c" + "hatTypePrivate\020\004\"%\n\021ChatRejectMessage\022\020\n" + "\010chatText\030\001 \002(\t\")\n\rDialogMessage\022\030\n\020noti" + "ficationText\030\001 \002(\t\"\321\001\n\025TimeoutWarningMes" + "sage\022;\n\rtimeoutReason\030\001 \002(\0162$.TimeoutWar" + "ningMessage.TimeoutReason\022\030\n\020remainingSe" + "conds\030\002 \002(\r\"a\n\rTimeoutReason\022\031\n\025timeoutN" + "oDataReceived\020\000\022\027\n\023timeoutInactiveGame\020\001" + "\022\034\n\030timeoutKickAfterAutofold\020\002\"\025\n\023ResetT" + "imeoutMessage\"K\n\023ReportAvatarMessage\022\030\n\020" + "reportedPlayerId\030\001 \002(\r\022\032\n\022reportedAvatar" + "Hash\030\002 \002(\014\"\336\001\n\026ReportAvatarAckMessage\022\030\n" + "\020reportedPlayerId\030\001 \002(\r\022F\n\022reportAvatarR" + "esult\030\002 \002(\0162*.ReportAvatarAckMessage.Rep" + "ortAvatarResult\"b\n\022ReportAvatarResult\022\030\n" + "\024avatarReportAccepted\020\000\022\031\n\025avatarReportD" + "uplicate\020\001\022\027\n\023avatarReportInvalid\020\002\"+\n\021R" + "eportGameMessage\022\026\n\016reportedGameId\030\001 \002(\r" + "\"\314\001\n\024ReportGameAckMessage\022\026\n\016reportedGam" + "eId\030\001 \002(\r\022@\n\020reportGameResult\030\002 \002(\0162&.Re" + "portGameAckMessage.ReportGameResult\"Z\n\020R" + "eportGameResult\022\026\n\022gameReportAccepted\020\000\022" + "\027\n\023gameReportDuplicate\020\001\022\025\n\021gameReportIn" + "valid\020\002\"\220\003\n\014ErrorMessage\022.\n\013errorReason\030" + "\001 \002(\0162\031.ErrorMessage.ErrorReason\"\317\002\n\013Err" + "orReason\022\014\n\010reserved\020\000\022\033\n\027initVersionNot" + "Supported\020\001\022\022\n\016initServerFull\020\002\022\023\n\017initA" + "uthFailure\020\003\022\027\n\023initPlayerNameInUse\020\004\022\031\n" + "\025initInvalidPlayerName\020\005\022\031\n\025initServerMa" + "intenance\020\006\022\017\n\013initBlocked\020\007\022\022\n\016avatarTo" + "oLarge\020\010\022\021\n\rinvalidPacket\020\t\022\020\n\014invalidSt" + "ate\020\n\022\024\n\020kickedFromServer\020\013\022\024\n\020bannedFro" + "mServer\020\014\022\023\n\017blockedByServer\020\r\022\022\n\016sessio" + "nTimeout\020\016\"\3771\n\016PokerTHMessage\0227\n\013message" + "Type\030\001 \002(\0162\".PokerTHMessage.PokerTHMessa" + "geType\022)\n\017announceMessage\030\002 \001(\0132\020.Announ" + "ceMessage\022!\n\013initMessage\030\003 \001(\0132\014.InitMes" + "sage\022\?\n\032authServerChallengeMessage\030\004 \001(\013" + "2\033.AuthServerChallengeMessage\022=\n\031authCli" + "entResponseMessage\030\005 \001(\0132\032.AuthClientRes" + "ponseMessage\022E\n\035authServerVerificationMe" + "ssage\030\006 \001(\0132\036.AuthServerVerificationMess" + "age\022\'\n\016initAckMessage\030\007 \001(\0132\017.InitAckMes" + "sage\0223\n\024avatarRequestMessage\030\010 \001(\0132\025.Ava" + "tarRequestMessage\0221\n\023avatarHeaderMessage" + "\030\t \001(\0132\024.AvatarHeaderMessage\022-\n\021avatarDa" + "taMessage\030\n \001(\0132\022.AvatarDataMessage\022+\n\020a" + "vatarEndMessage\030\013 \001(\0132\021.AvatarEndMessage" + "\0223\n\024unknownAvatarMessage\030\014 \001(\0132\025.Unknown" + "AvatarMessage\022-\n\021playerListMessage\030\r \001(\013" + "2\022.PlayerListMessage\022/\n\022gameListNewMessa" + "ge\030\016 \001(\0132\023.GameListNewMessage\0225\n\025gameLis" + "tUpdateMessage\030\017 \001(\0132\026.GameListUpdateMes" + "sage\022A\n\033gameListPlayerJoinedMessage\030\020 \001(" + "\0132\034.GameListPlayerJoinedMessage\022=\n\031gameL" + "istPlayerLeftMessage\030\021 \001(\0132\032.GameListPla" + "yerLeftMessage\022A\n\033gameListAdminChangedMe" + "ssage\030\022 \001(\0132\034.GameListAdminChangedMessag" + "e\022;\n\030playerInfoRequestMessage\030\023 \001(\0132\031.Pl" + "ayerInfoRequestMessage\0227\n\026playerInfoRepl" + "yMessage\030\024 \001(\0132\027.PlayerInfoReplyMessage\022" + "\?\n\032subscriptionRequestMessage\030\025 \001(\0132\033.Su" + "bscriptionRequestMessage\0229\n\027joinExisting" + "GameMessage\030\026 \001(\0132\030.JoinExistingGameMess" + "age\022/\n\022joinNewGameMessage\030\027 \001(\0132\023.JoinNe" + "wGameMessage\022=\n\031rejoinExistingGameMessag" + "e\030\030 \001(\0132\032.RejoinExistingGameMessage\022/\n\022j" + "oinGameAckMessage\030\031 \001(\0132\023.JoinGameAckMes" + "sage\0225\n\025joinGameFailedMessage\030\032 \001(\0132\026.Jo" + "inGameFailedMessage\0229\n\027gamePlayerJoinedM" + "essage\030\033 \001(\0132\030.GamePlayerJoinedMessage\0225" + "\n\025gamePlayerLeftMessage\030\034 \001(\0132\026.GamePlay" + "erLeftMessage\0229\n\027gameAdminChangedMessage" + "\030\035 \001(\0132\030.GameAdminChangedMessage\0227\n\026remo" + "vedFromGameMessage\030\036 \001(\0132\027.RemovedFromGa" + "meMessage\022;\n\030kickPlayerRequestMessage\030\037 " + "\001(\0132\031.KickPlayerRequestMessage\0229\n\027leaveG" + "ameRequestMessage\030 \001(\0132\030.LeaveGameReque" + "stMessage\022=\n\031invitePlayerToGameMessage\030!" + " \001(\0132\032.InvitePlayerToGameMessage\0221\n\023invi" + "teNotifyMessage\030\" \001(\0132\024.InviteNotifyMess" + "age\022A\n\033rejectGameInvitationMessage\030# \001(\013" + "2\034.RejectGameInvitationMessage\0227\n\026reject" + "InvNotifyMessage\030$ \001(\0132\027.RejectInvNotify" + "Message\022-\n\021startEventMessage\030% \001(\0132\022.Sta" + "rtEventMessage\0223\n\024startEventAckMessage\030&" + " \001(\0132\025.StartEventAckMessage\0229\n\027gameStart" + "InitialMessage\030\' \001(\0132\030.GameStartInitialM" + "essage\0227\n\026gameStartRejoinMessage\030( \001(\0132\027" + ".GameStartRejoinMessage\022+\n\020handStartMess" + "age\030) \001(\0132\021.HandStartMessage\022/\n\022playersT" + "urnMessage\030* \001(\0132\023.PlayersTurnMessage\0227\n" + "\026myActionRequestMessage\030+ \001(\0132\027.MyAction" + "RequestMessage\022=\n\031yourActionRejectedMess" + "age\030, \001(\0132\032.YourActionRejectedMessage\022;\n" + "\030playersActionDoneMessage\030- \001(\0132\031.Player" + "sActionDoneMessage\0223\n\024dealFlopCardsMessa" + "ge\030. \001(\0132\025.DealFlopCardsMessage\0221\n\023dealT" + "urnCardMessage\030/ \001(\0132\024.DealTurnCardMessa" + "ge\0223\n\024dealRiverCardMessage\0300 \001(\0132\025.DealR" + "iverCardMessage\0225\n\025allInShowCardsMessage" + "\0301 \001(\0132\026.AllInShowCardsMessage\022=\n\031endOfH" + "andShowCardsMessage\0302 \001(\0132\032.EndOfHandSho" + "wCardsMessage\022=\n\031endOfHandHideCardsMessa" + "ge\0303 \001(\0132\032.EndOfHandHideCardsMessage\022=\n\031" + "showMyCardsRequestMessage\0304 \001(\0132\032.ShowMy" + "CardsRequestMessage\022=\n\031afterHandShowCard" + "sMessage\0305 \001(\0132\032.AfterHandShowCardsMessa" + "ge\022+\n\020endOfGameMessage\0306 \001(\0132\021.EndOfGame" + "Message\0227\n\026playerIdChangedMessage\0307 \001(\0132" + "\027.PlayerIdChangedMessage\0223\n\024askKickPlaye" + "rMessage\0308 \001(\0132\025.AskKickPlayerMessage\0223\n" + "\024askKickDeniedMessage\0309 \001(\0132\025.AskKickDen" + "iedMessage\022;\n\030startKickPetitionMessage\030:" + " \001(\0132\031.StartKickPetitionMessage\0227\n\026voteK" + "ickRequestMessage\030; \001(\0132\027.VoteKickReques" + "tMessage\0223\n\024voteKickReplyMessage\030< \001(\0132\025" + ".VoteKickReplyMessage\022=\n\031kickPetitionUpd" + "ateMessage\030= \001(\0132\032.KickPetitionUpdateMes" + "sage\0227\n\026endKickPetitionMessage\030> \001(\0132\027.E" + "ndKickPetitionMessage\022-\n\021statisticsMessa" + "ge\030\? \001(\0132\022.StatisticsMessage\022/\n\022chatRequ" + "estMessage\030@ \001(\0132\023.ChatRequestMessage\022!\n" + "\013chatMessage\030A \001(\0132\014.ChatMessage\022-\n\021chat" + "RejectMessage\030B \001(\0132\022.ChatRejectMessage\022" + "%\n\rdialogMessage\030C \001(\0132\016.DialogMessage\0225" + "\n\025timeoutWarningMessage\030D \001(\0132\026.TimeoutW" + "arningMessage\0221\n\023resetTimeoutMessage\030E \001" + "(\0132\024.ResetTimeoutMessage\0221\n\023reportAvatar" + "Message\030F \001(\0132\024.ReportAvatarMessage\0227\n\026r" + "eportAvatarAckMessage\030G \001(\0132\027.ReportAvat" + "arAckMessage\022-\n\021reportGameMessage\030H \001(\0132" + "\022.ReportGameMessage\0223\n\024reportGameAckMess" + "age\030I \001(\0132\025.ReportGameAckMessage\022#\n\014erro" + "rMessage\030J \001(\0132\r.ErrorMessage\"\244\022\n\022PokerT" + "HMessageType\022\030\n\024Type_AnnounceMessage\020\001\022\024" + "\n\020Type_InitMessage\020\002\022#\n\037Type_AuthServerC" + "hallengeMessage\020\003\022\"\n\036Type_AuthClientResp" + "onseMessage\020\004\022&\n\"Type_AuthServerVerifica" + "tionMessage\020\005\022\027\n\023Type_InitAckMessage\020\006\022\035" + "\n\031Type_AvatarRequestMessage\020\007\022\034\n\030Type_Av" + "atarHeaderMessage\020\010\022\032\n\026Type_AvatarDataMe" + "ssage\020\t\022\031\n\025Type_AvatarEndMessage\020\n\022\035\n\031Ty" + "pe_UnknownAvatarMessage\020\013\022\032\n\026Type_Player" + "ListMessage\020\014\022\033\n\027Type_GameListNewMessage" + "\020\r\022\036\n\032Type_GameListUpdateMessage\020\016\022$\n Ty" + "pe_GameListPlayerJoinedMessage\020\017\022\"\n\036Type" + "_GameListPlayerLeftMessage\020\020\022$\n Type_Gam" + "eListAdminChangedMessage\020\021\022!\n\035Type_Playe" + "rInfoRequestMessage\020\022\022\037\n\033Type_PlayerInfo" + "ReplyMessage\020\023\022#\n\037Type_SubscriptionReque" + "stMessage\020\024\022 \n\034Type_JoinExistingGameMess" + "age\020\025\022\033\n\027Type_JoinNewGameMessage\020\026\022\"\n\036Ty" + "pe_RejoinExistingGameMessage\020\027\022\033\n\027Type_J" + "oinGameAckMessage\020\030\022\036\n\032Type_JoinGameFail" + "edMessage\020\031\022 \n\034Type_GamePlayerJoinedMess" + "age\020\032\022\036\n\032Type_GamePlayerLeftMessage\020\033\022 \n" + "\034Type_GameAdminChangedMessage\020\034\022\037\n\033Type_" + "RemovedFromGameMessage\020\035\022!\n\035Type_KickPla" + "yerRequestMessage\020\036\022 \n\034Type_LeaveGameReq" + "uestMessage\020\037\022\"\n\036Type_InvitePlayerToGame" + "Message\020 \022\034\n\030Type_InviteNotifyMessage\020!\022" + "$\n Type_RejectGameInvitationMessage\020\"\022\037\n" + "\033Type_RejectInvNotifyMessage\020#\022\032\n\026Type_S" + "tartEventMessage\020$\022\035\n\031Type_StartEventAck" + "Message\020%\022 \n\034Type_GameStartInitialMessag" + "e\020&\022\037\n\033Type_GameStartRejoinMessage\020\'\022\031\n\025" + "Type_HandStartMessage\020(\022\033\n\027Type_PlayersT" + "urnMessage\020)\022\037\n\033Type_MyActionRequestMess" + "age\020*\022\"\n\036Type_YourActionRejectedMessage\020" + "+\022!\n\035Type_PlayersActionDoneMessage\020,\022\035\n\031" + "Type_DealFlopCardsMessage\020-\022\034\n\030Type_Deal" + "TurnCardMessage\020.\022\035\n\031Type_DealRiverCardM" + "essage\020/\022\036\n\032Type_AllInShowCardsMessage\0200" + "\022\"\n\036Type_EndOfHandShowCardsMessage\0201\022\"\n\036" + "Type_EndOfHandHideCardsMessage\0202\022\"\n\036Type" + "_ShowMyCardsRequestMessage\0203\022\"\n\036Type_Aft" + "erHandShowCardsMessage\0204\022\031\n\025Type_EndOfGa" + "meMessage\0205\022\037\n\033Type_PlayerIdChangedMessa" + "ge\0206\022\035\n\031Type_AskKickPlayerMessage\0207\022\035\n\031T" + "ype_AskKickDeniedMessage\0208\022!\n\035Type_Start" + "KickPetitionMessage\0209\022\037\n\033Type_VoteKickRe" + "questMessage\020:\022\035\n\031Type_VoteKickReplyMess" + "age\020;\022\"\n\036Type_KickPetitionUpdateMessage\020" + "<\022\037\n\033Type_EndKickPetitionMessage\020=\022\032\n\026Ty" + "pe_StatisticsMessage\020>\022\033\n\027Type_ChatReque" + "stMessage\020\?\022\024\n\020Type_ChatMessage\020@\022\032\n\026Typ" + "e_ChatRejectMessage\020A\022\026\n\022Type_DialogMess" + "age\020B\022\036\n\032Type_TimeoutWarningMessage\020C\022\034\n" + "\030Type_ResetTimeoutMessage\020D\022\034\n\030Type_Repo" + "rtAvatarMessage\020E\022\037\n\033Type_ReportAvatarAc" + "kMessage\020F\022\032\n\026Type_ReportGameMessage\020G\022\035" + "\n\031Type_ReportGameAckMessage\020H\022\025\n\021Type_Er" + "rorMessage\020I*H\n\013NetGameMode\022\022\n\016netGameCr" + "eated\020\001\022\022\n\016netGameStarted\020\002\022\021\n\rnetGameCl" + "osed\020\003*\226\001\n\014NetGameState\022\023\n\017netStatePrefl" + "op\020\000\022\020\n\014netStateFlop\020\001\022\020\n\014netStateTurn\020\002" + "\022\021\n\rnetStateRiver\020\003\022\035\n\031netStatePreflopSm" + "allBlind\020\004\022\033\n\027netStatePreflopBigBlind\020\005*" + "\230\001\n\017NetPlayerAction\022\021\n\rnetActionNone\020\000\022\021" + "\n\rnetActionFold\020\001\022\022\n\016netActionCheck\020\002\022\021\n" + "\rnetActionCall\020\003\022\020\n\014netActionBet\020\004\022\022\n\016ne" + "tActionRaise\020\005\022\022\n\016netActionAllIn\020\006*h\n\016Ne" + "tPlayerState\022\030\n\024netPlayerStateNormal\020\000\022!" + "\n\035netPlayerStateSessionInactive\020\001\022\031\n\025net" + "PlayerStateNoMoney\020\002*d\n\023NetPlayerInfoRig" + "hts\022\030\n\024netPlayerRightsGuest\020\001\022\031\n\025netPlay" + "erRightsNormal\020\002\022\030\n\024netPlayerRightsAdmin" + "\020\003*T\n\rNetAvatarType\022\025\n\021netAvatarImagePng" + "\020\001\022\025\n\021netAvatarImageJpg\020\002\022\025\n\021netAvatarIm" + "ageGif\020\003B\037\n\023de.pokerth.protocolB\010ProtoBu" + "f", 17841); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "pokerth.proto", &protobuf_RegisterTypes); NetGameInfo::default_instance_ = new NetGameInfo(); @@ -2845,11 +2848,11 @@ bool NetPlayerState_IsValid(int value) { } } -const ::google::protobuf::EnumDescriptor* PlayerInfoRights_descriptor() { +const ::google::protobuf::EnumDescriptor* NetPlayerInfoRights_descriptor() { protobuf_AssignDescriptorsOnce(); - return PlayerInfoRights_descriptor_; + return NetPlayerInfoRights_descriptor_; } -bool PlayerInfoRights_IsValid(int value) { +bool NetPlayerInfoRights_IsValid(int value) { switch(value) { case 1: case 2: @@ -9986,7 +9989,7 @@ bool PlayerInfoReplyMessage_PlayerInfoData::MergePartialFromCodedStream( break; } - // required .PlayerInfoRights playerRights = 3; + // required .NetPlayerInfoRights playerRights = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { @@ -9995,8 +9998,8 @@ bool PlayerInfoReplyMessage_PlayerInfoData::MergePartialFromCodedStream( 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)); + if (NetPlayerInfoRights_IsValid(value)) { + set_playerrights(static_cast< NetPlayerInfoRights >(value)); } else { mutable_unknown_fields()->AddVarint(3, value); } @@ -10070,7 +10073,7 @@ void PlayerInfoReplyMessage_PlayerInfoData::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->ishuman(), output); } - // required .PlayerInfoRights playerRights = 3; + // required .NetPlayerInfoRights playerRights = 3; if (has_playerrights()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 3, this->playerrights(), output); @@ -10114,7 +10117,7 @@ void PlayerInfoReplyMessage_PlayerInfoData::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->ishuman(), target); } - // required .PlayerInfoRights playerRights = 3; + // required .NetPlayerInfoRights playerRights = 3; if (has_playerrights()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 3, this->playerrights(), target); @@ -10160,7 +10163,7 @@ int PlayerInfoReplyMessage_PlayerInfoData::ByteSize() const { total_size += 1 + 1; } - // required .PlayerInfoRights playerRights = 3; + // required .NetPlayerInfoRights playerRights = 3; if (has_playerrights()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->playerrights()); diff --git a/src/third_party/protobuf/pokerth.pb.h b/src/third_party/protobuf/pokerth.pb.h index 00f0d519..9a75b91d 100644 --- a/src/third_party/protobuf/pokerth.pb.h +++ b/src/third_party/protobuf/pokerth.pb.h @@ -667,13 +667,13 @@ inline bool PokerTHMessage_PokerTHMessageType_Parse( PokerTHMessage_PokerTHMessageType_descriptor(), name, value); } enum NetGameMode { - gameCreated = 1, - gameStarted = 2, - gameClosed = 3 + netGameCreated = 1, + netGameStarted = 2, + netGameClosed = 3 }; bool NetGameMode_IsValid(int value); -const NetGameMode NetGameMode_MIN = gameCreated; -const NetGameMode NetGameMode_MAX = gameClosed; +const NetGameMode NetGameMode_MIN = netGameCreated; +const NetGameMode NetGameMode_MAX = netGameClosed; const int NetGameMode_ARRAYSIZE = NetGameMode_MAX + 1; const ::google::protobuf::EnumDescriptor* NetGameMode_descriptor(); @@ -687,16 +687,16 @@ inline bool NetGameMode_Parse( NetGameMode_descriptor(), name, value); } enum NetGameState { - statePreflop = 0, - stateFlop = 1, - stateTurn = 2, - stateRiver = 3, - statePreflopSmallBlind = 4, - statePreflopBigBlind = 5 + netStatePreflop = 0, + netStateFlop = 1, + netStateTurn = 2, + netStateRiver = 3, + netStatePreflopSmallBlind = 4, + netStatePreflopBigBlind = 5 }; bool NetGameState_IsValid(int value); -const NetGameState NetGameState_MIN = statePreflop; -const NetGameState NetGameState_MAX = statePreflopBigBlind; +const NetGameState NetGameState_MIN = netStatePreflop; +const NetGameState NetGameState_MAX = netStatePreflopBigBlind; const int NetGameState_ARRAYSIZE = NetGameState_MAX + 1; const ::google::protobuf::EnumDescriptor* NetGameState_descriptor(); @@ -710,17 +710,17 @@ inline bool NetGameState_Parse( NetGameState_descriptor(), name, value); } enum NetPlayerAction { - actionNone = 0, - actionFold = 1, - actionCheck = 2, - actionCall = 3, - actionBet = 4, - actionRaise = 5, - actionAllIn = 6 + netActionNone = 0, + netActionFold = 1, + netActionCheck = 2, + netActionCall = 3, + netActionBet = 4, + netActionRaise = 5, + netActionAllIn = 6 }; bool NetPlayerAction_IsValid(int value); -const NetPlayerAction NetPlayerAction_MIN = actionNone; -const NetPlayerAction NetPlayerAction_MAX = actionAllIn; +const NetPlayerAction NetPlayerAction_MIN = netActionNone; +const NetPlayerAction NetPlayerAction_MAX = netActionAllIn; const int NetPlayerAction_ARRAYSIZE = NetPlayerAction_MAX + 1; const ::google::protobuf::EnumDescriptor* NetPlayerAction_descriptor(); @@ -734,13 +734,13 @@ inline bool NetPlayerAction_Parse( NetPlayerAction_descriptor(), name, value); } enum NetPlayerState { - playerStateNormal = 0, - playerStateSessionInactive = 1, - playerStateNoMoney = 2 + netPlayerStateNormal = 0, + netPlayerStateSessionInactive = 1, + netPlayerStateNoMoney = 2 }; bool NetPlayerState_IsValid(int value); -const NetPlayerState NetPlayerState_MIN = playerStateNormal; -const NetPlayerState NetPlayerState_MAX = playerStateNoMoney; +const NetPlayerState NetPlayerState_MIN = netPlayerStateNormal; +const NetPlayerState NetPlayerState_MAX = netPlayerStateNoMoney; const int NetPlayerState_ARRAYSIZE = NetPlayerState_MAX + 1; const ::google::protobuf::EnumDescriptor* NetPlayerState_descriptor(); @@ -753,34 +753,34 @@ inline bool NetPlayerState_Parse( return ::google::protobuf::internal::ParseNamedEnum( NetPlayerState_descriptor(), name, value); } -enum PlayerInfoRights { - playerRightsGuest = 1, - playerRightsNormal = 2, - playerRightsAdmin = 3 +enum NetPlayerInfoRights { + netPlayerRightsGuest = 1, + netPlayerRightsNormal = 2, + netPlayerRightsAdmin = 3 }; -bool PlayerInfoRights_IsValid(int value); -const PlayerInfoRights PlayerInfoRights_MIN = playerRightsGuest; -const PlayerInfoRights PlayerInfoRights_MAX = playerRightsAdmin; -const int PlayerInfoRights_ARRAYSIZE = PlayerInfoRights_MAX + 1; +bool NetPlayerInfoRights_IsValid(int value); +const NetPlayerInfoRights NetPlayerInfoRights_MIN = netPlayerRightsGuest; +const NetPlayerInfoRights NetPlayerInfoRights_MAX = netPlayerRightsAdmin; +const int NetPlayerInfoRights_ARRAYSIZE = NetPlayerInfoRights_MAX + 1; -const ::google::protobuf::EnumDescriptor* PlayerInfoRights_descriptor(); -inline const ::std::string& PlayerInfoRights_Name(PlayerInfoRights value) { +const ::google::protobuf::EnumDescriptor* NetPlayerInfoRights_descriptor(); +inline const ::std::string& NetPlayerInfoRights_Name(NetPlayerInfoRights value) { return ::google::protobuf::internal::NameOfEnum( - PlayerInfoRights_descriptor(), value); + NetPlayerInfoRights_descriptor(), value); } -inline bool PlayerInfoRights_Parse( - const ::std::string& name, PlayerInfoRights* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PlayerInfoRights_descriptor(), name, value); +inline bool NetPlayerInfoRights_Parse( + const ::std::string& name, NetPlayerInfoRights* value) { + return ::google::protobuf::internal::ParseNamedEnum( + NetPlayerInfoRights_descriptor(), name, value); } enum NetAvatarType { - avatarImagePng = 1, - avatarImageJpg = 2, - avatarImageGif = 3 + netAvatarImagePng = 1, + netAvatarImageJpg = 2, + netAvatarImageGif = 3 }; bool NetAvatarType_IsValid(int value); -const NetAvatarType NetAvatarType_MIN = avatarImagePng; -const NetAvatarType NetAvatarType_MAX = avatarImageGif; +const NetAvatarType NetAvatarType_MIN = netAvatarImagePng; +const NetAvatarType NetAvatarType_MAX = netAvatarImageGif; const int NetAvatarType_ARRAYSIZE = NetAvatarType_MAX + 1; const ::google::protobuf::EnumDescriptor* NetAvatarType_descriptor(); @@ -3386,12 +3386,12 @@ class PlayerInfoReplyMessage_PlayerInfoData : public ::google::protobuf::Message inline bool ishuman() const; inline void set_ishuman(bool value); - // required .PlayerInfoRights playerRights = 3; + // required .NetPlayerInfoRights 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); + inline NetPlayerInfoRights playerrights() const; + inline void set_playerrights(NetPlayerInfoRights value); // optional string countryCode = 4; inline bool has_countrycode() const; @@ -12986,7 +12986,7 @@ inline void PlayerInfoReplyMessage_PlayerInfoData::set_ishuman(bool value) { ishuman_ = value; } -// required .PlayerInfoRights playerRights = 3; +// required .NetPlayerInfoRights playerRights = 3; inline bool PlayerInfoReplyMessage_PlayerInfoData::has_playerrights() const { return (_has_bits_[0] & 0x00000004u) != 0; } @@ -13000,11 +13000,11 @@ inline void PlayerInfoReplyMessage_PlayerInfoData::clear_playerrights() { playerrights_ = 1; clear_has_playerrights(); } -inline PlayerInfoRights PlayerInfoReplyMessage_PlayerInfoData::playerrights() const { - return static_cast< PlayerInfoRights >(playerrights_); +inline NetPlayerInfoRights PlayerInfoReplyMessage_PlayerInfoData::playerrights() const { + return static_cast< NetPlayerInfoRights >(playerrights_); } -inline void PlayerInfoReplyMessage_PlayerInfoData::set_playerrights(PlayerInfoRights value) { - GOOGLE_DCHECK(PlayerInfoRights_IsValid(value)); +inline void PlayerInfoReplyMessage_PlayerInfoData::set_playerrights(NetPlayerInfoRights value) { + GOOGLE_DCHECK(NetPlayerInfoRights_IsValid(value)); set_has_playerrights(); playerrights_ = value; } @@ -19347,8 +19347,8 @@ inline const EnumDescriptor* GetEnumDescriptor< NetPlayerState>() { return NetPlayerState_descriptor(); } template <> -inline const EnumDescriptor* GetEnumDescriptor< PlayerInfoRights>() { - return PlayerInfoRights_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< NetPlayerInfoRights>() { + return NetPlayerInfoRights_descriptor(); } template <> inline const EnumDescriptor* GetEnumDescriptor< NetAvatarType>() { diff --git a/tests/src/de/pokerth/protocol/ProtoBuf.java b/tests/src/de/pokerth/protocol/ProtoBuf.java index 145f5893..9bf8ae71 100644 --- a/tests/src/de/pokerth/protocol/ProtoBuf.java +++ b/tests/src/de/pokerth/protocol/ProtoBuf.java @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: pokerth.proto +// source: docs/pokerth.proto package de.pokerth.protocol; @@ -10,23 +10,23 @@ public final class ProtoBuf { } public enum NetGameMode implements com.google.protobuf.ProtocolMessageEnum { - gameCreated(0, 1), - gameStarted(1, 2), - gameClosed(2, 3), + netGameCreated(0, 1), + netGameStarted(1, 2), + netGameClosed(2, 3), ; - public static final int gameCreated_VALUE = 1; - public static final int gameStarted_VALUE = 2; - public static final int gameClosed_VALUE = 3; + public static final int netGameCreated_VALUE = 1; + public static final int netGameStarted_VALUE = 2; + public static final int netGameClosed_VALUE = 3; public final int getNumber() { return value; } public static NetGameMode valueOf(int value) { switch (value) { - case 1: return gameCreated; - case 2: return gameStarted; - case 3: return gameClosed; + case 1: return netGameCreated; + case 2: return netGameStarted; + case 3: return netGameClosed; default: return null; } } @@ -57,7 +57,7 @@ public final class ProtoBuf { } private static final NetGameMode[] VALUES = { - gameCreated, gameStarted, gameClosed, + netGameCreated, netGameStarted, netGameClosed, }; public static NetGameMode valueOf( @@ -82,32 +82,32 @@ public final class ProtoBuf { public enum NetGameState implements com.google.protobuf.ProtocolMessageEnum { - statePreflop(0, 0), - stateFlop(1, 1), - stateTurn(2, 2), - stateRiver(3, 3), - statePreflopSmallBlind(4, 4), - statePreflopBigBlind(5, 5), + netStatePreflop(0, 0), + netStateFlop(1, 1), + netStateTurn(2, 2), + netStateRiver(3, 3), + netStatePreflopSmallBlind(4, 4), + netStatePreflopBigBlind(5, 5), ; - public static final int statePreflop_VALUE = 0; - public static final int stateFlop_VALUE = 1; - public static final int stateTurn_VALUE = 2; - public static final int stateRiver_VALUE = 3; - public static final int statePreflopSmallBlind_VALUE = 4; - public static final int statePreflopBigBlind_VALUE = 5; + public static final int netStatePreflop_VALUE = 0; + public static final int netStateFlop_VALUE = 1; + public static final int netStateTurn_VALUE = 2; + public static final int netStateRiver_VALUE = 3; + public static final int netStatePreflopSmallBlind_VALUE = 4; + public static final int netStatePreflopBigBlind_VALUE = 5; public final int getNumber() { return value; } public static NetGameState valueOf(int value) { switch (value) { - case 0: return statePreflop; - case 1: return stateFlop; - case 2: return stateTurn; - case 3: return stateRiver; - case 4: return statePreflopSmallBlind; - case 5: return statePreflopBigBlind; + case 0: return netStatePreflop; + case 1: return netStateFlop; + case 2: return netStateTurn; + case 3: return netStateRiver; + case 4: return netStatePreflopSmallBlind; + case 5: return netStatePreflopBigBlind; default: return null; } } @@ -138,7 +138,7 @@ public final class ProtoBuf { } private static final NetGameState[] VALUES = { - statePreflop, stateFlop, stateTurn, stateRiver, statePreflopSmallBlind, statePreflopBigBlind, + netStatePreflop, netStateFlop, netStateTurn, netStateRiver, netStatePreflopSmallBlind, netStatePreflopBigBlind, }; public static NetGameState valueOf( @@ -163,35 +163,35 @@ public final class ProtoBuf { public enum NetPlayerAction implements com.google.protobuf.ProtocolMessageEnum { - actionNone(0, 0), - actionFold(1, 1), - actionCheck(2, 2), - actionCall(3, 3), - actionBet(4, 4), - actionRaise(5, 5), - actionAllIn(6, 6), + netActionNone(0, 0), + netActionFold(1, 1), + netActionCheck(2, 2), + netActionCall(3, 3), + netActionBet(4, 4), + netActionRaise(5, 5), + netActionAllIn(6, 6), ; - public static final int actionNone_VALUE = 0; - public static final int actionFold_VALUE = 1; - public static final int actionCheck_VALUE = 2; - public static final int actionCall_VALUE = 3; - public static final int actionBet_VALUE = 4; - public static final int actionRaise_VALUE = 5; - public static final int actionAllIn_VALUE = 6; + public static final int netActionNone_VALUE = 0; + public static final int netActionFold_VALUE = 1; + public static final int netActionCheck_VALUE = 2; + public static final int netActionCall_VALUE = 3; + public static final int netActionBet_VALUE = 4; + public static final int netActionRaise_VALUE = 5; + public static final int netActionAllIn_VALUE = 6; public final int getNumber() { return value; } public static NetPlayerAction valueOf(int value) { switch (value) { - case 0: return actionNone; - case 1: return actionFold; - case 2: return actionCheck; - case 3: return actionCall; - case 4: return actionBet; - case 5: return actionRaise; - case 6: return actionAllIn; + case 0: return netActionNone; + case 1: return netActionFold; + case 2: return netActionCheck; + case 3: return netActionCall; + case 4: return netActionBet; + case 5: return netActionRaise; + case 6: return netActionAllIn; default: return null; } } @@ -222,7 +222,7 @@ public final class ProtoBuf { } private static final NetPlayerAction[] VALUES = { - actionNone, actionFold, actionCheck, actionCall, actionBet, actionRaise, actionAllIn, + netActionNone, netActionFold, netActionCheck, netActionCall, netActionBet, netActionRaise, netActionAllIn, }; public static NetPlayerAction valueOf( @@ -247,23 +247,23 @@ public final class ProtoBuf { public enum NetPlayerState implements com.google.protobuf.ProtocolMessageEnum { - playerStateNormal(0, 0), - playerStateSessionInactive(1, 1), - playerStateNoMoney(2, 2), + netPlayerStateNormal(0, 0), + netPlayerStateSessionInactive(1, 1), + netPlayerStateNoMoney(2, 2), ; - public static final int playerStateNormal_VALUE = 0; - public static final int playerStateSessionInactive_VALUE = 1; - public static final int playerStateNoMoney_VALUE = 2; + public static final int netPlayerStateNormal_VALUE = 0; + public static final int netPlayerStateSessionInactive_VALUE = 1; + public static final int netPlayerStateNoMoney_VALUE = 2; public final int getNumber() { return value; } public static NetPlayerState valueOf(int value) { switch (value) { - case 0: return playerStateNormal; - case 1: return playerStateSessionInactive; - case 2: return playerStateNoMoney; + case 0: return netPlayerStateNormal; + case 1: return netPlayerStateSessionInactive; + case 2: return netPlayerStateNoMoney; default: return null; } } @@ -294,7 +294,7 @@ public final class ProtoBuf { } private static final NetPlayerState[] VALUES = { - playerStateNormal, playerStateSessionInactive, playerStateNoMoney, + netPlayerStateNormal, netPlayerStateSessionInactive, netPlayerStateNoMoney, }; public static NetPlayerState valueOf( @@ -317,38 +317,38 @@ public final class ProtoBuf { // @@protoc_insertion_point(enum_scope:NetPlayerState) } - public enum PlayerInfoRights + public enum NetPlayerInfoRights implements com.google.protobuf.ProtocolMessageEnum { - playerRightsGuest(0, 1), - playerRightsNormal(1, 2), - playerRightsAdmin(2, 3), + netPlayerRightsGuest(0, 1), + netPlayerRightsNormal(1, 2), + netPlayerRightsAdmin(2, 3), ; - public static final int playerRightsGuest_VALUE = 1; - public static final int playerRightsNormal_VALUE = 2; - public static final int playerRightsAdmin_VALUE = 3; + public static final int netPlayerRightsGuest_VALUE = 1; + public static final int netPlayerRightsNormal_VALUE = 2; + public static final int netPlayerRightsAdmin_VALUE = 3; public final int getNumber() { return value; } - public static PlayerInfoRights valueOf(int value) { + public static NetPlayerInfoRights valueOf(int value) { switch (value) { - case 1: return playerRightsGuest; - case 2: return playerRightsNormal; - case 3: return playerRightsAdmin; + case 1: return netPlayerRightsGuest; + case 2: return netPlayerRightsNormal; + case 3: return netPlayerRightsAdmin; default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap + private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PlayerInfoRights findValueByNumber(int number) { - return PlayerInfoRights.valueOf(number); + new com.google.protobuf.Internal.EnumLiteMap() { + public NetPlayerInfoRights findValueByNumber(int number) { + return NetPlayerInfoRights.valueOf(number); } }; @@ -365,11 +365,11 @@ public final class ProtoBuf { return de.pokerth.protocol.ProtoBuf.getDescriptor().getEnumTypes().get(4); } - private static final PlayerInfoRights[] VALUES = { - playerRightsGuest, playerRightsNormal, playerRightsAdmin, + private static final NetPlayerInfoRights[] VALUES = { + netPlayerRightsGuest, netPlayerRightsNormal, netPlayerRightsAdmin, }; - public static PlayerInfoRights valueOf( + public static NetPlayerInfoRights valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( @@ -381,33 +381,33 @@ public final class ProtoBuf { private final int index; private final int value; - private PlayerInfoRights(int index, int value) { + private NetPlayerInfoRights(int index, int value) { this.index = index; this.value = value; } - // @@protoc_insertion_point(enum_scope:PlayerInfoRights) + // @@protoc_insertion_point(enum_scope:NetPlayerInfoRights) } public enum NetAvatarType implements com.google.protobuf.ProtocolMessageEnum { - avatarImagePng(0, 1), - avatarImageJpg(1, 2), - avatarImageGif(2, 3), + netAvatarImagePng(0, 1), + netAvatarImageJpg(1, 2), + netAvatarImageGif(2, 3), ; - public static final int avatarImagePng_VALUE = 1; - public static final int avatarImageJpg_VALUE = 2; - public static final int avatarImageGif_VALUE = 3; + public static final int netAvatarImagePng_VALUE = 1; + public static final int netAvatarImageJpg_VALUE = 2; + public static final int netAvatarImageGif_VALUE = 3; public final int getNumber() { return value; } public static NetAvatarType valueOf(int value) { switch (value) { - case 1: return avatarImagePng; - case 2: return avatarImageJpg; - case 3: return avatarImageGif; + case 1: return netAvatarImagePng; + case 2: return netAvatarImageJpg; + case 3: return netAvatarImageGif; default: return null; } } @@ -438,7 +438,7 @@ public final class ProtoBuf { } private static final NetAvatarType[] VALUES = { - avatarImagePng, avatarImageJpg, avatarImageGif, + netAvatarImagePng, netAvatarImageJpg, netAvatarImageGif, }; public static NetAvatarType valueOf( @@ -7115,7 +7115,7 @@ public final class ProtoBuf { private void initFields() { requestId_ = 0; - avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; avatarSize_ = 0; } private byte memoizedIsInitialized = -1; @@ -7298,7 +7298,7 @@ public final class ProtoBuf { super.clear(); requestId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); - avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; bitField0_ = (bitField0_ & ~0x00000002); avatarSize_ = 0; bitField0_ = (bitField0_ & ~0x00000004); @@ -7469,7 +7469,7 @@ public final class ProtoBuf { } // required .NetAvatarType avatarType = 2; - private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; public boolean hasAvatarType() { return ((bitField0_ & 0x00000002) == 0x00000002); } @@ -7487,7 +7487,7 @@ public final class ProtoBuf { } public Builder clearAvatarType() { bitField0_ = (bitField0_ & ~0x00000002); - avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; onChanged(); return this; } @@ -9247,7 +9247,7 @@ public final class ProtoBuf { private void initFields() { gameId_ = 0; - gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; isPrivate_ = false; playerIds_ = java.util.Collections.emptyList();; adminPlayerId_ = 0; @@ -9481,7 +9481,7 @@ public final class ProtoBuf { super.clear(); gameId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); - gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; bitField0_ = (bitField0_ & ~0x00000002); isPrivate_ = false; bitField0_ = (bitField0_ & ~0x00000004); @@ -9735,7 +9735,7 @@ public final class ProtoBuf { } // required .NetGameMode gameMode = 2; - private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; public boolean hasGameMode() { return ((bitField0_ & 0x00000002) == 0x00000002); } @@ -9753,7 +9753,7 @@ public final class ProtoBuf { } public Builder clearGameMode() { bitField0_ = (bitField0_ & ~0x00000002); - gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; onChanged(); return this; } @@ -10008,7 +10008,7 @@ public final class ProtoBuf { private void initFields() { gameId_ = 0; - gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -10179,7 +10179,7 @@ public final class ProtoBuf { super.clear(); gameId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); - gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -10332,7 +10332,7 @@ public final class ProtoBuf { } // required .NetGameMode gameMode = 2; - private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; public boolean hasGameMode() { return ((bitField0_ & 0x00000002) == 0x00000002); } @@ -10350,7 +10350,7 @@ public final class ProtoBuf { } public Builder clearGameMode() { bitField0_ = (bitField0_ & ~0x00000002); - gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.gameCreated; + gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; onChanged(); return this; } @@ -11996,9 +11996,9 @@ public final class ProtoBuf { boolean hasIsHuman(); boolean getIsHuman(); - // required .PlayerInfoRights playerRights = 3; + // required .NetPlayerInfoRights playerRights = 3; boolean hasPlayerRights(); - de.pokerth.protocol.ProtoBuf.PlayerInfoRights getPlayerRights(); + de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights getPlayerRights(); // optional string countryCode = 4; boolean hasCountryCode(); @@ -12098,7 +12098,7 @@ public final class ProtoBuf { } private void initFields() { - avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; avatarHash_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; @@ -12268,7 +12268,7 @@ public final class ProtoBuf { public Builder clear() { super.clear(); - avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; bitField0_ = (bitField0_ & ~0x00000001); avatarHash_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); @@ -12402,7 +12402,7 @@ public final class ProtoBuf { private int bitField0_; // required .NetAvatarType avatarType = 1; - private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; public boolean hasAvatarType() { return ((bitField0_ & 0x00000001) == 0x00000001); } @@ -12420,7 +12420,7 @@ public final class ProtoBuf { } public Builder clearAvatarType() { bitField0_ = (bitField0_ & ~0x00000001); - avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.avatarImagePng; + avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; onChanged(); return this; } @@ -12503,13 +12503,13 @@ public final class ProtoBuf { return isHuman_; } - // required .PlayerInfoRights playerRights = 3; + // required .NetPlayerInfoRights playerRights = 3; public static final int PLAYERRIGHTS_FIELD_NUMBER = 3; - private de.pokerth.protocol.ProtoBuf.PlayerInfoRights playerRights_; + private de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights playerRights_; public boolean hasPlayerRights() { return ((bitField0_ & 0x00000004) == 0x00000004); } - public de.pokerth.protocol.ProtoBuf.PlayerInfoRights getPlayerRights() { + public de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights getPlayerRights() { return playerRights_; } @@ -12561,7 +12561,7 @@ public final class ProtoBuf { private void initFields() { playerName_ = ""; isHuman_ = false; - playerRights_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRights.playerRightsGuest; + playerRights_ = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.netPlayerRightsGuest; countryCode_ = ""; avatarData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance(); } @@ -12768,7 +12768,7 @@ public final class ProtoBuf { bitField0_ = (bitField0_ & ~0x00000001); isHuman_ = false; bitField0_ = (bitField0_ & ~0x00000002); - playerRights_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRights.playerRightsGuest; + playerRights_ = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.netPlayerRightsGuest; bitField0_ = (bitField0_ & ~0x00000004); countryCode_ = ""; bitField0_ = (bitField0_ & ~0x00000008); @@ -12932,7 +12932,7 @@ public final class ProtoBuf { } case 24: { int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.PlayerInfoRights value = de.pokerth.protocol.ProtoBuf.PlayerInfoRights.valueOf(rawValue); + de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights value = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { @@ -13018,15 +13018,15 @@ public final class ProtoBuf { return this; } - // required .PlayerInfoRights playerRights = 3; - private de.pokerth.protocol.ProtoBuf.PlayerInfoRights playerRights_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRights.playerRightsGuest; + // required .NetPlayerInfoRights playerRights = 3; + private de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights playerRights_ = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.netPlayerRightsGuest; public boolean hasPlayerRights() { return ((bitField0_ & 0x00000004) == 0x00000004); } - public de.pokerth.protocol.ProtoBuf.PlayerInfoRights getPlayerRights() { + public de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights getPlayerRights() { return playerRights_; } - public Builder setPlayerRights(de.pokerth.protocol.ProtoBuf.PlayerInfoRights value) { + public Builder setPlayerRights(de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights value) { if (value == null) { throw new NullPointerException(); } @@ -13037,7 +13037,7 @@ public final class ProtoBuf { } public Builder clearPlayerRights() { bitField0_ = (bitField0_ & ~0x00000004); - playerRights_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRights.playerRightsGuest; + playerRights_ = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.netPlayerRightsGuest; onChanged(); return this; } @@ -25035,7 +25035,7 @@ public final class ProtoBuf { private void initFields() { gameId_ = 0; playerId_ = 0; - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -25219,7 +25219,7 @@ public final class ProtoBuf { bitField0_ = (bitField0_ & ~0x00000001); playerId_ = 0; bitField0_ = (bitField0_ & ~0x00000002); - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -25409,7 +25409,7 @@ public final class ProtoBuf { } // required .NetGameState gameState = 3; - private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; public boolean hasGameState() { return ((bitField0_ & 0x00000004) == 0x00000004); } @@ -25427,7 +25427,7 @@ public final class ProtoBuf { } public Builder clearGameState() { bitField0_ = (bitField0_ & ~0x00000004); - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; onChanged(); return this; } @@ -25548,8 +25548,8 @@ public final class ProtoBuf { private void initFields() { gameId_ = 0; handNum_ = 0; - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; - myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; + myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; myRelativeBet_ = 0; } private byte memoizedIsInitialized = -1; @@ -25756,9 +25756,9 @@ public final class ProtoBuf { bitField0_ = (bitField0_ & ~0x00000001); handNum_ = 0; bitField0_ = (bitField0_ & ~0x00000002); - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; bitField0_ = (bitField0_ & ~0x00000004); - myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; bitField0_ = (bitField0_ & ~0x00000008); myRelativeBet_ = 0; bitField0_ = (bitField0_ & ~0x00000010); @@ -25988,7 +25988,7 @@ public final class ProtoBuf { } // required .NetGameState gameState = 3; - private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; public boolean hasGameState() { return ((bitField0_ & 0x00000004) == 0x00000004); } @@ -26006,13 +26006,13 @@ public final class ProtoBuf { } public Builder clearGameState() { bitField0_ = (bitField0_ & ~0x00000004); - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; onChanged(); return this; } // required .NetPlayerAction myAction = 4; - private de.pokerth.protocol.ProtoBuf.NetPlayerAction myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + private de.pokerth.protocol.ProtoBuf.NetPlayerAction myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; public boolean hasMyAction() { return ((bitField0_ & 0x00000008) == 0x00000008); } @@ -26030,7 +26030,7 @@ public final class ProtoBuf { } public Builder clearMyAction() { bitField0_ = (bitField0_ & ~0x00000008); - myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; onChanged(); return this; } @@ -26243,8 +26243,8 @@ public final class ProtoBuf { private void initFields() { gameId_ = 0; - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; - yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; + yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; yourRelativeBet_ = 0; rejectionReason_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.rejectedInvalidGameState; } @@ -26450,9 +26450,9 @@ public final class ProtoBuf { super.clear(); gameId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; bitField0_ = (bitField0_ & ~0x00000002); - yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; bitField0_ = (bitField0_ & ~0x00000004); yourRelativeBet_ = 0; bitField0_ = (bitField0_ & ~0x00000008); @@ -26669,7 +26669,7 @@ public final class ProtoBuf { } // required .NetGameState gameState = 2; - private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; public boolean hasGameState() { return ((bitField0_ & 0x00000002) == 0x00000002); } @@ -26687,13 +26687,13 @@ public final class ProtoBuf { } public Builder clearGameState() { bitField0_ = (bitField0_ & ~0x00000002); - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; onChanged(); return this; } // required .NetPlayerAction yourAction = 3; - private de.pokerth.protocol.ProtoBuf.NetPlayerAction yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + private de.pokerth.protocol.ProtoBuf.NetPlayerAction yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; public boolean hasYourAction() { return ((bitField0_ & 0x00000004) == 0x00000004); } @@ -26711,7 +26711,7 @@ public final class ProtoBuf { } public Builder clearYourAction() { bitField0_ = (bitField0_ & ~0x00000004); - yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; onChanged(); return this; } @@ -26919,8 +26919,8 @@ public final class ProtoBuf { private void initFields() { gameId_ = 0; playerId_ = 0; - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; - playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; + playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; totalPlayerBet_ = 0; playerMoney_ = 0; highestSet_ = 0; @@ -27163,9 +27163,9 @@ public final class ProtoBuf { bitField0_ = (bitField0_ & ~0x00000001); playerId_ = 0; bitField0_ = (bitField0_ & ~0x00000002); - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; bitField0_ = (bitField0_ & ~0x00000004); - playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; bitField0_ = (bitField0_ & ~0x00000008); totalPlayerBet_ = 0; bitField0_ = (bitField0_ & ~0x00000010); @@ -27449,7 +27449,7 @@ public final class ProtoBuf { } // required .NetGameState gameState = 3; - private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; public boolean hasGameState() { return ((bitField0_ & 0x00000004) == 0x00000004); } @@ -27467,13 +27467,13 @@ public final class ProtoBuf { } public Builder clearGameState() { bitField0_ = (bitField0_ & ~0x00000004); - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.statePreflop; + gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; onChanged(); return this; } // required .NetPlayerAction playerAction = 4; - private de.pokerth.protocol.ProtoBuf.NetPlayerAction playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + private de.pokerth.protocol.ProtoBuf.NetPlayerAction playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; public boolean hasPlayerAction() { return ((bitField0_ & 0x00000008) == 0x00000008); } @@ -27491,7 +27491,7 @@ public final class ProtoBuf { } public Builder clearPlayerAction() { bitField0_ = (bitField0_ & ~0x00000008); - playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.actionNone; + playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; onChanged(); return this; } @@ -55108,450 +55108,453 @@ public final class ProtoBuf { descriptor; static { java.lang.String[] descriptorData = { - "\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" + + "\n\022docs/pokerth.proto\"\242\005\n\013NetGameInfo\022\020\n\010" + + "gameName\030\001 \002(\t\022-\n\013netGameType\030\002 \002(\0162\030.Ne" + + "tGameInfo.NetGameType\022\025\n\rmaxNumPlayers\030\003" + + " \002(\r\0229\n\021raiseIntervalMode\030\004 \002(\0162\036.NetGam" + + "eInfo.RaiseIntervalMode\022\027\n\017raiseEveryHan" + + "ds\030\005 \001(\r\022\031\n\021raiseEveryMinutes\030\006 \001(\r\022/\n\014e" + + "ndRaiseMode\030\007 \002(\0162\031.NetGameInfo.EndRaise" + + "Mode\022\037\n\027endRaiseSmallBlindValue\030\010 \001(\r\022\030\n" + + "\020proposedGuiSpeed\030\t \002(\r\022\031\n\021delayBetweenH" + + "ands\030\n \002(\r\022\033\n\023playerActionTimeout\030\013 \002(\r\022", + "\027\n\017firstSmallBlind\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\013NetGam" + + "eType\022\016\n\nnormalGame\020\001\022\026\n\022registeredOnlyG" + + "ame\020\002\022\022\n\016inviteOnlyGame\020\003\022\017\n\013rankingGame" + + "\020\004\";\n\021RaiseIntervalMode\022\022\n\016raiseOnHandNu" + + "m\020\001\022\022\n\016raiseOnMinutes\020\002\"H\n\014EndRaiseMode\022" + + "\020\n\014doubleBlinds\020\001\022\023\n\017raiseByEndValue\020\002\022\021" + + "\n\rkeepLastBlind\020\003\"\243\001\n\014PlayerResult\022\020\n\010pl" + + "ayerId\030\001 \002(\r\022\023\n\013resultCard1\030\002 \002(\r\022\023\n\013res" + + "ultCard2\030\003 \002(\r\022\034\n\020bestHandPosition\030\004 \003(\r", + "B\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\017AnnounceMess" + + "age\0221\n\017protocolVersion\030\001 \002(\0132\030.AnnounceM" + + "essage.Version\0223\n\021latestGameVersion\030\002 \002(" + + "\0132\030.AnnounceMessage.Version\022\032\n\022latestBet" + + "aRevision\030\003 \002(\r\022/\n\nserverType\030\004 \002(\0162\033.An" + + "nounceMessage.ServerType\022\032\n\022numPlayersOn" + + "Server\030\005 \002(\r\032\'\n\007Version\022\r\n\005major\030\001 \002(\r\022\r" + + "\n\005minor\030\002 \002(\r\"Y\n\nServerType\022\021\n\rserverTyp" + + "eLAN\020\000\022\034\n\030serverTypeInternetNoAuth\020\001\022\032\n\026", + "serverTypeInternetAuth\020\002\"\273\002\n\013InitMessage" + + "\0222\n\020requestedVersion\030\001 \002(\0132\030.AnnounceMes" + + "sage.Version\022\017\n\007buildId\030\002 \002(\r\022\027\n\017myLastS" + + "essionId\030\003 \001(\014\022\032\n\022authServerPassword\030\004 \001" + + "(\t\022%\n\005login\030\005 \002(\0162\026.InitMessage.LoginTyp" + + "e\022\020\n\010nickName\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\n" + + "guestLogin\020\000\022\026\n\022authenticatedLogin\020\001\022\030\n\024" + + "unauthenticatedLogin\020\002\"5\n\032AuthServerChal" + + "lengeMessage\022\027\n\017serverChallenge\030\001 \002(\014\"3\n", + "\031AuthClientResponseMessage\022\026\n\016clientResp" + + "onse\030\001 \002(\014\";\n\035AuthServerVerificationMess" + + "age\022\032\n\022serverVerification\030\001 \002(\014\"k\n\016InitA" + + "ckMessage\022\025\n\ryourSessionId\030\001 \002(\014\022\024\n\014your" + + "PlayerId\030\002 \002(\r\022\026\n\016yourAvatarHash\030\003 \001(\014\022\024" + + "\n\014rejoinGameId\030\004 \001(\r\"=\n\024AvatarRequestMes" + + "sage\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.NetAvatarTyp" + + "e\022\022\n\navatarSize\030\003 \002(\r\";\n\021AvatarDataMessa", + "ge\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\024UnknownAvatarMessage\022\021\n\trequestId\030\001" + + " \002(\r\"\261\001\n\021PlayerListMessage\022\020\n\010playerId\030\001" + + " \002(\r\022I\n\026playerListNotification\030\002 \002(\0162).P" + + "layerListMessage.PlayerListNotification\"" + + "?\n\026PlayerListNotification\022\021\n\rplayerListN" + + "ew\020\000\022\022\n\016playerListLeft\020\001\"\245\001\n\022GameListNew" + + "Message\022\016\n\006gameId\030\001 \002(\r\022\036\n\010gameMode\030\002 \002(" + + "\0162\014.NetGameMode\022\021\n\tisPrivate\030\003 \002(\010\022\025\n\tpl", + "ayerIds\030\004 \003(\rB\002\020\001\022\025\n\radminPlayerId\030\005 \002(\r" + + "\022\036\n\010gameInfo\030\006 \002(\0132\014.NetGameInfo\"G\n\025Game" + + "ListUpdateMessage\022\016\n\006gameId\030\001 \002(\r\022\036\n\010gam" + + "eMode\030\002 \002(\0162\014.NetGameMode\"?\n\033GameListPla" + + "yerJoinedMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010play" + + "erId\030\002 \002(\r\"=\n\031GameListPlayerLeftMessage\022" + + "\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\"G\n\033Gam" + + "eListAdminChangedMessage\022\016\n\006gameId\030\001 \002(\r" + + "\022\030\n\020newAdminPlayerId\030\002 \002(\r\",\n\030PlayerInfo" + + "RequestMessage\022\020\n\010playerId\030\001 \002(\r\"\360\002\n\026Pla", + "yerInfoReplyMessage\022\020\n\010playerId\030\001 \002(\r\022>\n" + + "\016playerInfoData\030\002 \001(\0132&.PlayerInfoReplyM" + + "essage.PlayerInfoData\032\203\002\n\016PlayerInfoData" + + "\022\022\n\nplayerName\030\001 \002(\t\022\017\n\007isHuman\030\002 \002(\010\022*\n" + + "\014playerRights\030\003 \002(\0162\024.NetPlayerInfoRight" + + "s\022\023\n\013countryCode\030\004 \001(\t\022E\n\navatarData\030\005 \001" + + "(\01321.PlayerInfoReplyMessage.PlayerInfoDa" + + "ta.AvatarData\032D\n\nAvatarData\022\"\n\navatarTyp" + + "e\030\001 \002(\0162\016.NetAvatarType\022\022\n\navatarHash\030\002 " + + "\002(\014\"\260\001\n\032SubscriptionRequestMessage\022J\n\022su", + "bscriptionAction\030\001 \002(\0162..SubscriptionReq" + + "uestMessage.SubscriptionAction\"F\n\022Subscr" + + "iptionAction\022\027\n\023unsubscribeGameList\020\001\022\027\n" + + "\023resubscribeGameList\020\002\"N\n\027JoinExistingGa" + + "meMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010password\030\002 " + + "\001(\t\022\021\n\tautoLeave\030\003 \001(\010\"Y\n\022JoinNewGameMes" + + "sage\022\036\n\010gameInfo\030\001 \002(\0132\014.NetGameInfo\022\020\n\010" + + "password\030\002 \001(\t\022\021\n\tautoLeave\030\003 \001(\010\">\n\031Rej" + + "oinExistingGameMessage\022\016\n\006gameId\030\001 \002(\r\022\021" + + "\n\tautoLeave\030\002 \001(\010\"]\n\022JoinGameAckMessage\022", + "\016\n\006gameId\030\001 \002(\r\022\027\n\017areYouGameAdmin\030\002 \002(\010" + + "\022\036\n\010gameInfo\030\003 \002(\0132\014.NetGameInfo\"\337\002\n\025Joi" + + "nGameFailedMessage\022\016\n\006gameId\030\001 \002(\r\022K\n\025jo" + + "inGameFailureReason\030\002 \002(\0162,.JoinGameFail" + + "edMessage.JoinGameFailureReason\"\350\001\n\025Join" + + "GameFailureReason\022\017\n\013invalidGame\020\001\022\016\n\nga" + + "meIsFull\020\002\022\021\n\rgameIsRunning\020\003\022\023\n\017invalid" + + "Password\020\004\022\025\n\021notAllowedAsGuest\020\005\022\016\n\nnot" + + "Invited\020\006\022\021\n\rgameNameInUse\020\007\022\017\n\013badGameN" + + "ame\020\010\022\023\n\017invalidSettings\020\t\022\024\n\020ipAddressB", + "locked\020\n\022\020\n\014rejoinFailed\020\013\"P\n\027GamePlayer" + + "JoinedMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerI" + + "d\030\002 \002(\r\022\023\n\013isGameAdmin\030\003 \002(\010\"\316\001\n\025GamePla" + + "yerLeftMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010player" + + "Id\030\002 \002(\r\022I\n\024gamePlayerLeftReason\030\003 \002(\0162+" + + ".GamePlayerLeftMessage.GamePlayerLeftRea" + + "son\"H\n\024GamePlayerLeftReason\022\021\n\rleftOnReq" + + "uest\020\000\022\016\n\nleftKicked\020\001\022\r\n\tleftError\020\002\"C\n" + + "\027GameAdminChangedMessage\022\016\n\006gameId\030\001 \002(\r" + + "\022\030\n\020newAdminPlayerId\030\002 \002(\r\"\206\002\n\026RemovedFr", + "omGameMessage\022\016\n\006gameId\030\001 \002(\r\022L\n\025removed" + + "FromGameReason\030\002 \002(\0162-.RemovedFromGameMe" + + "ssage.RemovedFromGameReason\"\215\001\n\025RemovedF" + + "romGameReason\022\024\n\020removedOnRequest\020\000\022\022\n\016k" + + "ickedFromGame\020\001\022\016\n\ngameIsFull\020\002\022\021\n\rgameI" + + "sRunning\020\003\022\017\n\013gameTimeout\020\004\022\026\n\022removedSt" + + "artFailed\020\005\"<\n\030KickPlayerRequestMessage\022" + + "\016\n\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\")\n\027Lea" + + "veGameRequestMessage\022\016\n\006gameId\030\001 \002(\r\"=\n\031" + + "InvitePlayerToGameMessage\022\016\n\006gameId\030\001 \002(", + "\r\022\020\n\010playerId\030\002 \002(\r\"R\n\023InviteNotifyMessa" + + "ge\022\016\n\006gameId\030\001 \002(\r\022\023\n\013playerIdWho\030\002 \002(\r\022" + + "\026\n\016playerIdByWhom\030\003 \002(\r\"\270\001\n\033RejectGameIn" + + "vitationMessage\022\016\n\006gameId\030\001 \002(\r\022H\n\016myRej" + + "ectReason\030\002 \002(\01620.RejectGameInvitationMe" + + "ssage.RejectGameInvReason\"?\n\023RejectGameI" + + "nvReason\022\022\n\016rejectReasonNo\020\000\022\024\n\020rejectRe" + + "asonBusy\020\001\"\210\001\n\026RejectInvNotifyMessage\022\016\n" + + "\006gameId\030\001 \002(\r\022\020\n\010playerId\030\002 \002(\r\022L\n\022playe" + + "rRejectReason\030\003 \002(\01620.RejectGameInvitati", + "onMessage.RejectGameInvReason\"\262\001\n\021StartE" + + "ventMessage\022\016\n\006gameId\030\001 \002(\r\0229\n\016startEven" + + "tType\030\002 \002(\0162!.StartEventMessage.StartEve" + + "ntType\022\037\n\027fillWithComputerPlayers\030\003 \001(\010\"" + + "1\n\016StartEventType\022\016\n\nstartEvent\020\000\022\017\n\013rej" + + "oinEvent\020\001\"&\n\024StartEventAckMessage\022\016\n\006ga" + + "meId\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\013playerSeats\030\003 \003(\rB\002\020\001\"\325\001\n\026GameStar" + + "tRejoinMessage\022\016\n\006gameId\030\001 \002(\r\022\033\n\023startD", + "ealerPlayerId\030\002 \002(\r\022\017\n\007handNum\030\003 \002(\r\022B\n\020" + + "rejoinPlayerData\030\004 \003(\0132(.GameStartRejoin" + + "Message.RejoinPlayerData\0329\n\020RejoinPlayer" + + "Data\022\020\n\010playerId\030\001 \002(\r\022\023\n\013playerMoney\030\002 " + + "\002(\r\"\333\001\n\020HandStartMessage\022\016\n\006gameId\030\001 \002(\r" + + "\0220\n\nplainCards\030\002 \001(\0132\034.HandStartMessage." + + "PlainCards\022\026\n\016encryptedCards\030\003 \001(\014\022\022\n\nsm" + + "allBlind\030\004 \002(\r\022#\n\nseatStates\030\005 \003(\0162\017.Net" + + "PlayerState\0324\n\nPlainCards\022\022\n\nplainCard1\030" + + "\001 \002(\r\022\022\n\nplainCard2\030\002 \002(\r\"X\n\022PlayersTurn", + "Message\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\"\226\001\n\026" + + "MyActionRequestMessage\022\016\n\006gameId\030\001 \002(\r\022\017" + + "\n\007handNum\030\002 \002(\r\022 \n\tgameState\030\003 \002(\0162\r.Net" + + "GameState\022\"\n\010myAction\030\004 \002(\0162\020.NetPlayerA" + + "ction\022\025\n\rmyRelativeBet\030\005 \002(\r\"\271\002\n\031YourAct" + + "ionRejectedMessage\022\016\n\006gameId\030\001 \002(\r\022 \n\tga" + + "meState\030\002 \002(\0162\r.NetGameState\022$\n\nyourActi" + + "on\030\003 \002(\0162\020.NetPlayerAction\022\027\n\017yourRelati" + + "veBet\030\004 \002(\r\022C\n\017rejectionReason\030\005 \002(\0162*.Y", + "ourActionRejectedMessage.RejectionReason" + + "\"f\n\017RejectionReason\022\034\n\030rejectedInvalidGa" + + "meState\020\001\022\027\n\023rejectedNotYourTurn\020\002\022\034\n\030re" + + "jectedActionNotAllowed\020\003\"\335\001\n\030PlayersActi" + + "onDoneMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010playerI" + + "d\030\002 \002(\r\022 \n\tgameState\030\003 \002(\0162\r.NetGameStat" + + "e\022&\n\014playerAction\030\004 \002(\0162\020.NetPlayerActio" + + "n\022\026\n\016totalPlayerBet\030\005 \002(\r\022\023\n\013playerMoney" + + "\030\006 \002(\r\022\022\n\nhighestSet\030\007 \002(\r\022\024\n\014minimumRai" + + "se\030\010 \002(\r\"_\n\024DealFlopCardsMessage\022\016\n\006game", + "Id\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\023DealTurnCar" + + "dMessage\022\016\n\006gameId\030\001 \002(\r\022\020\n\010turnCard\030\002 \002" + + "(\r\"9\n\024DealRiverCardMessage\022\016\n\006gameId\030\001 \002" + + "(\r\022\021\n\triverCard\030\002 \002(\r\"\252\001\n\025AllInShowCards" + + "Message\022\016\n\006gameId\030\001 \002(\r\0228\n\014playersAllIn\030" + + "\002 \003(\0132\".AllInShowCardsMessage.PlayerAllI" + + "n\032G\n\013PlayerAllIn\022\020\n\010playerId\030\001 \002(\r\022\022\n\nal" + + "lInCard1\030\002 \002(\r\022\022\n\nallInCard2\030\003 \002(\r\"Q\n\031En" + + "dOfHandShowCardsMessage\022\016\n\006gameId\030\001 \002(\r\022", + "$\n\rplayerResults\030\002 \003(\0132\r.PlayerResult\"d\n" + + "\031EndOfHandHideCardsMessage\022\016\n\006gameId\030\001 \002" + + "(\r\022\020\n\010playerId\030\002 \002(\r\022\020\n\010moneyWon\030\003 \002(\r\022\023" + + "\n\013playerMoney\030\004 \002(\r\"\033\n\031ShowMyCardsReques" + + "tMessage\"@\n\031AfterHandShowCardsMessage\022#\n" + + "\014playerResult\030\001 \002(\0132\r.PlayerResult\":\n\020En" + + "dOfGameMessage\022\016\n\006gameId\030\001 \002(\r\022\026\n\016winner" + + "PlayerId\030\002 \002(\r\"B\n\026PlayerIdChangedMessage" + + "\022\023\n\013oldPlayerId\030\001 \002(\r\022\023\n\013newPlayerId\030\002 \002" + + "(\r\"8\n\024AskKickPlayerMessage\022\016\n\006gameId\030\001 \002", + "(\r\022\020\n\010playerId\030\002 \002(\r\"\247\002\n\024AskKickDeniedMe" + "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\001\022\022\n\016avatarImageJpg\020\002\022\022\n\016avatarIma" + - "geGif\020\003B\037\n\023de.pokerth.protocolB\010ProtoBuf" + "@\n\020kickDeniedReason\030\003 \002(\0162&.AskKickDenie" + + "dMessage.KickDeniedReason\"\252\001\n\020KickDenied" + + "Reason\022\036\n\032kickDeniedInvalidGameState\020\000\022\031" + + "\n\025kickDeniedNotPossible\020\001\022\033\n\027kickDeniedT" + + "ryAgainLater\020\002\022\037\n\033kickDeniedAlreadyInPro" + + "gress\020\003\022\035\n\031kickDeniedInvalidPlayerId\020\004\"\245" + + "\001\n\030StartKickPetitionMessage\022\016\n\006gameId\030\001 " + + "\002(\r\022\022\n\npetitionId\030\002 \002(\r\022\031\n\021proposingPlay", + "erId\030\003 \002(\r\022\024\n\014kickPlayerId\030\004 \002(\r\022\026\n\016kick" + + "TimeoutSec\030\005 \002(\r\022\034\n\024numVotesNeededToKick" + + "\030\006 \002(\r\"N\n\026VoteKickRequestMessage\022\016\n\006game" + + "Id\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\006gameI" + + "d\030\001 \002(\r\022\022\n\npetitionId\030\002 \002(\r\022B\n\021voteKickR" + + "eplyType\030\003 \002(\0162\'.VoteKickReplyMessage.Vo" + + "teKickReplyType\"_\n\021VoteKickReplyType\022\017\n\013" + + "voteKickAck\020\000\022\031\n\025voteKickDeniedInvalid\020\001" + + "\022\036\n\032voteKickDeniedAlreadyVoted\020\002\"\240\001\n\031Kic", + "kPetitionUpdateMessage\022\016\n\006gameId\030\001 \002(\r\022\022" + + "\n\npetitionId\030\002 \002(\r\022\036\n\026numVotesAgainstKic" + + "king\030\003 \002(\r\022!\n\031numVotesInFavourOfKicking\030" + + "\004 \002(\r\022\034\n\024numVotesNeededToKick\030\005 \002(\r\"\344\002\n\026" + + "EndKickPetitionMessage\022\016\n\006gameId\030\001 \002(\r\022\022" + + "\n\npetitionId\030\002 \002(\r\022\036\n\026numVotesAgainstKic" + + "king\030\003 \002(\r\022!\n\031numVotesInFavourOfKicking\030" + + "\004 \002(\r\022\032\n\022resultPlayerKicked\030\005 \002(\r\022D\n\021pet" + + "itionEndReason\030\006 \002(\0162).EndKickPetitionMe" + + "ssage.PetitionEndReason\"\200\001\n\021PetitionEndR", + "eason\022\032\n\026petitionEndEnoughVotes\020\000\022\034\n\030pet" + + "itionEndTooFewPlayers\020\001\022\031\n\025petitionEndPl" + + "ayerLeft\020\002\022\026\n\022petitionEndTimeout\020\003\"\357\001\n\021S" + + "tatisticsMessage\0229\n\016statisticsData\030\001 \003(\013" + + "2!.StatisticsMessage.StatisticsData\032\236\001\n\016" + + "StatisticsData\022H\n\016statisticsType\030\001 \002(\01620" + + ".StatisticsMessage.StatisticsData.Statis" + + "ticsType\022\027\n\017statisticsValue\030\002 \002(\r\")\n\016Sta" + + "tisticsType\022\027\n\023statNumberOfPlayers\020\001\"T\n\022" + + "ChatRequestMessage\022\024\n\014targetGameId\030\001 \001(\r", + "\022\026\n\016targetPlayerId\030\002 \001(\r\022\020\n\010chatText\030\003 \002" + + "(\t\"\330\001\n\013ChatMessage\022\016\n\006gameId\030\001 \001(\r\022\020\n\010pl" + + "ayerId\030\002 \001(\r\022\'\n\010chatType\030\003 \002(\0162\025.ChatMes" + + "sage.ChatType\022\020\n\010chatText\030\004 \002(\t\"l\n\010ChatT" + + "ype\022\021\n\rchatTypeLobby\020\000\022\020\n\014chatTypeGame\020\001" + + "\022\017\n\013chatTypeBot\020\002\022\025\n\021chatTypeBroadcast\020\003" + + "\022\023\n\017chatTypePrivate\020\004\"%\n\021ChatRejectMessa" + + "ge\022\020\n\010chatText\030\001 \002(\t\")\n\rDialogMessage\022\030\n" + + "\020notificationText\030\001 \002(\t\"\321\001\n\025TimeoutWarni" + + "ngMessage\022;\n\rtimeoutReason\030\001 \002(\0162$.Timeo", + "utWarningMessage.TimeoutReason\022\030\n\020remain" + + "ingSeconds\030\002 \002(\r\"a\n\rTimeoutReason\022\031\n\025tim" + + "eoutNoDataReceived\020\000\022\027\n\023timeoutInactiveG" + + "ame\020\001\022\034\n\030timeoutKickAfterAutofold\020\002\"\025\n\023R" + + "esetTimeoutMessage\"K\n\023ReportAvatarMessag" + + "e\022\030\n\020reportedPlayerId\030\001 \002(\r\022\032\n\022reportedA" + + "vatarHash\030\002 \002(\014\"\336\001\n\026ReportAvatarAckMessa" + + "ge\022\030\n\020reportedPlayerId\030\001 \002(\r\022F\n\022reportAv" + + "atarResult\030\002 \002(\0162*.ReportAvatarAckMessag" + + "e.ReportAvatarResult\"b\n\022ReportAvatarResu", + "lt\022\030\n\024avatarReportAccepted\020\000\022\031\n\025avatarRe" + + "portDuplicate\020\001\022\027\n\023avatarReportInvalid\020\002" + + "\"+\n\021ReportGameMessage\022\026\n\016reportedGameId\030" + + "\001 \002(\r\"\314\001\n\024ReportGameAckMessage\022\026\n\016report" + + "edGameId\030\001 \002(\r\022@\n\020reportGameResult\030\002 \002(\016" + + "2&.ReportGameAckMessage.ReportGameResult" + + "\"Z\n\020ReportGameResult\022\026\n\022gameReportAccept" + + "ed\020\000\022\027\n\023gameReportDuplicate\020\001\022\025\n\021gameRep" + + "ortInvalid\020\002\"\220\003\n\014ErrorMessage\022.\n\013errorRe" + + "ason\030\001 \002(\0162\031.ErrorMessage.ErrorReason\"\317\002", + "\n\013ErrorReason\022\014\n\010reserved\020\000\022\033\n\027initVersi" + + "onNotSupported\020\001\022\022\n\016initServerFull\020\002\022\023\n\017" + + "initAuthFailure\020\003\022\027\n\023initPlayerNameInUse" + + "\020\004\022\031\n\025initInvalidPlayerName\020\005\022\031\n\025initSer" + + "verMaintenance\020\006\022\017\n\013initBlocked\020\007\022\022\n\016ava" + + "tarTooLarge\020\010\022\021\n\rinvalidPacket\020\t\022\020\n\014inva" + + "lidState\020\n\022\024\n\020kickedFromServer\020\013\022\024\n\020bann" + + "edFromServer\020\014\022\023\n\017blockedByServer\020\r\022\022\n\016s" + + "essionTimeout\020\016\"\3771\n\016PokerTHMessage\0227\n\013me" + + "ssageType\030\001 \002(\0162\".PokerTHMessage.PokerTH", + "MessageType\022)\n\017announceMessage\030\002 \001(\0132\020.A" + + "nnounceMessage\022!\n\013initMessage\030\003 \001(\0132\014.In" + + "itMessage\022?\n\032authServerChallengeMessage\030" + + "\004 \001(\0132\033.AuthServerChallengeMessage\022=\n\031au" + + "thClientResponseMessage\030\005 \001(\0132\032.AuthClie" + + "ntResponseMessage\022E\n\035authServerVerificat" + + "ionMessage\030\006 \001(\0132\036.AuthServerVerificatio" + + "nMessage\022\'\n\016initAckMessage\030\007 \001(\0132\017.InitA" + + "ckMessage\0223\n\024avatarRequestMessage\030\010 \001(\0132" + + "\025.AvatarRequestMessage\0221\n\023avatarHeaderMe", + "ssage\030\t \001(\0132\024.AvatarHeaderMessage\022-\n\021ava" + + "tarDataMessage\030\n \001(\0132\022.AvatarDataMessage" + + "\022+\n\020avatarEndMessage\030\013 \001(\0132\021.AvatarEndMe" + + "ssage\0223\n\024unknownAvatarMessage\030\014 \001(\0132\025.Un" + + "knownAvatarMessage\022-\n\021playerListMessage\030" + + "\r \001(\0132\022.PlayerListMessage\022/\n\022gameListNew" + + "Message\030\016 \001(\0132\023.GameListNewMessage\0225\n\025ga" + + "meListUpdateMessage\030\017 \001(\0132\026.GameListUpda" + + "teMessage\022A\n\033gameListPlayerJoinedMessage" + + "\030\020 \001(\0132\034.GameListPlayerJoinedMessage\022=\n\031", + "gameListPlayerLeftMessage\030\021 \001(\0132\032.GameLi" + + "stPlayerLeftMessage\022A\n\033gameListAdminChan" + + "gedMessage\030\022 \001(\0132\034.GameListAdminChangedM" + + "essage\022;\n\030playerInfoRequestMessage\030\023 \001(\013" + + "2\031.PlayerInfoRequestMessage\0227\n\026playerInf" + + "oReplyMessage\030\024 \001(\0132\027.PlayerInfoReplyMes" + + "sage\022?\n\032subscriptionRequestMessage\030\025 \001(\013" + + "2\033.SubscriptionRequestMessage\0229\n\027joinExi" + + "stingGameMessage\030\026 \001(\0132\030.JoinExistingGam" + + "eMessage\022/\n\022joinNewGameMessage\030\027 \001(\0132\023.J", + "oinNewGameMessage\022=\n\031rejoinExistingGameM" + + "essage\030\030 \001(\0132\032.RejoinExistingGameMessage" + + "\022/\n\022joinGameAckMessage\030\031 \001(\0132\023.JoinGameA" + + "ckMessage\0225\n\025joinGameFailedMessage\030\032 \001(\013" + + "2\026.JoinGameFailedMessage\0229\n\027gamePlayerJo" + + "inedMessage\030\033 \001(\0132\030.GamePlayerJoinedMess" + + "age\0225\n\025gamePlayerLeftMessage\030\034 \001(\0132\026.Gam" + + "ePlayerLeftMessage\0229\n\027gameAdminChangedMe" + + "ssage\030\035 \001(\0132\030.GameAdminChangedMessage\0227\n" + + "\026removedFromGameMessage\030\036 \001(\0132\027.RemovedF", + "romGameMessage\022;\n\030kickPlayerRequestMessa" + + "ge\030\037 \001(\0132\031.KickPlayerRequestMessage\0229\n\027l" + + "eaveGameRequestMessage\030 \001(\0132\030.LeaveGame" + + "RequestMessage\022=\n\031invitePlayerToGameMess" + + "age\030! \001(\0132\032.InvitePlayerToGameMessage\0221\n" + + "\023inviteNotifyMessage\030\" \001(\0132\024.InviteNotif" + + "yMessage\022A\n\033rejectGameInvitationMessage\030" + + "# \001(\0132\034.RejectGameInvitationMessage\0227\n\026r" + + "ejectInvNotifyMessage\030$ \001(\0132\027.RejectInvN" + + "otifyMessage\022-\n\021startEventMessage\030% \001(\0132", + "\022.StartEventMessage\0223\n\024startEventAckMess" + + "age\030& \001(\0132\025.StartEventAckMessage\0229\n\027game" + + "StartInitialMessage\030\' \001(\0132\030.GameStartIni" + + "tialMessage\0227\n\026gameStartRejoinMessage\030( " + + "\001(\0132\027.GameStartRejoinMessage\022+\n\020handStar" + + "tMessage\030) \001(\0132\021.HandStartMessage\022/\n\022pla" + + "yersTurnMessage\030* \001(\0132\023.PlayersTurnMessa" + + "ge\0227\n\026myActionRequestMessage\030+ \001(\0132\027.MyA" + + "ctionRequestMessage\022=\n\031yourActionRejecte" + + "dMessage\030, \001(\0132\032.YourActionRejectedMessa", + "ge\022;\n\030playersActionDoneMessage\030- \001(\0132\031.P" + + "layersActionDoneMessage\0223\n\024dealFlopCards" + + "Message\030. \001(\0132\025.DealFlopCardsMessage\0221\n\023" + + "dealTurnCardMessage\030/ \001(\0132\024.DealTurnCard" + + "Message\0223\n\024dealRiverCardMessage\0300 \001(\0132\025." + + "DealRiverCardMessage\0225\n\025allInShowCardsMe" + + "ssage\0301 \001(\0132\026.AllInShowCardsMessage\022=\n\031e" + + "ndOfHandShowCardsMessage\0302 \001(\0132\032.EndOfHa" + + "ndShowCardsMessage\022=\n\031endOfHandHideCards" + + "Message\0303 \001(\0132\032.EndOfHandHideCardsMessag", + "e\022=\n\031showMyCardsRequestMessage\0304 \001(\0132\032.S" + + "howMyCardsRequestMessage\022=\n\031afterHandSho" + + "wCardsMessage\0305 \001(\0132\032.AfterHandShowCards" + + "Message\022+\n\020endOfGameMessage\0306 \001(\0132\021.EndO" + + "fGameMessage\0227\n\026playerIdChangedMessage\0307" + + " \001(\0132\027.PlayerIdChangedMessage\0223\n\024askKick" + + "PlayerMessage\0308 \001(\0132\025.AskKickPlayerMessa" + + "ge\0223\n\024askKickDeniedMessage\0309 \001(\0132\025.AskKi" + + "ckDeniedMessage\022;\n\030startKickPetitionMess" + + "age\030: \001(\0132\031.StartKickPetitionMessage\0227\n\026", + "voteKickRequestMessage\030; \001(\0132\027.VoteKickR" + + "equestMessage\0223\n\024voteKickReplyMessage\030< " + + "\001(\0132\025.VoteKickReplyMessage\022=\n\031kickPetiti" + + "onUpdateMessage\030= \001(\0132\032.KickPetitionUpda" + + "teMessage\0227\n\026endKickPetitionMessage\030> \001(" + + "\0132\027.EndKickPetitionMessage\022-\n\021statistics" + + "Message\030? \001(\0132\022.StatisticsMessage\022/\n\022cha" + + "tRequestMessage\030@ \001(\0132\023.ChatRequestMessa" + + "ge\022!\n\013chatMessage\030A \001(\0132\014.ChatMessage\022-\n" + + "\021chatRejectMessage\030B \001(\0132\022.ChatRejectMes", + "sage\022%\n\rdialogMessage\030C \001(\0132\016.DialogMess" + + "age\0225\n\025timeoutWarningMessage\030D \001(\0132\026.Tim" + + "eoutWarningMessage\0221\n\023resetTimeoutMessag" + + "e\030E \001(\0132\024.ResetTimeoutMessage\0221\n\023reportA" + + "vatarMessage\030F \001(\0132\024.ReportAvatarMessage" + + "\0227\n\026reportAvatarAckMessage\030G \001(\0132\027.Repor" + + "tAvatarAckMessage\022-\n\021reportGameMessage\030H" + + " \001(\0132\022.ReportGameMessage\0223\n\024reportGameAc" + + "kMessage\030I \001(\0132\025.ReportGameAckMessage\022#\n" + + "\014errorMessage\030J \001(\0132\r.ErrorMessage\"\244\022\n\022P", + "okerTHMessageType\022\030\n\024Type_AnnounceMessag" + + "e\020\001\022\024\n\020Type_InitMessage\020\002\022#\n\037Type_AuthSe" + + "rverChallengeMessage\020\003\022\"\n\036Type_AuthClien" + + "tResponseMessage\020\004\022&\n\"Type_AuthServerVer" + + "ificationMessage\020\005\022\027\n\023Type_InitAckMessag" + + "e\020\006\022\035\n\031Type_AvatarRequestMessage\020\007\022\034\n\030Ty" + + "pe_AvatarHeaderMessage\020\010\022\032\n\026Type_AvatarD" + + "ataMessage\020\t\022\031\n\025Type_AvatarEndMessage\020\n\022" + + "\035\n\031Type_UnknownAvatarMessage\020\013\022\032\n\026Type_P" + + "layerListMessage\020\014\022\033\n\027Type_GameListNewMe", + "ssage\020\r\022\036\n\032Type_GameListUpdateMessage\020\016\022" + + "$\n Type_GameListPlayerJoinedMessage\020\017\022\"\n" + + "\036Type_GameListPlayerLeftMessage\020\020\022$\n Typ" + + "e_GameListAdminChangedMessage\020\021\022!\n\035Type_" + + "PlayerInfoRequestMessage\020\022\022\037\n\033Type_Playe" + + "rInfoReplyMessage\020\023\022#\n\037Type_Subscription" + + "RequestMessage\020\024\022 \n\034Type_JoinExistingGam" + + "eMessage\020\025\022\033\n\027Type_JoinNewGameMessage\020\026\022" + + "\"\n\036Type_RejoinExistingGameMessage\020\027\022\033\n\027T" + + "ype_JoinGameAckMessage\020\030\022\036\n\032Type_JoinGam", + "eFailedMessage\020\031\022 \n\034Type_GamePlayerJoine" + + "dMessage\020\032\022\036\n\032Type_GamePlayerLeftMessage" + + "\020\033\022 \n\034Type_GameAdminChangedMessage\020\034\022\037\n\033" + + "Type_RemovedFromGameMessage\020\035\022!\n\035Type_Ki" + + "ckPlayerRequestMessage\020\036\022 \n\034Type_LeaveGa" + + "meRequestMessage\020\037\022\"\n\036Type_InvitePlayerT" + + "oGameMessage\020 \022\034\n\030Type_InviteNotifyMessa" + + "ge\020!\022$\n Type_RejectGameInvitationMessage" + + "\020\"\022\037\n\033Type_RejectInvNotifyMessage\020#\022\032\n\026T" + + "ype_StartEventMessage\020$\022\035\n\031Type_StartEve", + "ntAckMessage\020%\022 \n\034Type_GameStartInitialM" + + "essage\020&\022\037\n\033Type_GameStartRejoinMessage\020" + + "\'\022\031\n\025Type_HandStartMessage\020(\022\033\n\027Type_Pla" + + "yersTurnMessage\020)\022\037\n\033Type_MyActionReques" + + "tMessage\020*\022\"\n\036Type_YourActionRejectedMes" + + "sage\020+\022!\n\035Type_PlayersActionDoneMessage\020" + + ",\022\035\n\031Type_DealFlopCardsMessage\020-\022\034\n\030Type" + + "_DealTurnCardMessage\020.\022\035\n\031Type_DealRiver" + + "CardMessage\020/\022\036\n\032Type_AllInShowCardsMess" + + "age\0200\022\"\n\036Type_EndOfHandShowCardsMessage\020", + "1\022\"\n\036Type_EndOfHandHideCardsMessage\0202\022\"\n" + + "\036Type_ShowMyCardsRequestMessage\0203\022\"\n\036Typ" + + "e_AfterHandShowCardsMessage\0204\022\031\n\025Type_En" + + "dOfGameMessage\0205\022\037\n\033Type_PlayerIdChanged" + + "Message\0206\022\035\n\031Type_AskKickPlayerMessage\0207" + + "\022\035\n\031Type_AskKickDeniedMessage\0208\022!\n\035Type_" + + "StartKickPetitionMessage\0209\022\037\n\033Type_VoteK" + + "ickRequestMessage\020:\022\035\n\031Type_VoteKickRepl" + + "yMessage\020;\022\"\n\036Type_KickPetitionUpdateMes" + + "sage\020<\022\037\n\033Type_EndKickPetitionMessage\020=\022", + "\032\n\026Type_StatisticsMessage\020>\022\033\n\027Type_Chat" + + "RequestMessage\020?\022\024\n\020Type_ChatMessage\020@\022\032" + + "\n\026Type_ChatRejectMessage\020A\022\026\n\022Type_Dialo" + + "gMessage\020B\022\036\n\032Type_TimeoutWarningMessage" + + "\020C\022\034\n\030Type_ResetTimeoutMessage\020D\022\034\n\030Type" + + "_ReportAvatarMessage\020E\022\037\n\033Type_ReportAva" + + "tarAckMessage\020F\022\032\n\026Type_ReportGameMessag" + + "e\020G\022\035\n\031Type_ReportGameAckMessage\020H\022\025\n\021Ty" + + "pe_ErrorMessage\020I*H\n\013NetGameMode\022\022\n\016netG" + + "ameCreated\020\001\022\022\n\016netGameStarted\020\002\022\021\n\rnetG", + "ameClosed\020\003*\226\001\n\014NetGameState\022\023\n\017netState" + + "Preflop\020\000\022\020\n\014netStateFlop\020\001\022\020\n\014netStateT" + + "urn\020\002\022\021\n\rnetStateRiver\020\003\022\035\n\031netStatePref" + + "lopSmallBlind\020\004\022\033\n\027netStatePreflopBigBli" + + "nd\020\005*\230\001\n\017NetPlayerAction\022\021\n\rnetActionNon" + + "e\020\000\022\021\n\rnetActionFold\020\001\022\022\n\016netActionCheck" + + "\020\002\022\021\n\rnetActionCall\020\003\022\020\n\014netActionBet\020\004\022" + + "\022\n\016netActionRaise\020\005\022\022\n\016netActionAllIn\020\006*" + + "h\n\016NetPlayerState\022\030\n\024netPlayerStateNorma" + + "l\020\000\022!\n\035netPlayerStateSessionInactive\020\001\022\031", + "\n\025netPlayerStateNoMoney\020\002*d\n\023NetPlayerIn" + + "foRights\022\030\n\024netPlayerRightsGuest\020\001\022\031\n\025ne" + + "tPlayerRightsNormal\020\002\022\030\n\024netPlayerRights" + + "Admin\020\003*T\n\rNetAvatarType\022\025\n\021netAvatarIma" + + "gePng\020\001\022\025\n\021netAvatarImageJpg\020\002\022\025\n\021netAva" + + "tarImageGif\020\003B\037\n\023de.pokerth.protocolB\010Pr" + + "otoBuf" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/tests/src/de/pokerth/test/GameListTest.java b/tests/src/de/pokerth/test/GameListTest.java index cb4b7852..83b6355b 100644 --- a/tests/src/de/pokerth/test/GameListTest.java +++ b/tests/src/de/pokerth/test/GameListTest.java @@ -41,7 +41,7 @@ import de.pokerth.protocol.ProtoBuf.PokerTHMessage; public class GameListTest extends TestBase { protected void checkGameListNewMsg(int myId, GameListNewMessage gameListNew, NetGameMode mode, NetGameInfo gameInfo) { - assertEquals(NetGameMode.gameCreated, gameListNew.getGameMode()); + assertEquals(NetGameMode.netGameCreated, gameListNew.getGameMode()); assertTrue(!gameListNew.getIsPrivate()); assertEquals(myId, gameListNew.getAdminPlayerId()); NetGameInfo receivedGameInfo = gameListNew.getGameInfo(); @@ -86,7 +86,7 @@ public class GameListTest extends TestBase { checkGameListNewMsg( myId, gameListNewMsg, - NetGameMode.gameCreated, + NetGameMode.netGameCreated, gameInfo); assertTrue(gameListNewMsg.getPlayerIdsCount() == 0); @@ -124,7 +124,7 @@ public class GameListTest extends TestBase { checkGameListNewMsg( myId, gameListNewMsg, - NetGameMode.gameCreated, + NetGameMode.netGameCreated, gameInfo); assertEquals(1, gameListNewMsg.getPlayerIdsCount()); assertEquals(myId, gameListNewMsg.getPlayerIds(0)); @@ -165,7 +165,7 @@ public class GameListTest extends TestBase { failOnErrorMessage(msg); } while (!(msg.hasGameListUpdateMessage())); - assertEquals(NetGameMode.gameStarted, msg.getGameListUpdateMessage().getGameMode()); + assertEquals(NetGameMode.netGameStarted, msg.getGameListUpdateMessage().getGameMode()); // Wait for player left messages. for (int i = 0; i < 9; i++) { @@ -185,6 +185,6 @@ public class GameListTest extends TestBase { failOnErrorMessage(msg); } while (!(msg.hasGameListUpdateMessage())); - assertEquals(NetGameMode.gameClosed, msg.getGameListUpdateMessage().getGameMode()); + assertEquals(NetGameMode.netGameClosed, msg.getGameListUpdateMessage().getGameMode()); } } diff --git a/tests/src/de/pokerth/test/LoadTest.java b/tests/src/de/pokerth/test/LoadTest.java index f328c829..ad14d342 100644 --- a/tests/src/de/pokerth/test/LoadTest.java +++ b/tests/src/de/pokerth/test/LoadTest.java @@ -134,7 +134,7 @@ public class LoadTest extends TestBase { .setGameId(gameId[i / 10]) .setGameState(msg.getPlayersTurnMessage().getGameState()) .setHandNum(handNum[i / 10]) - .setMyAction(NetPlayerAction.actionAllIn) + .setMyAction(NetPlayerAction.netActionAllIn) .setMyRelativeBet(0) .build(); PokerTHMessage outMsg = PokerTHMessage.newBuilder() diff --git a/tests/src/de/pokerth/test/PlayerInfoTest.java b/tests/src/de/pokerth/test/PlayerInfoTest.java index f03618ce..d1cc4a6c 100644 --- a/tests/src/de/pokerth/test/PlayerInfoTest.java +++ b/tests/src/de/pokerth/test/PlayerInfoTest.java @@ -26,10 +26,10 @@ import java.util.Arrays; import org.junit.Test; import de.pokerth.protocol.ProtoBuf.NetAvatarType; +import de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights; import de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage; import de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData; import de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage; -import de.pokerth.protocol.ProtoBuf.PlayerInfoRights; import de.pokerth.protocol.ProtoBuf.PokerTHMessage; import de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType; @@ -93,7 +93,7 @@ public class PlayerInfoTest extends TestBase { assertEquals(GuestUser, info.getPlayerName()); assertFalse(info.hasCountryCode()); assertTrue(info.getIsHuman()); - assertEquals(PlayerInfoRights.playerRightsGuest, info.getPlayerRights()); + assertEquals(NetPlayerInfoRights.netPlayerRightsGuest, info.getPlayerRights()); assertFalse(info.hasAvatarData()); } // Request other players' info. @@ -110,14 +110,14 @@ public class PlayerInfoTest extends TestBase { assertEquals("test" + (i+1), info.getPlayerName()); assertFalse(info.hasCountryCode()); assertTrue(info.getIsHuman()); - assertEquals(PlayerInfoRights.playerRightsNormal, info.getPlayerRights()); + assertEquals(NetPlayerInfoRights.netPlayerRightsNormal, info.getPlayerRights()); // Every second player has an avatar, see above. if (i % 2 == 0) { assertFalse(info.hasAvatarData()); } else { assertTrue(info.hasAvatarData()); assertTrue(Arrays.equals(info.getAvatarData().getAvatarHash().toByteArray(), avatarHash)); - assertEquals(NetAvatarType.avatarImagePng, info.getAvatarData().getAvatarType()); + assertEquals(NetAvatarType.netAvatarImagePng, info.getAvatarData().getAvatarType()); } } // Request invalid player info. diff --git a/tests/src/de/pokerth/test/RunRankingGameTest.java b/tests/src/de/pokerth/test/RunRankingGameTest.java index f5042dac..1b4a6b8a 100644 --- a/tests/src/de/pokerth/test/RunRankingGameTest.java +++ b/tests/src/de/pokerth/test/RunRankingGameTest.java @@ -207,7 +207,7 @@ public class RunRankingGameTest extends TestBase { .setGameId(gameId) .setGameState(msg.getPlayersTurnMessage().getGameState()) .setHandNum(handNum) - .setMyAction(NetPlayerAction.actionAllIn) + .setMyAction(NetPlayerAction.netActionAllIn) .setMyRelativeBet(0) .build(); PokerTHMessage outMsg = PokerTHMessage.newBuilder() @@ -228,7 +228,7 @@ public class RunRankingGameTest extends TestBase { .setGameId(gameId) .setGameState(inMsg.getPlayersTurnMessage().getGameState()) .setHandNum(handNum) - .setMyAction(NetPlayerAction.actionFold) + .setMyAction(NetPlayerAction.netActionFold) .setMyRelativeBet(0) .build(); PokerTHMessage outMsg = PokerTHMessage.newBuilder() diff --git a/tests/src/de/pokerth/test/SeatStateTest.java b/tests/src/de/pokerth/test/SeatStateTest.java index 70d64444..fb32229a 100644 --- a/tests/src/de/pokerth/test/SeatStateTest.java +++ b/tests/src/de/pokerth/test/SeatStateTest.java @@ -131,7 +131,7 @@ public class SeatStateTest extends TestBase { assertEquals(10, seatStates.size()); for (Iterator it = seatStates.iterator(); it.hasNext(); ) { NetPlayerState state = it.next(); - assertEquals(NetPlayerState.playerStateNormal, state); + assertEquals(NetPlayerState.netPlayerStateNormal, state); } // All other players leave (and are in autofold state then). for (int i = 0; i < 9; i++) { @@ -152,12 +152,12 @@ public class SeatStateTest extends TestBase { int seatPos = 0; for (Iterator it = seatStates.iterator(); it.hasNext(); ) { NetPlayerState state = it.next(); - assertTrue(NetPlayerState.playerStateNoMoney != state); - if (NetPlayerState.playerStateNormal == state) { + assertTrue(NetPlayerState.netPlayerStateNoMoney != state); + if (NetPlayerState.netPlayerStateNormal == state) { assertEquals(firstPlayerPos, seatPos); stateNormalCounter++; } - if (NetPlayerState.playerStateSessionInactive == state) { + if (NetPlayerState.netPlayerStateSessionInactive == state) { stateInactiveCounter++; } seatPos++;