<?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;

/**
 *地图挑战赛结算--参考pve结算 CGFinishPve
 *
 * Generated from protobuf message <code>Game.Protobuf.CGFinishMapChallenge</code>
 */
class CGFinishMapChallenge extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 MapId = 1;</code>
     */
    protected $MapId = 0;
    /**
     *比赛玩家信息
     *
     * Generated from protobuf field <code>.Game.Protobuf.PlayerMark playerList = 2;</code>
     */
    protected $playerList = null;
    /**
     *比赛完成目标
     *
     * Generated from protobuf field <code>.Game.Protobuf.TaleTarget target = 3;</code>
     */
    protected $target = null;
    /**
     *比赛内通用操作
     *
     * Generated from protobuf field <code>.Game.Protobuf.MatchOperation matchOperation = 4;</code>
     */
    protected $matchOperation = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $MapId
     *     @type \Game\Protobuf\PlayerMark $playerList
     *          比赛玩家信息
     *     @type \Game\Protobuf\TaleTarget $target
     *          比赛完成目标
     *     @type \Game\Protobuf\MatchOperation $matchOperation
     *          比赛内通用操作
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     *比赛玩家信息
     *
     * Generated from protobuf field <code>.Game.Protobuf.PlayerMark playerList = 2;</code>
     * @return \Game\Protobuf\PlayerMark|null
     */
    public function getPlayerList()
    {
        return $this->playerList;
    }

    public function hasPlayerList()
    {
        return isset($this->playerList);
    }

    public function clearPlayerList()
    {
        unset($this->playerList);
    }

    /**
     *比赛玩家信息
     *
     * Generated from protobuf field <code>.Game.Protobuf.PlayerMark playerList = 2;</code>
     * @param \Game\Protobuf\PlayerMark $var
     * @return $this
     */
    public function setPlayerList($var)
    {
        GPBUtil::checkMessage($var, \Game\Protobuf\PlayerMark::class);
        $this->playerList = $var;

        return $this;
    }

    /**
     *比赛完成目标
     *
     * Generated from protobuf field <code>.Game.Protobuf.TaleTarget target = 3;</code>
     * @return \Game\Protobuf\TaleTarget|null
     */
    public function getTarget()
    {
        return $this->target;
    }

    public function hasTarget()
    {
        return isset($this->target);
    }

    public function clearTarget()
    {
        unset($this->target);
    }

    /**
     *比赛完成目标
     *
     * Generated from protobuf field <code>.Game.Protobuf.TaleTarget target = 3;</code>
     * @param \Game\Protobuf\TaleTarget $var
     * @return $this
     */
    public function setTarget($var)
    {
        GPBUtil::checkMessage($var, \Game\Protobuf\TaleTarget::class);
        $this->target = $var;

        return $this;
    }

    /**
     *比赛内通用操作
     *
     * Generated from protobuf field <code>.Game.Protobuf.MatchOperation matchOperation = 4;</code>
     * @return \Game\Protobuf\MatchOperation|null
     */
    public function getMatchOperation()
    {
        return $this->matchOperation;
    }

    public function hasMatchOperation()
    {
        return isset($this->matchOperation);
    }

    public function clearMatchOperation()
    {
        unset($this->matchOperation);
    }

    /**
     *比赛内通用操作
     *
     * Generated from protobuf field <code>.Game.Protobuf.MatchOperation matchOperation = 4;</code>
     * @param \Game\Protobuf\MatchOperation $var
     * @return $this
     */
    public function setMatchOperation($var)
    {
        GPBUtil::checkMessage($var, \Game\Protobuf\MatchOperation::class);
        $this->matchOperation = $var;

        return $this;
    }

}

