Your best bet is to use Serializer.GetProto<A>()
to see what protobuf-net thinks the matching .proto looks like. If I assume nothing about B
, I get:
message A {
optional uint32 field1 = 1 [default = 0];
optional uint32 field2 = 2 [default = 0];
optional uint32 field3 = 3 [default = 0];
repeated uint32 field4 = 4 [packed=true];
optional bytes field5 = 5;
repeated uint32 field6 = 6 [packed=true];
}
The main difference seems to be the uint64
vs uint32
.