ResMatchLudo.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. *匹配ludo 响应
  10. *
  11. * Generated from protobuf message <code>common_pack.ResMatchLudo</code>
  12. */
  13. class ResMatchLudo extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>bool success = 1;</code>
  17. */
  18. protected $success = false;
  19. /**
  20. * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
  21. */
  22. protected $err_msg = null;
  23. /**
  24. * Generated from protobuf field <code>.common_pack.RoomInfo room = 3;</code>
  25. */
  26. protected $room = null;
  27. /**
  28. * Constructor.
  29. *
  30. * @param array $data {
  31. * Optional. Data for populating the Message object.
  32. *
  33. * @type bool $success
  34. * @type \Common_pack\MsgError $err_msg
  35. * @type \Common_pack\RoomInfo $room
  36. * }
  37. */
  38. public function __construct($data = NULL) {
  39. \GPBMetadata\Common::initOnce();
  40. parent::__construct($data);
  41. }
  42. /**
  43. * Generated from protobuf field <code>bool success = 1;</code>
  44. * @return bool
  45. */
  46. public function getSuccess()
  47. {
  48. return $this->success;
  49. }
  50. /**
  51. * Generated from protobuf field <code>bool success = 1;</code>
  52. * @param bool $var
  53. * @return $this
  54. */
  55. public function setSuccess($var)
  56. {
  57. GPBUtil::checkBool($var);
  58. $this->success = $var;
  59. return $this;
  60. }
  61. /**
  62. * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
  63. * @return \Common_pack\MsgError|null
  64. */
  65. public function getErrMsg()
  66. {
  67. return $this->err_msg;
  68. }
  69. public function hasErrMsg()
  70. {
  71. return isset($this->err_msg);
  72. }
  73. public function clearErrMsg()
  74. {
  75. unset($this->err_msg);
  76. }
  77. /**
  78. * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
  79. * @param \Common_pack\MsgError $var
  80. * @return $this
  81. */
  82. public function setErrMsg($var)
  83. {
  84. GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
  85. $this->err_msg = $var;
  86. return $this;
  87. }
  88. /**
  89. * Generated from protobuf field <code>.common_pack.RoomInfo room = 3;</code>
  90. * @return \Common_pack\RoomInfo|null
  91. */
  92. public function getRoom()
  93. {
  94. return $this->room;
  95. }
  96. public function hasRoom()
  97. {
  98. return isset($this->room);
  99. }
  100. public function clearRoom()
  101. {
  102. unset($this->room);
  103. }
  104. /**
  105. * Generated from protobuf field <code>.common_pack.RoomInfo room = 3;</code>
  106. * @param \Common_pack\RoomInfo $var
  107. * @return $this
  108. */
  109. public function setRoom($var)
  110. {
  111. GPBUtil::checkMessage($var, \Common_pack\RoomInfo::class);
  112. $this->room = $var;
  113. return $this;
  114. }
  115. }