Re: [protobuf] Re: Bazel on ARM

2015-07-06 Thread 'Feng Xiao' via Protocol Buffers
On Mon, Jul 6, 2015 at 12:50 PM, Damien Martin-guillerez dmart...@google.com wrote: There is a bootstrap problem: we need protoc compiler to bootstrap bazel but we could be baking protoc using bazel. However we probably will have to cross-compile for such a thing. Hmm, why does bazel need

Re: [protobuf] he simple code bellow doesn't work. Is it the best way to use Any ? I'm just trying to read from/write to Any and identify the type stored by Any.

2015-07-06 Thread 'Feng Xiao' via Protocol Buffers
On Mon, Jul 6, 2015 at 11:23 AM, Edgard Lima edgard.l...@gmail.com wrote: // my .proto syntax = proto3;import google/protobuf/any.proto; message CommandListPrinters {} message Commands { int32 id = 1; repeated google.protobuf.Any command = 2;} // my.java CommandListPrinters

Re: [protobuf] map issue in protoc 2.6.1 on Windows

2015-07-06 Thread 'Feng Xiao' via Protocol Buffers
Map is a feature added in 3.0.0. You need to use 3.0.0-alpha-3 in order to use map fields. On Thu, Jul 2, 2015 at 1:15 PM, adam.ko...@btinternet.com wrote: According to the Language Guide an associative map can be used in data definition

Re: [protobuf] Protov3 empty fields

2015-07-06 Thread Ilia Mirkin
Just to echo this, I think that having empty fields be distinguishables from ones set to the default value is an immensely useful feature, irrespective of whether the field is a primitive type or not. I know I've used it lots of times. On Wed, Jul 1, 2015 at 4:28 PM, John C. j...@excelfore.com

[protobuf] he simple code bellow doesn't work. Is it the best way to use Any ? I'm just trying to read from/write to Any and identify the type stored by Any.

2015-07-06 Thread Edgard Lima
// my .proto syntax = proto3;import google/protobuf/any.proto; message CommandListPrinters {} message Commands { int32 id = 1; repeated google.protobuf.Any command = 2;} // my.java CommandListPrinters commandListPrinters = CommandListPrinters.newBuilder().build();Any any =

[protobuf] Re: Bazel on ARM

2015-07-06 Thread 'Andrew Rossignol' via Protocol Buffers
+protobuf What would it take to have Maven Central produce ARM binaries for protoc? Is this possible? Thanks! Andrew On Wednesday, July 1, 2015 at 10:43:57 AM UTC-7, Damien Martin-guillerez wrote: I don't think we really care about it being compiled by maven. We used the protoc from

[protobuf] Protov3 empty fields

2015-07-06 Thread John C.
My understanding is that if a primitive field is empty in a v3 message then it will give 0 which is indistinguishable from a field that is actually 0. From what I have read is this is done to enable support of a wide range of languages, but how is this a well reasoned solution to this problem?

[protobuf] Output File Format

2015-07-06 Thread Hesham Habib
Hi all, I used to get output file with below format: serviceKey: 1000 msisdn_A: 00 msisdn_B: hostMsisdn: 111 shortNumberState: FOUND callResult: SUCCESS releaseCause: 00 But I need to get it with below format : serviceKey=1000, msisdn_A=00, msisdn_B=,

How to deserialize the data[protobuf] in c++?

2015-07-06 Thread Aravinthvvs Aravinthvvs
Hi All, How to deserialize the data from the go program in c++? I have two programs,one is go another one is c++ program. Both the program i use same .proto file. In go program i set the values to the fields of proto file.and serialize the data then sent to c++ program. In c++ program i have

[protobuf] Issues Cross Compiling for VxWorks

2015-07-06 Thread Chuck Claunch
I'm attempting to cross compile protobuf for use on a National Instruments Compact RIO (PowerPC 603). I'm using the toolchain located here http://firstforge.wpi.edu/sf/projects/c--11_toochain. I've verified the toolchain with some simple applications and would now like to use protobuf. Most

[protobuf] generating java file from proto file using protocol buffer compiler

