123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335 |
- syntax = "proto3";
- package maps.fleetengine.v1;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/maps/fleetengine/v1/fleetengine.proto";
- import "google/protobuf/timestamp.proto";
- import "google/protobuf/wrappers.proto";
- option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/v1;fleetengine";
- option java_multiple_files = true;
- option java_outer_classname = "Vehicles";
- option java_package = "google.maps.fleetengine.v1";
- option objc_class_prefix = "CFE";
- message Vehicle {
- option (google.api.resource) = {
- type: "fleetengine.googleapis.com/Vehicle"
- pattern: "providers/{provider}/vehicles/{vehicle}"
- };
-
- message VehicleType {
-
- enum Category {
-
- UNKNOWN = 0;
-
- AUTO = 1;
-
- TAXI = 2;
-
- TRUCK = 3;
-
- TWO_WHEELER = 4;
- }
-
- Category category = 1;
- }
-
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- VehicleState vehicle_state = 2;
-
- repeated TripType supported_trip_types = 3;
-
- repeated string current_trips = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- VehicleLocation last_location = 5;
-
-
- int32 maximum_capacity = 6;
-
-
- repeated VehicleAttribute attributes = 8;
-
-
- VehicleType vehicle_type = 9;
-
- LicensePlate license_plate = 10;
-
- repeated TerminalLocation route = 12 [deprecated = true];
-
-
-
-
-
-
- string current_route_segment = 20;
-
- TrafficPolylineData current_route_segment_traffic = 28 [(google.api.field_behavior) = INPUT_ONLY];
-
-
-
- google.protobuf.Timestamp current_route_segment_version = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
-
-
- TripWaypoint current_route_segment_end_point = 24;
-
-
-
-
- google.protobuf.Int32Value remaining_distance_meters = 18;
-
-
-
-
-
-
- google.protobuf.Timestamp eta_to_first_waypoint = 19;
-
-
-
-
-
-
-
-
- google.protobuf.Int32Value remaining_time_seconds = 25 [(google.api.field_behavior) = INPUT_ONLY];
-
- repeated TripWaypoint waypoints = 22;
-
-
-
- google.protobuf.Timestamp waypoints_version = 16 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- bool back_to_back_enabled = 23;
-
- NavigationStatus navigation_status = 26;
-
- DeviceSettings device_settings = 27 [(google.api.field_behavior) = INPUT_ONLY];
- }
- message BatteryInfo {
-
- BatteryStatus battery_status = 1;
-
- PowerSource power_source = 2;
-
- float battery_percentage = 3;
- }
- message DeviceSettings {
-
-
- LocationPowerSaveMode location_power_save_mode = 1;
-
- bool is_power_save_mode = 2;
-
- bool is_interactive = 3;
-
- BatteryInfo battery_info = 4;
- }
- message LicensePlate {
-
-
- string country_code = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
- string last_character = 2;
- }
- message VisualTrafficReportPolylineRendering {
-
- message RoadStretch {
-
- enum Style {
-
- STYLE_UNSPECIFIED = 0;
-
- SLOWER_TRAFFIC = 1;
-
- TRAFFIC_JAM = 2;
- }
-
- Style style = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- int32 offset_meters = 2 [(google.api.field_behavior) = REQUIRED];
-
- int32 length_meters = 3 [(google.api.field_behavior) = REQUIRED];
- }
-
-
-
-
-
-
-
-
-
-
- repeated RoadStretch road_stretch = 1 [(google.api.field_behavior) = OPTIONAL];
- }
- message TrafficPolylineData {
-
-
- VisualTrafficReportPolylineRendering traffic_rendering = 1;
- }
- enum VehicleState {
-
- UNKNOWN_VEHICLE_STATE = 0;
-
-
- OFFLINE = 1;
-
- ONLINE = 2;
- }
- enum LocationPowerSaveMode {
-
- UNKNOWN_LOCATION_POWER_SAVE_MODE = 0;
-
-
- LOCATION_MODE_NO_CHANGE = 1;
-
-
- LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF = 2;
-
-
- LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF = 3;
-
-
- LOCATION_MODE_FOREGROUND_ONLY = 4;
-
-
- LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF = 5;
- }
- enum BatteryStatus {
-
- UNKNOWN_BATTERY_STATUS = 0;
-
- BATTERY_STATUS_CHARGING = 1;
-
- BATTERY_STATUS_DISCHARGING = 2;
-
- BATTERY_STATUS_FULL = 3;
-
- BATTERY_STATUS_NOT_CHARGING = 4;
-
- BATTERY_STATUS_POWER_LOW = 5;
- }
- enum PowerSource {
-
- UNKNOWN_POWER_SOURCE = 0;
-
- POWER_SOURCE_AC = 1;
-
- POWER_SOURCE_USB = 2;
-
- POWER_SOURCE_WIRELESS = 3;
-
- POWER_SOURCE_UNPLUGGED = 4;
- }
|