Last active
July 11, 2017 02:24
-
-
Save blogdarkspot/d8d3f62bf5d2a9a9ffec87be6d24cbe2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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"; | |
package Tutorial; | |
message Person { | |
string name = 1; | |
int32 id = 2; | |
string email = 3; | |
} | |
enum PhoneType { | |
MOBILE = 0; | |
HOME = 1; | |
WORK = 2; | |
} | |
message PhoneNumber { | |
string number = 1; | |
PhoneType type = 2; | |
} | |
repeated PhoneNumber phone = 4; | |
} |
Valeu ! Só vi agora quando fui revisar novamente!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Acho que faltou fechar } em person...