How to get Google Protobuf message structure without defining

I need to pass the message structure of the protobuf message passed to me without defining the message. Using the UnknownFieldSet methods, I was able to get a string representation of the message, as shown below:

1: "a"
2: {
   3:"b"
   4:"c"
}

What data structure is field 2? Using UnknownFieldSet.Field.getGroupList, I was able to get the contents of fields 3 and 4, does this mean that field 2 has an "outdated" group structure?

+5
source share
1 answer

, , . 3, .

API UnknownFieldSet, , , .

, , Google - ? , , , , ...

, .proto? , , , , - .

+3

All Articles