setapi: accept API_HYBRID etc. as synonyms for HYBRID etc.

PiperOrigin-RevId: 717819659
Change-Id: I66cd6959ba5cb213587313058456ba7332986440
diff --git a/internal/o2o/setapi/setapi.go b/internal/o2o/setapi/setapi.go
index 4a9acdf..bd0b851 100644
--- a/internal/o2o/setapi/setapi.go
+++ b/internal/o2o/setapi/setapi.go
@@ -210,6 +210,14 @@
 		"OPEN":   gofeaturespb.GoFeatures_API_OPEN,
 		"HYBRID": gofeaturespb.GoFeatures_API_HYBRID,
 		"OPAQUE": gofeaturespb.GoFeatures_API_OPAQUE,
+
+		// For convenience, allow enum names like API_HYBRID as synonyms.
+		// These are used in editions feature options lines like:
+		//
+		//   option features.(pb.go).api_level = API_HYBRID;
+		"API_OPEN":   gofeaturespb.GoFeatures_API_OPEN,
+		"API_HYBRID": gofeaturespb.GoFeatures_API_HYBRID,
+		"API_OPAQUE": gofeaturespb.GoFeatures_API_OPAQUE,
 	}
 	// Don't use the keys of apiMap to report valid values to the user, we want
 	// in a specific order.