-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfleet.proto
More file actions
43 lines (36 loc) · 869 Bytes
/
fleet.proto
File metadata and controls
43 lines (36 loc) · 869 Bytes
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
syntax = "proto3";
package proto.fleet;
option go_package="github.com/synerex/proto_fleet";
message FleetService {
message ShareRideSerivce {
int32 capacity = 1;
int32 occupied_seats = 2;
int32 available_seats = 3;
bool non_smoking = 4;
int32 price_per_km = 5;
}
message DeliverSerivce {
string item = 1;
string unit = 2;
int32 num = 3;
int32 avail = 4;
repeated int64 demand_ids = 5;
}
oneof fservice {
ShareRideSerivce share_ride = 1;
DeliverSerivce deliver = 2;
}
}
message Fleet {
message Coord {
float lat = 1;
float lon = 2;
}
int32 vehicle_id = 1;
int32 status = 2;
Coord coord = 3;
float angle = 4;
int32 speed = 5;
repeated FleetService services = 6;
repeated int32 demands = 7;
}