<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Client_Game_Packet.proto

namespace Game\Protobuf;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 *客户端请求邮件操作
 *
 * Generated from protobuf message <code>Game.Protobuf.CGMailOption</code>
 */
class CGMailOption extends \Google\Protobuf\Internal\Message
{
    /**
     *1-设置已读 2-领取附件 3-删除邮件 4-一键删除    5-一键领取附件    
     *
     * Generated from protobuf field <code>int32 Option = 1;</code>
     */
    protected $Option = 0;
    /**
     * Generated from protobuf field <code>uint64 MailId = 2;</code>
     */
    protected $MailId = 0;
    /**
     *一键操作时,发送   
     *
     * Generated from protobuf field <code>int32 MailType = 3;</code>
     */
    protected $MailType = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Option
     *          1-设置已读 2-领取附件 3-删除邮件 4-一键删除    5-一键领取附件    
     *     @type int|string $MailId
     *     @type int $MailType
     *          一键操作时,发送   
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *1-设置已读 2-领取附件 3-删除邮件 4-一键删除    5-一键领取附件    
     *
     * Generated from protobuf field <code>int32 Option = 1;</code>
     * @return int
     */
    public function getOption()
    {
        return $this->Option;
    }

    /**
     *1-设置已读 2-领取附件 3-删除邮件 4-一键删除    5-一键领取附件    
     *
     * Generated from protobuf field <code>int32 Option = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setOption($var)
    {
        GPBUtil::checkInt32($var);
        $this->Option = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 MailId = 2;</code>
     * @return int|string
     */
    public function getMailId()
    {
        return $this->MailId;
    }

    /**
     * Generated from protobuf field <code>uint64 MailId = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMailId($var)
    {
        GPBUtil::checkUint64($var);
        $this->MailId = $var;

        return $this;
    }

    /**
     *一键操作时,发送   
     *
     * Generated from protobuf field <code>int32 MailType = 3;</code>
     * @return int
     */
    public function getMailType()
    {
        return $this->MailType;
    }

    /**
     *一键操作时,发送   
     *
     * Generated from protobuf field <code>int32 MailType = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setMailType($var)
    {
        GPBUtil::checkInt32($var);
        $this->MailType = $var;

        return $this;
    }

}

