<?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.GCScuffleReplaceCarApply</code>
 */
class GCScuffleReplaceCarApply extends \Google\Protobuf\Internal\Message
{
    /**
     *发送申请人playerId
     *
     * Generated from protobuf field <code>uint64 ApplyPlayerId = 1;</code>
     */
    protected $ApplyPlayerId = 0;
    /**
     * Generated from protobuf field <code>int32 Head = 2;</code>
     */
    protected $Head = 0;
    /**
     * Generated from protobuf field <code>string NickName = 3;</code>
     */
    protected $NickName = '';
    /**
     *发送请求时间
     *
     * Generated from protobuf field <code>int32 ApplyTime = 4;</code>
     */
    protected $ApplyTime = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $ApplyPlayerId
     *          发送申请人playerId
     *     @type int $Head
     *     @type string $NickName
     *     @type int $ApplyTime
     *          发送请求时间
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *发送申请人playerId
     *
     * Generated from protobuf field <code>uint64 ApplyPlayerId = 1;</code>
     * @return int|string
     */
    public function getApplyPlayerId()
    {
        return $this->ApplyPlayerId;
    }

    /**
     *发送申请人playerId
     *
     * Generated from protobuf field <code>uint64 ApplyPlayerId = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setApplyPlayerId($var)
    {
        GPBUtil::checkUint64($var);
        $this->ApplyPlayerId = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string NickName = 3;</code>
     * @return string
     */
    public function getNickName()
    {
        return $this->NickName;
    }

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

        return $this;
    }

    /**
     *发送请求时间
     *
     * Generated from protobuf field <code>int32 ApplyTime = 4;</code>
     * @return int
     */
    public function getApplyTime()
    {
        return $this->ApplyTime;
    }

    /**
     *发送请求时间
     *
     * Generated from protobuf field <code>int32 ApplyTime = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setApplyTime($var)
    {
        GPBUtil::checkInt32($var);
        $this->ApplyTime = $var;

        return $this;
    }

}

