<?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关卡结算返回
 *
 * Generated from protobuf message <code>Game.Protobuf.GCFinishPveResult</code>
 */
class GCFinishPveResult extends \Google\Protobuf\Internal\Message
{
    /**
     *错误码 0成功
     *
     * Generated from protobuf field <code>int32 Code = 1;</code>
     */
    protected $Code = 0;
    /**
     *比赛结果--不使用
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.RaceResult Result = 2;</code>
     */
    private $Result;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Code
     *          错误码 0成功
     *     @type \Game\Protobuf\RaceResult[]|\Google\Protobuf\Internal\RepeatedField $Result
     *          比赛结果--不使用
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *错误码 0成功
     *
     * Generated from protobuf field <code>int32 Code = 1;</code>
     * @return int
     */
    public function getCode()
    {
        return $this->Code;
    }

    /**
     *错误码 0成功
     *
     * Generated from protobuf field <code>int32 Code = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setCode($var)
    {
        GPBUtil::checkInt32($var);
        $this->Code = $var;

        return $this;
    }

    /**
     *比赛结果--不使用
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.RaceResult Result = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getResult()
    {
        return $this->Result;
    }

    /**
     *比赛结果--不使用
     *
     * Generated from protobuf field <code>repeated .Game.Protobuf.RaceResult Result = 2;</code>
     * @param \Game\Protobuf\RaceResult[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setResult($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Game\Protobuf\RaceResult::class);
        $this->Result = $arr;

        return $this;
    }

}

