Gogs 3 周之前
父節點
當前提交
4d84445bc7
共有 76 個文件被更改,包括 7808 次插入0 次删除
  1. 70 0
      generated/Common_pack/BeKickLogin.php
  2. 58 0
      generated/Common_pack/BuyShopItem.php
  3. 195 0
      generated/Common_pack/ChatMessage.php
  4. 301 0
      generated/Common_pack/ColorData.php
  5. 60 0
      generated/Common_pack/EnterHall.php
  6. 151 0
      generated/Common_pack/FriendRequestItem.php
  7. 139 0
      generated/Common_pack/HistoryRecord.php
  8. 60 0
      generated/Common_pack/LeaveHall.php
  9. 114 0
      generated/Common_pack/MatchLudo.php
  10. 112 0
      generated/Common_pack/MoveStepData.php
  11. 87 0
      generated/Common_pack/MsgError.php
  12. 70 0
      generated/Common_pack/NotifyOptFriend.php
  13. 136 0
      generated/Common_pack/NotifyPlayerMove.php
  14. 153 0
      generated/Common_pack/NotifyPlayerOpt.php
  15. 156 0
      generated/Common_pack/NotifyPlayerStatus.php
  16. 136 0
      generated/Common_pack/NotifyPlayerSzNumber.php
  17. 92 0
      generated/Common_pack/NotifySettlement.php
  18. 75 0
      generated/Common_pack/NotifyUpdateRoomInfo.php
  19. 70 0
      generated/Common_pack/OptAddFriendRequest.php
  20. 53 0
      generated/Common_pack/OptType.php
  21. 70 0
      generated/Common_pack/RecvAddFriendRequest.php
  22. 70 0
      generated/Common_pack/RecvChatMsg.php
  23. 87 0
      generated/Common_pack/ReqAddFriend.php
  24. 87 0
      generated/Common_pack/ReqChatHistory.php
  25. 60 0
      generated/Common_pack/ReqDeleteFriend.php
  26. 60 0
      generated/Common_pack/ReqFriendList.php
  27. 60 0
      generated/Common_pack/ReqFriendRequestList.php
  28. 58 0
      generated/Common_pack/ReqHeartBeat.php
  29. 87 0
      generated/Common_pack/ReqLogin.php
  30. 58 0
      generated/Common_pack/ReqLudoHistory.php
  31. 58 0
      generated/Common_pack/ReqLudoRoomInfo.php
  32. 141 0
      generated/Common_pack/ReqRegister.php
  33. 135 0
      generated/Common_pack/ReqSendChatMsg.php
  34. 60 0
      generated/Common_pack/ReqShop.php
  35. 209 0
      generated/Common_pack/RequestAddFriendItem.php
  36. 124 0
      generated/Common_pack/ResChatHistory.php
  37. 97 0
      generated/Common_pack/ResDeleteFriend.php
  38. 134 0
      generated/Common_pack/ResEnterHall.php
  39. 124 0
      generated/Common_pack/ResFriendList.php
  40. 134 0
      generated/Common_pack/ResFriendOnLineStatus.php
  41. 124 0
      generated/Common_pack/ResFriendRequestList.php
  42. 58 0
      generated/Common_pack/ResHeartBeat.php
  43. 161 0
      generated/Common_pack/ResLogin.php
  44. 122 0
      generated/Common_pack/ResLudoHistory.php
  45. 132 0
      generated/Common_pack/ResLudoRoomInfo.php
  46. 134 0
      generated/Common_pack/ResMatchLudo.php
  47. 97 0
      generated/Common_pack/ResRegister.php
  48. 134 0
      generated/Common_pack/ResSearchUser.php
  49. 95 0
      generated/Common_pack/ResSendChatMsg.php
  50. 124 0
      generated/Common_pack/ResShop.php
  51. 193 0
      generated/Common_pack/RoleData.php
  52. 420 0
      generated/Common_pack/RoomInfo.php
  53. 60 0
      generated/Common_pack/SearchUser.php
  54. 65 0
      generated/Common_pack/SendColorSz.php
  55. 65 0
      generated/Common_pack/SendQuitRoom.php
  56. 92 0
      generated/Common_pack/SendRoleMove.php
  57. 139 0
      generated/Common_pack/ShopItem.php
  58. 70 0
      generated/Common_pack/UpdateUserInfo.php
  59. 209 0
      generated/Common_pack/UserInfo.php
  60. 63 0
      generated/Common_pack/playerStatus.php
  61. 48 0
      generated/Common_pack/roadType.php
  62. 65 0
      generated/Common_pack/roleType.php
  63. 53 0
      generated/Common_pack/roomMode.php
  64. 53 0
      generated/Common_pack/roomStatus.php
  65. 53 0
      generated/Common_pack/roomType.php
  66. 139 0
      generated/Common_pack/round.php
  67. 30 0
      generated/GPBMetadata/Bag.php
  68. 二進制
      generated/GPBMetadata/Common.php
  69. 二進制
      generated/GPBMetadata/Mail.php
  70. 83 0
      generated/ItemRequest.php
  71. 166 0
      generated/MailInfo.php
  72. 85 0
      generated/OptMail.php
  73. 60 0
      generated/OptMailType.php
  74. 85 0
      generated/ReqMail.php
  75. 122 0
      generated/ResMail.php
  76. 8 0
      generated/composer.json

+ 70 - 0
generated/Common_pack/BeKickLogin.php

@@ -0,0 +1,70 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *被踢登陆
+ *
+ * Generated from protobuf message <code>common_pack.BeKickLogin</code>
+ */
+class BeKickLogin extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 1;</code>
+     */
+    protected $err_msg = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type \Common_pack\MsgError $err_msg
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 1;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 1;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+}
+

+ 58 - 0
generated/Common_pack/BuyShopItem.php

