NotifyPlayerSzNumber.php 2.9 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.NotifyPlayerSzNumber</code>
  10. */
  11. class NotifyPlayerSzNumber 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>int32 szNumber = 2;</code>
  23. */
  24. protected $szNumber = 0;
  25. /**
  26. * Generated from protobuf field <code>.common_pack.MsgError err_msg = 3;</code>
  27. */
  28. protected $err_msg = null;
  29. /**
  30. * Constructor.
  31. *
  32. * @param array $data {
  33. * Optional. Data for populating the Message object.
  34. *
  35. * @type int $color
  36. *
  37. * @type int $szNumber
  38. *
  39. * @type \Common_pack\MsgError $err_msg
  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>int32 szNumber = 2;</code>
  73. * @return int
  74. */
  75. public function getSzNumber()
  76. {
  77. return $this->szNumber;
  78. }
  79. /**
  80. *
  81. *
  82. * Generated from protobuf field <code>int32 szNumber = 2;</code>
  83. * @param int $var
  84. * @return $this
  85. */
  86. public function setSzNumber($var)
  87. {
  88. GPBUtil::checkInt32($var);
  89. $this->szNumber = $var;
  90. return $this;
  91. }
  92. /**
  93. * Generated from protobuf field <code>.common_pack.MsgError err_msg = 3;</code>
  94. * @return \Common_pack\MsgError|null
  95. */
  96. public function getErrMsg()
  97. {
  98. return $this->err_msg;
  99. }
  100. public function hasErrMsg()
  101. {
  102. return isset($this->err_msg);
  103. }
  104. public function clearErrMsg()
  105. {
  106. unset($this->err_msg);
  107. }
  108. /**
  109. * Generated from protobuf field <code>.common_pack.MsgError err_msg = 3;</code>
  110. * @param \Common_pack\MsgError $var
  111. * @return $this
  112. */
  113. public function setErrMsg($var)
  114. {
  115. GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
  116. $this->err_msg = $var;
  117. return $this;
  118. }
  119. }