<?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.FriendRoleExt</code>
 */
class FriendRoleExt extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint64 PlayerId = 1;</code>
     */
    protected $PlayerId = 0;
    /**
     * Generated from protobuf field <code>int32 Index = 2;</code>
     */
    protected $Index = 0;
    /**
     * Generated from protobuf field <code>string Remark = 3;</code>
     */
    protected $Remark = '';
    /**
     * Generated from protobuf field <code>int32 Online = 4;</code>
     */
    protected $Online = 0;
    /**
     * Generated from protobuf field <code>bool Good = 5;</code>
     */
    protected $Good = false;
    /**
     *离线时间
     *
     * Generated from protobuf field <code>string OffLineTime = 6;</code>
     */
    protected $OffLineTime = '';
    /**
     *是否是好友
     *
     * Generated from protobuf field <code>bool IsFriend = 7;</code>
     */
    protected $IsFriend = false;
    /**
     *是否在黑名单
     *
     * Generated from protobuf field <code>bool IsBlack = 8;</code>
     */
    protected $IsBlack = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $PlayerId
     *     @type int $Index
     *     @type string $Remark
     *     @type int $Online
     *     @type bool $Good
     *     @type string $OffLineTime
     *          离线时间
     *     @type bool $IsFriend
     *          是否是好友
     *     @type bool $IsBlack
     *          是否在黑名单
     * }
     */
    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 Index = 2;</code>
     * @return int
     */
    public function getIndex()
    {
        return $this->Index;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool Good = 5;</code>
     * @return bool
     */
    public function getGood()
    {
        return $this->Good;
    }

    /**
     * Generated from protobuf field <code>bool Good = 5;</code>
     * @param bool $var
     * @return $this
     */
    public function setGood($var)
    {
        GPBUtil::checkBool($var);
        $this->Good = $var;

        return $this;
    }

    /**
     *离线时间
     *
     * Generated from protobuf field <code>string OffLineTime = 6;</code>
     * @return string
     */
    public function getOffLineTime()
    {
        return $this->OffLineTime;
    }

    /**
     *离线时间
     *
     * Generated from protobuf field <code>string OffLineTime = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setOffLineTime($var)
    {
        GPBUtil::checkString($var, True);
        $this->OffLineTime = $var;

        return $this;
    }

    /**
     *是否是好友
     *
     * Generated from protobuf field <code>bool IsFriend = 7;</code>
     * @return bool
     */
    public function getIsFriend()
    {
        return $this->IsFriend;
    }

    /**
     *是否是好友
     *
     * Generated from protobuf field <code>bool IsFriend = 7;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsFriend($var)
    {
        GPBUtil::checkBool($var);
        $this->IsFriend = $var;

        return $this;
    }

    /**
     *是否在黑名单
     *
     * Generated from protobuf field <code>bool IsBlack = 8;</code>
     * @return bool
     */
    public function getIsBlack()
    {
        return $this->IsBlack;
    }

    /**
     *是否在黑名单
     *
     * Generated from protobuf field <code>bool IsBlack = 8;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsBlack($var)
    {
        GPBUtil::checkBool($var);
        $this->IsBlack = $var;

        return $this;
    }

}

