[protobuf] Re: Issue 202 in protobuf: RepeatedField::MoveArray generates "warning: declaration of 'size' shadows a member of 'this'"

2010-07-07 Thread protobuf
Comment #1 on issue 202 by Oliver.Jowett: RepeatedField::MoveArray generates "warning: declaration of 'size' shadows a member of 'this'" http://code.google.com/p/protobuf/issues/detail?id=202 Also present on: Solaris 10, sparc, gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) Solaris 10, x

[protobuf] Issue 202 in protobuf: RepeatedField::MoveArray generates "warning: declaration of 'size' shadows a member of 'this'"

2010-07-07 Thread protobuf
Status: New Owner: ken...@google.com Labels: Type-Defect Priority-Medium New issue 202 by Oliver.Jowett: RepeatedField::MoveArray generates "warning: declaration of 'size' shadows a member of 'this'" http://code.google.com/p/protobuf/issues/detail?id=202 Seen when compiling code generated by

Re: [protobuf] Basic message encoding/decoding

2010-07-07 Thread timothyparez
Hi, Yep I meant without the libraries, But you guided me in the right direction with the 2 files to look at :) I'll try that first Thnx --Original Message-- From: Evan Jones To: Parez, Timothy Cc: Protocol Buffers Subject: Re: [protobuf] Basic message encoding/decoding Sent: Jul 7, 20

Re: [protobuf] Basic message encoding/decoding

2010-07-07 Thread Evan Jones
On Jul 7, 2010, at 5:43 , Timothy Parez wrote: I'm aware I can simply use one of the various libraries, but it's important I understand basic encoding/decoding so I can pass this knowledge to teams who are using a language which is not supported by any of the libraries. I don't understand: you

Re: [protobuf] Re: using the new plugin infrastructure

2010-07-07 Thread Kenton Varda
For C++, to determine the output name, just replace ".proto" with ".pb.h" or ".pb.cc". You have to make sure that you run the C++ code generator at the same time as your plugin. --cpp_out must appear first on the command line, e.g.: # CORRECT protoc --cpp_out=outdir --myplugin_out=outdir #

Re: [protobuf] Sending Protocol Buffers via REST

2010-07-07 Thread Kenton Varda
Yep, that's how it works. On Tue, Jul 6, 2010 at 8:17 AM, David wrote: > Hi, I am trying to implement protocol buffers for client/server using > REST. > I am still a bit confused if I need to send protocol buffers request > in byte format? > > I mean, in my client code, do I need to serialize ob

Re: [protobuf] [protobuff] How to set a field of "Message" type? (C++)

2010-07-07 Thread Daniel Wright
In C++ you use the mutable_ accessor to set the value. So for example, you could do: my_message.mutable_auth_resp_msg()->set_foo(1); On Tue, Jul 6, 2010 at 3:01 PM, Maxim Leonovich wrote: > I have a protocol like that: > > message MSG { >enum MessageType { >//One enum

[protobuf] ECCN

2010-07-07 Thread Chuck Knight
Does anyone have an ECCN (export control number) for this project? -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubs

[protobuf] Basic message encoding/decoding

2010-07-07 Thread Timothy Parez
Hi, I've looked at http://code.google.com/apis/protocolbuffers/docs/encoding.html and while this probably provides all the required information, it still doesn't "click" for me. Does anybody have any simple code samples which do nothing more than encode and decode a simple message? I'm aware I c

[protobuf] [protobuff] How to set a field of "Message" type? (C++)

2010-07-07 Thread Maxim Leonovich
I have a protocol like that: message MSG { enum MessageType { //One enum value is needed for each message type AUTHORIZATION_REQUEST = 1; AUTHORIZATION_RESPONCE = 2; } required MessageType type = 1; required int32 prot