File extension for serial output protobuf

It seems strange that I cannot find an answer to this question, but which file extension should you use when storing the serialized protobuf file in a file? Just. Protobuff? The Json equivalent of what I'm talking about would be a .json file.

+4


source to share


1 answer


I'm just using .bin, but there is no real standard here AFAIK. If protoc -o

(which emits a .proto schema in protobuf binary format FileDescriptorSet

) took a directory similar to all the other out parameters, we could use that as a de facto answer, but protoc -o

unusual in that it takes a file instead. In an old post by the protobuf group, Kenton Warda (one of the authors) suggests that the file extension should be implementation-specific (which means: you decided), and not just reference the format: https://groups.google.com/forum/# ! theme / Protobuf / JWZx9n8CUvw



+5


source







All Articles