Protocol Buffers provide an efficient way to encode structured data for serialization. The language's basic organizational type is a message, which can be thought of as a C-style structure. It is named and contains some number of fields. Messages can also be extended, but the method by which this is accomplished differs from familiar C++ or Java-style inheritance. Instead, message extension is implemented by reserving some number of field indices in the base message for use by the extending messages.
Read full article from Protocol Buffer Polymorphism
No comments:
Post a Comment