Last active
February 23, 2018 02:31
-
-
Save ejhsu/26e60c0aa1edc26dd30e31ed7f5e974f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
message Person { | |
string name = 1; | |
int32 id = 2; | |
string email = 3; | |
enum PhoneType { | |
UNKNOWN = 0; | |
MOBILE = 1; | |
HOME = 2; | |
WORK = 3; | |
} | |
message PhoneNumber { | |
string number = 1; | |
PhoneType type = 2; | |
} | |
repeated PhoneNumber phone = 4; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment