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