View Source Protobuf.TransformModule.InferFieldsFromEnum (protobuf v0.12.0)

For structs with a Protobuf.TransformModule set, the Protobuf.new/1 function does not get called. This transform module brings back the original behavior of calling Protobuf.new/1 before the value is encoded.