2015-07-06 Thread Srinivas Sooraj
I have proto file in C:\Sooraj\Playdrone\android-checkin-master\src\main\protobuf\checkin.proto after unzipping protobuf the java related source code is in C:\Sooraj\Playdrone\protobuf-2.6.1\java\src when i try executing command protoc -I=C:/Sooraj/Playdrone/android-checkin-master

[protobuf] map issue in protoc 2.6.1 on Windows

2015-07-06 Thread adam . kosta
According to the Language Guide an associative map can be used in data definition https://developers.google.com/protocol-buffers/docs/proto#maps When I try using it on Windows 7 I am getting a compiler error on the left angle bracket in required mapuint32, bytes properties = 1;

[protobuf] How to transfer data using protocol Buffers in c++?

2015-07-06 Thread Aravinth Veeramuthu
Hello all, Help me to transfer data using protocol Buffers in c++? I have to pass my data from one language to another language program(ex: c++ to golang) using Protocol Buffer. Thanks, Aravinth V -- You received this message because you are subscribed to the Google Groups Protocol Buffers

[protobuf] is changing the datatype of a field in .proto file feasible after the previous one has been in use for some time

2015-07-06 Thread mehak . bhat
Need to change the datatype of a field from int to string. Can this be done? -- 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] Re: protoc full path names on Windows 7 a problem?

2015-07-06 Thread Srinivas Sooraj
hello, I have similar problem i gave absolute path and i got error. I wanna generate java file. what should the be the command?? we have protobuf directory and the directory where proto file is there i am confused as to how to create the command? On Thursday, June 7, 2012 at 3:23:14 PM UTC-5,

[protobuf] Is it feasible to change the datatype of a field in .proto file after using the old one for a while?

2015-07-06 Thread mehak . bhat
need to change the datatype of a field from int to string now. can it be done? -- 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] How to transfer data from client to server using Protocol Buffer(windows)?

2015-07-06 Thread Aravinth Veeramuthu
Hello geeks, How to transfer data from client to server using Protocol Buffer(windows)? Thanks, Aravinth -- 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] How to de-serialize the protocol message(char array)in c++?

2015-07-06 Thread Aravinth Veeramuthu
Hi All, I sent my serialized protocol message(through buffer) from go program to c++ program .In C program i received the proto message as a char array(buffer).How can i de serialize the protocol message from the go program ? Thanks, Aravinth V -- You received this message because you are

[protobuf] uninstallation of gpb 2.6.1

2015-07-06 Thread Vemula ajay kumar
Hi Friends, I'm new in using gpb. I'm trying to uninstall gpb 2.6.1 and start a fresh installation with gpb 2.6.0. can someone help me in proceeding with this? Thanks in advance Regards Ajay -- You received this message because you are subscribed to the Google Groups Protocol Buffers

Re: [protobuf] Re: Bazel on ARM

2015-07-06 Thread 'Feng Xiao' via Protocol Buffers
+Kun who maintains the protoc binary on Maven. On Wed, Jul 1, 2015 at 11:03 AM, 'Andrew Rossignol' via Protocol Buffers protobuf@googlegroups.com wrote: +protobuf What would it take to have Maven Central produce ARM binaries for protoc? Is this possible? We don't have ARM machines to

Re: [protobuf] Syntax error on 'src/google/protobuf/stubs/atomicops.h'

2015-07-06 Thread 'Feng Xiao' via Protocol Buffers
On Mon, Jul 6, 2015 at 1:34 PM, George Redivo Pinto georgered...@gmail.com wrote: I've seen a syntax error on src/google/protobuf/stubs/atomicops.h file. The define GOOGLE_PROTOBUF_ATOMICOPS_ERROR has an error. It's not possible to define #error inside a define. It causes 'error: stray ‘#’

[protobuf] Syntax error on 'src/google/protobuf/stubs/atomicops.h'

2015-07-06 Thread George Redivo Pinto
I've seen a syntax error on src/google/protobuf/stubs/atomicops.h file. The define GOOGLE_PROTOBUF_ATOMICOPS_ERROR has an error. It's not possible to define #error inside a define. It causes 'error: stray ‘#’ in program' compilation error. The current code put *#error ...* inside