Re: [protobuf] how can i receive stream data per milliseconds in protobuf?

2019-08-15 Thread 'Adam Cozzette' via Protocol Buffers
Protobuf doesn't have any control over how the data is sent--it just handles parsing and serialization. If you want to send messages over the network then it's up to you to decide how to do that and at what frequency. On Wed, Aug 14, 2019 at 2:57 AM majid aminian wrote: > *i have GPS sensor and

Re: [protobuf] Re: oneof feature example using c++

2019-08-15 Thread 'Adam Cozzette' via Protocol Buffers
Matthew, I suspect you have a version mismatch between your protoc and libprotobuf. For C++ the libprotobuf version has to match the version of protoc used to generate code. On Mon, Aug 12, 2019 at 8:11 PM Matthew Allen wrote: > Here is some example code you could play with: > > #include

Re: [protobuf] Can you use protobuf to map json messages formatted differently to the same buffer?

2019-08-15 Thread 'Adam Cozzette' via Protocol Buffers
No, unfortunately I don't think that is supported. You can set the json_name field option in your .proto file to specify the field name to be used for JSON, but you can't specify more than one name for a field. On Wed, Aug 14, 2019 at 4:00 PM Ma N wrote: > let's say 2 jsons have different keys