Update native to use Java enums