Spaces:
Runtime error
Runtime error
File size: 1,308 Bytes
f0b9b57 2447637 f0b9b57 2447637 f0b9b57 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
syntax = "proto3";
service Resume{
// Get Resume Info
rpc GetInfo(TextRequest) returns (ResumeEntitiesResponse);
rpc Health(PingRequest) returns (PongResponse);
rpc MatchPosition(PositionMatchRequest) returns (PositionMatchResponse);
}
message PingRequest{
string ping = 1;
}
message Position{
string name = 1;
repeated string required = 2;
}
message PositionMatchRequest{
repeated Position positions = 1;
string resume = 2;
}
message PositionMatch{
string position = 1;
float score = 2;
}
message PositionMatchResponse{
repeated PositionMatch matches = 1;
}
message PongResponse{
string done = 1;
}
message TextRequest{
string text = 1;
}
message Entity{
string entity = 1;
int32 start = 2;
int32 end = 3;
optional string text = 4;
string origin = 5;
optional string level = 6;
}
message JobEntity {
Entity start = 1;
Entity end = 2;
Entity company = 3;
}
message ResumeEntitiesResponse{
repeated Entity names = 1;
repeated Entity emails = 2;
repeated Entity phones = 3;
repeated Entity schools = 4;
repeated Entity edus = 5;
repeated Entity ages = 6;
repeated Entity genders = 7;
int32 work_years = 8;
repeated JobEntity jobs = 9;
repeated Entity titles = 10;
}
|