We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db90027 commit 0db98b4Copy full SHA for 0db98b4
1 file changed
sdks/julia/LogicalQueryProtocol.jl/src/protobuf-helpers.jl
@@ -25,7 +25,8 @@ function _get_oneof_field(obj, field_sym::Symbol)
25
for fname in fieldnames(typeof(obj))
26
fval = getfield(obj, fname)
27
if fval isa ProtoBuf.OneOf && fval.name == field_sym
28
- return fval[]
+ typ = ProtoBuf.oneof_field_types(typeof(obj))[fname][field_sym]
29
+ return fval[]::typ
30
end
31
32
error("No oneof field $field_sym on $(typeof(obj))")
0 commit comments