Sha256: 33fe5580bf7b40230fb1292471bce80dc1b13eee54ea7dc1ac7c9a98d765c7eb

Contents?: true

Size: 637 Bytes

Versions: 44

Compression:

Stored size: 637 Bytes

Contents

// See README.txt for information and build instructions.

package tutorial;

option java_package = "com.example.tutorial";
option java_outer_classname = "AddressBookProtos";

message Person {
  required string name = 1;
  required int32 id = 2;        // Unique ID number for this person.
  optional string email = 3;

  enum PhoneType {
    MOBILE = 0;
    HOME = 1;
    WORK = 2;
  }

  message PhoneNumber {
    required string number = 1;
    optional PhoneType type = 2 [default = HOME];
  }

  repeated PhoneNumber phone = 4;
}

// Our address book file is just one of these.
message AddressBook {
  repeated Person person = 1;
}

Version data entries

44 entries across 44 versions & 6 rubygems

Version Path
pygments.rb-0.4.1 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.3.7 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.3.6 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.3.5 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.3.4 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.3.3 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.3.2 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.3.1 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.3.0 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.2.13 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.2.12 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.2.11 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.2.10 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.2.9 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.2.8 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.2.7 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.2.6 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.2.4 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.2.3 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.2.2 vendor/pygments-main/tests/examplefiles/addressbook.proto