[protobuf] Re: Issue 419 in protobuf: enumerators have comma on last value

2013-02-18 Thread protobuf
Comment #3 on issue 419 by xiaof...@google.com: enumerators have comma on last value http://code.google.com/p/protobuf/issues/detail?id=419 Ah, I wasn't aware that it's not allowed in C++03 standard. Of course protobuf is not designed to only work with C++11, but I doubt that major compil

[protobuf] Re: Issue 460 in protobuf: Add isDefault() to Java Message interface as a fast means to verify whether it is a default instance

2013-02-18 Thread protobuf
Updates: Labels: -Type-Defect -Priority-Medium Type-Enhancement Priority-Low Comment #1 on issue 460 by xiaof...@google.com: Add isDefault() to Java Message interface as a fast means to verify whether it is a default instance http://code.google.com/p/protobuf/issues/detail?id=460 What

[protobuf] Re: Issue 263 in protobuf: Proto parser for Java

2013-02-18 Thread protobuf
Updates: Labels: -Type-Defect -Priority-Medium Type-Enhancement Priority-Low Comment #10 on issue 263 by xiaof...@google.com: Proto parser for Java http://code.google.com/p/protobuf/issues/detail?id=263 We are still leaning against the idea of having a parser in Java. It's unlikely to

[protobuf] Re: Issue 459 in protobuf: Wildcard input path for proto files does not work in 2.5.0rc1

2013-02-18 Thread protobuf
Updates: Status: WorkingAsIntended Comment #4 on issue 459 by xiaof...@google.com: Wildcard input path for proto files does not work in 2.5.0rc1 http://code.google.com/p/protobuf/issues/detail?id=459 Protocol compiler is not supposed to expand wildcards. I believe the problem has no

Re: [protobuf] GB 18030 Character Set

2013-02-18 Thread Feng Xiao
On Tue, Feb 12, 2013 at 10:41 PM, rhlake wrote: > Does anyone have any experience trying to send GB 18030 (Chineese > Character Set) accross a wire using protocol buffers? > > if so, which scalar type did you use? bytes? > Using bytes is fine, as long as you encode and decode the data using the s

[protobuf] Re: Protocol Buffers Lite for Borland C++

2013-02-18 Thread mathew . sullivan146
Are there any updates to this group? I'm interested in the project but the link appears dead. On Wednesday, October 14, 2009 12:53:05 AM UTC-4, Dazza wrote: > > I have ported Protocol Buffers Lite to Codegear C++ 2007 (Borland C+ > +). Note the *Lite*. This seems to be working fine at the mome

[protobuf] Send an Image File through Protobuf

2013-02-18 Thread Roohi Syeda
Hi All, I am very new to Protobuf. I know that we can send structured messages using Protobuf. But how about sending Image files? Can any one please help me with the question? Thanks -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To un

[protobuf] will protoc accept scalar typedefs ?

2013-02-18 Thread RichM
it would be nice if i could do typedef int ClientID it appears not possible ? tks Richard. -- 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+unsub

[protobuf] Sending an Image file using google protobuff

2013-02-18 Thread Roohi Syeda
Hi all, I am very new to Google protobuff. I want to upload an image from client to the server.I understand that structured messages can be send over the network. But how can I send attachments through protobuff. Please help me. Thanks in advance. -- You received this message because you are

[protobuf] C++ Protobuf for packet serialization