@@ -0,0 +1,58 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.BuyShopItem</code>
+ */
+class BuyShopItem extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string id = 1;</code>
+     */
+    protected $id = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $id
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string id = 1;</code>
+     * @return string
+     */
+    public function getId()
+    {
+        return $this->id;
+    }
+
+    /**
+     * Generated from protobuf field <code>string id = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->id = $var;
+
+        return $this;
+    }
+
+}
+

+ 195 - 0
generated/Common_pack/ChatMessage.php

@@ -0,0 +1,195 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *聊天消息
+ *
+ * Generated from protobuf message <code>common_pack.ChatMessage</code>
+ */
+class ChatMessage extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>int32 id = 1;</code>
+     */
+    protected $id = 0;
+    /**
+     * Generated from protobuf field <code>string session_id = 2;</code>
+     */
+    protected $session_id = '';
+    /**
+     * Generated from protobuf field <code>string sender_id = 3;</code>
+     */
+    protected $sender_id = '';
+    /**
+     * Generated from protobuf field <code>string content = 4;</code>
+     */
+    protected $content = '';
+    /**
+     * Generated from protobuf field <code>string created_at = 5;</code>
+     */
+    protected $created_at = '';
+    /**
+     * Generated from protobuf field <code>string content_type = 6;</code>
+     */
+    protected $content_type = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $id
+     *     @type string $session_id
+     *     @type string $sender_id
+     *     @type string $content
+     *     @type string $created_at
+     *     @type string $content_type
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 id = 1;</code>
+     * @return int
+     */
+    public function getId()
+    {
+        return $this->id;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 id = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setId($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->id = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string session_id = 2;</code>
+     * @return string
+     */
+    public function getSessionId()
+    {
+        return $this->session_id;
+    }
+
+    /**
+     * Generated from protobuf field <code>string session_id = 2;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setSessionId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->session_id = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string sender_id = 3;</code>
+     * @return string
+     */
+    public function getSenderId()
+    {
+        return $this->sender_id;
+    }
+
+    /**
+     * Generated from protobuf field <code>string sender_id = 3;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setSenderId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->sender_id = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string content = 4;</code>
+     * @return string
+     */
+    public function getContent()
+    {
+        return $this->content;
+    }
+
+    /**
+     * Generated from protobuf field <code>string content = 4;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setContent($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->content = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string created_at = 5;</code>
+     * @return string
+     */
+    public function getCreatedAt()
+    {
+        return $this->created_at;
+    }
+
+    /**
+     * Generated from protobuf field <code>string created_at = 5;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setCreatedAt($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->created_at = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string content_type = 6;</code>
+     * @return string
+     */
+    public function getContentType()
+    {
+        return $this->content_type;
+    }
+
+    /**
+     * Generated from protobuf field <code>string content_type = 6;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setContentType($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->content_type = $var;
+
+        return $this;
+    }
+
+}
+

+ 301 - 0
generated/Common_pack/ColorData.php

@@ -0,0 +1,301 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.ColorData</code>
+ */
+class ColorData extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string m_id = 1;</code>
+     */
+    protected $m_id = '';
+    /**
+     * Generated from protobuf field <code>.common_pack.roleType m_color = 2;</code>
+     */
+    protected $m_color = 0;
+    /**
+     * Generated from protobuf field <code>bool is_kick = 3;</code>
+     */
+    protected $is_kick = false;
+    /**
+     * Generated from protobuf field <code>bool is_finish = 4;</code>
+     */
+    protected $is_finish = false;
+    /**
+     * Generated from protobuf field <code>int32 time_out_num = 5;</code>
+     */
+    protected $time_out_num = 0;
+    /**
+     * Generated from protobuf field <code>string m_name = 6;</code>
+     */
+    protected $m_name = '';
+    /**
+     * Generated from protobuf field <code>string m_head = 7;</code>
+     */
+    protected $m_head = '';
+    /**
+     * Generated from protobuf field <code>int32 rank_num = 8;</code>
+     */
+    protected $rank_num = 0;
+    /**
+     * Generated from protobuf field <code>int32 m_coin = 9;</code>
+     */
+    protected $m_coin = 0;
+    /**
+     * Generated from protobuf field <code>int32 m_reward_coin = 10;</code>
+     */
+    protected $m_reward_coin = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $m_id
+     *     @type int $m_color
+     *     @type bool $is_kick
+     *     @type bool $is_finish
+     *     @type int $time_out_num
+     *     @type string $m_name
+     *     @type string $m_head
+     *     @type int $rank_num
+     *     @type int $m_coin
+     *     @type int $m_reward_coin
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_id = 1;</code>
+     * @return string
+     */
+    public function getMId()
+    {
+        return $this->m_id;
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_id = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setMId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->m_id = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roleType m_color = 2;</code>
+     * @return int
+     */
+    public function getMColor()
+    {
+        return $this->m_color;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roleType m_color = 2;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setMColor($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roleType::class);
+        $this->m_color = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool is_kick = 3;</code>
+     * @return bool
+     */
+    public function getIsKick()
+    {
+        return $this->is_kick;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool is_kick = 3;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setIsKick($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->is_kick = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool is_finish = 4;</code>
+     * @return bool
+     */
+    public function getIsFinish()
+    {
+        return $this->is_finish;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool is_finish = 4;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setIsFinish($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->is_finish = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 time_out_num = 5;</code>
+     * @return int
+     */
+    public function getTimeOutNum()
+    {
+        return $this->time_out_num;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 time_out_num = 5;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setTimeOutNum($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->time_out_num = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_name = 6;</code>
+     * @return string
+     */
+    public function getMName()
+    {
+        return $this->m_name;
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_name = 6;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setMName($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->m_name = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_head = 7;</code>
+     * @return string
+     */
+    public function getMHead()
+    {
+        return $this->m_head;
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_head = 7;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setMHead($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->m_head = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 rank_num = 8;</code>
+     * @return int
+     */
+    public function getRankNum()
+    {
+        return $this->rank_num;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 rank_num = 8;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setRankNum($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->rank_num = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 m_coin = 9;</code>
+     * @return int
+     */
+    public function getMCoin()
+    {
+        return $this->m_coin;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 m_coin = 9;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setMCoin($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->m_coin = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 m_reward_coin = 10;</code>
+     * @return int
+     */
+    public function getMRewardCoin()
+    {
+        return $this->m_reward_coin;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 m_reward_coin = 10;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setMRewardCoin($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->m_reward_coin = $var;
+
+        return $this;
+    }
+
+}
+

+ 60 - 0
generated/Common_pack/EnterHall.php

@@ -0,0 +1,60 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *进入大厅
+ *
+ * Generated from protobuf message <code>common_pack.EnterHall</code>
+ */
+class EnterHall extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string userId = 1;</code>
+     */
+    protected $userId = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $userId
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string userId = 1;</code>
+     * @return string
+     */
+    public function getUserId()
+    {
+        return $this->userId;
+    }
+
+    /**
+     * Generated from protobuf field <code>string userId = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setUserId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->userId = $var;
+
+        return $this;
+    }
+
+}
+

+ 151 - 0
generated/Common_pack/FriendRequestItem.php

@@ -0,0 +1,151 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *请求好友申请单个数据
+ *
+ * Generated from protobuf message <code>common_pack.FriendRequestItem</code>
+ */
+class FriendRequestItem extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo info = 1;</code>
+     */
+    protected $info = null;
+    /**
+     * Generated from protobuf field <code>string request_msg = 2;</code>
+     */
+    protected $request_msg = '';
+    /**
+     * Generated from protobuf field <code>string create_time = 3;</code>
+     */
+    protected $create_time = '';
+    /**
+     * Generated from protobuf field <code>int32 status = 4;</code>
+     */
+    protected $status = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type \Common_pack\UserInfo $info
+     *     @type string $request_msg
+     *     @type string $create_time
+     *     @type int $status
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo info = 1;</code>
+     * @return \Common_pack\UserInfo|null
+     */
+    public function getInfo()
+    {
+        return $this->info;
+    }
+
+    public function hasInfo()
+    {
+        return isset($this->info);
+    }
+
+    public function clearInfo()
+    {
+        unset($this->info);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo info = 1;</code>
+     * @param \Common_pack\UserInfo $var
+     * @return $this
+     */
+    public function setInfo($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\UserInfo::class);
+        $this->info = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string request_msg = 2;</code>
+     * @return string
+     */
+    public function getRequestMsg()
+    {
+        return $this->request_msg;
+    }
+
+    /**
+     * Generated from protobuf field <code>string request_msg = 2;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setRequestMsg($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->request_msg = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string create_time = 3;</code>
+     * @return string
+     */
+    public function getCreateTime()
+    {
+        return $this->create_time;
+    }
+
+    /**
+     * Generated from protobuf field <code>string create_time = 3;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setCreateTime($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->create_time = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 status = 4;</code>
+     * @return int
+     */
+    public function getStatus()
+    {
+        return $this->status;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 status = 4;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setStatus($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->status = $var;
+
+        return $this;
+    }
+
+}
+

+ 139 - 0
generated/Common_pack/HistoryRecord.php

@@ -0,0 +1,139 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.HistoryRecord</code>
+ */
+class HistoryRecord extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>int32 id = 1;</code>
+     */
+    protected $id = 0;
+    /**
+     * Generated from protobuf field <code>int32 room_id = 2;</code>
+     */
+    protected $room_id = 0;
+    /**
+     * Generated from protobuf field <code>string user_id = 3;</code>
+     */
+    protected $user_id = '';
+    /**
+     * Generated from protobuf field <code>string time = 4;</code>
+     */
+    protected $time = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $id
+     *     @type int $room_id
+     *     @type string $user_id
+     *     @type string $time
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 id = 1;</code>
+     * @return int
+     */
+    public function getId()
+    {
+        return $this->id;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 id = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setId($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->id = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 room_id = 2;</code>
+     * @return int
+     */
+    public function getRoomId()
+    {
+        return $this->room_id;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 room_id = 2;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setRoomId($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->room_id = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string user_id = 3;</code>
+     * @return string
+     */
+    public function getUserId()
+    {
+        return $this->user_id;
+    }
+
+    /**
+     * Generated from protobuf field <code>string user_id = 3;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setUserId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->user_id = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string time = 4;</code>
+     * @return string
+     */
+    public function getTime()
+    {
+        return $this->time;
+    }
+
+    /**
+     * Generated from protobuf field <code>string time = 4;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setTime($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->time = $var;
+
+        return $this;
+    }
+
+}
+

+ 60 - 0
generated/Common_pack/LeaveHall.php

@@ -0,0 +1,60 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *离开大厅
+ *
+ * Generated from protobuf message <code>common_pack.LeaveHall</code>
+ */
+class LeaveHall extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string userId = 1;</code>
+     */
+    protected $userId = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $userId
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string userId = 1;</code>
+     * @return string
+     */
+    public function getUserId()
+    {
+        return $this->userId;
+    }
+
+    /**
+     * Generated from protobuf field <code>string userId = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setUserId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->userId = $var;
+
+        return $this;
+    }
+
+}
+

+ 114 - 0
generated/Common_pack/MatchLudo.php

@@ -0,0 +1,114 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *匹配ludo
+ *
+ * Generated from protobuf message <code>common_pack.MatchLudo</code>
+ */
+class MatchLudo extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>.common_pack.roomType select_room_type = 1;</code>
+     */
+    protected $select_room_type = 0;
+    /**
+     * Generated from protobuf field <code>int32 room_level = 2;</code>
+     */
+    protected $room_level = 0;
+    /**
+     * Generated from protobuf field <code>.common_pack.roleType select_color = 3;</code>
+     */
+    protected $select_color = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $select_room_type
+     *     @type int $room_level
+     *     @type int $select_color
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roomType select_room_type = 1;</code>
+     * @return int
+     */
+    public function getSelectRoomType()
+    {
+        return $this->select_room_type;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roomType select_room_type = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setSelectRoomType($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roomType::class);
+        $this->select_room_type = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 room_level = 2;</code>
+     * @return int
+     */
+    public function getRoomLevel()
+    {
+        return $this->room_level;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 room_level = 2;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setRoomLevel($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->room_level = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roleType select_color = 3;</code>
+     * @return int
+     */
+    public function getSelectColor()
+    {
+        return $this->select_color;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roleType select_color = 3;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setSelectColor($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roleType::class);
+        $this->select_color = $var;
+
+        return $this;
+    }
+
+}
+

+ 112 - 0
generated/Common_pack/MoveStepData.php

@@ -0,0 +1,112 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.MoveStepData</code>
+ */
+class MoveStepData extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string m_id = 1;</code>
+     */
+    protected $m_id = '';
+    /**
+     * Generated from protobuf field <code>int32 step = 2;</code>
+     */
+    protected $step = 0;
+    /**
+     * Generated from protobuf field <code>int32 old_setp = 3;</code>
+     */
+    protected $old_setp = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $m_id
+     *     @type int $step
+     *     @type int $old_setp
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_id = 1;</code>
+     * @return string
+     */
+    public function getMId()
+    {
+        return $this->m_id;
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_id = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setMId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->m_id = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 step = 2;</code>
+     * @return int
+     */
+    public function getStep()
+    {
+        return $this->step;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 step = 2;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setStep($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->step = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 old_setp = 3;</code>
+     * @return int
+     */
+    public function getOldSetp()
+    {
+        return $this->old_setp;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 old_setp = 3;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setOldSetp($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->old_setp = $var;
+
+        return $this;
+    }
+
+}
+

+ 87 - 0
generated/Common_pack/MsgError.php

@@ -0,0 +1,87 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *error
+ *
+ * Generated from protobuf message <code>common_pack.MsgError</code>
+ */
+class MsgError extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>int32 error_code = 1;</code>
+     */
+    protected $error_code = 0;
+    /**
+     * Generated from protobuf field <code>string error_msg = 2;</code>
+     */
+    protected $error_msg = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $error_code
+     *     @type string $error_msg
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 error_code = 1;</code>
+     * @return int
+     */
+    public function getErrorCode()
+    {
+        return $this->error_code;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 error_code = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setErrorCode($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->error_code = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string error_msg = 2;</code>
+     * @return string
+     */
+    public function getErrorMsg()
+    {
+        return $this->error_msg;
+    }
+
+    /**
+     * Generated from protobuf field <code>string error_msg = 2;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setErrorMsg($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->error_msg = $var;
+
+        return $this;
+    }
+
+}
+

+ 70 - 0
generated/Common_pack/NotifyOptFriend.php

@@ -0,0 +1,70 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *通知请求的玩家,对方的操作结果
+ *
+ * Generated from protobuf message <code>common_pack.NotifyOptFriend</code>
+ */
+class NotifyOptFriend extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>.common_pack.RequestAddFriendItem info = 1;</code>
+     */
+    protected $info = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type \Common_pack\RequestAddFriendItem $info
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.RequestAddFriendItem info = 1;</code>
+     * @return \Common_pack\RequestAddFriendItem|null
+     */
+    public function getInfo()
+    {
+        return $this->info;
+    }
+
+    public function hasInfo()
+    {
+        return isset($this->info);
+    }
+
+    public function clearInfo()
+    {
+        unset($this->info);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.RequestAddFriendItem info = 1;</code>
+     * @param \Common_pack\RequestAddFriendItem $var
+     * @return $this
+     */
+    public function setInfo($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\RequestAddFriendItem::class);
+        $this->info = $var;
+
+        return $this;
+    }
+
+}
+

+ 136 - 0
generated/Common_pack/NotifyPlayerMove.php

@@ -0,0 +1,136 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.NotifyPlayerMove</code>
+ */
+class NotifyPlayerMove extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     */
+    protected $color = 0;
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.MoveStepData step = 2;</code>
+     */
+    protected $step = null;
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.RoleData kick = 3;</code>
+     */
+    private $kick;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $color
+     *           
+     *     @type \Common_pack\MoveStepData $step
+     *           
+     *     @type \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $kick
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @return int
+     */
+    public function getColor()
+    {
+        return $this->color;
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setColor($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roleType::class);
+        $this->color = $var;
+
+        return $this;
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.MoveStepData step = 2;</code>
+     * @return \Common_pack\MoveStepData|null
+     */
+    public function getStep()
+    {
+        return $this->step;
+    }
+
+    public function hasStep()
+    {
+        return isset($this->step);
+    }
+
+    public function clearStep()
+    {
+        unset($this->step);
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.MoveStepData step = 2;</code>
+     * @param \Common_pack\MoveStepData $var
+     * @return $this
+     */
+    public function setStep($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MoveStepData::class);
+        $this->step = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.RoleData kick = 3;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getKick()
+    {
+        return $this->kick;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.RoleData kick = 3;</code>
+     * @param \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setKick($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\RoleData::class);
+        $this->kick = $arr;
+
+        return $this;
+    }
+
+}
+

+ 153 - 0
generated/Common_pack/NotifyPlayerOpt.php

@@ -0,0 +1,153 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.NotifyPlayerOpt</code>
+ */
+class NotifyPlayerOpt extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     */
+    protected $color = 0;
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.OptType opt = 2;</code>
+     */
+    protected $opt = 0;
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.RoleData canMoveRoles = 3;</code>
+     */
+    private $canMoveRoles;
+    /**
+     * Generated from protobuf field <code>int32 opt_time = 4;</code>
+     */
+    protected $opt_time = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $color
+     *           
+     *     @type int $opt
+     *           
+     *     @type \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $canMoveRoles
+     *     @type int $opt_time
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @return int
+     */
+    public function getColor()
+    {
+        return $this->color;
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setColor($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roleType::class);
+        $this->color = $var;
+
+        return $this;
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.OptType opt = 2;</code>
+     * @return int
+     */
+    public function getOpt()
+    {
+        return $this->opt;
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.OptType opt = 2;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setOpt($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\OptType::class);
+        $this->opt = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.RoleData canMoveRoles = 3;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getCanMoveRoles()
+    {
+        return $this->canMoveRoles;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.RoleData canMoveRoles = 3;</code>
+     * @param \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setCanMoveRoles($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\RoleData::class);
+        $this->canMoveRoles = $arr;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 opt_time = 4;</code>
+     * @return int
+     */
+    public function getOptTime()
+    {
+        return $this->opt_time;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 opt_time = 4;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setOptTime($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->opt_time = $var;
+
+        return $this;
+    }
+
+}
+

+ 156 - 0
generated/Common_pack/NotifyPlayerStatus.php

@@ -0,0 +1,156 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.NotifyPlayerStatus</code>
+ */
+class NotifyPlayerStatus extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     */
+    protected $color = 0;
+    /**
+     * Generated from protobuf field <code>.common_pack.playerStatus status = 2;</code>
+     */
+    protected $status = 0;
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 3;</code>
+     */
+    private $colors;
+    /**
+     * Generated from protobuf field <code>.common_pack.ColorData time_out_color = 4;</code>
+     */
+    protected $time_out_color = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $color
+     *           
+     *     @type int $status
+     *     @type \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $colors
+     *     @type \Common_pack\ColorData $time_out_color
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @return int
+     */
+    public function getColor()
+    {
+        return $this->color;
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setColor($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roleType::class);
+        $this->color = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.playerStatus status = 2;</code>
+     * @return int
+     */
+    public function getStatus()
+    {
+        return $this->status;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.playerStatus status = 2;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setStatus($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\playerStatus::class);
+        $this->status = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 3;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getColors()
+    {
+        return $this->colors;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 3;</code>
+     * @param \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setColors($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ColorData::class);
+        $this->colors = $arr;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.ColorData time_out_color = 4;</code>
+     * @return \Common_pack\ColorData|null
+     */
+    public function getTimeOutColor()
+    {
+        return $this->time_out_color;
+    }
+
+    public function hasTimeOutColor()
+    {
+        return isset($this->time_out_color);
+    }
+
+    public function clearTimeOutColor()
+    {
+        unset($this->time_out_color);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.ColorData time_out_color = 4;</code>
+     * @param \Common_pack\ColorData $var
+     * @return $this
+     */
+    public function setTimeOutColor($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\ColorData::class);
+        $this->time_out_color = $var;
+
+        return $this;
+    }
+
+}
+

+ 136 - 0
generated/Common_pack/NotifyPlayerSzNumber.php

@@ -0,0 +1,136 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.NotifyPlayerSzNumber</code>
+ */
+class NotifyPlayerSzNumber extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     */
+    protected $color = 0;
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>int32 szNumber = 2;</code>
+     */
+    protected $szNumber = 0;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 3;</code>
+     */
+    protected $err_msg = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $color
+     *           
+     *     @type int $szNumber
+     *           
+     *     @type \Common_pack\MsgError $err_msg
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @return int
+     */
+    public function getColor()
+    {
+        return $this->color;
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setColor($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roleType::class);
+        $this->color = $var;
+
+        return $this;
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>int32 szNumber = 2;</code>
+     * @return int
+     */
+    public function getSzNumber()
+    {
+        return $this->szNumber;
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>int32 szNumber = 2;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setSzNumber($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->szNumber = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 3;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 3;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+}
+

+ 92 - 0
generated/Common_pack/NotifySettlement.php

@@ -0,0 +1,92 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.NotifySettlement</code>
+ */
+class NotifySettlement extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     */
+    protected $color = 0;
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 2;</code>
+     */
+    private $finish_colors;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $color
+     *           
+     *     @type \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $finish_colors
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @return int
+     */
+    public function getColor()
+    {
+        return $this->color;
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setColor($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roleType::class);
+        $this->color = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 2;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getFinishColors()
+    {
+        return $this->finish_colors;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 2;</code>
+     * @param \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setFinishColors($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ColorData::class);
+        $this->finish_colors = $arr;
+
+        return $this;
+    }
+
+}
+

+ 75 - 0
generated/Common_pack/NotifyUpdateRoomInfo.php

@@ -0,0 +1,75 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.NotifyUpdateRoomInfo</code>
+ */
+class NotifyUpdateRoomInfo extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.RoomInfo room_info = 1;</code>
+     */
+    protected $room_info = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type \Common_pack\RoomInfo $room_info
+     *           
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.RoomInfo room_info = 1;</code>
+     * @return \Common_pack\RoomInfo|null
+     */
+    public function getRoomInfo()
+    {
+        return $this->room_info;
+    }
+
+    public function hasRoomInfo()
+    {
+        return isset($this->room_info);
+    }
+
+    public function clearRoomInfo()
+    {
+        unset($this->room_info);
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.RoomInfo room_info = 1;</code>
+     * @param \Common_pack\RoomInfo $var
+     * @return $this
+     */
+    public function setRoomInfo($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\RoomInfo::class);
+        $this->room_info = $var;
+
+        return $this;
+    }
+
+}
+

+ 70 - 0
generated/Common_pack/OptAddFriendRequest.php

@@ -0,0 +1,70 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *接收到的玩家对消息进行操作
+ *
+ * Generated from protobuf message <code>common_pack.OptAddFriendRequest</code>
+ */
+class OptAddFriendRequest extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>.common_pack.RequestAddFriendItem info = 1;</code>
+     */
+    protected $info = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type \Common_pack\RequestAddFriendItem $info
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.RequestAddFriendItem info = 1;</code>
+     * @return \Common_pack\RequestAddFriendItem|null
+     */
+    public function getInfo()
+    {
+        return $this->info;
+    }
+
+    public function hasInfo()
+    {
+        return isset($this->info);
+    }
+
+    public function clearInfo()
+    {
+        unset($this->info);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.RequestAddFriendItem info = 1;</code>
+     * @param \Common_pack\RequestAddFriendItem $var
+     * @return $this
+     */
+    public function setInfo($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\RequestAddFriendItem::class);
+        $this->info = $var;
+
+        return $this;
+    }
+
+}
+

+ 53 - 0
generated/Common_pack/OptType.php

@@ -0,0 +1,53 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use UnexpectedValueException;
+
+/**
+ * Protobuf type <code>common_pack.OptType</code>
+ */
+class OptType
+{
+    /**
+     * Generated from protobuf enum <code>OPT_TYPE_UNKNOWN = 0;</code>
+     */
+    const OPT_TYPE_UNKNOWN = 0;
+    /**
+     * Generated from protobuf enum <code>ZHI_SHAI_ZI = 1;</code>
+     */
+    const ZHI_SHAI_ZI = 1;
+    /**
+     * Generated from protobuf enum <code>SELECT_ROLE = 2;</code>
+     */
+    const SELECT_ROLE = 2;
+
+    private static $valueToName = [
+        self::OPT_TYPE_UNKNOWN => 'OPT_TYPE_UNKNOWN',
+        self::ZHI_SHAI_ZI => 'ZHI_SHAI_ZI',
+        self::SELECT_ROLE => 'SELECT_ROLE',
+    ];
+
+    public static function name($value)
+    {
+        if (!isset(self::$valueToName[$value])) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no name defined for value %s', __CLASS__, $value));
+        }
+        return self::$valueToName[$value];
+    }
+
+
+    public static function value($name)
+    {
+        $const = __CLASS__ . '::' . strtoupper($name);
+        if (!defined($const)) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no value defined for name %s', __CLASS__, $name));
+        }
+        return constant($const);
+    }
+}
+

+ 70 - 0
generated/Common_pack/RecvAddFriendRequest.php

@@ -0,0 +1,70 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *客户端接收到请求消息
+ *
+ * Generated from protobuf message <code>common_pack.RecvAddFriendRequest</code>
+ */
+class RecvAddFriendRequest extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo info = 1;</code>
+     */
+    protected $info = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type \Common_pack\UserInfo $info
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo info = 1;</code>
+     * @return \Common_pack\UserInfo|null
+     */
+    public function getInfo()
+    {
+        return $this->info;
+    }
+
+    public function hasInfo()
+    {
+        return isset($this->info);
+    }
+
+    public function clearInfo()
+    {
+        unset($this->info);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo info = 1;</code>
+     * @param \Common_pack\UserInfo $var
+     * @return $this
+     */
+    public function setInfo($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\UserInfo::class);
+        $this->info = $var;
+
+        return $this;
+    }
+
+}
+

+ 70 - 0
generated/Common_pack/RecvChatMsg.php

@@ -0,0 +1,70 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *接收聊天内容
+ *
+ * Generated from protobuf message <code>common_pack.RecvChatMsg</code>
+ */
+class RecvChatMsg extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>.common_pack.ChatMessage info = 1;</code>
+     */
+    protected $info = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type \Common_pack\ChatMessage $info
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.ChatMessage info = 1;</code>
+     * @return \Common_pack\ChatMessage|null
+     */
+    public function getInfo()
+    {
+        return $this->info;
+    }
+
+    public function hasInfo()
+    {
+        return isset($this->info);
+    }
+
+    public function clearInfo()
+    {
+        unset($this->info);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.ChatMessage info = 1;</code>
+     * @param \Common_pack\ChatMessage $var
+     * @return $this
+     */
+    public function setInfo($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\ChatMessage::class);
+        $this->info = $var;
+
+        return $this;
+    }
+
+}
+

+ 87 - 0
generated/Common_pack/ReqAddFriend.php

@@ -0,0 +1,87 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *请求添加好友
+ *
+ * Generated from protobuf message <code>common_pack.ReqAddFriend</code>
+ */
+class ReqAddFriend extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string ToUserID = 1;</code>
+     */
+    protected $ToUserID = '';
+    /**
+     * Generated from protobuf field <code>string msg = 2;</code>
+     */
+    protected $msg = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $ToUserID
+     *     @type string $msg
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string ToUserID = 1;</code>
+     * @return string
+     */
+    public function getToUserID()
+    {
+        return $this->ToUserID;
+    }
+
+    /**
+     * Generated from protobuf field <code>string ToUserID = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setToUserID($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->ToUserID = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string msg = 2;</code>
+     * @return string
+     */
+    public function getMsg()
+    {
+        return $this->msg;
+    }
+
+    /**
+     * Generated from protobuf field <code>string msg = 2;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setMsg($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->msg = $var;
+
+        return $this;
+    }
+
+}
+

+ 87 - 0
generated/Common_pack/ReqChatHistory.php

@@ -0,0 +1,87 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *请求获取聊天历史
+ *
+ * Generated from protobuf message <code>common_pack.ReqChatHistory</code>
+ */
+class ReqChatHistory extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string to_userid = 1;</code>
+     */
+    protected $to_userid = '';
+    /**
+     * Generated from protobuf field <code>int32 last_msgid = 2;</code>
+     */
+    protected $last_msgid = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $to_userid
+     *     @type int $last_msgid
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string to_userid = 1;</code>
+     * @return string
+     */
+    public function getToUserid()
+    {
+        return $this->to_userid;
+    }
+
+    /**
+     * Generated from protobuf field <code>string to_userid = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setToUserid($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->to_userid = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 last_msgid = 2;</code>
+     * @return int
+     */
+    public function getLastMsgid()
+    {
+        return $this->last_msgid;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 last_msgid = 2;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setLastMsgid($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->last_msgid = $var;
+
+        return $this;
+    }
+
+}
+

+ 60 - 0
generated/Common_pack/ReqDeleteFriend.php

@@ -0,0 +1,60 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *删除好友
+ *
+ * Generated from protobuf message <code>common_pack.ReqDeleteFriend</code>
+ */
+class ReqDeleteFriend extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string ToUserID = 1;</code>
+     */
+    protected $ToUserID = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $ToUserID
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string ToUserID = 1;</code>
+     * @return string
+     */
+    public function getToUserID()
+    {
+        return $this->ToUserID;
+    }
+
+    /**
+     * Generated from protobuf field <code>string ToUserID = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setToUserID($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->ToUserID = $var;
+
+        return $this;
+    }
+
+}
+

+ 60 - 0
generated/Common_pack/ReqFriendList.php

@@ -0,0 +1,60 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *请求好友列表
+ *
+ * Generated from protobuf message <code>common_pack.ReqFriendList</code>
+ */
+class ReqFriendList extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string user_id = 1;</code>
+     */
+    protected $user_id = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $user_id
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string user_id = 1;</code>
+     * @return string
+     */
+    public function getUserId()
+    {
+        return $this->user_id;
+    }
+
+    /**
+     * Generated from protobuf field <code>string user_id = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setUserId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->user_id = $var;
+
+        return $this;
+    }
+
+}
+

+ 60 - 0
generated/Common_pack/ReqFriendRequestList.php

@@ -0,0 +1,60 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *请求好友申请列表
+ *
+ * Generated from protobuf message <code>common_pack.ReqFriendRequestList</code>
+ */
+class ReqFriendRequestList extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string user_id = 1;</code>
+     */
+    protected $user_id = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $user_id
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string user_id = 1;</code>
+     * @return string
+     */
+    public function getUserId()
+    {
+        return $this->user_id;
+    }
+
+    /**
+     * Generated from protobuf field <code>string user_id = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setUserId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->user_id = $var;
+
+        return $this;
+    }
+
+}
+

+ 58 - 0
generated/Common_pack/ReqHeartBeat.php

@@ -0,0 +1,58 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.ReqHeartBeat</code>
+ */
+class ReqHeartBeat extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string msg = 1;</code>
+     */
+    protected $msg = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $msg
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string msg = 1;</code>
+     * @return string
+     */
+    public function getMsg()
+    {
+        return $this->msg;
+    }
+
+    /**
+     * Generated from protobuf field <code>string msg = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setMsg($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->msg = $var;
+
+        return $this;
+    }
+
+}
+

+ 87 - 0
generated/Common_pack/ReqLogin.php

@@ -0,0 +1,87 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *登录 请求
+ *
+ * Generated from protobuf message <code>common_pack.ReqLogin</code>
+ */
+class ReqLogin extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string account = 1;</code>
+     */
+    protected $account = '';
+    /**
+     * Generated from protobuf field <code>string password = 2;</code>
+     */
+    protected $password = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $account
+     *     @type string $password
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string account = 1;</code>
+     * @return string
+     */
+    public function getAccount()
+    {
+        return $this->account;
+    }
+
+    /**
+     * Generated from protobuf field <code>string account = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setAccount($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->account = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string password = 2;</code>
+     * @return string
+     */
+    public function getPassword()
+    {
+        return $this->password;
+    }
+
+    /**
+     * Generated from protobuf field <code>string password = 2;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setPassword($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->password = $var;
+
+        return $this;
+    }
+
+}
+

+ 58 - 0
generated/Common_pack/ReqLudoHistory.php

@@ -0,0 +1,58 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.ReqLudoHistory</code>
+ */
+class ReqLudoHistory extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string user_id = 1;</code>
+     */
+    protected $user_id = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $user_id
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string user_id = 1;</code>
+     * @return string
+     */
+    public function getUserId()
+    {
+        return $this->user_id;
+    }
+
+    /**
+     * Generated from protobuf field <code>string user_id = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setUserId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->user_id = $var;
+
+        return $this;
+    }
+
+}
+

+ 58 - 0
generated/Common_pack/ReqLudoRoomInfo.php

@@ -0,0 +1,58 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.ReqLudoRoomInfo</code>
+ */
+class ReqLudoRoomInfo extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>int64 room_id = 1;</code>
+     */
+    protected $room_id = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int|string $room_id
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>int64 room_id = 1;</code>
+     * @return int|string
+     */
+    public function getRoomId()
+    {
+        return $this->room_id;
+    }
+
+    /**
+     * Generated from protobuf field <code>int64 room_id = 1;</code>
+     * @param int|string $var
+     * @return $this
+     */
+    public function setRoomId($var)
+    {
+        GPBUtil::checkInt64($var);
+        $this->room_id = $var;
+
+        return $this;
+    }
+
+}
+

+ 141 - 0
generated/Common_pack/ReqRegister.php

@@ -0,0 +1,141 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *注册 请求
+ *
+ * Generated from protobuf message <code>common_pack.ReqRegister</code>
+ */
+class ReqRegister extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string nikeName = 1;</code>
+     */
+    protected $nikeName = '';
+    /**
+     * Generated from protobuf field <code>string account = 2;</code>
+     */
+    protected $account = '';
+    /**
+     * Generated from protobuf field <code>string password = 3;</code>
+     */
+    protected $password = '';
+    /**
+     * Generated from protobuf field <code>string m_head = 4;</code>
+     */
+    protected $m_head = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $nikeName
+     *     @type string $account
+     *     @type string $password
+     *     @type string $m_head
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string nikeName = 1;</code>
+     * @return string
+     */
+    public function getNikeName()
+    {
+        return $this->nikeName;
+    }
+
+    /**
+     * Generated from protobuf field <code>string nikeName = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setNikeName($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->nikeName = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string account = 2;</code>
+     * @return string
+     */
+    public function getAccount()
+    {
+        return $this->account;
+    }
+
+    /**
+     * Generated from protobuf field <code>string account = 2;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setAccount($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->account = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string password = 3;</code>
+     * @return string
+     */
+    public function getPassword()
+    {
+        return $this->password;
+    }
+
+    /**
+     * Generated from protobuf field <code>string password = 3;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setPassword($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->password = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_head = 4;</code>
+     * @return string
+     */
+    public function getMHead()
+    {
+        return $this->m_head;
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_head = 4;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setMHead($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->m_head = $var;
+
+        return $this;
+    }
+
+}
+

+ 135 - 0
generated/Common_pack/ReqSendChatMsg.php

@@ -0,0 +1,135 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *发送聊天内容
+ *
+ * Generated from protobuf message <code>common_pack.ReqSendChatMsg</code>
+ */
+class ReqSendChatMsg extends \Google\Protobuf\Internal\Message
+{
+    /**
+     *消息类型
+     *
+     * Generated from protobuf field <code>string content_type = 1;</code>
+     */
+    protected $content_type = '';
+    /**
+     *发送给谁
+     *
+     * Generated from protobuf field <code>string to_userid = 2;</code>
+     */
+    protected $to_userid = '';
+    /**
+     *消息内容
+     *
+     * Generated from protobuf field <code>string content = 3;</code>
+     */
+    protected $content = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $content_type
+     *          消息类型
+     *     @type string $to_userid
+     *          发送给谁
+     *     @type string $content
+     *          消息内容
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     *消息类型
+     *
+     * Generated from protobuf field <code>string content_type = 1;</code>
+     * @return string
+     */
+    public function getContentType()
+    {
+        return $this->content_type;
+    }
+
+    /**
+     *消息类型
+     *
+     * Generated from protobuf field <code>string content_type = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setContentType($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->content_type = $var;
+
+        return $this;
+    }
+
+    /**
+     *发送给谁
+     *
+     * Generated from protobuf field <code>string to_userid = 2;</code>
+     * @return string
+     */
+    public function getToUserid()
+    {
+        return $this->to_userid;
+    }
+
+    /**
+     *发送给谁
+     *
+     * Generated from protobuf field <code>string to_userid = 2;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setToUserid($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->to_userid = $var;
+
+        return $this;
+    }
+
+    /**
+     *消息内容
+     *
+     * Generated from protobuf field <code>string content = 3;</code>
+     * @return string
+     */
+    public function getContent()
+    {
+        return $this->content;
+    }
+
+    /**
+     *消息内容
+     *
+     * Generated from protobuf field <code>string content = 3;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setContent($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->content = $var;
+
+        return $this;
+    }
+
+}
+

+ 60 - 0
generated/Common_pack/ReqShop.php

@@ -0,0 +1,60 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * 请求商城
+ *
+ * Generated from protobuf message <code>common_pack.ReqShop</code>
+ */
+class ReqShop extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>int32 shopType = 1;</code>
+     */
+    protected $shopType = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $shopType
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 shopType = 1;</code>
+     * @return int
+     */
+    public function getShopType()
+    {
+        return $this->shopType;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 shopType = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setShopType($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->shopType = $var;
+
+        return $this;
+    }
+
+}
+

+ 209 - 0
generated/Common_pack/RequestAddFriendItem.php

@@ -0,0 +1,209 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *好友请求的结构
+ *
+ * Generated from protobuf message <code>common_pack.RequestAddFriendItem</code>
+ */
+class RequestAddFriendItem extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>int32 id = 1;</code>
+     */
+    protected $id = 0;
+    /**
+     *请求id
+     *
+     * Generated from protobuf field <code>string RequestID = 2;</code>
+     */
+    protected $RequestID = '';
+    /**
+     * Generated from protobuf field <code>string FromUserID = 3;</code>
+     */
+    protected $FromUserID = '';
+    /**
+     * Generated from protobuf field <code>string ToUserID = 4;</code>
+     */
+    protected $ToUserID = '';
+    /**
+     *状态
+     *
+     * Generated from protobuf field <code>int32 Status = 5;</code>
+     */
+    protected $Status = 0;
+    /**
+     * Generated from protobuf field <code>string Message = 6;</code>
+     */
+    protected $Message = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $id
+     *     @type string $RequestID
+     *          请求id
+     *     @type string $FromUserID
+     *     @type string $ToUserID
+     *     @type int $Status
+     *          状态
+     *     @type string $Message
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 id = 1;</code>
+     * @return int
+     */
+    public function getId()
+    {
+        return $this->id;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 id = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setId($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->id = $var;
+
+        return $this;
+    }
+
+    /**
+     *请求id
+     *
+     * Generated from protobuf field <code>string RequestID = 2;</code>
+     * @return string
+     */
+    public function getRequestID()
+    {
+        return $this->RequestID;
+    }
+
+    /**
+     *请求id
+     *
+     * Generated from protobuf field <code>string RequestID = 2;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setRequestID($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->RequestID = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string FromUserID = 3;</code>
+     * @return string
+     */
+    public function getFromUserID()
+    {
+        return $this->FromUserID;
+    }
+
+    /**
+     * Generated from protobuf field <code>string FromUserID = 3;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setFromUserID($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->FromUserID = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string ToUserID = 4;</code>
+     * @return string
+     */
+    public function getToUserID()
+    {
+        return $this->ToUserID;
+    }
+
+    /**
+     * Generated from protobuf field <code>string ToUserID = 4;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setToUserID($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->ToUserID = $var;
+
+        return $this;
+    }
+
+    /**
+     *状态
+     *
+     * Generated from protobuf field <code>int32 Status = 5;</code>
+     * @return int
+     */
+    public function getStatus()
+    {
+        return $this->Status;
+    }
+
+    /**
+     *状态
+     *
+     * Generated from protobuf field <code>int32 Status = 5;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setStatus($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->Status = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string Message = 6;</code>
+     * @return string
+     */
+    public function getMessage()
+    {
+        return $this->Message;
+    }
+
+    /**
+     * Generated from protobuf field <code>string Message = 6;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setMessage($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->Message = $var;
+
+        return $this;
+    }
+
+}
+

+ 124 - 0
generated/Common_pack/ResChatHistory.php

@@ -0,0 +1,124 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *响应获取聊天历史
+ *
+ * Generated from protobuf message <code>common_pack.ResChatHistory</code>
+ */
+class ResChatHistory extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     */
+    protected $success = false;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     */
+    protected $err_msg = null;
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ChatMessage list = 3;</code>
+     */
+    private $list;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type bool $success
+     *     @type \Common_pack\MsgError $err_msg
+     *     @type \Common_pack\ChatMessage[]|\Google\Protobuf\Internal\RepeatedField $list
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @return bool
+     */
+    public function getSuccess()
+    {
+        return $this->success;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setSuccess($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->success = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ChatMessage list = 3;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getList()
+    {
+        return $this->list;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ChatMessage list = 3;</code>
+     * @param \Common_pack\ChatMessage[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setList($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ChatMessage::class);
+        $this->list = $arr;
+
+        return $this;
+    }
+
+}
+

+ 97 - 0
generated/Common_pack/ResDeleteFriend.php

@@ -0,0 +1,97 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *删除好友响应
+ *
+ * Generated from protobuf message <code>common_pack.ResDeleteFriend</code>
+ */
+class ResDeleteFriend extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     */
+    protected $success = false;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     */
+    protected $err_msg = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type bool $success
+     *     @type \Common_pack\MsgError $err_msg
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @return bool
+     */
+    public function getSuccess()
+    {
+        return $this->success;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setSuccess($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->success = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+}
+

+ 134 - 0
generated/Common_pack/ResEnterHall.php

@@ -0,0 +1,134 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *进入大厅响应
+ *
+ * Generated from protobuf message <code>common_pack.ResEnterHall</code>
+ */
+class ResEnterHall extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     */
+    protected $success = false;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     */
+    protected $err_msg = null;
+    /**
+     * Generated from protobuf field <code>.common_pack.RoomInfo reconnect_room_info = 3;</code>
+     */
+    protected $reconnect_room_info = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type bool $success
+     *     @type \Common_pack\MsgError $err_msg
+     *     @type \Common_pack\RoomInfo $reconnect_room_info
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @return bool
+     */
+    public function getSuccess()
+    {
+        return $this->success;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setSuccess($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->success = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.RoomInfo reconnect_room_info = 3;</code>
+     * @return \Common_pack\RoomInfo|null
+     */
+    public function getReconnectRoomInfo()
+    {
+        return $this->reconnect_room_info;
+    }
+
+    public function hasReconnectRoomInfo()
+    {
+        return isset($this->reconnect_room_info);
+    }
+
+    public function clearReconnectRoomInfo()
+    {
+        unset($this->reconnect_room_info);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.RoomInfo reconnect_room_info = 3;</code>
+     * @param \Common_pack\RoomInfo $var
+     * @return $this
+     */
+    public function setReconnectRoomInfo($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\RoomInfo::class);
+        $this->reconnect_room_info = $var;
+
+        return $this;
+    }
+
+}
+

+ 124 - 0
generated/Common_pack/ResFriendList.php

@@ -0,0 +1,124 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *响应好友列表请求,暂时没做分页
+ *
+ * Generated from protobuf message <code>common_pack.ResFriendList</code>
+ */
+class ResFriendList extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     */
+    protected $success = false;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     */
+    protected $err_msg = null;
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.UserInfo list = 3;</code>
+     */
+    private $list;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type bool $success
+     *     @type \Common_pack\MsgError $err_msg
+     *     @type \Common_pack\UserInfo[]|\Google\Protobuf\Internal\RepeatedField $list
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @return bool
+     */
+    public function getSuccess()
+    {
+        return $this->success;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setSuccess($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->success = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.UserInfo list = 3;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getList()
+    {
+        return $this->list;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.UserInfo list = 3;</code>
+     * @param \Common_pack\UserInfo[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setList($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\UserInfo::class);
+        $this->list = $arr;
+
+        return $this;
+    }
+
+}
+

+ 134 - 0
generated/Common_pack/ResFriendOnLineStatus.php

@@ -0,0 +1,134 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *好友上线/下线响应
+ *
+ * Generated from protobuf message <code>common_pack.ResFriendOnLineStatus</code>
+ */
+class ResFriendOnLineStatus extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     */
+    protected $success = false;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     */
+    protected $err_msg = null;
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo info = 3;</code>
+     */
+    protected $info = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type bool $success
+     *     @type \Common_pack\MsgError $err_msg
+     *     @type \Common_pack\UserInfo $info
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @return bool
+     */
+    public function getSuccess()
+    {
+        return $this->success;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setSuccess($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->success = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo info = 3;</code>
+     * @return \Common_pack\UserInfo|null
+     */
+    public function getInfo()
+    {
+        return $this->info;
+    }
+
+    public function hasInfo()
+    {
+        return isset($this->info);
+    }
+
+    public function clearInfo()
+    {
+        unset($this->info);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo info = 3;</code>
+     * @param \Common_pack\UserInfo $var
+     * @return $this
+     */
+    public function setInfo($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\UserInfo::class);
+        $this->info = $var;
+
+        return $this;
+    }
+
+}
+

+ 124 - 0
generated/Common_pack/ResFriendRequestList.php

@@ -0,0 +1,124 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *响应好友申请列表请求,暂时没做分页
+ *
+ * Generated from protobuf message <code>common_pack.ResFriendRequestList</code>
+ */
+class ResFriendRequestList extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     */
+    protected $success = false;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     */
+    protected $err_msg = null;
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.FriendRequestItem list = 3;</code>
+     */
+    private $list;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type bool $success
+     *     @type \Common_pack\MsgError $err_msg
+     *     @type \Common_pack\FriendRequestItem[]|\Google\Protobuf\Internal\RepeatedField $list
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @return bool
+     */
+    public function getSuccess()
+    {
+        return $this->success;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setSuccess($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->success = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.FriendRequestItem list = 3;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getList()
+    {
+        return $this->list;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.FriendRequestItem list = 3;</code>
+     * @param \Common_pack\FriendRequestItem[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setList($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\FriendRequestItem::class);
+        $this->list = $arr;
+
+        return $this;
+    }
+
+}
+

+ 58 - 0
generated/Common_pack/ResHeartBeat.php

@@ -0,0 +1,58 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.ResHeartBeat</code>
+ */
+class ResHeartBeat extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string msg = 1;</code>
+     */
+    protected $msg = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $msg
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string msg = 1;</code>
+     * @return string
+     */
+    public function getMsg()
+    {
+        return $this->msg;
+    }
+
+    /**
+     * Generated from protobuf field <code>string msg = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setMsg($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->msg = $var;
+
+        return $this;
+    }
+
+}
+

+ 161 - 0
generated/Common_pack/ResLogin.php

@@ -0,0 +1,161 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *登录 响应
+ *
+ * Generated from protobuf message <code>common_pack.ResLogin</code>
+ */
+class ResLogin extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string userId = 1;</code>
+     */
+    protected $userId = '';
+    /**
+     * Generated from protobuf field <code>string nikeName = 2;</code>
+     */
+    protected $nikeName = '';
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo userInfo = 3;</code>
+     */
+    protected $userInfo = null;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 4;</code>
+     */
+    protected $err_msg = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $userId
+     *     @type string $nikeName
+     *     @type \Common_pack\UserInfo $userInfo
+     *     @type \Common_pack\MsgError $err_msg
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string userId = 1;</code>
+     * @return string
+     */
+    public function getUserId()
+    {
+        return $this->userId;
+    }
+
+    /**
+     * Generated from protobuf field <code>string userId = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setUserId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->userId = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string nikeName = 2;</code>
+     * @return string
+     */
+    public function getNikeName()
+    {
+        return $this->nikeName;
+    }
+
+    /**
+     * Generated from protobuf field <code>string nikeName = 2;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setNikeName($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->nikeName = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo userInfo = 3;</code>
+     * @return \Common_pack\UserInfo|null
+     */
+    public function getUserInfo()
+    {
+        return $this->userInfo;
+    }
+
+    public function hasUserInfo()
+    {
+        return isset($this->userInfo);
+    }
+
+    public function clearUserInfo()
+    {
+        unset($this->userInfo);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo userInfo = 3;</code>
+     * @param \Common_pack\UserInfo $var
+     * @return $this
+     */
+    public function setUserInfo($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\UserInfo::class);
+        $this->userInfo = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 4;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 4;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+}
+

+ 122 - 0
generated/Common_pack/ResLudoHistory.php

@@ -0,0 +1,122 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.ResLudoHistory</code>
+ */
+class ResLudoHistory extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     */
+    protected $success = false;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     */
+    protected $err_msg = null;
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.HistoryRecord list = 3;</code>
+     */
+    private $list;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type bool $success
+     *     @type \Common_pack\MsgError $err_msg
+     *     @type \Common_pack\HistoryRecord[]|\Google\Protobuf\Internal\RepeatedField $list
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @return bool
+     */
+    public function getSuccess()
+    {
+        return $this->success;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setSuccess($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->success = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.HistoryRecord list = 3;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getList()
+    {
+        return $this->list;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.HistoryRecord list = 3;</code>
+     * @param \Common_pack\HistoryRecord[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setList($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\HistoryRecord::class);
+        $this->list = $arr;
+
+        return $this;
+    }
+
+}
+

+ 132 - 0
generated/Common_pack/ResLudoRoomInfo.php

@@ -0,0 +1,132 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.ResLudoRoomInfo</code>
+ */
+class ResLudoRoomInfo extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     */
+    protected $success = false;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     */
+    protected $err_msg = null;
+    /**
+     * Generated from protobuf field <code>.common_pack.RoomInfo info = 3;</code>
+     */
+    protected $info = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type bool $success
+     *     @type \Common_pack\MsgError $err_msg
+     *     @type \Common_pack\RoomInfo $info
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @return bool
+     */
+    public function getSuccess()
+    {
+        return $this->success;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setSuccess($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->success = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.RoomInfo info = 3;</code>
+     * @return \Common_pack\RoomInfo|null
+     */
+    public function getInfo()
+    {
+        return $this->info;
+    }
+
+    public function hasInfo()
+    {
+        return isset($this->info);
+    }
+
+    public function clearInfo()
+    {
+        unset($this->info);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.RoomInfo info = 3;</code>
+     * @param \Common_pack\RoomInfo $var
+     * @return $this
+     */
+    public function setInfo($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\RoomInfo::class);
+        $this->info = $var;
+
+        return $this;
+    }
+
+}
+

+ 134 - 0
generated/Common_pack/ResMatchLudo.php

@@ -0,0 +1,134 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *匹配ludo 响应
+ *
+ * Generated from protobuf message <code>common_pack.ResMatchLudo</code>
+ */
+class ResMatchLudo extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     */
+    protected $success = false;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     */
+    protected $err_msg = null;
+    /**
+     * Generated from protobuf field <code>.common_pack.RoomInfo room = 3;</code>
+     */
+    protected $room = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type bool $success
+     *     @type \Common_pack\MsgError $err_msg
+     *     @type \Common_pack\RoomInfo $room
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @return bool
+     */
+    public function getSuccess()
+    {
+        return $this->success;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setSuccess($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->success = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.RoomInfo room = 3;</code>
+     * @return \Common_pack\RoomInfo|null
+     */
+    public function getRoom()
+    {
+        return $this->room;
+    }
+
+    public function hasRoom()
+    {
+        return isset($this->room);
+    }
+
+    public function clearRoom()
+    {
+        unset($this->room);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.RoomInfo room = 3;</code>
+     * @param \Common_pack\RoomInfo $var
+     * @return $this
+     */
+    public function setRoom($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\RoomInfo::class);
+        $this->room = $var;
+
+        return $this;
+    }
+
+}
+

+ 97 - 0
generated/Common_pack/ResRegister.php

@@ -0,0 +1,97 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *注册 响应
+ *
+ * Generated from protobuf message <code>common_pack.ResRegister</code>
+ */
+class ResRegister extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     */
+    protected $success = false;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     */
+    protected $err_msg = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type bool $success
+     *     @type \Common_pack\MsgError $err_msg
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @return bool
+     */
+    public function getSuccess()
+    {
+        return $this->success;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setSuccess($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->success = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+}
+

+ 134 - 0
generated/Common_pack/ResSearchUser.php

@@ -0,0 +1,134 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *响应搜索结果
+ *
+ * Generated from protobuf message <code>common_pack.ResSearchUser</code>
+ */
+class ResSearchUser extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     */
+    protected $success = false;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     */
+    protected $err_msg = null;
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo info = 3;</code>
+     */
+    protected $info = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type bool $success
+     *     @type \Common_pack\MsgError $err_msg
+     *     @type \Common_pack\UserInfo $info
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @return bool
+     */
+    public function getSuccess()
+    {
+        return $this->success;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setSuccess($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->success = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo info = 3;</code>
+     * @return \Common_pack\UserInfo|null
+     */
+    public function getInfo()
+    {
+        return $this->info;
+    }
+
+    public function hasInfo()
+    {
+        return isset($this->info);
+    }
+
+    public function clearInfo()
+    {
+        unset($this->info);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo info = 3;</code>
+     * @param \Common_pack\UserInfo $var
+     * @return $this
+     */
+    public function setInfo($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\UserInfo::class);
+        $this->info = $var;
+
+        return $this;
+    }
+
+}
+

+ 95 - 0
generated/Common_pack/ResSendChatMsg.php

@@ -0,0 +1,95 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.ResSendChatMsg</code>
+ */
+class ResSendChatMsg extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     */
+    protected $success = false;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     */
+    protected $err_msg = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type bool $success
+     *     @type \Common_pack\MsgError $err_msg
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @return bool
+     */
+    public function getSuccess()
+    {
+        return $this->success;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setSuccess($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->success = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+}
+

+ 124 - 0
generated/Common_pack/ResShop.php

@@ -0,0 +1,124 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * 响应商城
+ *
+ * Generated from protobuf message <code>common_pack.ResShop</code>
+ */
+class ResShop extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     */
+    protected $success = false;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     */
+    protected $err_msg = null;
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ShopItem list = 3;</code>
+     */
+    private $list;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type bool $success
+     *     @type \Common_pack\MsgError $err_msg
+     *     @type \Common_pack\ShopItem[]|\Google\Protobuf\Internal\RepeatedField $list
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @return bool
+     */
+    public function getSuccess()
+    {
+        return $this->success;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setSuccess($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->success = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ShopItem list = 3;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getList()
+    {
+        return $this->list;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ShopItem list = 3;</code>
+     * @param \Common_pack\ShopItem[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setList($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ShopItem::class);
+        $this->list = $arr;
+
+        return $this;
+    }
+
+}
+

+ 193 - 0
generated/Common_pack/RoleData.php

@@ -0,0 +1,193 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.RoleData</code>
+ */
+class RoleData extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>.common_pack.roleType m_color = 1;</code>
+     */
+    protected $m_color = 0;
+    /**
+     * Generated from protobuf field <code>int32 m_seat = 2;</code>
+     */
+    protected $m_seat = 0;
+    /**
+     * Generated from protobuf field <code>string m_id = 3;</code>
+     */
+    protected $m_id = '';
+    /**
+     * Generated from protobuf field <code>.common_pack.roadType m_cur_road = 4;</code>
+     */
+    protected $m_cur_road = 0;
+    /**
+     * Generated from protobuf field <code>int32 step = 5;</code>
+     */
+    protected $step = 0;
+    /**
+     * Generated from protobuf field <code>int32 old_setp = 6;</code>
+     */
+    protected $old_setp = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $m_color
+     *     @type int $m_seat
+     *     @type string $m_id
+     *     @type int $m_cur_road
+     *     @type int $step
+     *     @type int $old_setp
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roleType m_color = 1;</code>
+     * @return int
+     */
+    public function getMColor()
+    {
+        return $this->m_color;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roleType m_color = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setMColor($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roleType::class);
+        $this->m_color = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 m_seat = 2;</code>
+     * @return int
+     */
+    public function getMSeat()
+    {
+        return $this->m_seat;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 m_seat = 2;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setMSeat($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->m_seat = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_id = 3;</code>
+     * @return string
+     */
+    public function getMId()
+    {
+        return $this->m_id;
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_id = 3;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setMId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->m_id = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roadType m_cur_road = 4;</code>
+     * @return int
+     */
+    public function getMCurRoad()
+    {
+        return $this->m_cur_road;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roadType m_cur_road = 4;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setMCurRoad($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roadType::class);
+        $this->m_cur_road = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 step = 5;</code>
+     * @return int
+     */
+    public function getStep()
+    {
+        return $this->step;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 step = 5;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setStep($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->step = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 old_setp = 6;</code>
+     * @return int
+     */
+    public function getOldSetp()
+    {
+        return $this->old_setp;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 old_setp = 6;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setOldSetp($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->old_setp = $var;
+
+        return $this;
+    }
+
+}
+

+ 420 - 0
generated/Common_pack/RoomInfo.php

@@ -0,0 +1,420 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.RoomInfo</code>
+ */
+class RoomInfo extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.RoleData roles = 1;</code>
+     */
+    private $roles;
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 2;</code>
+     */
+    private $colors;
+    /**
+     * Generated from protobuf field <code>.common_pack.roomType room_type = 3;</code>
+     */
+    protected $room_type = 0;
+    /**
+     * Generated from protobuf field <code>.common_pack.roomMode room_mode = 4;</code>
+     */
+    protected $room_mode = 0;
+    /**
+     *当前那个阵营的回合
+     *
+     * Generated from protobuf field <code>.common_pack.roleType cur_round_color = 5;</code>
+     */
+    protected $cur_round_color = 0;
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.round rounds = 6;</code>
+     */
+    private $rounds;
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 7;</code>
+     */
+    private $finish_colors;
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ColorData kict_colors = 8;</code>
+     */
+    private $kict_colors;
+    /**
+     * Generated from protobuf field <code>int32 id = 9;</code>
+     */
+    protected $id = 0;
+    /**
+     *房间的每个等级都对应着不同的奖励和消耗
+     *
+     * Generated from protobuf field <code>int32 room_level = 10;</code>
+     */
+    protected $room_level = 0;
+    /**
+     * Generated from protobuf field <code>.common_pack.roomStatus room_status = 11;</code>
+     */
+    protected $room_status = 0;
+    /**
+     *当前阵营操作的类型
+     *
+     * Generated from protobuf field <code>.common_pack.NotifyPlayerOpt cur_color_opt_data = 12;</code>
+     */
+    protected $cur_color_opt_data = null;
+    /**
+     *玩家当前剩余操作时间
+     *
+     * Generated from protobuf field <code>int32 opt_time = 13;</code>
+     */
+    protected $opt_time = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $roles
+     *     @type \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $colors
+     *     @type int $room_type
+     *     @type int $room_mode
+     *     @type int $cur_round_color
+     *          当前那个阵营的回合
+     *     @type \Common_pack\round[]|\Google\Protobuf\Internal\RepeatedField $rounds
+     *     @type \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $finish_colors
+     *     @type \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $kict_colors
+     *     @type int $id
+     *     @type int $room_level
+     *          房间的每个等级都对应着不同的奖励和消耗
+     *     @type int $room_status
+     *     @type \Common_pack\NotifyPlayerOpt $cur_color_opt_data
+     *          当前阵营操作的类型
+     *     @type int $opt_time
+     *          玩家当前剩余操作时间
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.RoleData roles = 1;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getRoles()
+    {
+        return $this->roles;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.RoleData roles = 1;</code>
+     * @param \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setRoles($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\RoleData::class);
+        $this->roles = $arr;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 2;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getColors()
+    {
+        return $this->colors;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 2;</code>
+     * @param \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setColors($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ColorData::class);
+        $this->colors = $arr;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roomType room_type = 3;</code>
+     * @return int
+     */
+    public function getRoomType()
+    {
+        return $this->room_type;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roomType room_type = 3;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setRoomType($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roomType::class);
+        $this->room_type = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roomMode room_mode = 4;</code>
+     * @return int
+     */
+    public function getRoomMode()
+    {
+        return $this->room_mode;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roomMode room_mode = 4;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setRoomMode($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roomMode::class);
+        $this->room_mode = $var;
+
+        return $this;
+    }
+
+    /**
+     *当前那个阵营的回合
+     *
+     * Generated from protobuf field <code>.common_pack.roleType cur_round_color = 5;</code>
+     * @return int
+     */
+    public function getCurRoundColor()
+    {
+        return $this->cur_round_color;
+    }
+
+    /**
+     *当前那个阵营的回合
+     *
+     * Generated from protobuf field <code>.common_pack.roleType cur_round_color = 5;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setCurRoundColor($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roleType::class);
+        $this->cur_round_color = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.round rounds = 6;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getRounds()
+    {
+        return $this->rounds;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.round rounds = 6;</code>
+     * @param \Common_pack\round[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setRounds($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\round::class);
+        $this->rounds = $arr;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 7;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getFinishColors()
+    {
+        return $this->finish_colors;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ColorData finish_colors = 7;</code>
+     * @param \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setFinishColors($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ColorData::class);
+        $this->finish_colors = $arr;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ColorData kict_colors = 8;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getKictColors()
+    {
+        return $this->kict_colors;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .common_pack.ColorData kict_colors = 8;</code>
+     * @param \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setKictColors($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ColorData::class);
+        $this->kict_colors = $arr;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 id = 9;</code>
+     * @return int
+     */
+    public function getId()
+    {
+        return $this->id;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 id = 9;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setId($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->id = $var;
+
+        return $this;
+    }
+
+    /**
+     *房间的每个等级都对应着不同的奖励和消耗
+     *
+     * Generated from protobuf field <code>int32 room_level = 10;</code>
+     * @return int
+     */
+    public function getRoomLevel()
+    {
+        return $this->room_level;
+    }
+
+    /**
+     *房间的每个等级都对应着不同的奖励和消耗
+     *
+     * Generated from protobuf field <code>int32 room_level = 10;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setRoomLevel($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->room_level = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roomStatus room_status = 11;</code>
+     * @return int
+     */
+    public function getRoomStatus()
+    {
+        return $this->room_status;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roomStatus room_status = 11;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setRoomStatus($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roomStatus::class);
+        $this->room_status = $var;
+
+        return $this;
+    }
+
+    /**
+     *当前阵营操作的类型
+     *
+     * Generated from protobuf field <code>.common_pack.NotifyPlayerOpt cur_color_opt_data = 12;</code>
+     * @return \Common_pack\NotifyPlayerOpt|null
+     */
+    public function getCurColorOptData()
+    {
+        return $this->cur_color_opt_data;
+    }
+
+    public function hasCurColorOptData()
+    {
+        return isset($this->cur_color_opt_data);
+    }
+
+    public function clearCurColorOptData()
+    {
+        unset($this->cur_color_opt_data);
+    }
+
+    /**
+     *当前阵营操作的类型
+     *
+     * Generated from protobuf field <code>.common_pack.NotifyPlayerOpt cur_color_opt_data = 12;</code>
+     * @param \Common_pack\NotifyPlayerOpt $var
+     * @return $this
+     */
+    public function setCurColorOptData($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\NotifyPlayerOpt::class);
+        $this->cur_color_opt_data = $var;
+
+        return $this;
+    }
+
+    /**
+     *玩家当前剩余操作时间
+     *
+     * Generated from protobuf field <code>int32 opt_time = 13;</code>
+     * @return int
+     */
+    public function getOptTime()
+    {
+        return $this->opt_time;
+    }
+
+    /**
+     *玩家当前剩余操作时间
+     *
+     * Generated from protobuf field <code>int32 opt_time = 13;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setOptTime($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->opt_time = $var;
+
+        return $this;
+    }
+
+}
+

+ 60 - 0
generated/Common_pack/SearchUser.php

@@ -0,0 +1,60 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *根据玩家id搜索玩家
+ *
+ * Generated from protobuf message <code>common_pack.SearchUser</code>
+ */
+class SearchUser extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string user_id = 1;</code>
+     */
+    protected $user_id = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $user_id
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string user_id = 1;</code>
+     * @return string
+     */
+    public function getUserId()
+    {
+        return $this->user_id;
+    }
+
+    /**
+     * Generated from protobuf field <code>string user_id = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setUserId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->user_id = $var;
+
+        return $this;
+    }
+
+}
+

+ 65 - 0
generated/Common_pack/SendColorSz.php

@@ -0,0 +1,65 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.SendColorSz</code>
+ */
+class SendColorSz extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     */
+    protected $color = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $color
+     *           
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @return int
+     */
+    public function getColor()
+    {
+        return $this->color;
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setColor($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roleType::class);
+        $this->color = $var;
+
+        return $this;
+    }
+
+}
+

+ 65 - 0
generated/Common_pack/SendQuitRoom.php

@@ -0,0 +1,65 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.SendQuitRoom</code>
+ */
+class SendQuitRoom extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     */
+    protected $color = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $color
+     *           
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @return int
+     */
+    public function getColor()
+    {
+        return $this->color;
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setColor($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roleType::class);
+        $this->color = $var;
+
+        return $this;
+    }
+
+}
+

+ 92 - 0
generated/Common_pack/SendRoleMove.php

@@ -0,0 +1,92 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.SendRoleMove</code>
+ */
+class SendRoleMove extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     */
+    protected $color = 0;
+    /**
+     * Generated from protobuf field <code>string roleId = 2;</code>
+     */
+    protected $roleId = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $color
+     *           
+     *     @type string $roleId
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @return int
+     */
+    public function getColor()
+    {
+        return $this->color;
+    }
+
+    /**
+     * 
+     *
+     * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setColor($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roleType::class);
+        $this->color = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string roleId = 2;</code>
+     * @return string
+     */
+    public function getRoleId()
+    {
+        return $this->roleId;
+    }
+
+    /**
+     * Generated from protobuf field <code>string roleId = 2;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setRoleId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->roleId = $var;
+
+        return $this;
+    }
+
+}
+

+ 139 - 0
generated/Common_pack/ShopItem.php

@@ -0,0 +1,139 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.ShopItem</code>
+ */
+class ShopItem extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string name = 1;</code>
+     */
+    protected $name = '';
+    /**
+     * Generated from protobuf field <code>string id = 2;</code>
+     */
+    protected $id = '';
+    /**
+     * Generated from protobuf field <code>int32 price = 3;</code>
+     */
+    protected $price = 0;
+    /**
+     * Generated from protobuf field <code>int32 num = 4;</code>
+     */
+    protected $num = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $name
+     *     @type string $id
+     *     @type int $price
+     *     @type int $num
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string name = 1;</code>
+     * @return string
+     */
+    public function getName()
+    {
+        return $this->name;
+    }
+
+    /**
+     * Generated from protobuf field <code>string name = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setName($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->name = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string id = 2;</code>
+     * @return string
+     */
+    public function getId()
+    {
+        return $this->id;
+    }
+
+    /**
+     * Generated from protobuf field <code>string id = 2;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->id = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 price = 3;</code>
+     * @return int
+     */
+    public function getPrice()
+    {
+        return $this->price;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 price = 3;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setPrice($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->price = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 num = 4;</code>
+     * @return int
+     */
+    public function getNum()
+    {
+        return $this->num;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 num = 4;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setNum($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->num = $var;
+
+        return $this;
+    }
+
+}
+

+ 70 - 0
generated/Common_pack/UpdateUserInfo.php

@@ -0,0 +1,70 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * 更新用户信息
+ *
+ * Generated from protobuf message <code>common_pack.UpdateUserInfo</code>
+ */
+class UpdateUserInfo extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo info = 1;</code>
+     */
+    protected $info = null;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type \Common_pack\UserInfo $info
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo info = 1;</code>
+     * @return \Common_pack\UserInfo|null
+     */
+    public function getInfo()
+    {
+        return $this->info;
+    }
+
+    public function hasInfo()
+    {
+        return isset($this->info);
+    }
+
+    public function clearInfo()
+    {
+        unset($this->info);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.UserInfo info = 1;</code>
+     * @param \Common_pack\UserInfo $var
+     * @return $this
+     */
+    public function setInfo($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\UserInfo::class);
+        $this->info = $var;
+
+        return $this;
+    }
+
+}
+

+ 209 - 0
generated/Common_pack/UserInfo.php

@@ -0,0 +1,209 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *用户信息
+ *
+ * Generated from protobuf message <code>common_pack.UserInfo</code>
+ */
+class UserInfo extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string UserId = 1;</code>
+     */
+    protected $UserId = '';
+    /**
+     * Generated from protobuf field <code>string m_head = 2;</code>
+     */
+    protected $m_head = '';
+    /**
+     * Generated from protobuf field <code>int32 m_coin = 3;</code>
+     */
+    protected $m_coin = 0;
+    /**
+     * Generated from protobuf field <code>string name = 4;</code>
+     */
+    protected $name = '';
+    /**
+     *如果用户在某一个房间玩,他的id就一直存在,
+     *
+     * Generated from protobuf field <code>int32 room_id = 5;</code>
+     */
+    protected $room_id = 0;
+    /**
+     *在线=1 离线等0
+     *
+     * Generated from protobuf field <code>int32 online_status = 6;</code>
+     */
+    protected $online_status = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $UserId
+     *     @type string $m_head
+     *     @type int $m_coin
+     *     @type string $name
+     *     @type int $room_id
+     *          如果用户在某一个房间玩,他的id就一直存在,
+     *     @type int $online_status
+     *          在线=1 离线等0
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string UserId = 1;</code>
+     * @return string
+     */
+    public function getUserId()
+    {
+        return $this->UserId;
+    }
+
+    /**
+     * Generated from protobuf field <code>string UserId = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setUserId($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->UserId = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_head = 2;</code>
+     * @return string
+     */
+    public function getMHead()
+    {
+        return $this->m_head;
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_head = 2;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setMHead($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->m_head = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 m_coin = 3;</code>
+     * @return int
+     */
+    public function getMCoin()
+    {
+        return $this->m_coin;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 m_coin = 3;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setMCoin($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->m_coin = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string name = 4;</code>
+     * @return string
+     */
+    public function getName()
+    {
+        return $this->name;
+    }
+
+    /**
+     * Generated from protobuf field <code>string name = 4;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setName($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->name = $var;
+
+        return $this;
+    }
+
+    /**
+     *如果用户在某一个房间玩,他的id就一直存在,
+     *
+     * Generated from protobuf field <code>int32 room_id = 5;</code>
+     * @return int
+     */
+    public function getRoomId()
+    {
+        return $this->room_id;
+    }
+
+    /**
+     *如果用户在某一个房间玩,他的id就一直存在,
+     *
+     * Generated from protobuf field <code>int32 room_id = 5;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setRoomId($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->room_id = $var;
+
+        return $this;
+    }
+
+    /**
+     *在线=1 离线等0
+     *
+     * Generated from protobuf field <code>int32 online_status = 6;</code>
+     * @return int
+     */
+    public function getOnlineStatus()
+    {
+        return $this->online_status;
+    }
+
+    /**
+     *在线=1 离线等0
+     *
+     * Generated from protobuf field <code>int32 online_status = 6;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setOnlineStatus($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->online_status = $var;
+
+        return $this;
+    }
+
+}
+

+ 63 - 0
generated/Common_pack/playerStatus.php

@@ -0,0 +1,63 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use UnexpectedValueException;
+
+/**
+ * Protobuf type <code>common_pack.playerStatus</code>
+ */
+class playerStatus
+{
+    /**
+     * Generated from protobuf enum <code>PLAYER_STATUS_UNKNOWN = 0;</code>
+     */
+    const PLAYER_STATUS_UNKNOWN = 0;
+    /**
+     * Generated from protobuf enum <code>SZ_ANIMATION = 1;</code>
+     */
+    const SZ_ANIMATION = 1;
+    /**
+     * Generated from protobuf enum <code>COLOR_FINISH = 2;</code>
+     */
+    const COLOR_FINISH = 2;
+    /**
+     * Generated from protobuf enum <code>COLOR_KICK = 3;</code>
+     */
+    const COLOR_KICK = 3;
+    /**
+     * Generated from protobuf enum <code>COLOR_TIME_OUT = 4;</code>
+     */
+    const COLOR_TIME_OUT = 4;
+
+    private static $valueToName = [
+        self::PLAYER_STATUS_UNKNOWN => 'PLAYER_STATUS_UNKNOWN',
+        self::SZ_ANIMATION => 'SZ_ANIMATION',
+        self::COLOR_FINISH => 'COLOR_FINISH',
+        self::COLOR_KICK => 'COLOR_KICK',
+        self::COLOR_TIME_OUT => 'COLOR_TIME_OUT',
+    ];
+
+    public static function name($value)
+    {
+        if (!isset(self::$valueToName[$value])) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no name defined for value %s', __CLASS__, $value));
+        }
+        return self::$valueToName[$value];
+    }
+
+
+    public static function value($name)
+    {
+        $const = __CLASS__ . '::' . strtoupper($name);
+        if (!defined($const)) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no value defined for name %s', __CLASS__, $name));
+        }
+        return constant($const);
+    }
+}
+

+ 48 - 0
generated/Common_pack/roadType.php

@@ -0,0 +1,48 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use UnexpectedValueException;
+
+/**
+ * Protobuf type <code>common_pack.roadType</code>
+ */
+class roadType
+{
+    /**
+     * Generated from protobuf enum <code>ROAD_TYPE_UNKNOWN = 0;</code>
+     */
+    const ROAD_TYPE_UNKNOWN = 0;
+    /**
+     * Generated from protobuf enum <code>HOME = 1;</code>
+     */
+    const HOME = 1;
+
+    private static $valueToName = [
+        self::ROAD_TYPE_UNKNOWN => 'ROAD_TYPE_UNKNOWN',
+        self::HOME => 'HOME',
+    ];
+
+    public static function name($value)
+    {
+        if (!isset(self::$valueToName[$value])) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no name defined for value %s', __CLASS__, $value));
+        }
+        return self::$valueToName[$value];
+    }
+
+
+    public static function value($name)
+    {
+        $const = __CLASS__ . '::' . strtoupper($name);
+        if (!defined($const)) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no value defined for name %s', __CLASS__, $name));
+        }
+        return constant($const);
+    }
+}
+

+ 65 - 0
generated/Common_pack/roleType.php

@@ -0,0 +1,65 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use UnexpectedValueException;
+
+/**
+ * Protobuf type <code>common_pack.roleType</code>
+ */
+class roleType
+{
+    /**
+     * Generated from protobuf enum <code>ROLE_TYPE_UNKNOWN = 0;</code>
+     */
+    const ROLE_TYPE_UNKNOWN = 0;
+    /**
+     * 无操作
+     *
+     * Generated from protobuf enum <code>RED = 1;</code>
+     */
+    const RED = 1;
+    /**
+     * Generated from protobuf enum <code>BLUE = 4;</code>
+     */
+    const BLUE = 4;
+    /**
+     * Generated from protobuf enum <code>YELLOW = 3;</code>
+     */
+    const YELLOW = 3;
+    /**
+     * Generated from protobuf enum <code>GREEN = 2;</code>
+     */
+    const GREEN = 2;
+
+    private static $valueToName = [
+        self::ROLE_TYPE_UNKNOWN => 'ROLE_TYPE_UNKNOWN',
+        self::RED => 'RED',
+        self::BLUE => 'BLUE',
+        self::YELLOW => 'YELLOW',
+        self::GREEN => 'GREEN',
+    ];
+
+    public static function name($value)
+    {
+        if (!isset(self::$valueToName[$value])) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no name defined for value %s', __CLASS__, $value));
+        }
+        return self::$valueToName[$value];
+    }
+
+
+    public static function value($name)
+    {
+        $const = __CLASS__ . '::' . strtoupper($name);
+        if (!defined($const)) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no value defined for name %s', __CLASS__, $name));
+        }
+        return constant($const);
+    }
+}
+

+ 53 - 0
generated/Common_pack/roomMode.php

@@ -0,0 +1,53 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use UnexpectedValueException;
+
+/**
+ * Protobuf type <code>common_pack.roomMode</code>
+ */
+class roomMode
+{
+    /**
+     * Generated from protobuf enum <code>ROOM_MODE_UNKNOWN = 0;</code>
+     */
+    const ROOM_MODE_UNKNOWN = 0;
+    /**
+     * Generated from protobuf enum <code>REN_JI = 1;</code>
+     */
+    const REN_JI = 1;
+    /**
+     * Generated from protobuf enum <code>WAN_JIA = 2;</code>
+     */
+    const WAN_JIA = 2;
+
+    private static $valueToName = [
+        self::ROOM_MODE_UNKNOWN => 'ROOM_MODE_UNKNOWN',
+        self::REN_JI => 'REN_JI',
+        self::WAN_JIA => 'WAN_JIA',
+    ];
+
+    public static function name($value)
+    {
+        if (!isset(self::$valueToName[$value])) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no name defined for value %s', __CLASS__, $value));
+        }
+        return self::$valueToName[$value];
+    }
+
+
+    public static function value($name)
+    {
+        $const = __CLASS__ . '::' . strtoupper($name);
+        if (!defined($const)) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no value defined for name %s', __CLASS__, $name));
+        }
+        return constant($const);
+    }
+}
+

+ 53 - 0
generated/Common_pack/roomStatus.php

@@ -0,0 +1,53 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use UnexpectedValueException;
+
+/**
+ * Protobuf type <code>common_pack.roomStatus</code>
+ */
+class roomStatus
+{
+    /**
+     * Generated from protobuf enum <code>AWAIT = 0;</code>
+     */
+    const AWAIT = 0;
+    /**
+     * Generated from protobuf enum <code>START = 1;</code>
+     */
+    const START = 1;
+    /**
+     * Generated from protobuf enum <code>END = 2;</code>
+     */
+    const END = 2;
+
+    private static $valueToName = [
+        self::AWAIT => 'AWAIT',
+        self::START => 'START',
+        self::END => 'END',
+    ];
+
+    public static function name($value)
+    {
+        if (!isset(self::$valueToName[$value])) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no name defined for value %s', __CLASS__, $value));
+        }
+        return self::$valueToName[$value];
+    }
+
+
+    public static function value($name)
+    {
+        $const = __CLASS__ . '::' . strtoupper($name);
+        if (!defined($const)) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no value defined for name %s', __CLASS__, $name));
+        }
+        return constant($const);
+    }
+}
+

+ 53 - 0
generated/Common_pack/roomType.php

@@ -0,0 +1,53 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use UnexpectedValueException;
+
+/**
+ * Protobuf type <code>common_pack.roomType</code>
+ */
+class roomType
+{
+    /**
+     * Generated from protobuf enum <code>ROOM_TYPE_UNKNOWN = 0;</code>
+     */
+    const ROOM_TYPE_UNKNOWN = 0;
+    /**
+     * Generated from protobuf enum <code>SHUANG_REN = 1;</code>
+     */
+    const SHUANG_REN = 1;
+    /**
+     * Generated from protobuf enum <code>SIREN_REN = 2;</code>
+     */
+    const SIREN_REN = 2;
+
+    private static $valueToName = [
+        self::ROOM_TYPE_UNKNOWN => 'ROOM_TYPE_UNKNOWN',
+        self::SHUANG_REN => 'SHUANG_REN',
+        self::SIREN_REN => 'SIREN_REN',
+    ];
+
+    public static function name($value)
+    {
+        if (!isset(self::$valueToName[$value])) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no name defined for value %s', __CLASS__, $value));
+        }
+        return self::$valueToName[$value];
+    }
+
+
+    public static function value($name)
+    {
+        $const = __CLASS__ . '::' . strtoupper($name);
+        if (!defined($const)) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no value defined for name %s', __CLASS__, $name));
+        }
+        return constant($const);
+    }
+}
+

+ 139 - 0
generated/Common_pack/round.php

@@ -0,0 +1,139 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: common.proto
+
+namespace Common_pack;
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>common_pack.round</code>
+ */
+class round extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>.common_pack.roleType m_color = 1;</code>
+     */
+    protected $m_color = 0;
+    /**
+     * Generated from protobuf field <code>string m_road = 2;</code>
+     */
+    protected $m_road = '';
+    /**
+     * Generated from protobuf field <code>.common_pack.OptType opt = 3;</code>
+     */
+    protected $opt = 0;
+    /**
+     * Generated from protobuf field <code>int32 szNumber = 4;</code>
+     */
+    protected $szNumber = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $m_color
+     *     @type string $m_road
+     *     @type int $opt
+     *     @type int $szNumber
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Common::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roleType m_color = 1;</code>
+     * @return int
+     */
+    public function getMColor()
+    {
+        return $this->m_color;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.roleType m_color = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setMColor($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\roleType::class);
+        $this->m_color = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_road = 2;</code>
+     * @return string
+     */
+    public function getMRoad()
+    {
+        return $this->m_road;
+    }
+
+    /**
+     * Generated from protobuf field <code>string m_road = 2;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setMRoad($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->m_road = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.OptType opt = 3;</code>
+     * @return int
+     */
+    public function getOpt()
+    {
+        return $this->opt;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.OptType opt = 3;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setOpt($var)
+    {
+        GPBUtil::checkEnum($var, \Common_pack\OptType::class);
+        $this->opt = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 szNumber = 4;</code>
+     * @return int
+     */
+    public function getSzNumber()
+    {
+        return $this->szNumber;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 szNumber = 4;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setSzNumber($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->szNumber = $var;
+
+        return $this;
+    }
+
+}
+

+ 30 - 0
generated/GPBMetadata/Bag.php

@@ -0,0 +1,30 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: bag.proto
+
+namespace GPBMetadata;
+
+class Bag
+{
+    public static $is_initialized = false;
+
+    public static function initOnce() {
+        $pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
+
+        if (static::$is_initialized == true) {
+          return;
+        }
+        \GPBMetadata\Common::initOnce();
+        $pool->internalAddGeneratedFile(
+            '
+M
+	bag.proto"/
+ItemRequest
+ItemID (
+Quantity (BZ./msgbproto3'
+        , true);
+
+        static::$is_initialized = true;
+    }
+}
+

二進制
generated/GPBMetadata/Common.php


二進制
generated/GPBMetadata/Mail.php


+ 83 - 0
generated/ItemRequest.php

@@ -0,0 +1,83 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: bag.proto
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ * Generated from protobuf message <code>ItemRequest</code>
+ */
+class ItemRequest extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>int32 ItemID = 1;</code>
+     */
+    protected $ItemID = 0;
+    /**
+     * Generated from protobuf field <code>int32 Quantity = 2;</code>
+     */
+    protected $Quantity = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $ItemID
+     *     @type int $Quantity
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Bag::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 ItemID = 1;</code>
+     * @return int
+     */
+    public function getItemID()
+    {
+        return $this->ItemID;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 ItemID = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setItemID($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->ItemID = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 Quantity = 2;</code>
+     * @return int
+     */
+    public function getQuantity()
+    {
+        return $this->Quantity;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 Quantity = 2;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setQuantity($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->Quantity = $var;
+
+        return $this;
+    }
+
+}
+

+ 166 - 0
generated/MailInfo.php

@@ -0,0 +1,166 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: mail.proto
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *邮箱信息
+ *
+ * Generated from protobuf message <code>MailInfo</code>
+ */
+class MailInfo extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string mail_json_info = 1;</code>
+     */
+    protected $mail_json_info = '';
+    /**
+     * Generated from protobuf field <code>int32 mail_type = 2;</code>
+     */
+    protected $mail_type = 0;
+    /**
+     * Generated from protobuf field <code>int32 check_status = 3;</code>
+     */
+    protected $check_status = 0;
+    /**
+     * Generated from protobuf field <code>int32 receive_status = 4;</code>
+     */
+    protected $receive_status = 0;
+    /**
+     * Generated from protobuf field <code>string create_time = 5;</code>
+     */
+    protected $create_time = '';
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $mail_json_info
+     *     @type int $mail_type
+     *     @type int $check_status
+     *     @type int $receive_status
+     *     @type string $create_time
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Mail::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string mail_json_info = 1;</code>
+     * @return string
+     */
+    public function getMailJsonInfo()
+    {
+        return $this->mail_json_info;
+    }
+
+    /**
+     * Generated from protobuf field <code>string mail_json_info = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setMailJsonInfo($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->mail_json_info = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 mail_type = 2;</code>
+     * @return int
+     */
+    public function getMailType()
+    {
+        return $this->mail_type;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 mail_type = 2;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setMailType($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->mail_type = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 check_status = 3;</code>
+     * @return int
+     */
+    public function getCheckStatus()
+    {
+        return $this->check_status;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 check_status = 3;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setCheckStatus($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->check_status = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 receive_status = 4;</code>
+     * @return int
+     */
+    public function getReceiveStatus()
+    {
+        return $this->receive_status;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 receive_status = 4;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setReceiveStatus($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->receive_status = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>string create_time = 5;</code>
+     * @return string
+     */
+    public function getCreateTime()
+    {
+        return $this->create_time;
+    }
+
+    /**
+     * Generated from protobuf field <code>string create_time = 5;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setCreateTime($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->create_time = $var;
+
+        return $this;
+    }
+
+}
+

+ 85 - 0
generated/OptMail.php

@@ -0,0 +1,85 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: mail.proto
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *操作邮箱
+ *
+ * Generated from protobuf message <code>OptMail</code>
+ */
+class OptMail extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>int32 mail_id = 1;</code>
+     */
+    protected $mail_id = 0;
+    /**
+     * Generated from protobuf field <code>.OptMailType opt = 2;</code>
+     */
+    protected $opt = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type int $mail_id
+     *     @type int $opt
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Mail::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 mail_id = 1;</code>
+     * @return int
+     */
+    public function getMailId()
+    {
+        return $this->mail_id;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 mail_id = 1;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setMailId($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->mail_id = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.OptMailType opt = 2;</code>
+     * @return int
+     */
+    public function getOpt()
+    {
+        return $this->opt;
+    }
+
+    /**
+     * Generated from protobuf field <code>.OptMailType opt = 2;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setOpt($var)
+    {
+        GPBUtil::checkEnum($var, \OptMailType::class);
+        $this->opt = $var;
+
+        return $this;
+    }
+
+}
+

+ 60 - 0
generated/OptMailType.php

@@ -0,0 +1,60 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: mail.proto
+
+/**
+ * Protobuf type <code>OptMailType</code>
+ */
+class OptMailType
+{
+    /**
+     * Generated from protobuf enum <code>ROLE_TYPE_UNKNOWN = 0;</code>
+     */
+    const ROLE_TYPE_UNKNOWN = 0;
+    /**
+     * 查看
+     *
+     * Generated from protobuf enum <code>CHECK = 1;</code>
+     */
+    const CHECK = 1;
+    /**
+     *领取
+     *
+     * Generated from protobuf enum <code>RECEIVE = 2;</code>
+     */
+    const RECEIVE = 2;
+    /**
+     *删除
+     *
+     * Generated from protobuf enum <code>DELETE = 3;</code>
+     */
+    const DELETE = 3;
+
+    private static $valueToName = [
+        self::ROLE_TYPE_UNKNOWN => 'ROLE_TYPE_UNKNOWN',
+        self::CHECK => 'CHECK',
+        self::RECEIVE => 'RECEIVE',
+        self::DELETE => 'DELETE',
+    ];
+
+    public static function name($value)
+    {
+        if (!isset(self::$valueToName[$value])) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no name defined for value %s', __CLASS__, $value));
+        }
+        return self::$valueToName[$value];
+    }
+
+
+    public static function value($name)
+    {
+        $const = __CLASS__ . '::' . strtoupper($name);
+        if (!defined($const)) {
+            throw new UnexpectedValueException(sprintf(
+                    'Enum %s has no value defined for name %s', __CLASS__, $name));
+        }
+        return constant($const);
+    }
+}
+

+ 85 - 0
generated/ReqMail.php

@@ -0,0 +1,85 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: mail.proto
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *请求获取邮箱
+ *
+ * Generated from protobuf message <code>ReqMail</code>
+ */
+class ReqMail extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>string userid = 1;</code>
+     */
+    protected $userid = '';
+    /**
+     * Generated from protobuf field <code>int32 mail_type = 2;</code>
+     */
+    protected $mail_type = 0;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type string $userid
+     *     @type int $mail_type
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Mail::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>string userid = 1;</code>
+     * @return string
+     */
+    public function getUserid()
+    {
+        return $this->userid;
+    }
+
+    /**
+     * Generated from protobuf field <code>string userid = 1;</code>
+     * @param string $var
+     * @return $this
+     */
+    public function setUserid($var)
+    {
+        GPBUtil::checkString($var, True);
+        $this->userid = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 mail_type = 2;</code>
+     * @return int
+     */
+    public function getMailType()
+    {
+        return $this->mail_type;
+    }
+
+    /**
+     * Generated from protobuf field <code>int32 mail_type = 2;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setMailType($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->mail_type = $var;
+
+        return $this;
+    }
+
+}
+

+ 122 - 0
generated/ResMail.php

@@ -0,0 +1,122 @@
+<?php
+# Generated by the protocol buffer compiler.  DO NOT EDIT!
+# source: mail.proto
+
+use Google\Protobuf\Internal\GPBType;
+use Google\Protobuf\Internal\RepeatedField;
+use Google\Protobuf\Internal\GPBUtil;
+
+/**
+ *响应获取邮箱列表
+ *
+ * Generated from protobuf message <code>ResMail</code>
+ */
+class ResMail extends \Google\Protobuf\Internal\Message
+{
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     */
+    protected $success = false;
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     */
+    protected $err_msg = null;
+    /**
+     * Generated from protobuf field <code>repeated .MailInfo list = 3;</code>
+     */
+    private $list;
+
+    /**
+     * Constructor.
+     *
+     * @param array $data {
+     *     Optional. Data for populating the Message object.
+     *
+     *     @type bool $success
+     *     @type \Common_pack\MsgError $err_msg
+     *     @type \MailInfo[]|\Google\Protobuf\Internal\RepeatedField $list
+     * }
+     */
+    public function __construct($data = NULL) {
+        \GPBMetadata\Mail::initOnce();
+        parent::__construct($data);
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @return bool
+     */
+    public function getSuccess()
+    {
+        return $this->success;
+    }
+
+    /**
+     * Generated from protobuf field <code>bool success = 1;</code>
+     * @param bool $var
+     * @return $this
+     */
+    public function setSuccess($var)
+    {
+        GPBUtil::checkBool($var);
+        $this->success = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @return \Common_pack\MsgError|null
+     */
+    public function getErrMsg()
+    {
+        return $this->err_msg;
+    }
+
+    public function hasErrMsg()
+    {
+        return isset($this->err_msg);
+    }
+
+    public function clearErrMsg()
+    {
+        unset($this->err_msg);
+    }
+
+    /**
+     * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
+     * @param \Common_pack\MsgError $var
+     * @return $this
+     */
+    public function setErrMsg($var)
+    {
+        GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
+        $this->err_msg = $var;
+
+        return $this;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .MailInfo list = 3;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getList()
+    {
+        return $this->list;
+    }
+
+    /**
+     * Generated from protobuf field <code>repeated .MailInfo list = 3;</code>
+     * @param \MailInfo[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setList($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \MailInfo::class);
+        $this->list = $arr;
+
+        return $this;
+    }
+
+}
+

+ 8 - 0
generated/composer.json

@@ -0,0 +1,8 @@
+{
+    "name": "generated\/protobuf-messages",
+    "autoload": {
+        "psr-4": {
+            "": ".\/"
+        }
+    }
+}