common_pack.NotifyPlayerSzNumber
*/
class NotifyPlayerSzNumber extends \Google\Protobuf\Internal\Message
{
/**
*
*
* Generated from protobuf field .common_pack.roleType color = 1;
*/
protected $color = 0;
/**
*
*
* Generated from protobuf field int32 szNumber = 2;
*/
protected $szNumber = 0;
/**
* Generated from protobuf field .common_pack.MsgError err_msg = 3;
*/
protected $err_msg = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $color
*
* @type int $szNumber
*
* @type \Common_pack\MsgError $err_msg
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Common::initOnce();
parent::__construct($data);
}
/**
*
*
* Generated from protobuf field .common_pack.roleType color = 1;
* @return int
*/
public function getColor()
{
return $this->color;
}
/**
*
*
* Generated from protobuf field .common_pack.roleType color = 1;
* @param int $var
* @return $this
*/
public function setColor($var)
{
GPBUtil::checkEnum($var, \Common_pack\roleType::class);
$this->color = $var;
return $this;
}
/**
*
*
* Generated from protobuf field int32 szNumber = 2;
* @return int
*/
public function getSzNumber()
{
return $this->szNumber;
}
/**
*
*
* Generated from protobuf field int32 szNumber = 2;
* @param int $var
* @return $this
*/
public function setSzNumber($var)
{
GPBUtil::checkInt32($var);
$this->szNumber = $var;
return $this;
}
/**
* Generated from protobuf field .common_pack.MsgError err_msg = 3;
* @return \Common_pack\MsgError|null
*/
public function getErrMsg()
{
return $this->err_msg;
}
public function hasErrMsg()
{
return isset($this->err_msg);
}
public function clearErrMsg()
{
unset($this->err_msg);
}
/**
* Generated from protobuf field .common_pack.MsgError err_msg = 3;
* @param \Common_pack\MsgError $var
* @return $this
*/
public function setErrMsg($var)
{
GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
$this->err_msg = $var;
return $this;
}
}