RequestPublicRegister.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: proto/game.proto
  4. namespace Uraus\Kku\Request;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * 注册操作对象
  10. *
  11. * Generated from protobuf message <code>uraus.kku.Request.RequestPublicRegister</code>
  12. */
  13. class RequestPublicRegister extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * 手机号码
  17. *
  18. * Generated from protobuf field <code>string mobile = 1;</code>
  19. */
  20. protected $mobile = '';
  21. /**
  22. * 密码
  23. *
  24. * Generated from protobuf field <code>string password = 2;</code>
  25. */
  26. protected $password = '';
  27. /**
  28. * 短信验证码
  29. *
  30. * Generated from protobuf field <code>string code = 3;</code>
  31. */
  32. protected $code = '';
  33. /**
  34. * 邀请码
  35. *
  36. * Generated from protobuf field <code>string invite_code = 10;</code>
  37. */
  38. protected $invite_code = '';
  39. /**
  40. * Constructor.
  41. *
  42. * @param array $data {
  43. * Optional. Data for populating the Message object.
  44. *
  45. * @type string $mobile
  46. * 手机号码
  47. * @type string $password
  48. * 密码
  49. * @type string $code
  50. * 短信验证码
  51. * @type string $invite_code
  52. * 邀请码
  53. * }
  54. */
  55. public function __construct($data = NULL) {
  56. \GPBMetadata\Proto\Game::initOnce();
  57. parent::__construct($data);
  58. }
  59. /**
  60. * 手机号码
  61. *
  62. * Generated from protobuf field <code>string mobile = 1;</code>
  63. * @return string
  64. */
  65. public function getMobile()
  66. {
  67. return $this->mobile;
  68. }
  69. /**
  70. * 手机号码
  71. *
  72. * Generated from protobuf field <code>string mobile = 1;</code>
  73. * @param string $var
  74. * @return $this
  75. */
  76. public function setMobile($var)
  77. {
  78. GPBUtil::checkString($var, True);
  79. $this->mobile = $var;
  80. return $this;
  81. }
  82. /**
  83. * 密码
  84. *
  85. * Generated from protobuf field <code>string password = 2;</code>
  86. * @return string
  87. */
  88. public function getPassword()
  89. {
  90. return $this->password;
  91. }
  92. /**
  93. * 密码
  94. *
  95. * Generated from protobuf field <code>string password = 2;</code>
  96. * @param string $var
  97. * @return $this
  98. */
  99. public function setPassword($var)
  100. {
  101. GPBUtil::checkString($var, True);
  102. $this->password = $var;
  103. return $this;
  104. }
  105. /**
  106. * 短信验证码
  107. *
  108. * Generated from protobuf field <code>string code = 3;</code>
  109. * @return string
  110. */
  111. public function getCode()
  112. {
  113. return $this->code;
  114. }
  115. /**
  116. * 短信验证码
  117. *
  118. * Generated from protobuf field <code>string code = 3;</code>
  119. * @param string $var
  120. * @return $this
  121. */
  122. public function setCode($var)
  123. {
  124. GPBUtil::checkString($var, True);
  125. $this->code = $var;
  126. return $this;
  127. }
  128. /**
  129. * 邀请码
  130. *
  131. * Generated from protobuf field <code>string invite_code = 10;</code>
  132. * @return string
  133. */
  134. public function getInviteCode()
  135. {
  136. return $this->invite_code;
  137. }
  138. /**
  139. * 邀请码
  140. *
  141. * Generated from protobuf field <code>string invite_code = 10;</code>
  142. * @param string $var
  143. * @return $this
  144. */
  145. public function setInviteCode($var)
  146. {
  147. GPBUtil::checkString($var, True);
  148. $this->invite_code = $var;
  149. return $this;
  150. }
  151. }
  152. // Adding a class alias for backwards compatibility with the previous class name.
  153. class_alias(RequestPublicRegister::class, \Uraus\Kku\Request_RequestPublicRegister::class);