NotifyPlayerMove.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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.NotifyPlayerMove</code>
  10. */
  11. class NotifyPlayerMove 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. *
  21. *
  22. * Generated from protobuf field <code>.common_pack.MoveStepData step = 2;</code>
  23. */
  24. protected $step = null;
  25. /**
  26. * Generated from protobuf field <code>repeated .common_pack.RoleData kick = 3;</code>
  27. */
  28. private $kick;
  29. /**
  30. * Constructor.
  31. *
  32. * @param array $data {
  33. * Optional. Data for populating the Message object.
  34. *
  35. * @type int $color
  36. *
  37. * @type \Common_pack\MoveStepData $step
  38. *
  39. * @type \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $kick
  40. * }
  41. */
  42. public function __construct($data = NULL) {
  43. \GPBMetadata\Common::initOnce();
  44. parent::__construct($data);
  45. }
  46. /**
  47. *
  48. *
  49. * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
  50. * @return int
  51. */
  52. public function getColor()
  53. {
  54. return $this->color;
  55. }
  56. /**
  57. *
  58. *
  59. * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
  60. * @param int $var
  61. * @return $this
  62. */
  63. public function setColor($var)
  64. {
  65. GPBUtil::checkEnum($var, \Common_pack\roleType::class);
  66. $this->color = $var;
  67. return $this;
  68. }
  69. /**
  70. *
  71. *
  72. * Generated from protobuf field <code>.common_pack.MoveStepData step = 2;</code>
  73. * @return \Common_pack\MoveStepData|null
  74. */
  75. public function getStep()
  76. {
  77. return $this->step;
  78. }
  79. public function hasStep()
  80. {
  81. return isset($this->step);
  82. }
  83. public function clearStep()
  84. {
  85. unset($this->step);
  86. }
  87. /**
  88. *
  89. *
  90. * Generated from protobuf field <code>.common_pack.MoveStepData step = 2;</code>
  91. * @param \Common_pack\MoveStepData $var
  92. * @return $this
  93. */
  94. public function setStep($var)
  95. {
  96. GPBUtil::checkMessage($var, \Common_pack\MoveStepData::class);
  97. $this->step = $var;
  98. return $this;
  99. }
  100. /**
  101. * Generated from protobuf field <code>repeated .common_pack.RoleData kick = 3;</code>
  102. * @return \Google\Protobuf\Internal\RepeatedField
  103. */
  104. public function getKick()
  105. {
  106. return $this->kick;
  107. }
  108. /**
  109. * Generated from protobuf field <code>repeated .common_pack.RoleData kick = 3;</code>
  110. * @param \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $var
  111. * @return $this
  112. */
  113. public function setKick($var)
  114. {
  115. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\RoleData::class);
  116. $this->kick = $arr;
  117. return $this;
  118. }
  119. }