<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Game_Room_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.SettlementPlayer</code>
 */
class SettlementPlayer extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int64 PlayerID = 1;</code>
     */
    protected $PlayerID = 0;
    /**
     * Generated from protobuf field <code>int32 Rank = 2;</code>
     */
    protected $Rank = 0;
    /**
     * Generated from protobuf field <code>int32 CarTplID = 3;</code>
     */
    protected $CarTplID = 0;
    /**
     * Generated from protobuf field <code>int32 CostTime = 4;</code>
     */
    protected $CostTime = 0;
    /**
     * Generated from protobuf field <code>int64 JoinID = 5;</code>
     */
    protected $JoinID = 0;
    /**
     * Generated from protobuf field <code>int32 GroupID = 6;</code>
     */
    protected $GroupID = 0;
    /**
     *结算参数
     *
     * Generated from protobuf field <code>string SettlementParam = 7;</code>
     */
    protected $SettlementParam = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $PlayerID
     *     @type int $Rank
     *     @type int $CarTplID
     *     @type int $CostTime
     *     @type int|string $JoinID
     *     @type int $GroupID
     *     @type string $SettlementParam
     *          结算参数
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GameRoomPacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 JoinID = 5;</code>
     * @return int|string
     */
    public function getJoinID()
    {
        return $this->JoinID;
    }

    /**
     * Generated from protobuf field <code>int64 JoinID = 5;</code>
     * @param int|string $var
     * @return $this
     */
    public function setJoinID($var)
    {
        GPBUtil::checkInt64($var);
        $this->JoinID = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     *结算参数
     *
     * Generated from protobuf field <code>string SettlementParam = 7;</code>
     * @return string
     */
    public function getSettlementParam()
    {
        return $this->SettlementParam;
    }

    /**
     *结算参数
     *
     * Generated from protobuf field <code>string SettlementParam = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setSettlementParam($var)
    {
        GPBUtil::checkString($var, True);
        $this->SettlementParam = $var;

        return $this;
    }

}

