fix build error: ordinal has private access in Enum

Change-Id: I92a593acddcb87e6fff92928d89f0a8cf3e38555