123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: common.proto
- namespace Common_pack;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- *请求好友申请单个数据
- *
- * Generated from protobuf message <code>common_pack.FriendRequestItem</code>
- */
- class FriendRequestItem extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>.common_pack.UserInfo info = 1;</code>
- */
- protected $info = null;
- /**
- * Generated from protobuf field <code>string request_msg = 2;</code>
- */
- protected $request_msg = '';
- /**
- * Generated from protobuf field <code>string create_time = 3;</code>
- */
- protected $create_time = '';
- /**
- * Generated from protobuf field <code>int32 status = 4;</code>
- */
- protected $status = 0;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Common_pack\UserInfo $info
- * @type string $request_msg
- * @type string $create_time
- * @type int $status
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Common::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>.common_pack.UserInfo info = 1;</code>
- * @return \Common_pack\UserInfo|null
- */
- public function getInfo()
- {
- return $this->info;
- }
- public function hasInfo()
- {
- return isset($this->info);
- }
- public function clearInfo()
- {
- unset($this->info);
- }
- /**
- * Generated from protobuf field <code>.common_pack.UserInfo info = 1;</code>
- * @param \Common_pack\UserInfo $var
- * @return $this
- */
- public function setInfo($var)
- {
- GPBUtil::checkMessage($var, \Common_pack\UserInfo::class);
- $this->info = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string request_msg = 2;</code>
- * @return string
- */
- public function getRequestMsg()
- {
- return $this->request_msg;
- }
- /**
- * Generated from protobuf field <code>string request_msg = 2;</code>
- * @param string $var
- * @return $this
- */
- public function setRequestMsg($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_msg = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string create_time = 3;</code>
- * @return string
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
- /**
- * Generated from protobuf field <code>string create_time = 3;</code>
- * @param string $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkString($var, True);
- $this->create_time = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>int32 status = 4;</code>
- * @return int
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * Generated from protobuf field <code>int32 status = 4;</code>
- * @param int $var
- * @return $this
- */
- public function setStatus($var)
- {
- GPBUtil::checkInt32($var);
- $this->status = $var;
- return $this;
- }
- }
|