NotifyPlayerOpt.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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.NotifyPlayerOpt</code>
  10. */
  11. class NotifyPlayerOpt 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.OptType opt = 2;</code>
  23. */
  24. protected $opt = 0;
  25. /**
  26. * Generated from protobuf field <code>repeated .common_pack.RoleData canMoveRoles = 3;</code>
  27. */
  28. private $canMoveRoles;
  29. /**
  30. * Generated from protobuf field <code>int32 opt_time = 4;</code>
  31. */
  32. protected $opt_time = 0;
  33. /**
  34. * Constructor.
  35. *
  36. * @param array $data {
  37. * Optional. Data for populating the Message object.
  38. *
  39. * @type int $color
  40. *
  41. * @type int $opt
  42. *
  43. * @type \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $canMoveRoles
  44. * @type int $opt_time
  45. * }
  46. */
  47. public function __construct($data = NULL) {
  48. \GPBMetadata\Common::initOnce();
  49. parent::__construct($data);
  50. }
  51. /**
  52. *
  53. *
  54. * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
  55. * @return int
  56. */
  57. public function getColor()
  58. {
  59. return $this->color;
  60. }
  61. /**
  62. *
  63. *
  64. * Generated from protobuf field <code>.common_pack.roleType color = 1;</code>
  65. * @param int $var
  66. * @return $this
  67. */
  68. public function setColor($var)
  69. {
  70. GPBUtil::checkEnum($var, \Common_pack\roleType::class);
  71. $this->color = $var;
  72. return $this;
  73. }
  74. /**
  75. *
  76. *
  77. * Generated from protobuf field <code>.common_pack.OptType opt = 2;</code>
  78. * @return int
  79. */
  80. public function getOpt()
  81. {
  82. return $this->opt;
  83. }
  84. /**
  85. *
  86. *
  87. * Generated from protobuf field <code>.common_pack.OptType opt = 2;</code>
  88. * @param int $var
  89. * @return $this
  90. */
  91. public function setOpt($var)
  92. {
  93. GPBUtil::checkEnum($var, \Common_pack\OptType::class);
  94. $this->opt = $var;
  95. return $this;
  96. }
  97. /**
  98. * Generated from protobuf field <code>repeated .common_pack.RoleData canMoveRoles = 3;</code>
  99. * @return \Google\Protobuf\Internal\RepeatedField
  100. */
  101. public function getCanMoveRoles()
  102. {
  103. return $this->canMoveRoles;
  104. }
  105. /**
  106. * Generated from protobuf field <code>repeated .common_pack.RoleData canMoveRoles = 3;</code>
  107. * @param \Common_pack\RoleData[]|\Google\Protobuf\Internal\RepeatedField $var
  108. * @return $this
  109. */
  110. public function setCanMoveRoles($var)
  111. {
  112. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Common_pack\RoleData::class);
  113. $this->canMoveRoles = $arr;
  114. return $this;
  115. }
  116. /**
  117. * Generated from protobuf field <code>int32 opt_time = 4;</code>
  118. * @return int
  119. */
  120. public function getOptTime()
  121. {
  122. return $this->opt_time;
  123. }
  124. /**
  125. * Generated from protobuf field <code>int32 opt_time = 4;</code>
  126. * @param int $var
  127. * @return $this
  128. */
  129. public function setOptTime($var)
  130. {
  131. GPBUtil::checkInt32($var);
  132. $this->opt_time = $var;
  133. return $this;
  134. }
  135. }