Researcher.proto 390 Bytes
Newer Older
Riccardo Presotto's avatar
Riccardo Presotto committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package it.ewlab.researcher;

message Researcher {
    required string name = 1;
    required string surname = 2;

    enum ResearcherType {
        PHDSTUDENT = 0;
        POSTDOC = 1;
        ASSISTANTPROFESSOR = 2;
    }

    message Paper {
        required string title = 1;
        required int32 year = 2;

    }

    repeated Paper paper = 3;
    optional ResearcherType type = 4;
}