2013-02-18 Thread Predator33
I'm trying to store information in a protobuf structure so that I can serialize it and send it over a UDP connection, and deserialize it on the other end. The issue I'm having is if i have: message Something { optional string somestr = 1; optional int32 someint1 = 2; optional int32 someint2 = 3

[protobuf] Can Protocol Buffer Java Code use java.lang.Integer instead of primitive datatype int

2013-02-18 Thread Chirag Shah
Consider a scenario We have User Object message User { optional int32 user_id=1; optional string user_name=2; optional int32 user_salary=3; } Now user_salary in my object can be null If I write a code User.newBuilder().setUserSalary(mapUserObj.get("userSalary")); If mapUserObj.get("us

[protobuf] C++ : Access fields extentions from a FieldOptions in DynamicMessage?

2013-02-18 Thread Nishar Nalakathu
extend google.protobuf.FieldOptions { optional string index1 = 1; optional string index2 = 11; } message order { required string id = 1 [(index1) = "map"]; required string name = 2 [(index2) = "multimap" ]; } I use the dynamic message to create and access

[protobuf] c++ protobuf : How can get the extension fields from a FieldOptions(or MessageOptions) in a DynamicMessage?

2013-02-18 Thread Nishar Nalakathu
I uses the following proto and code snippet to access the field options form a descriptor which is created by Importer. import "descriptor.proto"; extend google.protobuf.FieldOptions { optional string index = 1; } message order { optional string user = 1 [(index) = "hash"]; }

Re: [protobuf] python 3.x

2013-02-18 Thread Wojciech Danilo
Hi! I\m also very interested in prtobuf support inPy3. Are there any newsin this topic? W dniu środa, 11 lipca 2012 14:59:37 UTC+2 użytkownik Roberto Alsina napisał: > > On Tuesday, July 10, 2012 8:13:54 PM UTC-3, Gregory P. Smith wrote: >> >> [resending, initial send didn't make it to the list

[protobuf] does protoc allow you to typedef a scalar ?

2013-02-18 Thread RichM
Hi, Let's say i have a field clientid - I'm not sure if ultimately it's going to be int or string... can I typedef int ClientID; as in C++ ? I've not found anything in the docs, and can understand potentially why it's not there but I think it would still be useful. tks, Richard. -- You rece

[protobuf] Protocol Buffer RPC - Authentication/Authorization

2013-02-18 Thread Marcello Ribeiro
I´ve created a brand new java protocol buffer service based on protobuf-socket-rpc implementation. I works perfectly, my callback method is called pretty perfect... But now i am dealing with an issue related to security. How to provide security au

Re: [protobuf] c++ protobuf : How can get the extension fields from a FieldOptions(or MessageOptions) in a DynamicMessage?

2013-02-18 Thread Feng Xiao
On Sat, Feb 16, 2013 at 11:44 PM, Nishar Nalakathu wrote: > > I uses the following proto and code snippet to access the field options > form a descriptor which is created by Importer. > > import "descriptor.proto"; > extend google.protobuf.FieldOptions { > optional string index = 1; > } > me

Re: [protobuf] does protoc allow you to typedef a scalar ?

2013-02-18 Thread Feng Xiao
On Thu, Feb 7, 2013 at 8:50 PM, RichM < richardmur...@richardmurphy.demon.co.uk> wrote: > Hi, > Let's say i have a field clientid - I'm not sure if ultimately it's going > to be int or string... > can I typedef int ClientID; as in C++ ? > No. > I've not found anything in the docs, and can under

Re: [protobuf] Sending an Image file using google protobuff

2013-02-18 Thread Feng Xiao
On Sat, Feb 16, 2013 at 1:03 PM, Roohi Syeda wrote: > Hi all, > > I am very new to Google protobuff. I want to upload an image from client > to the server.I understand that structured messages can be send over the > network. But how can I send attachments through protobuff. > It's simply a bytes

Re: [protobuf] C++ Protobuf for packet serialization

2013-02-18 Thread Feng Xiao
On Tue, Feb 12, 2013 at 6:13 AM, Predator33 wrote: > I'm trying to store information in a protobuf structure so that I can > serialize it and send it over a UDP connection, and deserialize it on the > other end. > > The issue I'm having is if i have: > > message Something { > optional string some

[protobuf] Re: Issue 459 in protobuf: Wildcard input path for proto files does not work in 2.5.0rc1

2013-02-18 Thread protobuf
Comment #5 on issue 459 by askl...@gmail.com: Wildcard input path for proto files does not work in 2.5.0rc1 http://code.google.com/p/protobuf/issues/detail?id=459 "Protocol compiler is not supposed to expand wildcards." If that's the case, then there is a bug. The available Protobuf compiler

[protobuf] Re: Issue 459 in protobuf: Wildcard input path for proto files does not work in 2.5.0rc1

2013-02-18 Thread protobuf
Comment #6 on issue 459 by liuj...@google.com: Wildcard input path for proto files does not work in 2.5.0rc1 http://code.google.com/p/protobuf/issues/detail?id=459 The win32 binary is compiled using MinGW32 (statically linked with MinGW32 lib). I think the MinGW32 lib handles wildcast expansi

[protobuf] Re: Issue 460 in protobuf: Add isDefault() to Java Message interface as a fast means to verify whether it is a default instance

2013-02-18 Thread protobuf
Comment #2 on issue 460 by dav.co...@gmail.com: Add isDefault() to Java Message interface as a fast means to verify whether it is a default instance http://code.google.com/p/protobuf/issues/detail?id=460 1. It is the basic functionality and the use case to check for Message, in fact, for an

[protobuf] Re: Issue 459 in protobuf: Wildcard input path for proto files does not work in 2.5.0rc1

2013-02-18 Thread protobuf
Comment #7 on issue 459 by askl...@gmail.com: Wildcard input path for proto files does not work in 2.5.0rc1 http://code.google.com/p/protobuf/issues/detail?id=459 In that case, the Visual Studio solution included in the protobuf source code has a bug. You need to add "/link setargv.obj" in

[protobuf] Re: Issue 460 in protobuf: Add isDefault() to Java Message interface as a fast means to verify whether it is a default instance

2013-02-18 Thread protobuf
Comment #3 on issue 460 by xiaof...@google.com: Add isDefault() to Java Message interface as a fast means to verify whether it is a default instance http://code.google.com/p/protobuf/issues/detail?id=460 Re 1, 2, 4: When the default instance is used is an implementation detail. The fact tha

Re: [protobuf] Sending an Image file using google protobuff

2013-02-18 Thread Eric Muyser
Files are just ByteArray's over the wire. On Mon, Feb 18, 2013 at 7:32 PM, Feng Xiao wrote: > > > On Sat, Feb 16, 2013 at 1:03 PM, Roohi Syeda wrote: > >> Hi all, >> >> I am very new to Google protobuff. I want to upload an image from client >> to the server.I understand that structured message