We've been using protobuf-net ProtoGen to generate C# .cs file from *.proto file. We would like instead of class to generate struct. e.g.
[DataContract]
public struct Entity1
{
[ProtoMember(1)]
public double Field1 { get; set; }
[ProtoMember(2)]
public string Field2 { get; set; }
}
I tried to extract protocol buffer using method Serializer.GetProto
for class and struct type. It seems, that protocol buffer (.proto) doesn't recognize difference between the struct and class. So I imply, that could be a parameter in ProtoGen to choose between class/struct for generation from .proto. Does the feature exist or how could I solve generation of the struct from *.proto?