protobuf.js
protobuf.js copied to clipboard
Enumeration of OneOf field
protobuf.js version: <6.11.2>
For example, I make the following proto:
message Msg {
oneof MsgBody {
TypeOne MsgOne = 1;
TypeTwo MsgTwo = 2;
}
}
The generated .h file will be like:
public enum MsgBodyOneofCase
{
MsgOneOne = 1;
MsgOneTwo = 2;
}
There are some similar issues in other projects, such as enum and property for oneof: protobuf.net
Thanks!