<?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;

/**
 *--------------------------好友模块start-----------------------------/
 *
 * Generated from protobuf message <code>Game.Protobuf.FriendRole</code>
 */
class FriendRole extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint64 PlayerId = 1;</code>
     */
    protected $PlayerId = 0;
    /**
     * Generated from protobuf field <code>int32 RoleId = 2;</code>
     */
    protected $RoleId = 0;
    /**
     * Generated from protobuf field <code>int32 Head = 3;</code>
     */
    protected $Head = 0;
    /**
     * Generated from protobuf field <code>int32 Level = 4;</code>
     */
    protected $Level = 0;
    /**
     * Generated from protobuf field <code>int32 Gender = 5;</code>
     */
    protected $Gender = 0;
    /**
     * Generated from protobuf field <code>string NickName = 6;</code>
     */
    protected $NickName = '';
    /**
     *会员
     *
     * Generated from protobuf field <code>int32 Member = 7;</code>
     */
    protected $Member = 0;
    /**
     *段位等级
     *
     * Generated from protobuf field <code>int32 Dan = 8;</code>
     */
    protected $Dan = 0;
    /**
     * 总熟练度等级
     *
     * Generated from protobuf field <code>int32 ProficiencyLv = 9;</code>
     */
    protected $ProficiencyLv = 0;
    /**
     * 亲密度
     *
     * Generated from protobuf field <code>int32 Intimacy = 10;</code>
     */
    protected $Intimacy = 0;
    /**
     *解除亲密关系cd
     *
     * Generated from protobuf field <code>int32 CDTime = 11;</code>
     */
    protected $CDTime = 0;
    /**
     *亲密关系徽章(小火苗)
     *
     * Generated from protobuf field <code>int32 IntimacyIcon = 12;</code>
     */
    protected $IntimacyIcon = 0;
    /**
     *亲密关系创建时间
     *
     * Generated from protobuf field <code>int32 IntimacyCreateTime = 13;</code>
     */
    protected $IntimacyCreateTime = 0;
    /**
     *亲密关系(intimacy表Id),0为没有关系
     *
     * Generated from protobuf field <code>int32 IntimacyId = 14;</code>
     */
    protected $IntimacyId = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $PlayerId
     *     @type int $RoleId
     *     @type int $Head
     *     @type int $Level
     *     @type int $Gender
     *     @type string $NickName
     *     @type int $Member
     *          会员
     *     @type int $Dan
     *          段位等级
     *     @type int $ProficiencyLv
     *           总熟练度等级
     *     @type int $Intimacy
     *           亲密度
     *     @type int $CDTime
     *          解除亲密关系cd
     *     @type int $IntimacyIcon
     *          亲密关系徽章(小火苗)
     *     @type int $IntimacyCreateTime
     *          亲密关系创建时间
     *     @type int $IntimacyId
     *          亲密关系(intimacy表Id),0为没有关系
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string NickName = 6;</code>
     * @return string
     */
    public function getNickName()
    {
        return $this->NickName;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     *段位等级
     *
     * Generated from protobuf field <code>int32 Dan = 8;</code>
     * @return int
     */
    public function getDan()
    {
        return $this->Dan;
    }

    /**
     *段位等级
     *
     * Generated from protobuf field <code>int32 Dan = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setDan($var)
    {
        GPBUtil::checkInt32($var);
        $this->Dan = $var;

        return $this;
    }

    /**
     * 总熟练度等级
     *
     * Generated from protobuf field <code>int32 ProficiencyLv = 9;</code>
     * @return int
     */
    public function getProficiencyLv()
    {
        return $this->ProficiencyLv;
    }

    /**
     * 总熟练度等级
     *
     * Generated from protobuf field <code>int32 ProficiencyLv = 9;</code>
     * @param int $var
     * @return $this
     */
    public function setProficiencyLv($var)
    {
        GPBUtil::checkInt32($var);
        $this->ProficiencyLv = $var;

        return $this;
    }

    /**
     * 亲密度
     *
     * Generated from protobuf field <code>int32 Intimacy = 10;</code>
     * @return int
     */
    public function getIntimacy()
    {
        return $this->Intimacy;
    }

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

        return $this;
    }

    /**
     *解除亲密关系cd
     *
     * Generated from protobuf field <code>int32 CDTime = 11;</code>
     * @return int
     */
    public function getCDTime()
    {
        return $this->CDTime;
    }

    /**
     *解除亲密关系cd
     *
     * Generated from protobuf field <code>int32 CDTime = 11;</code>
     * @param int $var
     * @return $this
     */
    public function setCDTime($var)
    {
        GPBUtil::checkInt32($var);
        $this->CDTime = $var;

        return $this;
    }

    /**
     *亲密关系徽章(小火苗)
     *
     * Generated from protobuf field <code>int32 IntimacyIcon = 12;</code>
     * @return int
     */
    public function getIntimacyIcon()
    {
        return $this->IntimacyIcon;
    }

    /**
     *亲密关系徽章(小火苗)
     *
     * Generated from protobuf field <code>int32 IntimacyIcon = 12;</code>
     * @param int $var
     * @return $this
     */
    public function setIntimacyIcon($var)
    {
        GPBUtil::checkInt32($var);
        $this->IntimacyIcon = $var;

        return $this;
    }

    /**
     *亲密关系创建时间
     *
     * Generated from protobuf field <code>int32 IntimacyCreateTime = 13;</code>
     * @return int
     */
    public function getIntimacyCreateTime()
    {
        return $this->IntimacyCreateTime;
    }

    /**
     *亲密关系创建时间
     *
     * Generated from protobuf field <code>int32 IntimacyCreateTime = 13;</code>
     * @param int $var
     * @return $this
     */
    public function setIntimacyCreateTime($var)
    {
        GPBUtil::checkInt32($var);
        $this->IntimacyCreateTime = $var;

        return $this;
    }

    /**
     *亲密关系(intimacy表Id),0为没有关系
     *
     * Generated from protobuf field <code>int32 IntimacyId = 14;</code>
     * @return int
     */
    public function getIntimacyId()
    {
        return $this->IntimacyId;
    }

    /**
     *亲密关系(intimacy表Id),0为没有关系
     *
     * Generated from protobuf field <code>int32 IntimacyId = 14;</code>
     * @param int $var
     * @return $this
     */
    public function setIntimacyId($var)
    {
        GPBUtil::checkInt32($var);
        $this->IntimacyId = $var;

        return $this;
    }

}

