| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: proto/game.proto
- namespace Uraus\Kku\Response;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * 用户基础信息
- *
- * Generated from protobuf message <code>uraus.kku.Response.UserInfo</code>
- */
- class UserInfo extends \Google\Protobuf\Internal\Message
- {
- /**
- *玩家id
- *
- * Generated from protobuf field <code>int64 user_id = 1;</code>
- */
- protected $user_id = 0;
- /**
- *农场皮肤
- *
- * Generated from protobuf field <code>int64 skin_id = 2;</code>
- */
- protected $skin_id = 0;
- /**
- *玩家头像
- *
- * Generated from protobuf field <code>int64 avatar = 3;</code>
- */
- protected $avatar = 0;
- /**
- *玩家昵称
- *
- * Generated from protobuf field <code>string nick_name = 4;</code>
- */
- protected $nick_name = '';
- /**
- * 手机
- *
- * Generated from protobuf field <code>string mobile = 5;</code>
- */
- protected $mobile = '';
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $user_id
- * 玩家id
- * @type int|string $skin_id
- * 农场皮肤
- * @type int|string $avatar
- * 玩家头像
- * @type string $nick_name
- * 玩家昵称
- * @type string $mobile
- * 手机
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Proto\Game::initOnce();
- parent::__construct($data);
- }
- /**
- *玩家id
- *
- * Generated from protobuf field <code>int64 user_id = 1;</code>
- * @return int|string
- */
- public function getUserId()
- {
- return $this->user_id;
- }
- /**
- *玩家id
- *
- * Generated from protobuf field <code>int64 user_id = 1;</code>
- * @param int|string $var
- * @return $this
- */
- public function setUserId($var)
- {
- GPBUtil::checkInt64($var);
- $this->user_id = $var;
- return $this;
- }
- /**
- *农场皮肤
- *
- * Generated from protobuf field <code>int64 skin_id = 2;</code>
- * @return int|string
- */
- public function getSkinId()
- {
- return $this->skin_id;
- }
- /**
- *农场皮肤
- *
- * Generated from protobuf field <code>int64 skin_id = 2;</code>
- * @param int|string $var
- * @return $this
- */
- public function setSkinId($var)
- {
- GPBUtil::checkInt64($var);
- $this->skin_id = $var;
- return $this;
- }
- /**
- *玩家头像
- *
- * Generated from protobuf field <code>int64 avatar = 3;</code>
- * @return int|string
- */
- public function getAvatar()
- {
- return $this->avatar;
- }
- /**
- *玩家头像
- *
- * Generated from protobuf field <code>int64 avatar = 3;</code>
- * @param int|string $var
- * @return $this
- */
- public function setAvatar($var)
- {
- GPBUtil::checkInt64($var);
- $this->avatar = $var;
- return $this;
- }
- /**
- *玩家昵称
- *
- * Generated from protobuf field <code>string nick_name = 4;</code>
- * @return string
- */
- public function getNickName()
- {
- return $this->nick_name;
- }
- /**
- *玩家昵称
- *
- * Generated from protobuf field <code>string nick_name = 4;</code>
- * @param string $var
- * @return $this
- */
- public function setNickName($var)
- {
- GPBUtil::checkString($var, True);
- $this->nick_name = $var;
- return $this;
- }
- /**
- * 手机
- *
- * Generated from protobuf field <code>string mobile = 5;</code>
- * @return string
- */
- public function getMobile()
- {
- return $this->mobile;
- }
- /**
- * 手机
- *
- * Generated from protobuf field <code>string mobile = 5;</code>
- * @param string $var
- * @return $this
- */
- public function setMobile($var)
- {
- GPBUtil::checkString($var, True);
- $this->mobile = $var;
- return $this;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(UserInfo::class, \Uraus\Kku\Response_UserInfo::class);
|