Actor.proto 284 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
package it.ewlab.actor;

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

	enum Sex {
		MALE = 0;
		FEMALE = 1;
	}

	message Movie {
        required string title = 1;
        required int32 year = 2;
    }

	repeated Movie movie = 3;
	optional Sex sex = 4;
}