ResLogin.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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.ResLogin</code>
  12. */
  13. class ResLogin extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>string userId = 1;</code>
  17. */
  18. protected $userId = '';
  19. /**
  20. * Generated from protobuf field <code>string nikeName = 2;</code>
  21. */
  22. protected $nikeName = '';
  23. /**
  24. * Generated from protobuf field <code>.common_pack.UserInfo userInfo = 3;</code>
  25. */
  26. protected $userInfo = null;
  27. /**
  28. * Generated from protobuf field <code>.common_pack.MsgError err_msg = 4;</code>
  29. */
  30. protected $err_msg = null;
  31. /**
  32. * Constructor.
  33. *
  34. * @param array $data {
  35. * Optional. Data for populating the Message object.
  36. *
  37. * @type string $userId
  38. * @type string $nikeName
  39. * @type \Common_pack\UserInfo $userInfo
  40. * @type \Common_pack\MsgError $err_msg
  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 userId = 1;</code>
  49. * @return string
  50. */
  51. public function getUserId()
  52. {
  53. return $this->userId;
  54. }
  55. /**
  56. * Generated from protobuf field <code>string userId = 1;</code>
  57. * @param string $var
  58. * @return $this
  59. */
  60. public function setUserId($var)
  61. {
  62. GPBUtil::checkString($var, True);
  63. $this->userId = $var;
  64. return $this;
  65. }
  66. /**
  67. * Generated from protobuf field <code>string nikeName = 2;</code>
  68. * @return string
  69. */
  70. public function getNikeName()
  71. {
  72. return $this->nikeName;
  73. }
  74. /**
  75. * Generated from protobuf field <code>string nikeName = 2;</code>
  76. * @param string $var
  77. * @return $this
  78. */
  79. public function setNikeName($var)
  80. {
  81. GPBUtil::checkString($var, True);
  82. $this->nikeName = $var;
  83. return $this;
  84. }
  85. /**
  86. * Generated from protobuf field <code>.common_pack.UserInfo userInfo = 3;</code>
  87. * @return \Common_pack\UserInfo|null
  88. */
  89. public function getUserInfo()
  90. {
  91. return $this->userInfo;
  92. }
  93. public function hasUserInfo()
  94. {
  95. return isset($this->userInfo);
  96. }
  97. public function clearUserInfo()
  98. {
  99. unset($this->userInfo);
  100. }
  101. /**
  102. * Generated from protobuf field <code>.common_pack.UserInfo userInfo = 3;</code>
  103. * @param \Common_pack\UserInfo $var
  104. * @return $this
  105. */
  106. public function setUserInfo($var)
  107. {
  108. GPBUtil::checkMessage($var, \Common_pack\UserInfo::class);
  109. $this->userInfo = $var;
  110. return $this;
  111. }
  112. /**
  113. * Generated from protobuf field <code>.common_pack.MsgError err_msg = 4;</code>
  114. * @return \Common_pack\MsgError|null
  115. */
  116. public function getErrMsg()
  117. {
  118. return $this->err_msg;
  119. }
  120. public function hasErrMsg()
  121. {
  122. return isset($this->err_msg);
  123. }
  124. public function clearErrMsg()
  125. {
  126. unset($this->err_msg);
  127. }
  128. /**
  129. * Generated from protobuf field <code>.common_pack.MsgError err_msg = 4;</code>
  130. * @param \Common_pack\MsgError $var
  131. * @return $this
  132. */
  133. public function setErrMsg($var)
  134. {
  135. GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
  136. $this->err_msg = $var;
  137. return $this;
  138. }
  139. }