<?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.IntimacyApplyInfo</code>
 */
class IntimacyApplyInfo extends \Google\Protobuf\Internal\Message
{
    /**
     *申请人Id
     *
     * Generated from protobuf field <code>uint64 PlayerId = 1;</code>
     */
    protected $PlayerId = 0;
    /**
     *关系Id(intimacy表Id)
     *
     * Generated from protobuf field <code>int32 IntimacyId = 2;</code>
     */
    protected $IntimacyId = 0;
    /**
     *申请时间
     *
     * Generated from protobuf field <code>int32 CreteTime = 3;</code>
     */
    protected $CreteTime = 0;
    /**
     *申请Uid
     *
     * Generated from protobuf field <code>uint64 ApplyId = 4;</code>
     */
    protected $ApplyId = 0;
    /**
     *申请人昵称
     *
     * Generated from protobuf field <code>string NickName = 5;</code>
     */
    protected $NickName = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $PlayerId
     *          申请人Id
     *     @type int $IntimacyId
     *          关系Id(intimacy表Id)
     *     @type int $CreteTime
     *          申请时间
     *     @type int|string $ApplyId
     *          申请Uid
     *     @type string $NickName
     *          申请人昵称
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ClientGamePacket::initOnce();
        parent::__construct($data);
    }

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

    /**
     *申请人Id
     *
     * 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;
    }

    /**
     *关系Id(intimacy表Id)
     *
     * Generated from protobuf field <code>int32 IntimacyId = 2;</code>
     * @return int
     */
    public function getIntimacyId()
    {
        return $this->IntimacyId;
    }

    /**
     *关系Id(intimacy表Id)
     *
     * Generated from protobuf field <code>int32 IntimacyId = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setIntimacyId($var)
    {
        GPBUtil::checkInt32($var);
        $this->IntimacyId = $var;

        return $this;
    }

    /**
     *申请时间
     *
     * Generated from protobuf field <code>int32 CreteTime = 3;</code>
     * @return int
     */
    public function getCreteTime()
    {
        return $this->CreteTime;
    }

    /**
     *申请时间
     *
     * Generated from protobuf field <code>int32 CreteTime = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setCreteTime($var)
    {
        GPBUtil::checkInt32($var);
        $this->CreteTime = $var;

        return $this;
    }

    /**
     *申请Uid
     *
     * Generated from protobuf field <code>uint64 ApplyId = 4;</code>
     * @return int|string
     */
    public function getApplyId()
    {
        return $this->ApplyId;
    }

    /**
     *申请Uid
     *
     * Generated from protobuf field <code>uint64 ApplyId = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setApplyId($var)
    {
        GPBUtil::checkUint64($var);
        $this->ApplyId = $var;

        return $this;
    }

    /**
     *申请人昵称
     *
     * Generated from protobuf field <code>string NickName = 5;</code>
     * @return string
     */
    public function getNickName()
    {
        return $this->NickName;
    }

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

        return $this;
    }

}

