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