<?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.Club</code>
 */
class Club extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 ClubID = 1;</code>
     */
    protected $ClubID = 0;
    /**
     * Generated from protobuf field <code>string ClubName = 2;</code>
     */
    protected $ClubName = '';
    /**
     * Generated from protobuf field <code>string ClubMaster = 3;</code>
     */
    protected $ClubMaster = '';
    /**
     * Generated from protobuf field <code>int32 Image = 4;</code>
     */
    protected $Image = 0;
    /**
     * Generated from protobuf field <code>int32 BgImage = 5;</code>
     */
    protected $BgImage = 0;
    /**
     * Generated from protobuf field <code>uint64 CreateTime = 6;</code>
     */
    protected $CreateTime = 0;
    /**
     * Generated from protobuf field <code>int32 LevelScore = 7;</code>
     */
    protected $LevelScore = 0;
    /**
     * Generated from protobuf field <code>string ClubNotice = 8;</code>
     */
    protected $ClubNotice = '';
    /**
     * Generated from protobuf field <code>repeated int32 ClubTags = 9;</code>
     */
    private $ClubTags;
    /**
     * Generated from protobuf field <code>int32 LevelLimit = 10;</code>
     */
    protected $LevelLimit = 0;
    /**
     * Generated from protobuf field <code>int32 RankdLimit = 11;</code>
     */
    protected $RankdLimit = 0;
    /**
     * Generated from protobuf field <code>int32 JoinState = 12;</code>
     */
    protected $JoinState = 0;
    /**
     * Generated from protobuf field <code>repeated uint64 JoinApply = 13;</code>
     */
    private $JoinApply;
    /**
     * Generated from protobuf field <code>repeated uint64 Players = 14;</code>
     */
    private $Players;
    /**
     * Generated from protobuf field <code>int32 ClubScore = 15;</code>
     */
    protected $ClubScore = 0;
    /**
     * Generated from protobuf field <code>int32 ClubLevel = 16;</code>
     */
    protected $ClubLevel = 0;
    /**
     * Generated from protobuf field <code>int32 CarsPerformance = 17;</code>
     */
    protected $CarsPerformance = 0;
    /**
     *俱乐部顺序索引
     *
     * Generated from protobuf field <code>int32 Index = 18;</code>
     */
    protected $Index = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $ClubID
     *     @type string $ClubName
     *     @type string $ClubMaster
     *     @type int $Image
     *     @type int $BgImage
     *     @type int|string $CreateTime
     *     @type int $LevelScore
     *     @type string $ClubNotice
     *     @type int[]|\Google\Protobuf\Internal\RepeatedField $ClubTags
     *     @type int $LevelLimit
     *     @type int $RankdLimit
     *     @type int $JoinState
     *     @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $JoinApply
     *     @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $Players
     *     @type int $ClubScore
     *     @type int $ClubLevel
     *     @type int $CarsPerformance
     *     @type int $Index
     *          俱乐部顺序索引
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string ClubName = 2;</code>
     * @return string
     */
    public function getClubName()
    {
        return $this->ClubName;
    }

    /**
     * Generated from protobuf field <code>string ClubName = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setClubName($var)
    {
        GPBUtil::checkString($var, True);
        $this->ClubName = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string ClubMaster = 3;</code>
     * @return string
     */
    public function getClubMaster()
    {
        return $this->ClubMaster;
    }

    /**
     * Generated from protobuf field <code>string ClubMaster = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setClubMaster($var)
    {
        GPBUtil::checkString($var, True);
        $this->ClubMaster = $var;

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 CreateTime = 6;</code>
     * @return int|string
     */
    public function getCreateTime()
    {
        return $this->CreateTime;
    }

    /**
     * Generated from protobuf field <code>uint64 CreateTime = 6;</code>
     * @param int|string $var
     * @return $this
     */
    public function setCreateTime($var)
    {
        GPBUtil::checkUint64($var);
        $this->CreateTime = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string ClubNotice = 8;</code>
     * @return string
     */
    public function getClubNotice()
    {
        return $this->ClubNotice;
    }

    /**
     * Generated from protobuf field <code>string ClubNotice = 8;</code>
     * @param string $var
     * @return $this
     */
    public function setClubNotice($var)
    {
        GPBUtil::checkString($var, True);
        $this->ClubNotice = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated int32 ClubTags = 9;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getClubTags()
    {
        return $this->ClubTags;
    }

    /**
     * Generated from protobuf field <code>repeated int32 ClubTags = 9;</code>
     * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setClubTags($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->ClubTags = $arr;

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated uint64 JoinApply = 13;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getJoinApply()
    {
        return $this->JoinApply;
    }

    /**
     * Generated from protobuf field <code>repeated uint64 JoinApply = 13;</code>
     * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setJoinApply($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT64);
        $this->JoinApply = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated uint64 Players = 14;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPlayers()
    {
        return $this->Players;
    }

    /**
     * Generated from protobuf field <code>repeated uint64 Players = 14;</code>
     * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPlayers($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT64);
        $this->Players = $arr;

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     *俱乐部顺序索引
     *
     * Generated from protobuf field <code>int32 Index = 18;</code>
     * @return int
     */
    public function getIndex()
    {
        return $this->Index;
    }

    /**
     *俱乐部顺序索引
     *
     * Generated from protobuf field <code>int32 Index = 18;</code>
     * @param int $var
     * @return $this
     */
    public function setIndex($var)
    {
        GPBUtil::checkInt32($var);
        $this->Index = $var;

        return $this;
    }

}

