How to accomplish inheritance effectively using proto-buffers
问题 I have a base class message message Animal { optional string name = 1; optional int32 age = 2; } and the sub-class which extends animal message Dog{ optional string breed = 1; } So while building a dog message , i should be able to set all the fields of Animal. I know the round about way of doing it (declaring all the animal fields once again in dog message)but is it possible simply and effectively using protobuffers? Also i learnt about extensions and i understood that it is just used to add