Sha256: b3f6bfe9d43cd72d4e97f3a29c0265ab1e3da180ea562ed26d2b1dbb52412dcf

Contents?: true

Size: 510 Bytes

Versions: 137

Compression:

Stored size: 510 Bytes

Contents

package tutorial;

message Person {
  required string name = 1;
  required int32 id = 2;
  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;
  optional uint32 age = 5 [default = 20];

  extensions 100 to 200;
}

/*
extend Person {
  optional int32 age = 100;
}
*/

message AddressBook {
  repeated Person person = 1;
}

Version data entries

137 entries across 137 versions & 2 rubygems

Version Path
protobuf-2.5.4 test/proto/addressbook.proto
protobuf-2.5.3 test/proto/addressbook.proto
protobuf-2.5.2-java test/proto/addressbook.proto
protobuf-2.5.2 test/proto/addressbook.proto
protobuf-2.5.1 test/proto/addressbook.proto
protobuf-2.5.0-java test/proto/addressbook.proto
protobuf-2.5.0 test/proto/addressbook.proto
protobuf-2.4.8-java test/proto/addressbook.proto
protobuf-2.4.8 test/proto/addressbook.proto
protobuf-2.4.7-java test/proto/addressbook.proto
protobuf-2.4.7 test/proto/addressbook.proto
protobuf-2.4.6 test/proto/addressbook.proto
protobuf-2.4.5-java test/proto/addressbook.proto
protobuf-2.4.5 test/proto/addressbook.proto
protobuf-2.4.4-java test/proto/addressbook.proto
protobuf-2.4.4 test/proto/addressbook.proto
protobuf-2.4.3-java test/proto/addressbook.proto
protobuf-2.4.3 test/proto/addressbook.proto
protobuf-2.4.3.rc1 test/proto/addressbook.proto
protobuf-2.4.2-java test/proto/addressbook.proto