MemlessParser parser = new MemlessParser();
parser.process("src/test/resources/unittest.proto");
List<ProtobufMessage> messages = parser.getMessages();
ProtobufMessage message = getMessage("TestAllTypes", messages);
if (message == null) {
throw new IllegalStateException();
}
for (ProtobufField curField : message.getFields()) {
String data = null;
if (curField.getNature().equals("repeated") && !curField.getType().equals("bytes")) {
System.out.println("List<" + curField.getFullyClarifiedJavaType() + "> values" + curField.getBeanName() + " = new ArrayList<" + curField.getFullyClarifiedJavaType() + ">();");
for (int i = 0; i < 2; i++) {
System.out.println("values" + curField.getBeanName() + ".add(" + getJavaTypeValue(curField) + ");");