handle JProtobuf Enums, backwards compatible
handle JProtobuf Enums, backwards compatible