mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-30 06:00:00 +00:00
Protobufs: Added '--oneof-union' option. (#4647)
* Added '--oneof-union' option. Used with the .proto -> .fbs converter, will translate protobuff oneofs to flatbuffer unions. Updated proto test to check both methods of converting oneofs. * Added '--oneof-union' option. Used with the .proto -> .fbs converter, will translate protobuff oneofs to flatbuffer unions. Updated proto test to check both methods of converting oneofs. * FlatBuffers: Moved MakeCamel() into idl_parser.cpp Removes library dependency on Java/C# generator code.
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
77b458bee5
commit
fb94af8899
@@ -42,4 +42,12 @@ message ProtoMessage {
|
||||
optional OtherMessage n = 12;
|
||||
repeated string o = 14;
|
||||
optional ImportedMessage z = 16;
|
||||
/// doc comment for r.
|
||||
oneof r {
|
||||
/// doc comment for s.
|
||||
ImportedMessage s = 17;
|
||||
/// doc comment for t on 2
|
||||
/// lines.
|
||||
OtherMessage t = 18;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user