code: func NewGenericEnum(symbols []string) *GenericEnum {
  	symbolsToIndex := make(map[string]int32)
  	for index, symbol := range symbols {
  		symbolsToIndex[symbol] = int32(index)
  	}
  
  	return &GenericEnum{
  		Symbols:        symbols,
  		symbolsToIndex: symbolsToIndex,
  	}
  }
docs: // NewGenericEnum returns a new GenericEnum that uses provided enum symbols.