livebook/proto/messages.proto
2022-12-21 11:28:27 -03:00

37 lines
433 B
Protocol Buffer

syntax = "proto3";
message User {
int32 id = 1;
string email = 2;
}
message Error {
string details = 1;
}
message SessionRequest {
string app_version = 1;
}
message SessionResponse {
string id = 1;
User user = 2;
}
message Request {
int32 id = 1;
oneof type {
SessionRequest session = 2;
}
}
message Response {
int32 id = 1;
oneof type {
Error error = 2;
SessionResponse session = 3;
}
}