public org.apache.skywalking.oap.server.core.remote.grpc.proto.RemoteData.Builder serialize() {
org.apache.skywalking.oap.server.core.remote.grpc.proto.RemoteData.Builder remoteBuilder = org.apache.skywalking.oap.server.core.remote.grpc.proto.RemoteData.newBuilder();
<#list serializeFields.stringFields as field>
    remoteBuilder.addDataStrings(${field.getter}() == null ? "" : ${field.getter}());
</#list>

<#list serializeFields.longFields as field>
    remoteBuilder.addDataLongs(${field.getter}());
</#list>

<#list serializeFields.doubleFields as field>
    remoteBuilder.addDataDoubles(${field.getter}());
</#list>

<#list serializeFields.intFields as field>
    remoteBuilder.addDataIntegers(${field.getter}());
</#list>

<#list serializeFields.objectFields as field>
    remoteBuilder.addDataObjectStrings(${field.getter}().toStorageData());
</#list>

return remoteBuilder;
}
