<?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.CGRankReadyState</code>
 */
class CGRankReadyState extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 State = 1;</code>
     */
    protected $State = 0;
    /**
     * 房间其他玩家
     *
     * Generated from protobuf field <code>repeated uint64 Players = 2;</code>
     */
    private $Players;
    /**
     * Generated from protobuf field <code>int32 AIId = 3;</code>
     */
    protected $AIId = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $State
     *     @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $Players
     *           房间其他玩家
     *     @type int $AIId
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * 房间其他玩家
     *
     * Generated from protobuf field <code>repeated uint64 Players = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPlayers()
    {
        return $this->Players;
    }

    /**
     * 房间其他玩家
     *
     * Generated from protobuf field <code>repeated uint64 Players = 2;</code>
     * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPlayers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT64);
        $this->Players = $arr;

        return $this;
    }

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

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

        return $this;
    }

}

