<?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.CGGuestBindAccount</code>
 */
class CGGuestBindAccount extends \Google\Protobuf\Internal\Message
{
    /**
     * 游客账号
     *
     * Generated from protobuf field <code>string Account = 1;</code>
     */
    protected $Account = '';
    /**
     * 绑定的账号   
     *
     * Generated from protobuf field <code>string BindAccount = 2;</code>
     */
    protected $BindAccount = '';
    /**
     * 渠道类型
     *
     * Generated from protobuf field <code>int32 ChannelType = 3;</code>
     */
    protected $ChannelType = 0;
    /**
     * 设备id
     *
     * Generated from protobuf field <code>string DeviceID = 4;</code>
     */
    protected $DeviceID = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $Account
     *           游客账号
     *     @type string $BindAccount
     *           绑定的账号   
     *     @type int $ChannelType
     *           渠道类型
     *     @type string $DeviceID
     *           设备id
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

    /**
     * 游客账号
     *
     * Generated from protobuf field <code>string Account = 1;</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 BindAccount = 2;</code>
     * @return string
     */
    public function getBindAccount()
    {
        return $this->BindAccount;
    }

    /**
     * 绑定的账号   
     *
     * Generated from protobuf field <code>string BindAccount = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setBindAccount($var)
    {
        GPBUtil::checkString($var, True);
        $this->BindAccount = $var;

        return $this;
    }

    /**
     * 渠道类型
     *
     * Generated from protobuf field <code>int32 ChannelType = 3;</code>
     * @return int
     */
    public function getChannelType()
    {
        return $this->ChannelType;
    }

    /**
     * 渠道类型
     *
     * Generated from protobuf field <code>int32 ChannelType = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setChannelType($var)
    {
        GPBUtil::checkInt32($var);
        $this->ChannelType = $var;

        return $this;
    }

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

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

        return $this;
    }

}

