Reverse engineering protobuf API