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 =
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
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 =
----];
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