Is your feature request related to a problem? Please describe.
Enum names are always prefixed by ENUM_NAME_ and this is not very intuitive for kotlin code. This is a limitation to support C++ generated code.
Describe the solution you'd like
Add an option to automatically remove ENUM_NAME_ prefix from generated enums.
Describe alternatives you've considered
None
Additional context
I think we can include an option to remove the ENUMNAME prefix from the actual enum names in the generated code. Such as
enum State {
STATE_UNKNOWN = 0
STATE_KNOWN = 1
}
will be converted to
@Serializable
public enum class State {
@ProtoNumber(number = 0)
UNKNOWN,
@ProtoNumber(number = 1)
KNOWN,
}
Is your feature request related to a problem? Please describe. Enum names are always prefixed by
ENUM_NAME_
and this is not very intuitive for kotlin code. This is a limitation to support C++ generated code.Describe the solution you'd like Add an option to automatically remove
ENUM_NAME_
prefix from generated enums.Describe alternatives you've considered None
Additional context
I think we can include an option to remove the ENUMNAME prefix from the actual enum names in the generated code. Such as
will be converted to
And this can be toggled via an option
Based on conversation with @tamnguyenhuy from #14