mirror of
https://github.com/helix-editor/helix
synced 2026-07-28 11:30:52 +02:00
22 lines
306 B
Protocol Buffer
22 lines
306 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
message Person {
|
|
string name = 1;
|
|
|
|
enum PhoneType {
|
|
MOBILE = 0;
|
|
HOME = 1;
|
|
}
|
|
|
|
oneof contact {
|
|
string email = 3;
|
|
string phone = 4;
|
|
}
|
|
}
|
|
|
|
service AddressBook {
|
|
rpc GetPerson(PersonRequest) returns (Person) {
|
|
option idempotency_level = NO_SIDE_EFFECTS;
|
|
}
|
|
}
|