ResSendChatMsg.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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.ResSendChatMsg</code>
  10. */
  11. class ResSendChatMsg 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. * Constructor.
  23. *
  24. * @param array $data {
  25. * Optional. Data for populating the Message object.
  26. *
  27. * @type bool $success
  28. * @type \Common_pack\MsgError $err_msg
  29. * }
  30. */
  31. public function __construct($data = NULL) {
  32. \GPBMetadata\Common::initOnce();
  33. parent::__construct($data);
  34. }
  35. /**
  36. * Generated from protobuf field <code>bool success = 1;</code>
  37. * @return bool
  38. */
  39. public function getSuccess()
  40. {
  41. return $this->success;
  42. }
  43. /**
  44. * Generated from protobuf field <code>bool success = 1;</code>
  45. * @param bool $var
  46. * @return $this
  47. */
  48. public function setSuccess($var)
  49. {
  50. GPBUtil::checkBool($var);
  51. $this->success = $var;
  52. return $this;
  53. }
  54. /**
  55. * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
  56. * @return \Common_pack\MsgError|null
  57. */
  58. public function getErrMsg()
  59. {
  60. return $this->err_msg;
  61. }
  62. public function hasErrMsg()
  63. {
  64. return isset($this->err_msg);
  65. }
  66. public function clearErrMsg()
  67. {
  68. unset($this->err_msg);
  69. }
  70. /**
  71. * Generated from protobuf field <code>.common_pack.MsgError err_msg = 2;</code>
  72. * @param \Common_pack\MsgError $var
  73. * @return $this
  74. */
  75. public function setErrMsg($var)
  76. {
  77. GPBUtil::checkMessage($var, \Common_pack\MsgError::class);
  78. $this->err_msg = $var;
  79. return $this;
  80. }
  81. }