RequestAddFriendItem.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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.RequestAddFriendItem</code>
  12. */
  13. class RequestAddFriendItem extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>int32 id = 1;</code>
  17. */
  18. protected $id = 0;
  19. /**
  20. *请求id
  21. *
  22. * Generated from protobuf field <code>string RequestID = 2;</code>
  23. */
  24. protected $RequestID = '';
  25. /**
  26. * Generated from protobuf field <code>string FromUserID = 3;</code>
  27. */
  28. protected $FromUserID = '';
  29. /**
  30. * Generated from protobuf field <code>string ToUserID = 4;</code>
  31. */
  32. protected $ToUserID = '';
  33. /**
  34. *状态
  35. *
  36. * Generated from protobuf field <code>int32 Status = 5;</code>
  37. */
  38. protected $Status = 0;
  39. /**
  40. * Generated from protobuf field <code>string Message = 6;</code>
  41. */
  42. protected $Message = '';
  43. /**
  44. * Constructor.
  45. *
  46. * @param array $data {
  47. * Optional. Data for populating the Message object.
  48. *
  49. * @type int $id
  50. * @type string $RequestID
  51. * 请求id
  52. * @type string $FromUserID
  53. * @type string $ToUserID
  54. * @type int $Status
  55. * 状态
  56. * @type string $Message
  57. * }
  58. */
  59. public function __construct($data = NULL) {
  60. \GPBMetadata\Common::initOnce();
  61. parent::__construct($data);
  62. }
  63. /**
  64. * Generated from protobuf field <code>int32 id = 1;</code>
  65. * @return int
  66. */
  67. public function getId()
  68. {
  69. return $this->id;
  70. }
  71. /**
  72. * Generated from protobuf field <code>int32 id = 1;</code>
  73. * @param int $var
  74. * @return $this
  75. */
  76. public function setId($var)
  77. {
  78. GPBUtil::checkInt32($var);
  79. $this->id = $var;
  80. return $this;
  81. }
  82. /**
  83. *请求id
  84. *
  85. * Generated from protobuf field <code>string RequestID = 2;</code>
  86. * @return string
  87. */
  88. public function getRequestID()
  89. {
  90. return $this->RequestID;
  91. }
  92. /**
  93. *请求id
  94. *
  95. * Generated from protobuf field <code>string RequestID = 2;</code>
  96. * @param string $var
  97. * @return $this
  98. */
  99. public function setRequestID($var)
  100. {
  101. GPBUtil::checkString($var, True);
  102. $this->RequestID = $var;
  103. return $this;
  104. }
  105. /**
  106. * Generated from protobuf field <code>string FromUserID = 3;</code>
  107. * @return string
  108. */
  109. public function getFromUserID()
  110. {
  111. return $this->FromUserID;
  112. }
  113. /**
  114. * Generated from protobuf field <code>string FromUserID = 3;</code>
  115. * @param string $var
  116. * @return $this
  117. */
  118. public function setFromUserID($var)
  119. {
  120. GPBUtil::checkString($var, True);
  121. $this->FromUserID = $var;
  122. return $this;
  123. }
  124. /**
  125. * Generated from protobuf field <code>string ToUserID = 4;</code>
  126. * @return string
  127. */
  128. public function getToUserID()
  129. {
  130. return $this->ToUserID;
  131. }
  132. /**
  133. * Generated from protobuf field <code>string ToUserID = 4;</code>
  134. * @param string $var
  135. * @return $this
  136. */
  137. public function setToUserID($var)
  138. {
  139. GPBUtil::checkString($var, True);
  140. $this->ToUserID = $var;
  141. return $this;
  142. }
  143. /**
  144. *状态
  145. *
  146. * Generated from protobuf field <code>int32 Status = 5;</code>
  147. * @return int
  148. */
  149. public function getStatus()
  150. {
  151. return $this->Status;
  152. }
  153. /**
  154. *状态
  155. *
  156. * Generated from protobuf field <code>int32 Status = 5;</code>
  157. * @param int $var
  158. * @return $this
  159. */
  160. public function setStatus($var)
  161. {
  162. GPBUtil::checkInt32($var);
  163. $this->Status = $var;
  164. return $this;
  165. }
  166. /**
  167. * Generated from protobuf field <code>string Message = 6;</code>
  168. * @return string
  169. */
  170. public function getMessage()
  171. {
  172. return $this->Message;
  173. }
  174. /**
  175. * Generated from protobuf field <code>string Message = 6;</code>
  176. * @param string $var
  177. * @return $this
  178. */
  179. public function setMessage($var)
  180. {
  181. GPBUtil::checkString($var, True);
  182. $this->Message = $var;
  183. return $this;
  184. }
  185. }