public abstract class PBase<T extends com.google.protobuf.Message> extends Transportable implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
protected T |
data
返回数据集合
|
body, json| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getBody()
消息体字节数组
|
abstract com.google.protobuf.Message |
toBuilder()
转换ProtoBuf
|
T |
unpack(Class<T> clazz)
将Data解包成Message对象
|
deallocate, getType, toJson, toProto, touchprotected T extends com.google.protobuf.Message data
public PBase()
public PBase(String key)
public PBase(String key, long timestamp)
public abstract com.google.protobuf.Message toBuilder()
public byte[] getBody()
TransportablegetBody 在类中 TransportableCopyright © 2020–2023 The AIM Project. All rights reserved.