MatchLudo.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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.MatchLudo</code>
  12. */
  13. class MatchLudo extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>.common_pack.roomType select_room_type = 1;</code>
  17. */
  18. protected $select_room_type = 0;
  19. /**
  20. * Generated from protobuf field <code>int32 room_level = 2;</code>
  21. */
  22. protected $room_level = 0;
  23. /**
  24. * Generated from protobuf field <code>.common_pack.roleType select_color = 3;</code>
  25. */
  26. protected $select_color = 0;
  27. /**
  28. * Constructor.
  29. *
  30. * @param array $data {
  31. * Optional. Data for populating the Message object.
  32. *
  33. * @type int $select_room_type
  34. * @type int $room_level
  35. * @type int $select_color
  36. * }
  37. */
  38. public function __construct($data = NULL) {
  39. \GPBMetadata\Common::initOnce();
  40. parent::__construct($data);
  41. }
  42. /**
  43. * Generated from protobuf field <code>.common_pack.roomType select_room_type = 1;</code>
  44. * @return int
  45. */
  46. public function getSelectRoomType()
  47. {
  48. return $this->select_room_type;
  49. }
  50. /**
  51. * Generated from protobuf field <code>.common_pack.roomType select_room_type = 1;</code>
  52. * @param int $var
  53. * @return $this
  54. */
  55. public function setSelectRoomType($var)
  56. {
  57. GPBUtil::checkEnum($var, \Common_pack\roomType::class);
  58. $this->select_room_type = $var;
  59. return $this;
  60. }
  61. /**
  62. * Generated from protobuf field <code>int32 room_level = 2;</code>
  63. * @return int
  64. */
  65. public function getRoomLevel()
  66. {
  67. return $this->room_level;
  68. }
  69. /**
  70. * Generated from protobuf field <code>int32 room_level = 2;</code>
  71. * @param int $var
  72. * @return $this
  73. */
  74. public function setRoomLevel($var)
  75. {
  76. GPBUtil::checkInt32($var);
  77. $this->room_level = $var;
  78. return $this;
  79. }
  80. /**
  81. * Generated from protobuf field <code>.common_pack.roleType select_color = 3;</code>
  82. * @return int
  83. */
  84. public function getSelectColor()
  85. {
  86. return $this->select_color;
  87. }
  88. /**
  89. * Generated from protobuf field <code>.common_pack.roleType select_color = 3;</code>
  90. * @param int $var
  91. * @return $this
  92. */
  93. public function setSelectColor($var)
  94. {
  95. GPBUtil::checkEnum($var, \Common_pack\roleType::class);
  96. $this->select_color = $var;
  97. return $this;
  98. }
  99. }