<?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.ChapterStarData</code>
 */
class ChapterStarData extends \Google\Protobuf\Internal\Message
{
    /**
     *章节id
     *
     * Generated from protobuf field <code>int32 ChapterId = 1;</code>
     */
    protected $ChapterId = 0;
    /**
     *星星数量
     *
     * Generated from protobuf field <code>int32 StarNum = 2;</code>
     */
    protected $StarNum = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $ChapterId
     *          章节id
     *     @type int $StarNum
     *          星星数量
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *章节id
     *
     * Generated from protobuf field <code>int32 ChapterId = 1;</code>
     * @return int
     */
    public function getChapterId()
    {
        return $this->ChapterId;
    }

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

        return $this;
    }

    /**
     *星星数量
     *
     * Generated from protobuf field <code>int32 StarNum = 2;</code>
     * @return int
     */
    public function getStarNum()
    {
        return $this->StarNum;
    }

    /**
     *星星数量
     *
     * Generated from protobuf field <code>int32 StarNum = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setStarNum($var)
    {
        GPBUtil::checkInt32($var);
        $this->StarNum = $var;

        return $this;
    }

}

