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
protoc-2.6.1.3 ext/protoc/protobuf/examples/addressbook.proto
protoc-2.6.1.2 ext/protoc/protobuf/examples/addressbook.proto
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/pygments.rb-0.6.3/vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.6.3 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.6.2 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.6.1 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.6.0 vendor/pygments-main/tests/examplefiles/addressbook.proto
mortar-pygments.rb-0.5.7 vendor/pygments-main/tests/examplefiles/addressbook.proto
mortar-pygments.rb-0.5.6 vendor/pygments-main/tests/examplefiles/addressbook.proto
mortar-pygments.rb-0.5.5 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-jruby-0.5.4.2 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-jruby-0.5.4.1 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-jruby-0.5.4 vendor/pygments-main/tests/examplefiles/addressbook.proto
gitlab-pygments.rb-0.5.4 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.5.4 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.5.2 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.5.1 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.5.0 vendor/pygments-main/tests/examplefiles/addressbook.proto
gitlab-pygments.rb-0.3.2 vendor/pygments-main/tests/examplefiles/addressbook.proto
pygments.rb-0.4.2 vendor/pygments-main/tests/examplefiles/addressbook.proto