RequestFriendApply.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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.RequestFriendApply</code>
  12. */
  13. class RequestFriendApply extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>int64 user_id = 1;</code>
  17. */
  18. protected $user_id = 0;
  19. /**
  20. * Constructor.
  21. *
  22. * @param array $data {
  23. * Optional. Data for populating the Message object.
  24. *
  25. * @type int|string $user_id
  26. * }
  27. */
  28. public function __construct($data = NULL) {
  29. \GPBMetadata\Proto\Game::initOnce();
  30. parent::__construct($data);
  31. }
  32. /**
  33. * Generated from protobuf field <code>int64 user_id = 1;</code>
  34. * @return int|string
  35. */
  36. public function getUserId()
  37. {
  38. return $this->user_id;
  39. }
  40. /**
  41. * Generated from protobuf field <code>int64 user_id = 1;</code>
  42. * @param int|string $var
  43. * @return $this
  44. */
  45. public function setUserId($var)
  46. {
  47. GPBUtil::checkInt64($var);
  48. $this->user_id = $var;
  49. return $this;
  50. }
  51. }
  52. // Adding a class alias for backwards compatibility with the previous class name.
  53. class_alias(RequestFriendApply::class, \Uraus\Kku\Request_RequestFriendApply::class);