ReqMail.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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>ReqMail</code>
  11. */
  12. class ReqMail extends \Google\Protobuf\Internal\Message
  13. {
  14. /**
  15. * Generated from protobuf field <code>string userid = 1;</code>
  16. */
  17. protected $userid = '';
  18. /**
  19. * Generated from protobuf field <code>int32 mail_type = 2;</code>
  20. */
  21. protected $mail_type = 0;
  22. /**
  23. * Constructor.
  24. *
  25. * @param array $data {
  26. * Optional. Data for populating the Message object.
  27. *
  28. * @type string $userid
  29. * @type int $mail_type
  30. * }
  31. */
  32. public function __construct($data = NULL) {
  33. \GPBMetadata\Mail::initOnce();
  34. parent::__construct($data);
  35. }
  36. /**
  37. * Generated from protobuf field <code>string userid = 1;</code>
  38. * @return string
  39. */
  40. public function getUserid()
  41. {
  42. return $this->userid;
  43. }
  44. /**
  45. * Generated from protobuf field <code>string userid = 1;</code>
  46. * @param string $var
  47. * @return $this
  48. */
  49. public function setUserid($var)
  50. {
  51. GPBUtil::checkString($var, True);
  52. $this->userid = $var;
  53. return $this;
  54. }
  55. /**
  56. * Generated from protobuf field <code>int32 mail_type = 2;</code>
  57. * @return int
  58. */
  59. public function getMailType()
  60. {
  61. return $this->mail_type;
  62. }
  63. /**
  64. * Generated from protobuf field <code>int32 mail_type = 2;</code>
  65. * @param int $var
  66. * @return $this
  67. */
  68. public function setMailType($var)
  69. {
  70. GPBUtil::checkInt32($var);
  71. $this->mail_type = $var;
  72. return $this;
  73. }
  74. }