<?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.CGUpdatePaiWeiPositionOrder</code>
 */
class CGUpdatePaiWeiPositionOrder extends \Google\Protobuf\Internal\Message
{
    /**
     *位置是否随机 0否1是   //待删除
     *
     * Generated from protobuf field <code>int32 IsRandom = 1;</code>
     */
    protected $IsRandom = 0;
    /**
     *位置1 0随机位置 1竞速位 2干扰位 3辅助位
     *
     * Generated from protobuf field <code>int32 PositionOrder1 = 2;</code>
     */
    protected $PositionOrder1 = 0;
    /**
     * Generated from protobuf field <code>int32 PositionOrder2 = 3;</code>
     */
    protected $PositionOrder2 = 0;
    /**
     * Generated from protobuf field <code>int32 PositionOrder3 = 4;</code>
     */
    protected $PositionOrder3 = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $IsRandom
     *          位置是否随机 0否1是   //待删除
     *     @type int $PositionOrder1
     *          位置1 0随机位置 1竞速位 2干扰位 3辅助位
     *     @type int $PositionOrder2
     *     @type int $PositionOrder3
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *位置是否随机 0否1是   //待删除
     *
     * Generated from protobuf field <code>int32 IsRandom = 1;</code>
     * @return int
     */
    public function getIsRandom()
    {
        return $this->IsRandom;
    }

    /**
     *位置是否随机 0否1是   //待删除
     *
     * Generated from protobuf field <code>int32 IsRandom = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setIsRandom($var)
    {
        GPBUtil::checkInt32($var);
        $this->IsRandom = $var;

        return $this;
    }

    /**
     *位置1 0随机位置 1竞速位 2干扰位 3辅助位
     *
     * Generated from protobuf field <code>int32 PositionOrder1 = 2;</code>
     * @return int
     */
    public function getPositionOrder1()
    {
        return $this->PositionOrder1;
    }

    /**
     *位置1 0随机位置 1竞速位 2干扰位 3辅助位
     *
     * Generated from protobuf field <code>int32 PositionOrder1 = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setPositionOrder1($var)
    {
        GPBUtil::checkInt32($var);
        $this->PositionOrder1 = $var;

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

