NotifyPlayerStatus.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: common.proto
  4. namespace Common_pack;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Generated from protobuf message <code>common_pack.NotifyPlayerStatus</code>
  10. */
  11. class NotifyPlayerStatus extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. *
  15. *
  16. * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
  17. */
  18. protected $color = 0;
  19. /**
  20. * Generated from protobuf field <code>.common_pack.playerStatus status = 2;</code>
  21. */
  22. protected $status = 0;
  23. /**
  24. * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 3;</code>
  25. */
  26. private $colors;
  27. /**
  28. * Generated from protobuf field <code>.common_pack.ColorData time_out_color = 4;</code>
  29. */
  30. protected $time_out_color = null;
  31. /**
  32. * Constructor.
  33. *
  34. * @param array $data {
  35. * Optional. Data for populating the Message object.
  36. *
  37. * @type int $color
  38. *
  39. * @type int $status
  40. * @type \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $colors
  41. * @type \Common_pack\ColorData $time_out_color
  42. * }
  43. */
  44. public function __construct($data = NULL) {
  45. \GPBMetadata\Common::initOnce();
  46. parent::__construct($data);
  47. }
  48. /**
  49. *
  50. *
  51. * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
  52. * @return int
  53. */
  54. public function getColor()
  55. {
  56. return $this->color;
  57. }
  58. /**
  59. *
  60. *
  61. * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
  62. * @param int $var
  63. * @return $this
  64. */
  65. public function setColor($var)
  66. {
  67. GPBUtil::checkEnum($var, \Common_pack\roleType::class);
  68. $this->color = $var;
  69. return $this;
  70. }
  71. /**
  72. * Generated from protobuf field <code>.common_pack.playerStatus status = 2;</code>
  73. * @return int
  74. */
  75. public function getStatus()
  76. {
  77. return $this->status;
  78. }
  79. /**
  80. * Generated from protobuf field <code>.common_pack.playerStatus status = 2;</code>
  81. * @param int $var
  82. * @return $this
  83. */
  84. public function setStatus($var)
  85. {
  86. GPBUtil::checkEnum($var, \Common_pack\playerStatus::class);
  87. $this->status = $var;
  88. return $this;
  89. }
  90. /**
  91. * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 3;</code>
  92. * @return \Google\Protobuf\Internal\RepeatedField
  93. */
  94. public function getColors()
  95. {
  96. return $this->colors;
  97. }
  98. /**
  99. * Generated from protobuf field <code>repeated .common_pack.ColorData colors = 3;</code>
  100. * @param \Common_pack\ColorData[]|\Google\Protobuf\Internal\RepeatedField $var
  101. * @return $this
  102. */
  103. public function setColors($var)
  104. {
  105. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\ColorData::class);
  106. $this->colors = $arr;
  107. return $this;
  108. }
  109. /**
  110. * Generated from protobuf field <code>.common_pack.ColorData time_out_color = 4;</code>
  111. * @return \Common_pack\ColorData|null
  112. */
  113. public function getTimeOutColor()
  114. {
  115. return $this->time_out_color;
  116. }
  117. public function hasTimeOutColor()
  118. {
  119. return isset($this->time_out_color);
  120. }
  121. public function clearTimeOutColor()
  122. {
  123. unset($this->time_out_color);
  124. }
  125. /**
  126. * Generated from protobuf field <code>.common_pack.ColorData time_out_color = 4;</code>
  127. * @param \Common_pack\ColorData $var
  128. * @return $this
  129. */
  130. public function setTimeOutColor($var)
  131. {
  132. GPBUtil::checkMessage($var, \Common_pack\ColorData::class);
  133. $this->time_out_color = $var;
  134. return $this;
  135. }
  136. }