<?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.UserLoginSend</code>
 */
class UserLoginSend extends \Google\Protobuf\Internal\Message
{
    /**
     * 0. 正常账号  1. GM 账户 2. 游客账户
     *
     * Generated from protobuf field <code>int32 AccountType = 1;</code>
     */
    protected $AccountType = 0;
    /**
     * Generated from protobuf field <code>string Account = 2;</code>
     */
    protected $Account = '';
    /**
     * 游客账户密码
     *
     * Generated from protobuf field <code>string Password = 3;</code>
     */
    protected $Password = '';
    /**
     * json 手机收集的数据
     *
     * Generated from protobuf field <code>string ClientData = 4;</code>
     */
    protected $ClientData = '';
    /**
     * 设备id
     *
     * Generated from protobuf field <code>string DeviceID = 5;</code>
     */
    protected $DeviceID = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $AccountType
     *           0. 正常账号  1. GM 账户 2. 游客账户
     *     @type string $Account
     *     @type string $Password
     *           游客账户密码
     *     @type string $ClientData
     *           json 手机收集的数据
     *     @type string $DeviceID
     *           设备id
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     * 0. 正常账号  1. GM 账户 2. 游客账户
     *
     * Generated from protobuf field <code>int32 AccountType = 1;</code>
     * @return int
     */
    public function getAccountType()
    {
        return $this->AccountType;
    }

    /**
     * 0. 正常账号  1. GM 账户 2. 游客账户
     *
     * Generated from protobuf field <code>int32 AccountType = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setAccountType($var)
    {
        GPBUtil::checkInt32($var);
        $this->AccountType = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string Account = 2;</code>
     * @return string
     */
    public function getAccount()
    {
        return $this->Account;
    }

    /**
     * Generated from protobuf field <code>string Account = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setAccount($var)
    {
        GPBUtil::checkString($var, True);
        $this->Account = $var;

        return $this;
    }

    /**
     * 游客账户密码
     *
     * Generated from protobuf field <code>string Password = 3;</code>
     * @return string
     */
    public function getPassword()
    {
        return $this->Password;
    }

    /**
     * 游客账户密码
     *
     * Generated from protobuf field <code>string Password = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setPassword($var)
    {
        GPBUtil::checkString($var, True);
        $this->Password = $var;

        return $this;
    }

    /**
     * json 手机收集的数据
     *
     * Generated from protobuf field <code>string ClientData = 4;</code>
     * @return string
     */
    public function getClientData()
    {
        return $this->ClientData;
    }

    /**
     * json 手机收集的数据
     *
     * Generated from protobuf field <code>string ClientData = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setClientData($var)
    {
        GPBUtil::checkString($var, True);
        $this->ClientData = $var;

        return $this;
    }

    /**
     * 设备id
     *
     * Generated from protobuf field <code>string DeviceID = 5;</code>
     * @return string
     */
    public function getDeviceID()
    {
        return $this->DeviceID;
    }

    /**
     * 设备id
     *
     * Generated from protobuf field <code>string DeviceID = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setDeviceID($var)
    {
        GPBUtil::checkString($var, True);
        $this->DeviceID = $var;

        return $this;
    }

}

