<?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.GCUpdateClubPlayer</code>
 */
class GCUpdateClubPlayer extends \Google\Protobuf\Internal\Message
{
    /**
     *更改状态 删除/增加/更新   0/1/2
     *
     * Generated from protobuf field <code>int32 Status = 1;</code>
     */
    protected $Status = 0;
    /**
     * Generated from protobuf field <code>.Game.Protobuf.ClubPlayer info = 2;</code>
     */
    protected $info = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $Status
     *          更改状态 删除/增加/更新   0/1/2
     *     @type \Game\Protobuf\ClubPlayer $info
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     *更改状态 删除/增加/更新   0/1/2
     *
     * Generated from protobuf field <code>int32 Status = 1;</code>
     * @return int
     */
    public function getStatus()
    {
        return $this->Status;
    }

    /**
     *更改状态 删除/增加/更新   0/1/2
     *
     * Generated from protobuf field <code>int32 Status = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkInt32($var);
        $this->Status = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.Game.Protobuf.ClubPlayer info = 2;</code>
     * @return \Game\Protobuf\ClubPlayer|null
     */
    public function getInfo()
    {
        return $this->info;
    }

    public function hasInfo()
    {
        return isset($this->info);
    }

    public function clearInfo()
    {
        unset($this->info);
    }

    /**
     * Generated from protobuf field <code>.Game.Protobuf.ClubPlayer info = 2;</code>
     * @param \Game\Protobuf\ClubPlayer $var
     * @return $this
     */
    public function setInfo($var)
    {
        GPBUtil::checkMessage($var, \Game\Protobuf\ClubPlayer::class);
        $this->info = $var;

        return $this;
    }

}

