joinBuilder.setGameInfo(gameInfo);
joinBuilder.setAutoLeave(autoLeave);
if (!password.isEmpty()) {
joinBuilder.setPassword(password);
}
JoinNewGameMessage joinNew = joinBuilder.build();
PokerTHMessage msg = PokerTHMessage.newBuilder()
.setMessageType(PokerTHMessageType.Type_JoinNewGameMessage)
.setJoinNewGameMessage(joinNew)
.build();