123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <?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.NotifyPlayerStatus</code>
- */
- class NotifyPlayerStatus extends \Google\Protobuf\Internal\Message
- {
- /**
- *
- *
- * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
- */
- protected $color = 0;
- /**
- * Generated from protobuf field <code>.common_pack.playerStatus status = 2;</code>
- */
- protected $status = 0;
- /**
- * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 3;</code>
- */
- private $colors;
- /**
- * Generated from protobuf field <code>.common_pack.ColorData time_out_color = 4;</code>
- */
- 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 <code>.common_pack.roleType color = 1;</code>
- * @return int
- */
- public function getColor()
- {
- return $this->color;
- }
- /**
- *
- *
- * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
- * @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 <code>.common_pack.playerStatus status = 2;</code>
- * @return int
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * Generated from protobuf field <code>.common_pack.playerStatus status = 2;</code>
- * @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 <code>repeated .common_pack.ColorData colors = 3;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getColors()
- {
- return $this->colors;
- }
- /**
- * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 3;</code>
- * @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 <code>.common_pack.ColorData time_out_color = 4;</code>
- * @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 <code>.common_pack.ColorData time_out_color = 4;</code>
- * @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;
- }
- }
|