<?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.IntimacyTitle</code>
 */
class IntimacyTitle extends \Google\Protobuf\Internal\Message
{
    /**
     *玩家唯一id
     *
     * Generated from protobuf field <code>uint64 PlayerId = 1;</code>
     */
    protected $PlayerId = 0;
    /**
     *关系Id(intimacy表Id),0为解除关系
     *
     * Generated from protobuf field <code>int32 IntimacyId = 2;</code>
     */
    protected $IntimacyId = 0;
    /**
     *关系创建时间
     *
     * Generated from protobuf field <code>int32 CreateTime = 3;</code>
     */
    protected $CreateTime = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $PlayerId
     *          玩家唯一id
     *     @type int $IntimacyId
     *          关系Id(intimacy表Id),0为解除关系
     *     @type int $CreateTime
     *          关系创建时间
     * }
     */
    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),0为解除关系
     *
     * Generated from protobuf field <code>int32 IntimacyId = 2;</code>
     * @return int
     */
    public function getIntimacyId()
    {
        return $this->IntimacyId;
    }

    /**
     *关系Id(intimacy表Id),0为解除关系
     *
     * 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 CreateTime = 3;</code>
     * @return int
     */
    public function getCreateTime()
    {
        return $this->CreateTime;
    }

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

        return $this;
    }

}

