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

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $Option
     *          true同意交换 false拒绝  
     *     @type int|string $OptionPlayerId
     *          操作人playerId
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     *操作人playerId
     *
     * Generated from protobuf field <code>uint64 OptionPlayerId = 2;</code>
     * @return int|string
     */
    public function getOptionPlayerId()
    {
        return $this->OptionPlayerId;
    }

    /**
     *操作人playerId
     *
     * Generated from protobuf field <code>uint64 OptionPlayerId = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setOptionPlayerId($var)
    {
        GPBUtil::checkUint64($var);
        $this->OptionPlayerId = $var;

        return $this;
    }

}

