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-1.1.3 test/proto/addressbook.proto
protobuf-1.1.2 test/proto/addressbook.proto
protobuf-1.1.1 test/proto/addressbook.proto
protobuf-1.1.0.beta2 test/proto/addressbook.proto
protobuf-1.1.0.beta1 test/proto/addressbook.proto
protobuf-1.1.0.beta0 test/proto/addressbook.proto
protobuf-1.0.1 test/proto/addressbook.proto
protobuf-1.0.0 test/proto/addressbook.proto
ruby_protobuf-0.4.11 test/proto/addressbook.proto
ruby_protobuf-0.4.10 test/proto/addressbook.proto
ruby_protobuf-0.4.9 test/proto/addressbook.proto
ruby_protobuf-0.4.8 test/proto/addressbook.proto
ruby_protobuf-0.4.7 test/proto/addressbook.proto
ruby_protobuf-0.4.6 test/proto/addressbook.proto
ruby_protobuf-0.4.5 test/proto/addressbook.proto
ruby_protobuf-0.4.4 test/proto/addressbook.proto
ruby_protobuf-0.4.1 test/proto/addressbook.proto