123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?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.ReqChatHistory</code>
- */
- class ReqChatHistory extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>string to_userid = 1;</code>
- */
- protected $to_userid = '';
- /**
- * Generated from protobuf field <code>int32 last_msgid = 2;</code>
- */
- protected $last_msgid = 0;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $to_userid
- * @type int $last_msgid
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Common::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>string to_userid = 1;</code>
- * @return string
- */
- public function getToUserid()
- {
- return $this->to_userid;
- }
- /**
- * Generated from protobuf field <code>string to_userid = 1;</code>
- * @param string $var
- * @return $this
- */
- public function setToUserid($var)
- {
- GPBUtil::checkString($var, True);
- $this->to_userid = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>int32 last_msgid = 2;</code>
- * @return int
- */
- public function getLastMsgid()
- {
- return $this->last_msgid;
- }
- /**
- * Generated from protobuf field <code>int32 last_msgid = 2;</code>
- * @param int $var
- * @return $this
- */
- public function setLastMsgid($var)
- {
- GPBUtil::checkInt32($var);
- $this->last_msgid = $var;
- return $this;
- }
- }
|