Re: [protobuf] Any JSON coding question

2016-03-14 Thread 'Feng Xiao' via Protocol Buffers
On Mon, Mar 14, 2016 at 7:40 PM, Josh Haberman wrote: > On Mon, Mar 14, 2016 at 7:07 PM, Feng Xiao wrote: > >> On Mon, Mar 14, 2016 at 6:14 PM, Tim Kientzle wrote: >>> >>> I was considering Any for cases such as logging, data

Re: [protobuf] Any JSON coding question

2016-03-14 Thread 'Josh Haberman' via Protocol Buffers
On Mon, Mar 14, 2016 at 7:07 PM, Feng Xiao wrote: > On Mon, Mar 14, 2016 at 6:14 PM, Tim Kientzle wrote: >> >> I was considering Any for cases such as logging, data storage, and other >> systems where intermediaries do not need to access or understand

Re: [protobuf] Any JSON coding question

2016-03-14 Thread 'Feng Xiao' via Protocol Buffers
On Mon, Mar 14, 2016 at 6:14 PM, Tim Kientzle wrote: > > > On Mar 14, 2016, at 11:50 AM, Feng Xiao wrote: > > > > > > > > On Thu, Mar 3, 2016 at 6:37 PM, Tim Kientzle wrote: > > > > I think your current Any JSON design requires that

Re: [protobuf] Protobuf Unexpected end-group tag

2016-03-14 Thread Lim Wei Chiang
Hi Jie Luo, What does the error denote, what should I be checking for? The link you sent has a typo I believe. Thanks for any advice. On Tuesday, 15 March 2016, Jie Luo wrote: > We are going to change the c++ implementation to the same behavior > with pure python which

Re: [protobuf] Any JSON coding question

2016-03-14 Thread Tim Kientzle
> On Mar 14, 2016, at 11:50 AM, Feng Xiao wrote: > > > > On Thu, Mar 3, 2016 at 6:37 PM, Tim Kientzle wrote: > > I think your current Any JSON design requires that protobuf serialization be > able to fail. This is definitely a major change from

Re: [protobuf] Unable to read nested message

2016-03-14 Thread Roberto Hashioka
Understood. Thanks for the clarification Feng! On Mon, Mar 14, 2016 at 3:13 PM, Feng Xiao wrote: > > > On Wed, Mar 9, 2016 at 4:42 AM, Roberto Hashioka < > roberto.hashi...@docker.com> wrote: > >> Hello, >> >> I'm using protobuf 2.6.1 with python and Kafka. When I send a

Re: [protobuf] Unable to read nested message

2016-03-14 Thread 'Feng Xiao' via Protocol Buffers
On Wed, Mar 9, 2016 at 4:42 AM, Roberto Hashioka < roberto.hashi...@docker.com> wrote: > Hello, > > I'm using protobuf 2.6.1 with python and Kafka. When I send a message with > the following format: > > message BaseEvent { > required string trx_id = 1; > required string source = 2; >

Re: [protobuf] Minimum possible length for a protobuf message

2016-03-14 Thread 'Feng Xiao' via Protocol Buffers
On Wed, Mar 9, 2016 at 1:45 AM, Vaibhav Rekhate wrote: > Hi! > > Is there a way one can query the minimum possible length of a protobuf > message? > It seems that if the unpack routine is called with a message having > incorrect length, it can potentially crash the program.

Re: [protobuf] Third Party Add-on: dproto (D programming language)

2016-03-14 Thread 'Feng Xiao' via Protocol Buffers
On Tue, Mar 8, 2016 at 4:37 PM, Matt Soucy wrote: > At the request of some of its users, I would like to request that dproto ( > https://github.com/msoucy/dproto) be added to the list at > https://github.com/google/protobuf/wiki/Third-Party-Add-ons under the D >

Re: [protobuf] Any JSON coding question

2016-03-14 Thread 'Feng Xiao' via Protocol Buffers
On Thu, Mar 3, 2016 at 6:37 PM, Tim Kientzle wrote: > > I think your current Any JSON design requires that protobuf serialization > be able to fail. This is definitely a major change from proto2 and > something the conformance test does not explore. > > 1. Decode a valid

Re: [protobuf] Protobuf Unexpected end-group tag

2016-03-14 Thread 'Jie Luo' via Protocol Buffers
We are going to change the c++ implementation to the same behavior with pure python which will raise 'Unexpected end-group tag.' too. Please see http://b/27494216 On Sat, Mar 12, 2016 at 11:46 PM, Wei Chiang Lim wrote: > Hi all > > I'm trying parse protobuf messages

[protobuf] Minimum possible length for a protobuf message

2016-03-14 Thread Vaibhav Rekhate
Hi! Is there a way one can query the minimum possible length of a protobuf message? It seems that if the unpack routine is called with a message having incorrect length, it can potentially crash the program. So I'd like to add a check to see whether the length of the received message meets the

[protobuf] Third Party Add-on: dproto (D programming language)

2016-03-14 Thread Matt Soucy
At the request of some of its users, I would like to request that dproto (https://github.com/msoucy/dproto) be added to the list at https://github.com/google/protobuf/wiki/Third-Party-Add-ons under the D programming language. The major reason for the implementation is that the other two

[protobuf] Protobuf Unexpected end-group tag

2016-03-14 Thread Wei Chiang Lim
Hi all I'm trying parse protobuf messages subscribed from a zeromq feed using Python. Intermittently when I parse the message string, my script crashes with the following error File "ale-feed-location-reader.py", line 37, in aleEvent.ParseFromString(recvMsg) File

[protobuf] Unable to read nested message

2016-03-14 Thread Roberto Hashioka
Hello, I'm using protobuf 2.6.1 with python and Kafka. When I send a message with the following format: message BaseEvent { required string trx_id = 1; required string source = 2; required int64 occur_time = 3; required EventType