<?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.CGCreateClub</code>
 */
class CGCreateClub extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 Image = 1;</code>
     */
    protected $Image = 0;
    /**
     * Generated from protobuf field <code>int32 BgImage = 2;</code>
     */
    protected $BgImage = 0;
    /**
     * Generated from protobuf field <code>string ClubName = 3;</code>
     */
    protected $ClubName = '';
    /**
     * Generated from protobuf field <code>repeated .Game.Protobuf.subMoney Money = 4;</code>
     */
    private $Money;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Image
     *     @type int $BgImage
     *     @type string $ClubName
     *     @type \Game\Protobuf\subMoney[]|\Google\Protobuf\Internal\RepeatedField $Money
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>int32 Image = 1;</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 = 2;</code>
     * @return int
     */
    public function getBgImage()
    {
        return $this->BgImage;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .Game.Protobuf.subMoney Money = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMoney()
    {
        return $this->Money;
    }

    /**
     * Generated from protobuf field <code>repeated .Game.Protobuf.subMoney Money = 4;</code>
     * @param \Game\Protobuf\subMoney[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMoney($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Game\Protobuf\subMoney::class);
        $this->Money = $arr;

        return $this;
    }

}

