Protocol Buffer (Protobuf) provides two simpler options for dealing with values that might be of more than one type. The Any type can represent any known Protobuf message type. And you can use the oneof keyword to specify that only one of a range of fields can be set in any message.
What are protocol buffers? Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data – think XML, but smaller, faster, and simpler.
Some of the advantages of using protocol buffers include: Compact data storage. Fast parsing. Availability in many programming languages.
Protocol Buffers (Protobuf) is a free and open-source cross-platform data format used to serialize structured data. It is useful in developing programs to communicate with each other over a network or for storing data.
I want to compare two arbitrary google::protobuf::Message
objects.
I assume that objects are equal when
I know, that I can write such comparison function by myself, but may be there is already some simple or predefined solution?
Also, may be I'm missing some principal issue about incomparability of such objects - I would like to know if it's so.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With