OptMail */ class OptMail extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field int32 mail_id = 1; */ protected $mail_id = 0; /** * Generated from protobuf field .OptMailType opt = 2; */ 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 int32 mail_id = 1; * @return int */ public function getMailId() { return $this->mail_id; } /** * Generated from protobuf field int32 mail_id = 1; * @param int $var * @return $this */ public function setMailId($var) { GPBUtil::checkInt32($var); $this->mail_id = $var; return $this; } /** * Generated from protobuf field .OptMailType opt = 2; * @return int */ public function getOpt() { return $this->opt; } /** * Generated from protobuf field .OptMailType opt = 2; * @param int $var * @return $this */ public function setOpt($var) { GPBUtil::checkEnum($var, \OptMailType::class); $this->opt = $var; return $this; } }