| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- <?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.PromotionListItem</code>
- */
- class PromotionListItem 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>string nickname = 2;</code>
- */
- protected $nickname = '';
- /**
- * 头像
- *
- * Generated from protobuf field <code>string avatar = 3;</code>
- */
- protected $avatar = '';
- /**
- * 财富
- *
- * Generated from protobuf field <code>int64 fund2 = 4;</code>
- */
- protected $fund2 = 0;
- /**
- * 贡献
- *
- * Generated from protobuf field <code>int64 contribution = 5;</code>
- */
- protected $contribution = 0;
- /**
- * 房屋等级
- *
- * Generated from protobuf field <code>int64 house_level = 6;</code>
- */
- protected $house_level = 0;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $user_id
- * 用户ID
- * @type string $nickname
- * 昵称
- * @type string $avatar
- * 头像
- * @type int|string $fund2
- * 财富
- * @type int|string $contribution
- * 贡献
- * @type int|string $house_level
- * 房屋等级
- * }
- */
- 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>string nickname = 2;</code>
- * @return string
- */
- public function getNickname()
- {
- return $this->nickname;
- }
- /**
- * 昵称
- *
- * Generated from protobuf field <code>string nickname = 2;</code>
- * @param string $var
- * @return $this
- */
- public function setNickname($var)
- {
- GPBUtil::checkString($var, True);
- $this->nickname = $var;
- return $this;
- }
- /**
- * 头像
- *
- * Generated from protobuf field <code>string avatar = 3;</code>
- * @return string
- */
- public function getAvatar()
- {
- return $this->avatar;
- }
- /**
- * 头像
- *
- * Generated from protobuf field <code>string avatar = 3;</code>
- * @param string $var
- * @return $this
- */
- public function setAvatar($var)
- {
- GPBUtil::checkString($var, True);
- $this->avatar = $var;
- return $this;
- }
- /**
- * 财富
- *
- * Generated from protobuf field <code>int64 fund2 = 4;</code>
- * @return int|string
- */
- public function getFund2()
- {
- return $this->fund2;
- }
- /**
- * 财富
- *
- * Generated from protobuf field <code>int64 fund2 = 4;</code>
- * @param int|string $var
- * @return $this
- */
- public function setFund2($var)
- {
- GPBUtil::checkInt64($var);
- $this->fund2 = $var;
- return $this;
- }
- /**
- * 贡献
- *
- * Generated from protobuf field <code>int64 contribution = 5;</code>
- * @return int|string
- */
- public function getContribution()
- {
- return $this->contribution;
- }
- /**
- * 贡献
- *
- * Generated from protobuf field <code>int64 contribution = 5;</code>
- * @param int|string $var
- * @return $this
- */
- public function setContribution($var)
- {
- GPBUtil::checkInt64($var);
- $this->contribution = $var;
- return $this;
- }
- /**
- * 房屋等级
- *
- * Generated from protobuf field <code>int64 house_level = 6;</code>
- * @return int|string
- */
- public function getHouseLevel()
- {
- return $this->house_level;
- }
- /**
- * 房屋等级
- *
- * Generated from protobuf field <code>int64 house_level = 6;</code>
- * @param int|string $var
- * @return $this
- */
- public function setHouseLevel($var)
- {
- GPBUtil::checkInt64($var);
- $this->house_level = $var;
- return $this;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(PromotionListItem::class, \Uraus\Kku\Response_PromotionListItem::class);
|