ColorData.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: common.proto
  4. namespace Common_pack;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Generated from protobuf message <code>common_pack.ColorData</code>
  10. */
  11. class ColorData extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>string m_id = 1;</code>
  15. */
  16. protected $m_id = '';
  17. /**
  18. * Generated from protobuf field <code>.common_pack.roleType m_color = 2;</code>
  19. */
  20. protected $m_color = 0;
  21. /**
  22. * Generated from protobuf field <code>bool is_kick = 3;</code>
  23. */
  24. protected $is_kick = false;
  25. /**
  26. * Generated from protobuf field <code>bool is_finish = 4;</code>
  27. */
  28. protected $is_finish = false;
  29. /**
  30. * Generated from protobuf field <code>int32 time_out_num = 5;</code>
  31. */
  32. protected $time_out_num = 0;
  33. /**
  34. * Generated from protobuf field <code>string m_name = 6;</code>
  35. */
  36. protected $m_name = '';
  37. /**
  38. * Generated from protobuf field <code>string m_head = 7;</code>
  39. */
  40. protected $m_head = '';
  41. /**
  42. * Generated from protobuf field <code>int32 rank_num = 8;</code>
  43. */
  44. protected $rank_num = 0;
  45. /**
  46. * Generated from protobuf field <code>int32 m_coin = 9;</code>
  47. */
  48. protected $m_coin = 0;
  49. /**
  50. * Generated from protobuf field <code>int32 m_reward_coin = 10;</code>
  51. */
  52. protected $m_reward_coin = 0;
  53. /**
  54. * Constructor.
  55. *
  56. * @param array $data {
  57. * Optional. Data for populating the Message object.
  58. *
  59. * @type string $m_id
  60. * @type int $m_color
  61. * @type bool $is_kick
  62. * @type bool $is_finish
  63. * @type int $time_out_num
  64. * @type string $m_name
  65. * @type string $m_head
  66. * @type int $rank_num
  67. * @type int $m_coin
  68. * @type int $m_reward_coin
  69. * }
  70. */
  71. public function __construct($data = NULL) {
  72. \GPBMetadata\Common::initOnce();
  73. parent::__construct($data);
  74. }
  75. /**
  76. * Generated from protobuf field <code>string m_id = 1;</code>
  77. * @return string
  78. */
  79. public function getMId()
  80. {
  81. return $this->m_id;
  82. }
  83. /**
  84. * Generated from protobuf field <code>string m_id = 1;</code>
  85. * @param string $var
  86. * @return $this
  87. */
  88. public function setMId($var)
  89. {
  90. GPBUtil::checkString($var, True);
  91. $this->m_id = $var;
  92. return $this;
  93. }
  94. /**
  95. * Generated from protobuf field <code>.common_pack.roleType m_color = 2;</code>
  96. * @return int
  97. */
  98. public function getMColor()
  99. {
  100. return $this->m_color;
  101. }
  102. /**
  103. * Generated from protobuf field <code>.common_pack.roleType m_color = 2;</code>
  104. * @param int $var
  105. * @return $this
  106. */
  107. public function setMColor($var)
  108. {
  109. GPBUtil::checkEnum($var, \Common_pack\roleType::class);
  110. $this->m_color = $var;
  111. return $this;
  112. }
  113. /**
  114. * Generated from protobuf field <code>bool is_kick = 3;</code>
  115. * @return bool
  116. */
  117. public function getIsKick()
  118. {
  119. return $this->is_kick;
  120. }
  121. /**
  122. * Generated from protobuf field <code>bool is_kick = 3;</code>
  123. * @param bool $var
  124. * @return $this
  125. */
  126. public function setIsKick($var)
  127. {
  128. GPBUtil::checkBool($var);
  129. $this->is_kick = $var;
  130. return $this;
  131. }
  132. /**
  133. * Generated from protobuf field <code>bool is_finish = 4;</code>
  134. * @return bool
  135. */
  136. public function getIsFinish()
  137. {
  138. return $this->is_finish;
  139. }
  140. /**
  141. * Generated from protobuf field <code>bool is_finish = 4;</code>
  142. * @param bool $var
  143. * @return $this
  144. */
  145. public function setIsFinish($var)
  146. {
  147. GPBUtil::checkBool($var);
  148. $this->is_finish = $var;
  149. return $this;
  150. }
  151. /**
  152. * Generated from protobuf field <code>int32 time_out_num = 5;</code>
  153. * @return int
  154. */
  155. public function getTimeOutNum()
  156. {
  157. return $this->time_out_num;
  158. }
  159. /**
  160. * Generated from protobuf field <code>int32 time_out_num = 5;</code>
  161. * @param int $var
  162. * @return $this
  163. */
  164. public function setTimeOutNum($var)
  165. {
  166. GPBUtil::checkInt32($var);
  167. $this->time_out_num = $var;
  168. return $this;
  169. }
  170. /**
  171. * Generated from protobuf field <code>string m_name = 6;</code>
  172. * @return string
  173. */
  174. public function getMName()
  175. {
  176. return $this->m_name;
  177. }
  178. /**
  179. * Generated from protobuf field <code>string m_name = 6;</code>
  180. * @param string $var
  181. * @return $this
  182. */
  183. public function setMName($var)
  184. {
  185. GPBUtil::checkString($var, True);
  186. $this->m_name = $var;
  187. return $this;
  188. }
  189. /**
  190. * Generated from protobuf field <code>string m_head = 7;</code>
  191. * @return string
  192. */
  193. public function getMHead()
  194. {
  195. return $this->m_head;
  196. }
  197. /**
  198. * Generated from protobuf field <code>string m_head = 7;</code>
  199. * @param string $var
  200. * @return $this
  201. */
  202. public function setMHead($var)
  203. {
  204. GPBUtil::checkString($var, True);
  205. $this->m_head = $var;
  206. return $this;
  207. }
  208. /**
  209. * Generated from protobuf field <code>int32 rank_num = 8;</code>
  210. * @return int
  211. */
  212. public function getRankNum()
  213. {
  214. return $this->rank_num;
  215. }
  216. /**
  217. * Generated from protobuf field <code>int32 rank_num = 8;</code>
  218. * @param int $var
  219. * @return $this
  220. */
  221. public function setRankNum($var)
  222. {
  223. GPBUtil::checkInt32($var);
  224. $this->rank_num = $var;
  225. return $this;
  226. }
  227. /**
  228. * Generated from protobuf field <code>int32 m_coin = 9;</code>
  229. * @return int
  230. */
  231. public function getMCoin()
  232. {
  233. return $this->m_coin;
  234. }
  235. /**
  236. * Generated from protobuf field <code>int32 m_coin = 9;</code>
  237. * @param int $var
  238. * @return $this
  239. */
  240. public function setMCoin($var)
  241. {
  242. GPBUtil::checkInt32($var);
  243. $this->m_coin = $var;
  244. return $this;
  245. }
  246. /**
  247. * Generated from protobuf field <code>int32 m_reward_coin = 10;</code>
  248. * @return int
  249. */
  250. public function getMRewardCoin()
  251. {
  252. return $this->m_reward_coin;
  253. }
  254. /**
  255. * Generated from protobuf field <code>int32 m_reward_coin = 10;</code>
  256. * @param int $var
  257. * @return $this
  258. */
  259. public function setMRewardCoin($var)
  260. {
  261. GPBUtil::checkInt32($var);
  262. $this->m_reward_coin = $var;
  263. return $this;
  264. }
  265. }