[protobuf] Re: Having Error in Maven-antrun-plugin

2015-10-26 Thread Kanchan Verma
[INFO] [INFO] [INFO] [INFO] Building UID Protobuf Model 1.6 [INFO] [INFO] [INFO] >>> maven-eclipse-plugin:2.10:eclipse (default-cli) > generate-resou

[protobuf] (csharp) Need example of Any usage.

2015-10-26 Thread Rob Cecil
I would like to work with Any in a Message declaration: message RangeData { int32 rows = 1; int32 columns = 2; google.protobuf.Any data = 3; } In the application, RangeData.data contains two-dimensional tabular data - floats, ints, string. I can get my data into a byte[] array, but I'm not cle

[protobuf] Re: [csharp] Prescribed method to extend generated stubs and protobuf/builder classes?

2015-10-26 Thread Rob Cecil
Not off hand. I was also thinking this morning that extension classes could be used, if you were NOT planning on supporting extension through partial definitions. Almost as good. Rob On Sunday, October 25, 2015 at 11:24:25 AM UTC-4, Jon Skeet wrote: > > Hmm. Good question. I had certainly inten

[protobuf] Re: (csharp) Need example of Any usage.

2015-10-26 Thread Rob Cecil
I think I can answer my own question. Any is not meant to be a 'blob' field type -but rather capture another Message whose .proto you do not have on hand. Instead I should define my RangeData as: message RangeData { int32 rows = 1; int32 columns = 2; bytes data = 3; } On Monday, October 26,

Re: [protobuf] protobuf3 deterministic binary serialization

2015-10-26 Thread 'Feng Xiao' via Protocol Buffers
On Sat, Oct 24, 2015 at 5:48 AM, Walter Schulze wrote: > Go also sorts the map keys. > I heard it was, because that is what the C++ implementation is doing. > That's not what C++ does. Go is probably sorting keys for a different reason. > > So do all implementations sort their fields by field n

[protobuf] constraints definitions with protobuf?

2015-10-26 Thread Igor Karymov
Hi all, and thanks for developing such nice stuff like the protobuf! In my application I have a lot of validation work for the data, and according to good practices I have to share some constraints about this data with a clients, just to not make request to the server for validate each form fields