mirror of
https://github.com/ankitects/anki.git
synced 2025-11-12 15:47:12 -05:00
If we go ahead with betterproto on the Python side, it will mean bumping the minimum Python dependency to 3.7.
36 lines
479 B
Protocol Buffer
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;
|
|
}
|