123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 |
- <?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.ColorData</code>
- */
- class ColorData extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>string m_id = 1;</code>
- */
- protected $m_id = '';
- /**
- * Generated from protobuf field <code>.common_pack.roleType m_color = 2;</code>
- */
- protected $m_color = 0;
- /**
- * Generated from protobuf field <code>bool is_kick = 3;</code>
- */
- protected $is_kick = false;
- /**
- * Generated from protobuf field <code>bool is_finish = 4;</code>
- */
- protected $is_finish = false;
- /**
- * Generated from protobuf field <code>int32 time_out_num = 5;</code>
- */
- protected $time_out_num = 0;
- /**
- * Generated from protobuf field <code>string m_name = 6;</code>
- */
- protected $m_name = '';
- /**
- * Generated from protobuf field <code>string m_head = 7;</code>
- */
- protected $m_head = '';
- /**
- * Generated from protobuf field <code>int32 rank_num = 8;</code>
- */
- protected $rank_num = 0;
- /**
- * Generated from protobuf field <code>int32 m_coin = 9;</code>
- */
- protected $m_coin = 0;
- /**
- * Generated from protobuf field <code>int32 m_reward_coin = 10;</code>
- */
- protected $m_reward_coin = 0;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $m_id
- * @type int $m_color
- * @type bool $is_kick
- * @type bool $is_finish
- * @type int $time_out_num
- * @type string $m_name
- * @type string $m_head
- * @type int $rank_num
- * @type int $m_coin
- * @type int $m_reward_coin
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Common::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>string m_id = 1;</code>
- * @return string
- */
- public function getMId()
- {
- return $this->m_id;
- }
- /**
- * Generated from protobuf field <code>string m_id = 1;</code>
- * @param string $var
- * @return $this
- */
- public function setMId($var)
- {
- GPBUtil::checkString($var, True);
- $this->m_id = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.common_pack.roleType m_color = 2;</code>
- * @return int
- */
- public function getMColor()
- {
- return $this->m_color;
- }
- /**
- * Generated from protobuf field <code>.common_pack.roleType m_color = 2;</code>
- * @param int $var
- * @return $this
- */
- public function setMColor($var)
- {
- GPBUtil::checkEnum($var, \Common_pack\roleType::class);
- $this->m_color = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>bool is_kick = 3;</code>
- * @return bool
- */
- public function getIsKick()
- {
- return $this->is_kick;
- }
- /**
- * Generated from protobuf field <code>bool is_kick = 3;</code>
- * @param bool $var
- * @return $this
- */
- public function setIsKick($var)
- {
- GPBUtil::checkBool($var);
- $this->is_kick = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>bool is_finish = 4;</code>
- * @return bool
- */
- public function getIsFinish()
- {
- return $this->is_finish;
- }
- /**
- * Generated from protobuf field <code>bool is_finish = 4;</code>
- * @param bool $var
- * @return $this
- */
- public function setIsFinish($var)
- {
- GPBUtil::checkBool($var);
- $this->is_finish = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>int32 time_out_num = 5;</code>
- * @return int
- */
- public function getTimeOutNum()
- {
- return $this->time_out_num;
- }
- /**
- * Generated from protobuf field <code>int32 time_out_num = 5;</code>
- * @param int $var
- * @return $this
- */
- public function setTimeOutNum($var)
- {
- GPBUtil::checkInt32($var);
- $this->time_out_num = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string m_name = 6;</code>
- * @return string
- */
- public function getMName()
- {
- return $this->m_name;
- }
- /**
- * Generated from protobuf field <code>string m_name = 6;</code>
- * @param string $var
- * @return $this
- */
- public function setMName($var)
- {
- GPBUtil::checkString($var, True);
- $this->m_name = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string m_head = 7;</code>
- * @return string
- */
- public function getMHead()
- {
- return $this->m_head;
- }
- /**
- * Generated from protobuf field <code>string m_head = 7;</code>
- * @param string $var
- * @return $this
- */
- public function setMHead($var)
- {
- GPBUtil::checkString($var, True);
- $this->m_head = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>int32 rank_num = 8;</code>
- * @return int
- */
- public function getRankNum()
- {
- return $this->rank_num;
- }
- /**
- * Generated from protobuf field <code>int32 rank_num = 8;</code>
- * @param int $var
- * @return $this
- */
- public function setRankNum($var)
- {
- GPBUtil::checkInt32($var);
- $this->rank_num = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>int32 m_coin = 9;</code>
- * @return int
- */
- public function getMCoin()
- {
- return $this->m_coin;
- }
- /**
- * Generated from protobuf field <code>int32 m_coin = 9;</code>
- * @param int $var
- * @return $this
- */
- public function setMCoin($var)
- {
- GPBUtil::checkInt32($var);
- $this->m_coin = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>int32 m_reward_coin = 10;</code>
- * @return int
- */
- public function getMRewardCoin()
- {
- return $this->m_reward_coin;
- }
- /**
- * Generated from protobuf field <code>int32 m_reward_coin = 10;</code>
- * @param int $var
- * @return $this
- */
- public function setMRewardCoin($var)
- {
- GPBUtil::checkInt32($var);
- $this->m_reward_coin = $var;
- return $this;
- }
- }
|