123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- <?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.ResLogin</code>
- */
- class ResLogin extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>string userId = 1;</code>
- */
- protected $userId = '';
- /**
- * Generated from protobuf field <code>string nikeName = 2;</code>
- */
- protected $nikeName = '';
- /**
- * Generated from protobuf field <code>.common_pack.UserInfo userInfo = 3;</code>
- */
- protected $userInfo = null;
- /**
- * Generated from protobuf field <code>.common_pack.MsgError err_msg = 4;</code>
- */
- protected $err_msg = null;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $userId
- * @type string $nikeName
- * @type \Common_pack\UserInfo $userInfo
- * @type \Common_pack\MsgError $err_msg
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Common::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>string userId = 1;</code>
- * @return string
- */
- public function getUserId()
- {
- return $this->userId;
- }
- /**
- * Generated from protobuf field <code>string userId = 1;</code>
- * @param string $var
- * @return $this
- */
- public function setUserId($var)
- {
- GPBUtil::checkString($var, True);
- $this->userId = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string nikeName = 2;</code>
- * @return string
- */
- public function getNikeName()
- {
- return $this->nikeName;
- }
- /**
- * Generated from protobuf field <code>string nikeName = 2;</code>
- * @param string $var
- * @return $this
- */
- public function setNikeName($var)
- {
- GPBUtil::checkString($var, True);
- $this->nikeName = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.common_pack.UserInfo userInfo = 3;</code>
- * @return \Common_pack\UserInfo|null
- */
- public function getUserInfo()
- {
- return $this->userInfo;
- }
- public function hasUserInfo()
- {
- return isset($this->userInfo);
- }
- public function clearUserInfo()
- {
- unset($this->userInfo);
- }
- /**
- * Generated from protobuf field <code>.common_pack.UserInfo userInfo = 3;</code>
- * @param \Common_pack\UserInfo $var
- * @return $this
- */
- public function setUserInfo($var)
- {
- GPBUtil::checkMessage($var, \Common_pack\UserInfo::class);
- $this->userInfo = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.common_pack.MsgError err_msg = 4;</code>
- * @return \Common_pack\MsgError|null
- */
- public function getErrMsg()
- {
- return $this->err_msg;
- }
- public function hasErrMsg()
- {
- return isset($this->err_msg);
- }
- public function clearErrMsg()
- {
- unset($this->err_msg);
- }
- /**
- * Generated from protobuf field <code>.common_pack.MsgError err_msg = 4;</code>
- * @param \Common_pack\MsgError $var
- * @return $this
- */
- public function setErrMsg($var)
- {
- GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
- $this->err_msg = $var;
- return $this;
- }
- }
|