2019-12-24 04:33:44 +01:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2019-12-24 23:59:33 +01:00
|
|
|
package backend_proto;
|
2019-12-24 04:33:44 +01:00
|
|
|
|
|
|
|
message Empty {}
|
|
|
|
|
2019-12-24 23:59:33 +01:00
|
|
|
message BackendInput {
|
2019-12-24 04:33:44 +01:00
|
|
|
oneof value {
|
|
|
|
PlusOneIn plus_one = 2;
|
2019-12-24 05:05:15 +01:00
|
|
|
TemplateRequirementsIn template_requirements = 3;
|
2019-12-24 04:33:44 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-24 23:59:33 +01:00
|
|
|
message BackendOutput {
|
2019-12-24 04:33:44 +01:00
|
|
|
oneof value {
|
2019-12-24 23:59:33 +01:00
|
|
|
BackendError error = 1;
|
2019-12-24 04:33:44 +01:00
|
|
|
PlusOneOut plus_one = 2;
|
2019-12-24 05:05:15 +01:00
|
|
|
TemplateRequirementsOut template_requirements = 3;
|
2019-12-24 04:33:44 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-24 23:59:33 +01:00
|
|
|
message BackendError {
|
2019-12-24 04:33:44 +01:00
|
|
|
oneof value {
|
|
|
|
InvalidInputError invalid_input = 1;
|
2019-12-24 05:05:15 +01:00
|
|
|
TemplateParseError template_parse = 2;
|
2019-12-24 04:33:44 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message InvalidInputError {
|
|
|
|
string info = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PlusOneIn {
|
|
|
|
int32 num = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PlusOneOut {
|
|
|
|
int32 num = 1;
|
|
|
|
}
|
2019-12-24 05:05:15 +01:00
|
|
|
|
|
|
|
message TemplateParseError {
|
|
|
|
string info = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TemplateRequirementsIn {
|
|
|
|
repeated string template_front = 1;
|
|
|
|
map<string, uint32> field_names_to_ordinals = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TemplateRequirementsOut {
|
|
|
|
repeated TemplateRequirement requirements = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TemplateRequirement {
|
|
|
|
oneof value {
|
|
|
|
TemplateRequirementAll all = 1;
|
|
|
|
TemplateRequirementAny any = 2;
|
|
|
|
Empty none = 3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message TemplateRequirementAll {
|
|
|
|
repeated uint32 ords = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TemplateRequirementAny {
|
|
|
|
repeated uint32 ords = 1;
|
|
|
|
}
|