ResLudoHistory.php 3.0 KB

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