No, there is no built-in support for serializing a message while ignoring
particular fields. Probably the easiest way to do that would be to just
make a copy of the message that excludes the fields you want to skip.
On Thu, Nov 3, 2022 at 8:16 PM 哈 wrote:
> just like
> protected void init(Kryo
just like
protected void init(Kryo kryo) {
kryo.setDefaultSerializer(CompatibleFieldSerializer.class);
Serializer serializer = kryo.getSerializer(More.class);
if (serializer instanceof FieldSerializer) {
FieldSerializer fieldSerializer = (FieldSerializer)serializer;