I am working on an open-source project(https://github.com/google/science-journal/tree/master/OpenScienceJournal). With this application, I can record an experiment. Recorded experiments are stored with the .proto extension. I tried to compile them to generate classes but failed.
Is there any way to open this kind of files?
In protocol-buffers, .proto
files are usually the text-based schema DSL that describes messages, not data; however, it is possible that these files do indeed contain the binary data instead (just... unusual). Double-check the files : if they look like:
message Foo {
int32 bar = 1;
// etc
}
then it is the schema; if it is binary-looking, it is probably data.
As to how to read it: the simplest option is to already have the schema. If you don't, the data is technically ambiguous - you can probably reverse-engineer it by examining the data, but it can be awkward. You may find tools such as https://protogen.marcgravell.com/decode useful for that purpose.
Once you have a schema and the data, you would:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With