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

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

    /**
     * Generated from protobuf field <code>int32 Code = 1;</code>
     * @return int
     */
    public function getCode()
    {
        return $this->Code;
    }

    /**
     * Generated from protobuf field <code>int32 Code = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setCode($var)
    {
        GPBUtil::checkInt32($var);
        $this->Code = $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>int32 Type = 3;</code>
     * @return int
     */
    public function getType()
    {
        return $this->Type;
    }

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

        return $this;
    }

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

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

        return $this;
    }

}

