How could runtime schema skip fields with default or uninitialized value in serialization?

57 views
Skip to first unread message

JC

unread,
Apr 11, 2018, 1:55:37 PM4/11/18
to protostuff
How could runtime schema skip fields with default or uninitialized value in serialization?

David Yu

unread,
Apr 11, 2018, 1:57:59 PM4/11/18
to protostuff
On Thu, Apr 12, 2018 at 1:47 AM, JC <jin-che...@amobee.com> wrote:
How could runtime schema skip fields with default or uninitialized value in serialization?
You write a schema for the class where you want your fields to be skipped and then register that schema on startup. 

--
You received this message because you are subscribed to the Google Groups "protostuff" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protostuff+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
When the cat is away, the mouse is alone.
dyuproject.com

JC

unread,
Apr 11, 2018, 2:15:25 PM4/11/18
to protostuff
Do you mean overwrite RuntimeSchema to check defaults in "writeTo" iterator?


On Wednesday, April 11, 2018 at 10:57:59 AM UTC-7, David Yu wrote:
On Thu, Apr 12, 2018 at 1:47 AM, JC <jin-che...@amobee.com> wrote:
How could runtime schema skip fields with default or uninitialized value in serialization?
You write a schema for the class where you want your fields to be skipped and then register that schema on startup. 

--
You received this message because you are subscribed to the Google Groups "protostuff" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protostuff+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

David Yu

unread,
Apr 12, 2018, 12:12:50 PM4/12/18
to protostuff
On Thu, Apr 12, 2018 at 2:15 AM, JC <jin-che...@amobee.com> wrote:
Do you mean overwrite RuntimeSchema to check defaults in "writeTo" iterator?
No.  I mean calling RuntimeSchema.register with a schema that you write.  Kinda like the sample seen in https://protostuff.github.io/docs/
 
To unsubscribe from this group and stop receiving emails from it, send an email to protostuff+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages