ResMail.php 2.9 KB

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