How to get structure of a Google Protobuf message without the definition
Posted
by dqminh
on Stack Overflow
See other posts from Stack Overflow
or by dqminh
Published on 2010-01-03T16:06:35Z
Indexed on
2010/04/20
18:13 UTC
Read the original article
Hit count: 181
I have to get the message structure of a protobuf message transfered to me without the message's definition. Using UnknownFieldSet methods, I was able to get a string representation of the message as below:
1: "a"
2: {
3:"b"
4:"c"
}
What data structure does field 2 represent ? Using UnknownFieldSet.Field.getGroupList i was able to get the content of field 3 and 4, does that means field 2 has the "deprecated" group structure ?
© Stack Overflow or respective owner