Anki/proto/bridge.proto
Damien Elmes 252a0cb54f use protobuf for python/rust bridge
If we go ahead with betterproto on the Python side, it will mean
bumping the minimum Python dependency to 3.7.
2019-12-24 19:57:54 +10:00

36 lines
479 B
Protocol Buffer

syntax = "proto3";
package proto;
message Empty {}
message BridgeInput {
oneof value {
PlusOneIn plus_one = 2;
}
}
message BridgeOutput {
oneof value {
BridgeError error = 1;
PlusOneOut plus_one = 2;
}
}
message BridgeError {
oneof value {
InvalidInputError invalid_input = 1;
}
}
message InvalidInputError {
string info = 1;
}
message PlusOneIn {
int32 num = 1;
}
message PlusOneOut {
int32 num = 1;
}