common_pack.FriendRequestItem
*/
class FriendRequestItem extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .common_pack.UserInfo info = 1;
*/
protected $info = null;
/**
* Generated from protobuf field string request_msg = 2;
*/
protected $request_msg = '';
/**
* Generated from protobuf field string create_time = 3;
*/
protected $create_time = '';
/**
* Generated from protobuf field int32 status = 4;
*/
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 .common_pack.UserInfo info = 1;
* @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 .common_pack.UserInfo info = 1;
* @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 string request_msg = 2;
* @return string
*/
public function getRequestMsg()
{
return $this->request_msg;
}
/**
* Generated from protobuf field string request_msg = 2;
* @param string $var
* @return $this
*/
public function setRequestMsg($var)
{
GPBUtil::checkString($var, True);
$this->request_msg = $var;
return $this;
}
/**
* Generated from protobuf field string create_time = 3;
* @return string
*/
public function getCreateTime()
{
return $this->create_time;
}
/**
* Generated from protobuf field string create_time = 3;
* @param string $var
* @return $this
*/
public function setCreateTime($var)
{
GPBUtil::checkString($var, True);
$this->create_time = $var;
return $this;
}
/**
* Generated from protobuf field int32 status = 4;
* @return int
*/
public function getStatus()
{
return $this->status;
}
/**
* Generated from protobuf field int32 status = 4;
* @param int $var
* @return $this
*/
public function setStatus($var)
{
GPBUtil::checkInt32($var);
$this->status = $var;
return $this;
}
}