12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: mail.proto
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- *操作邮箱
- *
- * Generated from protobuf message <code>OptMail</code>
- */
- class OptMail extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>int32 mail_id = 1;</code>
- */
- protected $mail_id = 0;
- /**
- * Generated from protobuf field <code>.OptMailType opt = 2;</code>
- */
- protected $opt = 0;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $mail_id
- * @type int $opt
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Mail::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>int32 mail_id = 1;</code>
- * @return int
- */
- public function getMailId()
- {
- return $this->mail_id;
- }
- /**
- * Generated from protobuf field <code>int32 mail_id = 1;</code>
- * @param int $var
- * @return $this
- */
- public function setMailId($var)
- {
- GPBUtil::checkInt32($var);
- $this->mail_id = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.OptMailType opt = 2;</code>
- * @return int
- */
- public function getOpt()
- {
- return $this->opt;
- }
- /**
- * Generated from protobuf field <code>.OptMailType opt = 2;</code>
- * @param int $var
- * @return $this
- */
- public function setOpt($var)
- {
- GPBUtil::checkEnum($var, \OptMailType::class);
- $this->opt = $var;
- return $this;
- }
- }
|