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 70 71
|
syntax = "proto3";
package coolcar;
option go_package="coolcar/proto/gen/go/trippb";
message Location { float latitude = 1; float longitude = 2; }
enum TripStatus { TS_NOT_SPECIFIED = 0; NOT_STARTED = 1; IN_PROGRESS = 2; FINISHED = 3; PAID = 4; }
message Trip { string start = 1; string end = 2; Location start_pos = 5; Location end_pos = 6; repeated Location path_locations = 7; int32 duration_sec = 3; int32 fee_cent = 4; TripStatus status = 8; map<string, string> projects = 9; }
message GetTripRequest { string id = 1; }
message GetTripResponse { string id = 1; Trip trip = 2; }
service TripService { rpc GetTrip (GetTripRequest) returns (GetTripResponse); }
|