I'm processing some SerializeToString serialized data, the data might be message A or message B, I can ParseFromString using A or B. But how can I determine that I'm using the right type?
message A {
int32 a = 1;
double b = 2;
repeated int32 c = 3;
};
message B {
int32 a = 1;
repeated int32 c = 2;
};