RequestFriendSearchPlayer.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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.RequestFriendSearchPlayer</code>
  12. */
  13. class RequestFriendSearchPlayer extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * 用户ID
  17. *
  18. * Generated from protobuf field <code>string user_id = 1;</code>
  19. */
  20. protected $user_id = '';
  21. /**
  22. * 昵称
  23. *
  24. * Generated from protobuf field <code>string nickname = 2;</code>
  25. */
  26. protected $nickname = '';
  27. /**
  28. * Constructor.
  29. *
  30. * @param array $data {
  31. * Optional. Data for populating the Message object.
  32. *
  33. * @type string $user_id
  34. * 用户ID
  35. * @type string $nickname
  36. * 昵称
  37. * }
  38. */
  39. public function __construct($data = NULL) {
  40. \GPBMetadata\Proto\Game::initOnce();
  41. parent::__construct($data);
  42. }
  43. /**
  44. * 用户ID
  45. *
  46. * Generated from protobuf field <code>string user_id = 1;</code>
  47. * @return string
  48. */
  49. public function getUserId()
  50. {
  51. return $this->user_id;
  52. }
  53. /**
  54. * 用户ID
  55. *
  56. * Generated from protobuf field <code>string user_id = 1;</code>
  57. * @param string $var
  58. * @return $this
  59. */
  60. public function setUserId($var)
  61. {
  62. GPBUtil::checkString($var, True);
  63. $this->user_id = $var;
  64. return $this;
  65. }
  66. /**
  67. * 昵称
  68. *
  69. * Generated from protobuf field <code>string nickname = 2;</code>
  70. * @return string
  71. */
  72. public function getNickname()
  73. {
  74. return $this->nickname;
  75. }
  76. /**
  77. * 昵称
  78. *
  79. * Generated from protobuf field <code>string nickname = 2;</code>
  80. * @param string $var
  81. * @return $this
  82. */
  83. public function setNickname($var)
  84. {
  85. GPBUtil::checkString($var, True);
  86. $this->nickname = $var;
  87. return $this;
  88. }
  89. }
  90. // Adding a class alias for backwards compatibility with the previous class name.
  91. class_alias(RequestFriendSearchPlayer::class, \Uraus\Kku\Request_RequestFriendSearchPlayer::class);