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.4.2 test/proto/addressbook.proto
protobuf-2.4.1-java test/proto/addressbook.proto
protobuf-2.4.1 test/proto/addressbook.proto
protobuf-2.4.0-java test/proto/addressbook.proto
protobuf-2.4.0 test/proto/addressbook.proto
protobuf-2.3.2-java test/proto/addressbook.proto
protobuf-2.3.2 test/proto/addressbook.proto
protobuf-2.3.1-java test/proto/addressbook.proto
protobuf-2.3.1 test/proto/addressbook.proto
protobuf-2.3.0-java test/proto/addressbook.proto
protobuf-2.3.0 test/proto/addressbook.proto
protobuf-2.2.7-java test/proto/addressbook.proto
protobuf-2.2.7 test/proto/addressbook.proto
protobuf-2.2.6-java test/proto/addressbook.proto
protobuf-2.2.6 test/proto/addressbook.proto
protobuf-2.2.5-java test/proto/addressbook.proto
protobuf-2.2.5 test/proto/addressbook.proto
protobuf-2.2.4 test/proto/addressbook.proto
protobuf-2.2.3 test/proto/addressbook.proto
protobuf-2.2.2 test/proto/addressbook.proto