<?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.CGDealScuffleReplaceCarApply</code>
 */
class CGDealScuffleReplaceCarApply extends \Google\Protobuf\Internal\Message
{
    /**
     *发送申请人playerId
     *
     * Generated from protobuf field <code>uint64 ApplyPlayerId = 1;</code>
     */
    protected $ApplyPlayerId = 0;
    /**
     *true同意交换 false拒绝  
     *
     * Generated from protobuf field <code>bool Option = 2;</code>
     */
    protected $Option = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $ApplyPlayerId
     *          发送申请人playerId
     *     @type bool $Option
     *          true同意交换 false拒绝  
     * }
     */
    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;
    }

    /**
     *true同意交换 false拒绝  
     *
     * Generated from protobuf field <code>bool Option = 2;</code>
     * @return bool
     */
    public function getOption()
    {
        return $this->Option;
    }

    /**
     *true同意交换 false拒绝  
     *
     * Generated from protobuf field <code>bool Option = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setOption($var)
    {
        GPBUtil::checkBool($var);
        $this->Option = $var;

        return $this;
    }

}

