Seems odd that I can't find the answer to this, but what file extension are you supposed to use when storing serialized protobuf output in a file? Just .protobuf? The json equivalent of what I am talking about would be a .json file.
标签:
protocol-buffers
相关问题
- creating callbacks and structs for repeated field
- How to deal with unknown protobuf fields in Java?
- Is it possible to use Apache Thrift without RPC?
- How do I Import a .proto file from a dependency ja
- compile protocol buffers 3 timestamp type in c# vi
相关文章
- How to not freeze the UI, and wait for response?
- Protocol message tag had invalid wire type
- Protobuf InvalidProtocolBufferException with some
- use protobuf3 with some lib which depends on proto
- How to serialize/deserialize a protobuf message th
- Parsing a raw Protocol Buffer byte stream in C#
- How can i write my own RPC Implementation for Prot
- Read value of enum extension in protocol buffer
I just use .bin, but there's no actual standard here AFAIK. If
protoc -o
(which emits a .proto schema in protobuf binary format as aFileDescriptorSet
) had taken a directory like all the other output options do, we could have used that as a de-facto answer, butprotoc -o
is unusual in that it takes a file instead. In an old post on the protobuf group, Kenton Varda (one of the original authors) suggests that the file extension should be implementation specific (meaning: you decide) rather than simply referring to the format: https://groups.google.com/forum/#!topic/protobuf/JWZx9n8CUvw