For the following Protocol Buffer message (proto3) how to I determine which type is set? There does not seem to be a "has_reply" method as is the case for the generated C++ version.
message Event {
oneof type {
Connection connection = 1;
StatusReply reply = 2;
Error error = 3;
End end = 4;
Empty empty = 5;
};
}
https://developers.google.com/protocol-buffers/docs/reference/csharp-generated#oneof suggests that
TypeOneofCase
will tell you which is set: