<?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.PlayerMark</code>
 */
class PlayerMark extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint64 PlayerId = 1;</code>
     */
    protected $PlayerId = 0;
    /**
     * Generated from protobuf field <code>int32 Rank = 2;</code>
     */
    protected $Rank = 0;
    /**
     * Generated from protobuf field <code>int32 CarId = 3;</code>
     */
    protected $CarId = 0;
    /**
     * Generated from protobuf field <code>int32 CostTime = 4;</code>
     */
    protected $CostTime = 0;
    /**
     * Generated from protobuf field <code>uint64 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 $CarId
     *     @type int $CostTime
     *     @type int|string $JoinID
     *     @type int $GroupId
     *     @type string $SettlementParam
     *          结算参数
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>uint64 PlayerId = 1;</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 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 CarId = 3;</code>
     * @return int
     */
    public function getCarId()
    {
        return $this->CarId;
    }

    /**
     * Generated from protobuf field <code>int32 CarId = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setCarId($var)
    {
        GPBUtil::checkInt32($var);
        $this->CarId = $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>uint64 JoinID = 5;</code>
     * @return int|string
     */
    public function getJoinID()
    {
        return $this->JoinID;
    }

    /**
     * Generated from protobuf field <code>uint64 JoinID = 5;</code>
     * @param int|string $var
     * @return $this
     */
    public function setJoinID($var)
    {
        GPBUtil::checkUint64($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;
    }

}

