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