MailInfo.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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>MailInfo</code>
  11. */
  12. class MailInfo extends \Google\Protobuf\Internal\Message
  13. {
  14. /**
  15. * Generated from protobuf field <code>string mail_json_info = 1;</code>
  16. */
  17. protected $mail_json_info = '';
  18. /**
  19. * Generated from protobuf field <code>int32 mail_type = 2;</code>
  20. */
  21. protected $mail_type = 0;
  22. /**
  23. * Generated from protobuf field <code>int32 check_status = 3;</code>
  24. */
  25. protected $check_status = 0;
  26. /**
  27. * Generated from protobuf field <code>int32 receive_status = 4;</code>
  28. */
  29. protected $receive_status = 0;
  30. /**
  31. * Generated from protobuf field <code>string create_time = 5;</code>
  32. */
  33. protected $create_time = '';
  34. /**
  35. * Constructor.
  36. *
  37. * @param array $data {
  38. * Optional. Data for populating the Message object.
  39. *
  40. * @type string $mail_json_info
  41. * @type int $mail_type
  42. * @type int $check_status
  43. * @type int $receive_status
  44. * @type string $create_time
  45. * }
  46. */
  47. public function __construct($data = NULL) {
  48. \GPBMetadata\Mail::initOnce();
  49. parent::__construct($data);
  50. }
  51. /**
  52. * Generated from protobuf field <code>string mail_json_info = 1;</code>
  53. * @return string
  54. */
  55. public function getMailJsonInfo()
  56. {
  57. return $this->mail_json_info;
  58. }
  59. /**
  60. * Generated from protobuf field <code>string mail_json_info = 1;</code>
  61. * @param string $var
  62. * @return $this
  63. */
  64. public function setMailJsonInfo($var)
  65. {
  66. GPBUtil::checkString($var, True);
  67. $this->mail_json_info = $var;
  68. return $this;
  69. }
  70. /**
  71. * Generated from protobuf field <code>int32 mail_type = 2;</code>
  72. * @return int
  73. */
  74. public function getMailType()
  75. {
  76. return $this->mail_type;
  77. }
  78. /**
  79. * Generated from protobuf field <code>int32 mail_type = 2;</code>
  80. * @param int $var
  81. * @return $this
  82. */
  83. public function setMailType($var)
  84. {
  85. GPBUtil::checkInt32($var);
  86. $this->mail_type = $var;
  87. return $this;
  88. }
  89. /**
  90. * Generated from protobuf field <code>int32 check_status = 3;</code>
  91. * @return int
  92. */
  93. public function getCheckStatus()
  94. {
  95. return $this->check_status;
  96. }
  97. /**
  98. * Generated from protobuf field <code>int32 check_status = 3;</code>
  99. * @param int $var
  100. * @return $this
  101. */
  102. public function setCheckStatus($var)
  103. {
  104. GPBUtil::checkInt32($var);
  105. $this->check_status = $var;
  106. return $this;
  107. }
  108. /**
  109. * Generated from protobuf field <code>int32 receive_status = 4;</code>
  110. * @return int
  111. */
  112. public function getReceiveStatus()
  113. {
  114. return $this->receive_status;
  115. }
  116. /**
  117. * Generated from protobuf field <code>int32 receive_status = 4;</code>
  118. * @param int $var
  119. * @return $this
  120. */
  121. public function setReceiveStatus($var)
  122. {
  123. GPBUtil::checkInt32($var);
  124. $this->receive_status = $var;
  125. return $this;
  126. }
  127. /**
  128. * Generated from protobuf field <code>string create_time = 5;</code>
  129. * @return string
  130. */
  131. public function getCreateTime()
  132. {
  133. return $this->create_time;
  134. }
  135. /**
  136. * Generated from protobuf field <code>string create_time = 5;</code>
  137. * @param string $var
  138. * @return $this
  139. */
  140. public function setCreateTime($var)
  141. {
  142. GPBUtil::checkString($var, True);
  143. $this->create_time = $var;
  144. return $this;
  145. }
  146. }