Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.ProtobufCS/0.9.1/ProtobufCS/protos/tutorial/addressbook.proto @ 6451

Last change on this file since 6451 was 3857, checked in by abeham, 15 years ago

#866

  • Added protobuf-csharp-port project source to ExtLibs
File size: 787 bytes
Line 
1package tutorial;
2 
3import "google/protobuf/csharp_options.proto";
4
5option (google.protobuf.csharp_file_options).namespace = "Google.ProtocolBuffers.Examples.AddressBook";
6option (google.protobuf.csharp_file_options).umbrella_classname = "AddressBookProtos";
7
8option optimize_for = SPEED;
9
10message Person {
11  required string name = 1;
12  required int32 id = 2;        // Unique ID number for this person.
13  optional string email = 3;
14 
15  enum PhoneType {
16    MOBILE = 0;
17    HOME = 1;
18    WORK = 2;
19  }
20 
21  message PhoneNumber {
22    required string number = 1;
23    optional PhoneType type = 2 [default = HOME];
24  }
25 
26  repeated PhoneNumber phone = 4;
27}
28 
29// Our address book file is just one of these.
30message AddressBook {
31  repeated Person person = 1;
32}
Note: See TracBrowser for help on using the repository browser.