See Original text in context
method compose_values($obj)
Calls the export callback set by .set_export_callback and removes it from state. This should be called after adding the enum's values using .add_enum_value.
.set_export_callback
.add_enum_value