<?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.JoinApplyStruct</code>
 */
class JoinApplyStruct extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string Name = 1;</code>
     */
    protected $Name = '';
    /**
     * Generated from protobuf field <code>int32 Score = 2;</code>
     */
    protected $Score = 0;
    /**
     * Generated from protobuf field <code>int32 Level = 3;</code>
     */
    protected $Level = 0;
    /**
     * Generated from protobuf field <code>int32 State = 4;</code>
     */
    protected $State = 0;
    /**
     * Generated from protobuf field <code>int32 Time = 5;</code>
     */
    protected $Time = 0;
    /**
     * Generated from protobuf field <code>int32 StateTime = 6;</code>
     */
    protected $StateTime = 0;
    /**
     * Generated from protobuf field <code>uint64 PlayerID = 7;</code>
     */
    protected $PlayerID = 0;
    /**
     * Generated from protobuf field <code>int32 ServerID = 8;</code>
     */
    protected $ServerID = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $Name
     *     @type int $Score
     *     @type int $Level
     *     @type int $State
     *     @type int $Time
     *     @type int $StateTime
     *     @type int|string $PlayerID
     *     @type int $ServerID
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string Name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->Name;
    }

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>int32 Score = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setScore($var)
    {
        GPBUtil::checkInt32($var);
        $this->Score = $var;

        return $this;
    }

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>int32 State = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setState($var)
    {
        GPBUtil::checkInt32($var);
        $this->State = $var;

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>int32 Time = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setTime($var)
    {
        GPBUtil::checkInt32($var);
        $this->Time = $var;

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>int32 StateTime = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setStateTime($var)
    {
        GPBUtil::checkInt32($var);
        $this->StateTime = $var;

        return $this;
    }

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>int32 ServerID = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setServerID($var)
    {
        GPBUtil::checkInt32($var);
        $this->ServerID = $var;

        return $this;
    }

}

