<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: Game_Match_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.MatchTimeScoreRange</code>
 */
class MatchTimeScoreRange extends \Google\Protobuf\Internal\Message
{
    /**
     *时间范围
     *
     * Generated from protobuf field <code>int32 TimeRange = 1;</code>
     */
    protected $TimeRange = 0;
    /**
     *匹配分范围
     *
     * Generated from protobuf field <code>int32 ScoreRange = 2;</code>
     */
    protected $ScoreRange = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $TimeRange
     *          时间范围
     *     @type int $ScoreRange
     *          匹配分范围
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GameMatchPacket::initOnce();
        parent::__construct($data);
    }

    /**
     *时间范围
     *
     * Generated from protobuf field <code>int32 TimeRange = 1;</code>
     * @return int
     */
    public function getTimeRange()
    {
        return $this->TimeRange;
    }

    /**
     *时间范围
     *
     * Generated from protobuf field <code>int32 TimeRange = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setTimeRange($var)
    {
        GPBUtil::checkInt32($var);
        $this->TimeRange = $var;

        return $this;
    }

    /**
     *匹配分范围
     *
     * Generated from protobuf field <code>int32 ScoreRange = 2;</code>
     * @return int
     */
    public function getScoreRange()
    {
        return $this->ScoreRange;
    }

    /**
     *匹配分范围
     *
     * Generated from protobuf field <code>int32 ScoreRange = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setScoreRange($var)
    {
        GPBUtil::checkInt32($var);
        $this->ScoreRange = $var;

        return $this;
    }

}

