oneofEnumClassName function

String oneofEnumClassName(
  1. String descriptorName,
  2. Set<String> usedNames,
  3. String parentName
)

Implementation

String oneofEnumClassName(
    String descriptorName, Set<String> usedNames, String parentName) {
  descriptorName = '${parentName}_${underscoresToCamelCase(descriptorName)}';
  return disambiguateName(
      avoidInitialUnderscore(descriptorName), usedNames, defaultSuffixes());
}