code: public static String javaRepeatedEnumValueGetterByIndexName(Field field) {
          if (field.isRepeated()) {
              return GETTER_PREFIX + Formatter.toPascalCase(field.getName()) + VALUE;
          }
          throw new IllegalArgumentException(field.toString());
      }
docs: Returns a field value getter by index name for proto repeated enum field.