<?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.CGGetProficiencyReward</code>
 */
class CGGetProficiencyReward extends \Google\Protobuf\Internal\Message
{
    /**
     *是否一键领取 true为一键领取,如果为一键领取,不检查下面参数
     *
     * Generated from protobuf field <code>bool OneKey = 1;</code>
     */
    protected $OneKey = false;
    /**
     *奖励id(Proficient表id)
     *
     * Generated from protobuf field <code>int32 Id = 2;</code>
     */
    protected $Id = 0;
    /**
     *是否为高级 false为普通奖励 true为高级奖励
     *
     * Generated from protobuf field <code>bool IsExpert = 3;</code>
     */
    protected $IsExpert = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $OneKey
     *          是否一键领取 true为一键领取,如果为一键领取,不检查下面参数
     *     @type int $Id
     *          奖励id(Proficient表id)
     *     @type bool $IsExpert
     *          是否为高级 false为普通奖励 true为高级奖励
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *是否一键领取 true为一键领取,如果为一键领取,不检查下面参数
     *
     * Generated from protobuf field <code>bool OneKey = 1;</code>
     * @return bool
     */
    public function getOneKey()
    {
        return $this->OneKey;
    }

    /**
     *是否一键领取 true为一键领取,如果为一键领取,不检查下面参数
     *
     * Generated from protobuf field <code>bool OneKey = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setOneKey($var)
    {
        GPBUtil::checkBool($var);
        $this->OneKey = $var;

        return $this;
    }

    /**
     *奖励id(Proficient表id)
     *
     * Generated from protobuf field <code>int32 Id = 2;</code>
     * @return int
     */
    public function getId()
    {
        return $this->Id;
    }

    /**
     *奖励id(Proficient表id)
     *
     * Generated from protobuf field <code>int32 Id = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkInt32($var);
        $this->Id = $var;

        return $this;
    }

    /**
     *是否为高级 false为普通奖励 true为高级奖励
     *
     * Generated from protobuf field <code>bool IsExpert = 3;</code>
     * @return bool
     */
    public function getIsExpert()
    {
        return $this->IsExpert;
    }

    /**
     *是否为高级 false为普通奖励 true为高级奖励
     *
     * Generated from protobuf field <code>bool IsExpert = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsExpert($var)
    {
        GPBUtil::checkBool($var);
        $this->IsExpert = $var;

        return $this;
    }

}

