[protobuf] Re: protoc escape colon in options

2017-05-17 Thread David Konsumer
I guess I can just encodeURI it or something, but I hoped there might be a built-in way to escape ":" On Wednesday, May 17, 2017 at 12:15:36 PM UTC-7, David Konsumer wrote: > > I have made a protoc plugin that handles some options, in the format: > > protoc -I $PROTO

[protobuf] protoc escape colon in options

2017-05-17 Thread David Konsumer
I have made a protoc plugin that handles some options, in the format: protoc -I $PROTO --postman_out=name=cool,base=$URL:out $PROTO/services.proto to get the options "name" and "base" If "base" is a standard url (ie https://google.com) it has a colon in it, which makes protoc think it's the

Re: [protobuf] Timestamp

2017-05-17 Thread 'Feng Xiao' via Protocol Buffers
On Wed, May 17, 2017 at 8:10 AM, Leonardo Toledo wrote: > Hi! I am using protobufs but i need to use the version 2 (syntax 2) of > protobufs and at the same time i need to use the a timestamp, but the > examples that i saw they use always the syntax 3 of protobufs. I already

Re: [protobuf] Re: Porting protobuf to iRTOS

2017-05-17 Thread 'Feng Xiao' via Protocol Buffers
On Tue, May 16, 2017 at 11:26 PM, Shiva Kumar wrote: > I have even tried using static member class. But in protobuf, namespace > are nested and distributed across files. Mapping them to class will not > work out. Removing the all the namespace is another

[protobuf] Timestamp

2017-05-17 Thread Leonardo Toledo
Hi! I am using protobufs but i need to use the version 2 (syntax 2) of protobufs and at the same time i need to use the a timestamp, but the examples that i saw they use always the syntax 3 of protobufs. I already checked the protobufs documentation and i read that in syntax 2 also exist a

[protobuf] Merging / extending 2 different Message types

2017-05-17 Thread Ciprian Caba
Hi guys, I want to use protobufs on c++ for directly serializing some server requests into data objects. However, these requests share some common fields (eg: ts, auth-key, so on) - let's call them CommonParams I will have multiple requests, eg: CreateAccountRequest, ReadAccountRequest,

[protobuf] Re: Protobuf3: How to use the new timestamp proto type?

2017-05-17 Thread Andrés Castaño
Hello all, I had the same issue when generating protos that contain Timestamp in Debian. I got it working following this instructions: https://gist.github.com/sofyanhadia/37787e5ed098c97919b8c593f0ec44d8 Please note my comment about creating a symlink instead of moving the binary. On

[protobuf] Re: Porting protobuf to iRTOS

2017-05-17 Thread Shiva Kumar
I have even tried using static member class. But in protobuf, namespace are nested and distributed across files. Mapping them to class will not work out. Removing the all the namespace is another consideration. Please suggest is there a simple way to do this or if a complete C version is also