Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
637 B

  1. // See README.txt for information and build instructions.
  2. package tutorial;
  3. option java_package = "com.example.tutorial";
  4. option java_outer_classname = "AddressBookProtos";
  5. message Person {
  6. required string name = 1;
  7. required int32 id = 2; // Unique ID number for this person.
  8. optional string email = 3;
  9. enum PhoneType {
  10. MOBILE = 0;
  11. HOME = 1;
  12. WORK = 2;
  13. }
  14. message PhoneNumber {
  15. required string number = 1;
  16. optional PhoneType type = 2 [default = HOME];
  17. }
  18. repeated PhoneNumber phone = 4;
  19. }
  20. // Our address book file is just one of these.
  21. message AddressBook {
  22. repeated Person person = 1;
  23. }