mirror of
https://github.com/zap-proto/zap-es.git
synced 2026-10-30 15:02:55 +00:00
32 lines
473 B
Protocol Buffer
32 lines
473 B
Protocol Buffer
syntax = "proto3";
|
|
package pi0.test;
|
|
|
|
message AddressBook {
|
|
repeated Person people = 1;
|
|
}
|
|
|
|
message Person {
|
|
uint32 id = 1;
|
|
string name = 2;
|
|
string email = 3;
|
|
|
|
repeated PhoneNumber phones = 4;
|
|
message PhoneNumber {
|
|
string number = 1;
|
|
Type type = 2;
|
|
enum Type {
|
|
mobile = 0;
|
|
home = 1;
|
|
work = 2;
|
|
}
|
|
}
|
|
|
|
oneof employment {
|
|
string employer = 5;
|
|
string school = 6;
|
|
bool unemployed = 7;
|
|
bool selfEmployed = 8;
|
|
}
|
|
}
|
|
|