Files
ESP8266_RTOS_SDK/components/protobuf-c/protobuf-c/t/test-proto3.proto
Supreet Deshpande 9c03d5e7ff feature/protobuf-c: Added the protobuf-C component from esp-idf
ESP-IDF Commit Id: 3ba8eed60aa2997a2894c27b5a6e53186101369e(v3.2)
2019-01-15 17:24:05 +08:00

41 lines
519 B
Protocol Buffer

syntax = "proto3";
package foo;
message Person {
string name = 1;
int32 id = 2;
string email = 3;
enum PhoneType {
MOBILE = 0;
HOME = 1;
WORK = 2;
}
message PhoneNumber {
message Comment {
string comment = 1;
}
string number = 1;
PhoneType type = 2;
Comment comment = 3;
}
repeated PhoneNumber phone = 4;
}
message LookupResult
{
Person person = 1;
}
message Name {
string name = 1;
};
service DirLookup {
rpc ByName (Name) returns (LookupResult);
}