Student.proto 466 Bytes
Newer Older
Michele Fiori's avatar
Michele Fiori committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
package universityPB;

message Student {
	required string name = 1;
	required string surname = 2;
	required int32 yob = 3;

    message PlaceOfResidence {
        required string street = 1;
        required int32 number = 2;
        required string city = 3;
    }

    required PlaceOfResidence residence = 4;

	message Exam {
		required string name = 1;
		required int32 mark = 2;
		required string date = 3;
	}

	repeated Exam exam = 5;
}