[protobuf] ERROR While Parsing Json into Message

2019-03-07 Thread Sarir Ahmad
Protocol message tag had invalid wire type. at com.google.protobuf.InvalidProtocolBufferException.invalidWireType(InvalidProtocolBufferException.java:99) at com.google.protobuf.UnknownFieldSet$Builder.mergeFieldFrom(UnknownFieldSet.java:498) at com.google.protobuf.UnknownFieldSet$Bu

Re: [protobuf] Override equals and hashCode for generated Java code?

2019-03-07 Thread Dave Killian
When consumers use equals/hashcodes on the generated classes, new fields can never be added to the messages without breaking consumers at runtime. Adding new fields is typically how messages (and APIs in gRPC) are safely evolved over time. So having generated equals/hashcodes seems pretty pro