common_pack.ReqChatHistory
*/
class ReqChatHistory extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string to_userid = 1;
*/
protected $to_userid = '';
/**
* Generated from protobuf field int32 last_msgid = 2;
*/
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 string to_userid = 1;
* @return string
*/
public function getToUserid()
{
return $this->to_userid;
}
/**
* Generated from protobuf field string to_userid = 1;
* @param string $var
* @return $this
*/
public function setToUserid($var)
{
GPBUtil::checkString($var, True);
$this->to_userid = $var;
return $this;
}
/**
* Generated from protobuf field int32 last_msgid = 2;
* @return int
*/
public function getLastMsgid()
{
return $this->last_msgid;
}
/**
* Generated from protobuf field int32 last_msgid = 2;
* @param int $var
* @return $this
*/
public function setLastMsgid($var)
{
GPBUtil::checkInt32($var);
$this->last_msgid = $var;
return $this;
}
}