RoleData.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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.RoleData</code>
  10. */
  11. class RoleData extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.common_pack.roleType m_color = 1;</code>
  15. */
  16. protected $m_color = 0;
  17. /**
  18. * Generated from protobuf field <code>int32 m_seat = 2;</code>
  19. */
  20. protected $m_seat = 0;
  21. /**
  22. * Generated from protobuf field <code>string m_id = 3;</code>
  23. */
  24. protected $m_id = '';
  25. /**
  26. * Generated from protobuf field <code>.common_pack.roadType m_cur_road = 4;</code>
  27. */
  28. protected $m_cur_road = 0;
  29. /**
  30. * Generated from protobuf field <code>int32 step = 5;</code>
  31. */
  32. protected $step = 0;
  33. /**
  34. * Generated from protobuf field <code>int32 old_setp = 6;</code>
  35. */
  36. protected $old_setp = 0;
  37. /**
  38. * Constructor.
  39. *
  40. * @param array $data {
  41. * Optional. Data for populating the Message object.
  42. *
  43. * @type int $m_color
  44. * @type int $m_seat
  45. * @type string $m_id
  46. * @type int $m_cur_road
  47. * @type int $step
  48. * @type int $old_setp
  49. * }
  50. */
  51. public function __construct($data = NULL) {
  52. \GPBMetadata\Common::initOnce();
  53. parent::__construct($data);
  54. }
  55. /**
  56. * Generated from protobuf field <code>.common_pack.roleType m_color = 1;</code>
  57. * @return int
  58. */
  59. public function getMColor()
  60. {
  61. return $this->m_color;
  62. }
  63. /**
  64. * Generated from protobuf field <code>.common_pack.roleType m_color = 1;</code>
  65. * @param int $var
  66. * @return $this
  67. */
  68. public function setMColor($var)
  69. {
  70. GPBUtil::checkEnum($var, \Common_pack\roleType::class);
  71. $this->m_color = $var;
  72. return $this;
  73. }
  74. /**
  75. * Generated from protobuf field <code>int32 m_seat = 2;</code>
  76. * @return int
  77. */
  78. public function getMSeat()
  79. {
  80. return $this->m_seat;
  81. }
  82. /**
  83. * Generated from protobuf field <code>int32 m_seat = 2;</code>
  84. * @param int $var
  85. * @return $this
  86. */
  87. public function setMSeat($var)
  88. {
  89. GPBUtil::checkInt32($var);
  90. $this->m_seat = $var;
  91. return $this;
  92. }
  93. /**
  94. * Generated from protobuf field <code>string m_id = 3;</code>
  95. * @return string
  96. */
  97. public function getMId()
  98. {
  99. return $this->m_id;
  100. }
  101. /**
  102. * Generated from protobuf field <code>string m_id = 3;</code>
  103. * @param string $var
  104. * @return $this
  105. */
  106. public function setMId($var)
  107. {
  108. GPBUtil::checkString($var, True);
  109. $this->m_id = $var;
  110. return $this;
  111. }
  112. /**
  113. * Generated from protobuf field <code>.common_pack.roadType m_cur_road = 4;</code>
  114. * @return int
  115. */
  116. public function getMCurRoad()
  117. {
  118. return $this->m_cur_road;
  119. }
  120. /**
  121. * Generated from protobuf field <code>.common_pack.roadType m_cur_road = 4;</code>
  122. * @param int $var
  123. * @return $this
  124. */
  125. public function setMCurRoad($var)
  126. {
  127. GPBUtil::checkEnum($var, \Common_pack\roadType::class);
  128. $this->m_cur_road = $var;
  129. return $this;
  130. }
  131. /**
  132. * Generated from protobuf field <code>int32 step = 5;</code>
  133. * @return int
  134. */
  135. public function getStep()
  136. {
  137. return $this->step;
  138. }
  139. /**
  140. * Generated from protobuf field <code>int32 step = 5;</code>
  141. * @param int $var
  142. * @return $this
  143. */
  144. public function setStep($var)
  145. {
  146. GPBUtil::checkInt32($var);
  147. $this->step = $var;
  148. return $this;
  149. }
  150. /**
  151. * Generated from protobuf field <code>int32 old_setp = 6;</code>
  152. * @return int
  153. */
  154. public function getOldSetp()
  155. {
  156. return $this->old_setp;
  157. }
  158. /**
  159. * Generated from protobuf field <code>int32 old_setp = 6;</code>
  160. * @param int $var
  161. * @return $this
  162. */
  163. public function setOldSetp($var)
  164. {
  165. GPBUtil::checkInt32($var);
  166. $this->old_setp = $var;
  167. return $this;
  168. }
  169. }