Re: [protobuf] same message name in diffent .proto file, how can i fix it?

2015-01-14 Thread Ilia Mirkin
Use package. https://developers.google.com/protocol-buffers/docs/proto#packages On Wed, Jan 14, 2015 at 2:27 AM, you zhou zhyou...@gmail.com wrote: in my project, file name as module name, like that file(module):battle.proto message SyncMapReq{ } message SyncMapResp{ message Map map =

[protobuf] same message name in diffent .proto file, how can i fix it?

2015-01-14 Thread you zhou
in my project, file name as module name, like that file(module):battle.proto message SyncMapReq{ } message SyncMapResp{ message Map map = 1; repeated Player player = 2; } message Player { required int32 x = 1; required int32 y = 2; required int32 speed = 3; required int32

[protobuf] protobuf-net sets defaults on proto messages

2015-01-14 Thread Philippe Lavoie
The protoc complaints when protobuf-net generates default for messages. Also, the following is viewed as invalid. Is there any setting I can use to make sure that the .proto generated is valid ? I tried IsRequired required bcl.Guid Key = 1 [default = ----];

Re: [protobuf] Re: Protobuf Buffers v3.0.0-alpha-1

2015-01-14 Thread Jeremy Swigart
That sounds like a poor design decision, and one easily readded without breaking anything. If a field doesn't have an explicit default, you use 0 or whatever, thereby not breaking anyone not using them, but if an explicit default is provided that is used instead. I am using that feature as