public interface SchemaEx<T> extends SchemaWriter<T>, SchemaReader<T>
Basically, any object can be serialized via protobuf. As long as its schema is provided, it does not need to
implement Message. This was designed with "unobtrusive" in mind. The goal was to be able to
serialize/deserialize any existing object without having to touch its source. This will enable you to customize the
serialization of objects from 3rd party libraries.
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
default String |
messageName()
Returns the simple name of the message tied to this schema.
|
writeTomergeFrom, newMessagedefault String messageName()
void init()
Copyright © 2017–2019 The Apache Software Foundation. All rights reserved.