ReqMail */ class ReqMail extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string userid = 1; */ protected $userid = ''; /** * Generated from protobuf field int32 mail_type = 2; */ protected $mail_type = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $userid * @type int $mail_type * } */ public function __construct($data = NULL) { \GPBMetadata\Mail::initOnce(); parent::__construct($data); } /** * Generated from protobuf field string userid = 1; * @return string */ public function getUserid() { return $this->userid; } /** * Generated from protobuf field string userid = 1; * @param string $var * @return $this */ public function setUserid($var) { GPBUtil::checkString($var, True); $this->userid = $var; return $this; } /** * Generated from protobuf field int32 mail_type = 2; * @return int */ public function getMailType() { return $this->mail_type; } /** * Generated from protobuf field int32 mail_type = 2; * @param int $var * @return $this */ public function setMailType($var) { GPBUtil::checkInt32($var); $this->mail_type = $var; return $this; } }