user.UserStatus */ class UserStatus extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field int64 isLock = 1; */ protected $isLock = 0; /** * Generated from protobuf field int64 isShield = 2; */ protected $isShield = 0; /** * Generated from protobuf field string nickname = 3; */ protected $nickname = ''; /** * Generated from protobuf field string avatar = 4; */ protected $avatar = ''; /** * Generated from protobuf field string sex = 5; */ protected $sex = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $isLock * @type int|string $isShield * @type string $nickname * @type string $avatar * @type string $sex * } */ public function __construct($data = NULL) { \GPBMetadata\UserService::initOnce(); parent::__construct($data); } /** * Generated from protobuf field int64 isLock = 1; * @return int|string */ public function getIsLock() { return $this->isLock; } /** * Generated from protobuf field int64 isLock = 1; * @param int|string $var * @return $this */ public function setIsLock($var) { GPBUtil::checkInt64($var); $this->isLock = $var; return $this; } /** * Generated from protobuf field int64 isShield = 2; * @return int|string */ public function getIsShield() { return $this->isShield; } /** * Generated from protobuf field int64 isShield = 2; * @param int|string $var * @return $this */ public function setIsShield($var) { GPBUtil::checkInt64($var); $this->isShield = $var; return $this; } /** * Generated from protobuf field string nickname = 3; * @return string */ public function getNickname() { return $this->nickname; } /** * Generated from protobuf field string nickname = 3; * @param string $var * @return $this */ public function setNickname($var) { GPBUtil::checkString($var, True); $this->nickname = $var; return $this; } /** * Generated from protobuf field string avatar = 4; * @return string */ public function getAvatar() { return $this->avatar; } /** * Generated from protobuf field string avatar = 4; * @param string $var * @return $this */ public function setAvatar($var) { GPBUtil::checkString($var, True); $this->avatar = $var; return $this; } /** * Generated from protobuf field string sex = 5; * @return string */ public function getSex() { return $this->sex; } /** * Generated from protobuf field string sex = 5; * @param string $var * @return $this */ public function setSex($var) { GPBUtil::checkString($var, True); $this->sex = $var; return $this; } }