common_pack.NotifyPlayerStatus */ class NotifyPlayerStatus extends \Google\Protobuf\Internal\Message { /** * * * Generated from protobuf field .common_pack.roleType color = 1; */ protected $color = 0; /** * Generated from protobuf field .common_pack.playerStatus status = 2; */ protected $status = 0; /** * Generated from protobuf field repeated .common_pack.ColorData colors = 3; */ private $colors; /** * Generated from protobuf field .common_pack.ColorData time_out_color = 4; */ protected $time_out_color = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $color * * @type int $status * @type \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $colors * @type \Common_pack\ColorData $time_out_color * } */ 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 .common_pack.playerStatus status = 2; * @return int */ public function getStatus() { return $this->status; } /** * Generated from protobuf field .common_pack.playerStatus status = 2; * @param int $var * @return $this */ public function setStatus($var) { GPBUtil::checkEnum($var, \Common_pack\playerStatus::class); $this->status = $var; return $this; } /** * Generated from protobuf field repeated .common_pack.ColorData colors = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getColors() { return $this->colors; } /** * Generated from protobuf field repeated .common_pack.ColorData colors = 3; * @param \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setColors($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ColorData::class); $this->colors = $arr; return $this; } /** * Generated from protobuf field .common_pack.ColorData time_out_color = 4; * @return \Common_pack\ColorData|null */ public function getTimeOutColor() { return $this->time_out_color; } public function hasTimeOutColor() { return isset($this->time_out_color); } public function clearTimeOutColor() { unset($this->time_out_color); } /** * Generated from protobuf field .common_pack.ColorData time_out_color = 4; * @param \Common_pack\ColorData $var * @return $this */ public function setTimeOutColor($var) { GPBUtil::checkMessage($var, \Common_pack\ColorData::class); $this->time_out_color = $var; return $this; } }