Re: [protobuf] How to tell which implementation I am using, pure python or python compiled using c++?

2016-07-21 Thread 'Jie Luo' via Protocol Buffers
Sorry, the link should be: https://github.com/google/protobuf/blob/master/python/google/protobuf/internal/api_implementation.py On Thu, Jul 21, 2016 at 3:51 PM, Jie Luo wrote: > Try api_implementation.Type() >

Re: [protobuf] Does Protobuf v2.6.1 have a protobuf to json library?

2016-07-21 Thread 'Feng Xiao' via Protocol Buffers
On Thu, Jul 21, 2016 at 2:49 PM, Oi Lee wrote: > I know C++ does for proto3 but I was wondering about proto2. Do I need to > use 3rd party software? > Protobuf 2.6.1 doesn't, but you can use protobuf 3.0.0 with proto2 syntax and use the JSON utility with proto2 messages. The caveat here is that J

Re: [protobuf] How to tell which implementation I am using, pure python or python compiled using c++?

2016-07-21 Thread 'Jie Luo' via Protocol Buffers
Try api_implementation.Type()

[protobuf] Does Protobuf v2.6.1 have a protobuf to json library?

2016-07-21 Thread Oi Lee
I know C++ does for proto3 but I was wondering about proto2. Do I need to use 3rd party software? -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u

[protobuf] How to tell which implementation I am using, pure python or python compiled using c++?

2016-07-21 Thread Oi Lee
I'm curious to find out how to tell which implementation of protobuffs I am using. I recently installed using the C++ library but I just want to make sure it is the one I am using. I'm currently on Protocol Buffers 2.6.1. Thanks! -- You received this message because you are subscribed to the G

[protobuf] how can i change my protobuf object to byte arrays in javascript

2016-07-21 Thread antoniochen0205
i just want to get a byte arrays from a protobuf object as java in javascript, but i never find a function to do it. who knows? please tell me -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving

[protobuf] Re: why does uint64, fixed64 map to string when converted to JSON

2016-07-21 Thread Shashwat Agarwal
Thanks a lot Jon. I have been dealing with JSON usually in the backend far more than with Javascript. On Tuesday, July 19, 2016 at 6:28:22 PM UTC+5:30, Jon Skeet wrote: > > On Monday, 18 July 2016 18:25:41 UTC+1, Shashwat Agarwal wrote: >> >> I was looking at this document: >> https://developer