Comment #1 on issue 154 by ken...@google.com: Generate operator =()
implementatoin for messages.
I think you mean operator==().
We intentionally chose not to include comparison, as we find it is rarely
outside of tests and it adds significantly to the generated code size,
already too big. Try this instead:
message1.SerializeAsString() == message2.SerializeAsString()
You could also write code to compare via the reflection interface. It
would be kind
of slow but for tests this is irrelevant. We have some code like this
which I hope
to release publicly if I can find time to clean it up...
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at