Add the "oneof" function.