common_pack.RoleData
*/
class RoleData extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .common_pack.roleType m_color = 1;
*/
protected $m_color = 0;
/**
* Generated from protobuf field int32 m_seat = 2;
*/
protected $m_seat = 0;
/**
* Generated from protobuf field string m_id = 3;
*/
protected $m_id = '';
/**
* Generated from protobuf field .common_pack.roadType m_cur_road = 4;
*/
protected $m_cur_road = 0;
/**
* Generated from protobuf field int32 step = 5;
*/
protected $step = 0;
/**
* Generated from protobuf field int32 old_setp = 6;
*/
protected $old_setp = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $m_color
* @type int $m_seat
* @type string $m_id
* @type int $m_cur_road
* @type int $step
* @type int $old_setp
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Common::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .common_pack.roleType m_color = 1;
* @return int
*/
public function getMColor()
{
return $this->m_color;
}
/**
* Generated from protobuf field .common_pack.roleType m_color = 1;
* @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 int32 m_seat = 2;
* @return int
*/
public function getMSeat()
{
return $this->m_seat;
}
/**
* Generated from protobuf field int32 m_seat = 2;
* @param int $var
* @return $this
*/
public function setMSeat($var)
{
GPBUtil::checkInt32($var);
$this->m_seat = $var;
return $this;
}
/**
* Generated from protobuf field string m_id = 3;
* @return string
*/
public function getMId()
{
return $this->m_id;
}
/**
* Generated from protobuf field string m_id = 3;
* @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.roadType m_cur_road = 4;
* @return int
*/
public function getMCurRoad()
{
return $this->m_cur_road;
}
/**
* Generated from protobuf field .common_pack.roadType m_cur_road = 4;
* @param int $var
* @return $this
*/
public function setMCurRoad($var)
{
GPBUtil::checkEnum($var, \Common_pack\roadType::class);
$this->m_cur_road = $var;
return $this;
}
/**
* Generated from protobuf field int32 step = 5;
* @return int
*/
public function getStep()
{
return $this->step;
}
/**
* Generated from protobuf field int32 step = 5;
* @param int $var
* @return $this
*/
public function setStep($var)
{
GPBUtil::checkInt32($var);
$this->step = $var;
return $this;
}
/**
* Generated from protobuf field int32 old_setp = 6;
* @return int
*/
public function getOldSetp()
{
return $this->old_setp;
}
/**
* Generated from protobuf field int32 old_setp = 6;
* @param int $var
* @return $this
*/
public function setOldSetp($var)
{
GPBUtil::checkInt32($var);
$this->old_setp = $var;
return $this;
}
}