forked from osmocom/wireshark
31 lines
583 B
Protocol Buffer
31 lines
583 B
Protocol Buffer
// This file comes from the official Protobuf example with a little modification.
|
|
syntax = "proto3";
|
|
package tutorial;
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
message Person {
|
|
string name = 1;
|
|
int32 id = 2; // Unique ID number for this person.
|
|
string email = 3;
|
|
|
|
enum PhoneType {
|
|
MOBILE = 0;
|
|
HOME = 1;
|
|
WORK = 2;
|
|
}
|
|
|
|
message PhoneNumber {
|
|
string number = 1;
|
|
PhoneType type = 2;
|
|
}
|
|
|
|
repeated PhoneNumber phone = 4;
|
|
google.protobuf.Timestamp last_updated = 5;
|
|
bytes portrait_image = 6;
|
|
}
|
|
|
|
message AddressBook {
|
|
repeated Person people = 1;
|
|
}
|
|
|