FriendRequestItem.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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.FriendRequestItem</code>
  12. */
  13. class FriendRequestItem extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>.common_pack.UserInfo info = 1;</code>
  17. */
  18. protected $info = null;
  19. /**
  20. * Generated from protobuf field <code>string request_msg = 2;</code>
  21. */
  22. protected $request_msg = '';
  23. /**
  24. * Generated from protobuf field <code>string create_time = 3;</code>
  25. */
  26. protected $create_time = '';
  27. /**
  28. * Generated from protobuf field <code>int32 status = 4;</code>
  29. */
  30. protected $status = 0;
  31. /**
  32. * Constructor.
  33. *
  34. * @param array $data {
  35. * Optional. Data for populating the Message object.
  36. *
  37. * @type \Common_pack\UserInfo $info
  38. * @type string $request_msg
  39. * @type string $create_time
  40. * @type int $status
  41. * }
  42. */
  43. public function __construct($data = NULL) {
  44. \GPBMetadata\Common::initOnce();
  45. parent::__construct($data);
  46. }
  47. /**
  48. * Generated from protobuf field <code>.common_pack.UserInfo info = 1;</code>
  49. * @return \Common_pack\UserInfo|null
  50. */
  51. public function getInfo()
  52. {
  53. return $this->info;
  54. }
  55. public function hasInfo()
  56. {
  57. return isset($this->info);
  58. }
  59. public function clearInfo()
  60. {
  61. unset($this->info);
  62. }
  63. /**
  64. * Generated from protobuf field <code>.common_pack.UserInfo info = 1;</code>
  65. * @param \Common_pack\UserInfo $var
  66. * @return $this
  67. */
  68. public function setInfo($var)
  69. {
  70. GPBUtil::checkMessage($var, \Common_pack\UserInfo::class);
  71. $this->info = $var;
  72. return $this;
  73. }
  74. /**
  75. * Generated from protobuf field <code>string request_msg = 2;</code>
  76. * @return string
  77. */
  78. public function getRequestMsg()
  79. {
  80. return $this->request_msg;
  81. }
  82. /**
  83. * Generated from protobuf field <code>string request_msg = 2;</code>
  84. * @param string $var
  85. * @return $this
  86. */
  87. public function setRequestMsg($var)
  88. {
  89. GPBUtil::checkString($var, True);
  90. $this->request_msg = $var;
  91. return $this;
  92. }
  93. /**
  94. * Generated from protobuf field <code>string create_time = 3;</code>
  95. * @return string
  96. */
  97. public function getCreateTime()
  98. {
  99. return $this->create_time;
  100. }
  101. /**
  102. * Generated from protobuf field <code>string create_time = 3;</code>
  103. * @param string $var
  104. * @return $this
  105. */
  106. public function setCreateTime($var)
  107. {
  108. GPBUtil::checkString($var, True);
  109. $this->create_time = $var;
  110. return $this;
  111. }
  112. /**
  113. * Generated from protobuf field <code>int32 status = 4;</code>
  114. * @return int
  115. */
  116. public function getStatus()
  117. {
  118. return $this->status;
  119. }
  120. /**
  121. * Generated from protobuf field <code>int32 status = 4;</code>
  122. * @param int $var
  123. * @return $this
  124. */
  125. public function setStatus($var)
  126. {
  127. GPBUtil::checkInt32($var);
  128. $this->status = $var;
  129. return $this;
  130. }
  131. }