<?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.GCGetCloth</code>
 */
class GCGetCloth extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.Game.Protobuf.ClothData MaleCloth = 1;</code>
     */
    protected $MaleCloth = null;
    /**
     * Generated from protobuf field <code>.Game.Protobuf.ClothData FemaleCloth = 2;</code>
     */
    protected $FemaleCloth = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Game\Protobuf\ClothData $MaleCloth
     *     @type \Game\Protobuf\ClothData $FemaleCloth
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.Game.Protobuf.ClothData MaleCloth = 1;</code>
     * @return \Game\Protobuf\ClothData|null
     */
    public function getMaleCloth()
    {
        return $this->MaleCloth;
    }

    public function hasMaleCloth()
    {
        return isset($this->MaleCloth);
    }

    public function clearMaleCloth()
    {
        unset($this->MaleCloth);
    }

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

        return $this;
    }

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

    public function hasFemaleCloth()
    {
        return isset($this->FemaleCloth);
    }

    public function clearFemaleCloth()
    {
        unset($this->FemaleCloth);
    }

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

        return $this;
    }

}

