ReqRegister.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. *注册 请求
  10. *
  11. * Generated from protobuf message <code>common_pack.ReqRegister</code>
  12. */
  13. class ReqRegister extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>string nikeName = 1;</code>
  17. */
  18. protected $nikeName = '';
  19. /**
  20. * Generated from protobuf field <code>string account = 2;</code>
  21. */
  22. protected $account = '';
  23. /**
  24. * Generated from protobuf field <code>string password = 3;</code>
  25. */
  26. protected $password = '';
  27. /**
  28. * Generated from protobuf field <code>string m_head = 4;</code>
  29. */
  30. protected $m_head = '';
  31. /**
  32. * Constructor.
  33. *
  34. * @param array $data {
  35. * Optional. Data for populating the Message object.
  36. *
  37. * @type string $nikeName
  38. * @type string $account
  39. * @type string $password
  40. * @type string $m_head
  41. * }
  42. */
  43. public function __construct($data = NULL) {
  44. \GPBMetadata\Common::initOnce();
  45. parent::__construct($data);
  46. }
  47. /**
  48. * Generated from protobuf field <code>string nikeName = 1;</code>
  49. * @return string
  50. */
  51. public function getNikeName()
  52. {
  53. return $this->nikeName;
  54. }
  55. /**
  56. * Generated from protobuf field <code>string nikeName = 1;</code>
  57. * @param string $var
  58. * @return $this
  59. */
  60. public function setNikeName($var)
  61. {
  62. GPBUtil::checkString($var, True);
  63. $this->nikeName = $var;
  64. return $this;
  65. }
  66. /**
  67. * Generated from protobuf field <code>string account = 2;</code>
  68. * @return string
  69. */
  70. public function getAccount()
  71. {
  72. return $this->account;
  73. }
  74. /**
  75. * Generated from protobuf field <code>string account = 2;</code>
  76. * @param string $var
  77. * @return $this
  78. */
  79. public function setAccount($var)
  80. {
  81. GPBUtil::checkString($var, True);
  82. $this->account = $var;
  83. return $this;
  84. }
  85. /**
  86. * Generated from protobuf field <code>string password = 3;</code>
  87. * @return string
  88. */
  89. public function getPassword()
  90. {
  91. return $this->password;
  92. }
  93. /**
  94. * Generated from protobuf field <code>string password = 3;</code>
  95. * @param string $var
  96. * @return $this
  97. */
  98. public function setPassword($var)
  99. {
  100. GPBUtil::checkString($var, True);
  101. $this->password = $var;
  102. return $this;
  103. }
  104. /**
  105. * Generated from protobuf field <code>string m_head = 4;</code>
  106. * @return string
  107. */
  108. public function getMHead()
  109. {
  110. return $this->m_head;
  111. }
  112. /**
  113. * Generated from protobuf field <code>string m_head = 4;</code>
  114. * @param string $var
  115. * @return $this
  116. */
  117. public function setMHead($var)
  118. {
  119. GPBUtil::checkString($var, True);
  120. $this->m_head = $var;
  121. return $this;
  122. }
  123. }