|
|
@ -6183,9 +6183,12 @@ void DescriptorBuilder::BuildOneof(const OneofDescriptorProto& proto, |
|
|
|
result->fields_ = nullptr; |
|
|
|
result->fields_ = nullptr; |
|
|
|
|
|
|
|
|
|
|
|
// Copy options.
|
|
|
|
// Copy options.
|
|
|
|
result->options_ = |
|
|
|
{ |
|
|
|
AllocateOptions(proto, result, OneofDescriptorProto::kOptionsFieldNumber, |
|
|
|
OneofOptions* options = AllocateOptions( |
|
|
|
|
|
|
|
proto, result, OneofDescriptorProto::kOptionsFieldNumber, |
|
|
|
"google.protobuf.OneofOptions", alloc); |
|
|
|
"google.protobuf.OneofOptions", alloc); |
|
|
|
|
|
|
|
result->options_ = options; // Set to default_instance later if necessary.
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
AddSymbol(result->full_name(), parent, result->name(), proto, Symbol(result)); |
|
|
|
AddSymbol(result->full_name(), parent, result->name(), proto, Symbol(result)); |
|
|
|
} |
|
|
|
} |
|
|
|