diff --git a/internal/convert/convertv2/gnssposition.go b/internal/convert/convertv2/gnssposition.go index d1079c2..6fdab70 100644 --- a/internal/convert/convertv2/gnssposition.go +++ b/internal/convert/convertv2/gnssposition.go @@ -5,6 +5,7 @@ import ( "github.com/way-platform/rfms-go/internal/openapi/rfmsv2oapi" rfmsv5 "github.com/way-platform/rfms-go/proto/gen/go/wayplatform/connect/rfms/v5" + "google.golang.org/protobuf/types/known/timestamppb" ) func gnssPosition(input *rfmsv2oapi.GNSSPositionType) *rfmsv5.GnssPosition { @@ -25,7 +26,7 @@ func gnssPosition(input *rfmsv2oapi.GNSSPositionType) *rfmsv5.GnssPosition { output.SetSpeedKmh(*input.Speed) } if input.PositionDateTime != nil { - output.SetTime(time.Time(*input.PositionDateTime).UTC().Format(time.RFC3339Nano)) + output.SetTime(timestamppb.New(time.Time(*input.PositionDateTime).UTC())) } return &output } diff --git a/internal/convert/convertv2/vehicleposition.go b/internal/convert/convertv2/vehicleposition.go index f75421b..dedb732 100644 --- a/internal/convert/convertv2/vehicleposition.go +++ b/internal/convert/convertv2/vehicleposition.go @@ -5,6 +5,7 @@ import ( "github.com/way-platform/rfms-go/internal/openapi/rfmsv2oapi" rfmsv5 "github.com/way-platform/rfms-go/proto/gen/go/wayplatform/connect/rfms/v5" + "google.golang.org/protobuf/types/known/timestamppb" ) // VehiclePosition converts an rFMS v2 vehicle position to proto. @@ -17,10 +18,10 @@ func VehiclePosition(input *rfmsv2oapi.VehiclePositionType) *rfmsv5.VehiclePosit output.SetTrigger(trigger(input.TriggerType)) } if input.CreatedDateTime != nil { - output.SetCreateTime(time.Time(*input.CreatedDateTime).UTC().Format(time.RFC3339Nano)) + output.SetCreateTime(timestamppb.New(time.Time(*input.CreatedDateTime).UTC())) } if input.ReceivedDateTime != nil { - output.SetReceiveTime(time.Time(*input.ReceivedDateTime).UTC().Format(time.RFC3339Nano)) + output.SetReceiveTime(timestamppb.New(time.Time(*input.ReceivedDateTime).UTC())) } if input.GNSSPosition != nil { output.SetGnssPosition(gnssPosition(input.GNSSPosition)) diff --git a/internal/convert/convertv2/vehiclestatus.go b/internal/convert/convertv2/vehiclestatus.go index 5c91909..a9c0179 100644 --- a/internal/convert/convertv2/vehiclestatus.go +++ b/internal/convert/convertv2/vehiclestatus.go @@ -6,6 +6,7 @@ import ( "github.com/way-platform/rfms-go/internal/convert" "github.com/way-platform/rfms-go/internal/openapi/rfmsv2oapi" rfmsv5 "github.com/way-platform/rfms-go/proto/gen/go/wayplatform/connect/rfms/v5" + "google.golang.org/protobuf/types/known/timestamppb" ) // VehicleStatus converts an rFMS v2 vehicle status to proto. @@ -18,10 +19,10 @@ func VehicleStatus(input *rfmsv2oapi.VehicleStatusType) *rfmsv5.VehicleStatus { output.SetTrigger(trigger(input.TriggerType)) } if input.CreatedDateTime != nil { - output.SetCreateTime(time.Time(*input.CreatedDateTime).UTC().Format(time.RFC3339Nano)) + output.SetCreateTime(timestamppb.New(time.Time(*input.CreatedDateTime).UTC())) } if input.ReceivedDateTime != nil { - output.SetReceiveTime(time.Time(*input.ReceivedDateTime).UTC().Format(time.RFC3339Nano)) + output.SetReceiveTime(timestamppb.New(time.Time(*input.ReceivedDateTime).UTC())) } if input.HRTotalVehicleDistance != nil { output.SetHrTotalVehicleDistanceM(float64(*input.HRTotalVehicleDistance)) diff --git a/internal/convert/convertv4/gnssposition.go b/internal/convert/convertv4/gnssposition.go index 2330507..3d275b9 100644 --- a/internal/convert/convertv4/gnssposition.go +++ b/internal/convert/convertv4/gnssposition.go @@ -5,6 +5,7 @@ import ( "github.com/way-platform/rfms-go/internal/openapi/rfmsv4oapi" rfmsv5 "github.com/way-platform/rfms-go/proto/gen/go/wayplatform/connect/rfms/v5" + "google.golang.org/protobuf/types/known/timestamppb" ) // gnssPosition converts an rFMS v4 GNSS position to proto. @@ -26,7 +27,7 @@ func gnssPosition(input *rfmsv4oapi.GNSSPositionObject) *rfmsv5.GnssPosition { output.SetSpeedKmh(*input.Speed) } if input.PositionDateTime != nil { - output.SetTime(time.Time(*input.PositionDateTime).UTC().Format(time.RFC3339Nano)) + output.SetTime(timestamppb.New(time.Time(*input.PositionDateTime).UTC())) } return &output } diff --git a/internal/convert/convertv4/snapshotdata.go b/internal/convert/convertv4/snapshotdata.go index cc51016..a88f44d 100644 --- a/internal/convert/convertv4/snapshotdata.go +++ b/internal/convert/convertv4/snapshotdata.go @@ -6,6 +6,7 @@ import ( "github.com/way-platform/rfms-go/internal/convert" rfmsv4oapi "github.com/way-platform/rfms-go/internal/openapi/rfmsv4oapi" rfmsv5 "github.com/way-platform/rfms-go/proto/gen/go/wayplatform/connect/rfms/v5" + "google.golang.org/protobuf/types/known/timestamppb" ) // snapshotData converts an rFMS v4 snapshot data to proto. @@ -90,7 +91,9 @@ func snapshotData(input *rfmsv4oapi.SnapshotDataObject) *rfmsv5.SnapshotData { output.SetBatteryPackChargingPowerW(*input.BatteryPackChargingPower) } if input.EstimatedTimeBatteryPackChargingCompleted != nil { - output.SetBatteryPackEstimatedChargingCompletedTime(time.Time(*input.EstimatedTimeBatteryPackChargingCompleted).UTC().Format(time.RFC3339Nano)) + output.SetBatteryPackEstimatedChargingCompletedTime( + timestamppb.New(time.Time(*input.EstimatedTimeBatteryPackChargingCompleted).UTC()), + ) } if input.EstimatedDistanceToEmpty != nil { output.SetEstimatedDistanceToEmpty(&rfmsv5.SnapshotData_EstimatedDistanceToEmpty{}) diff --git a/internal/convert/convertv4/vehicleposition.go b/internal/convert/convertv4/vehicleposition.go index c4226d3..8971e7f 100644 --- a/internal/convert/convertv4/vehicleposition.go +++ b/internal/convert/convertv4/vehicleposition.go @@ -5,6 +5,7 @@ import ( "github.com/way-platform/rfms-go/internal/openapi/rfmsv4oapi" rfmsv5 "github.com/way-platform/rfms-go/proto/gen/go/wayplatform/connect/rfms/v5" + "google.golang.org/protobuf/types/known/timestamppb" ) // VehiclePosition converts an rFMS v4 vehicle position to proto. @@ -17,10 +18,10 @@ func VehiclePosition(input *rfmsv4oapi.VehiclePositionObject) *rfmsv5.VehiclePos output.SetTrigger(trigger(input.TriggerType)) } if input.CreatedDateTime != nil { - output.SetCreateTime(time.Time(*input.CreatedDateTime).UTC().Format(time.RFC3339Nano)) + output.SetCreateTime(timestamppb.New(time.Time(*input.CreatedDateTime).UTC())) } if input.ReceivedDateTime != nil { - output.SetReceiveTime(time.Time(*input.ReceivedDateTime).UTC().Format(time.RFC3339Nano)) + output.SetReceiveTime(timestamppb.New(time.Time(*input.ReceivedDateTime).UTC())) } if input.GNSSPosition != nil { output.SetGnssPosition(gnssPosition(input.GNSSPosition)) diff --git a/internal/convert/convertv4/vehiclestatus.go b/internal/convert/convertv4/vehiclestatus.go index adcad62..422bd02 100644 --- a/internal/convert/convertv4/vehiclestatus.go +++ b/internal/convert/convertv4/vehiclestatus.go @@ -6,6 +6,7 @@ import ( "github.com/way-platform/rfms-go/internal/convert" "github.com/way-platform/rfms-go/internal/openapi/rfmsv4oapi" rfmsv5 "github.com/way-platform/rfms-go/proto/gen/go/wayplatform/connect/rfms/v5" + "google.golang.org/protobuf/types/known/timestamppb" ) // VehicleStatus converts an rFMS v4 vehicle status to proto. @@ -18,10 +19,10 @@ func VehicleStatus(input *rfmsv4oapi.VehicleStatusObject) *rfmsv5.VehicleStatus output.SetTrigger(trigger(input.TriggerType)) } if input.CreatedDateTime != nil { - output.SetCreateTime(time.Time(*input.CreatedDateTime).UTC().Format(time.RFC3339Nano)) + output.SetCreateTime(timestamppb.New(time.Time(*input.CreatedDateTime).UTC())) } if input.ReceivedDateTime != nil { - output.SetReceiveTime(time.Time(*input.ReceivedDateTime).UTC().Format(time.RFC3339Nano)) + output.SetReceiveTime(timestamppb.New(time.Time(*input.ReceivedDateTime).UTC())) } if input.HrTotalVehicleDistance != nil { output.SetHrTotalVehicleDistanceM(float64(*input.HrTotalVehicleDistance)) diff --git a/proto/buf.gen.yaml b/proto/buf.gen.yaml index b665a05..cf1f8e2 100644 --- a/proto/buf.gen.yaml +++ b/proto/buf.gen.yaml @@ -4,8 +4,6 @@ clean: true managed: enabled: true - disable: - - module: buf.build/googlecloudplatform/bq-schema-api override: - file_option: go_package_prefix value: github.com/way-platform/rfms-go/proto/gen/go @@ -19,12 +17,3 @@ plugins: opt: - module=github.com/way-platform/rfms-go/proto/gen/go - default_api_level=API_OPAQUE - - - remote: buf.build/googlecloudplatform/bq-schema:v3.1.0 - out: gen/bq - opt: - - module=github.com/way-platform/rfms-go/proto/gen/bq - - single-message - - - remote: buf.build/bufbuild/protoschema-pubsub:v0.5.1 - out: gen/pubsub diff --git a/proto/gen/bq/wayplatform/connect/rfms/v5/accumulated_data.schema b/proto/gen/bq/wayplatform/connect/rfms/v5/accumulated_data.schema deleted file mode 100644 index 81776bc..0000000 --- a/proto/gen/bq/wayplatform/connect/rfms/v5/accumulated_data.schema +++ /dev/null @@ -1,905 +0,0 @@ -[ - { - "name": "wheel_based_speed_over_zero_duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The duration the vehicle speed has been over zero. (s)" - }, - { - "name": "wheel_based_speed_over_zero_fuel_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel the vehicle has consumed while driven with speed over zero. (ml)\n Engine on (RPM\u003e0) and no PTO active." - }, - { - "name": "wheel_based_speed_over_zero_fuel_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel the vehicle has consumed while driven with speed over zero. (kg)\n Engine on (RPM\u003e0) and no PTO active." - }, - { - "name": "wheel_based_speed_over_zero_electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy the vehicle has consumed while driven with speed over zero. (Wh)" - }, - { - "name": "wheel_based_speed_zero_duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The duration the vehicle speed has been zero. (s)\n Engine on (RPM\u003e0 or electic motor in crank mode) and no PTO active" - }, - { - "name": "wheel_based_speed_zero_distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The distance the vehicle has been driven with speed zero. (m)" - }, - { - "name": "wheel_based_speed_zero_fuel_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel the vehicle has consumed while driven with speed zero. (ml)\n Engine on (RPM\u003e0) and no PTO active." - }, - { - "name": "wheel_based_speed_zero_fuel_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel the vehicle has consumed while driven with speed zero. (ml)\n Engine on (RPM\u003e0) and no PTO active." - }, - { - "name": "wheel_based_speed_zero_electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy the vehicle has consumed while driven with speed zero. (Wh)" - }, - { - "name": "cruise_control_active_distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The distance the vehicle has been driven with cruise control active. (m)" - }, - { - "name": "cruise_control_active_duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The duration the vehicle has been driven with cruise control active. (s)" - }, - { - "name": "cruise_control_active_fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel the vehicle has consumed while driven with cruise control active. (ml)" - }, - { - "name": "cruise_control_active_fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel the vehicle has consumed while driven with cruise control active. (kg)" - }, - { - "name": "cruise_control_active_electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy the vehicle has consumed while driven with cruise control active. (Wh)" - }, - { - "name": "aux_electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy the auxiliary systems have consumed. (Wh)" - }, - { - "name": "pto_active_class", - "type": "RECORD", - "mode": "REPEATED", - "fields": [ - { - "name": "label", - "type": "STRING", - "mode": "NULLABLE", - "description": "The label of the class." - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The duration of the class. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The distance of the class. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The liquid fuel consumption of the class. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The gaseous fuel consumption of the class. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy consumption of the class. (wh)" - } - ] - }, - { - "name": "brake_pedal_speed_over_zero_count", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The total number of times the brake pedal has been used while" - }, - { - "name": "brake_pedal_speed_over_zero_distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance the vehicle has driven where the brake pedal has been used. (m)" - }, - { - "name": "acceleration_pedal_position_class_percent", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats for acceleration pedal position intervals. (percent)\n\n Default:\n Min interval: [0%, 20%)\n Max interval: [80%, 100%]\n Bucket count: 5\n Bucket width: 20%", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "brake_pedal_position_class_percent", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats for brake pedal position intervals. (percent)\n\n Default:\n Min interval: [0%, 20%)\n Max interval: [80%, 100%]\n Bucket count: 5\n Bucket width: 20%", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "acceleration_class_mps2", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats for acceleration intervals. (m/s2)\n\n Default:\n Min interval: (..., -1.1)\n Mid interval: (-0.1, 0.1)\n Max interval: [1.1, ...)\n Bucket count: 11\n Bucket width: 0.2", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "high_acceleration_class_mps2", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats for acceleration intervals. (m/s2)\n\n Default:\n Min interval: (..., -1.1)\n Mid interval: (-0.1, 0.1)\n Max interval: [1.1, ...)\n Bucket count: 11\n Bucket width: 0.2", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "retarder_torque_class_percent", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats by retarder usage. (%)\n\n Default:\n Min interval: (0%, 20%)\n Max interval: [80%, 100%]\n Bucket count: 5\n Bucket width: 20%", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "driving_without_torque_class", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats when driving without torque, with gear (clutch is engaged).\n\n Labels:\n DRIVING_WITHOUT_TORQUE", - "fields": [ - { - "name": "label", - "type": "STRING", - "mode": "NULLABLE", - "description": "The label of the class." - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The duration of the class. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The distance of the class. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The liquid fuel consumption of the class. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The gaseous fuel consumption of the class. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy consumption of the class. (wh)" - } - ] - }, - { - "name": "engine_torque_class_percent", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats by EEC1 value (Actual Engine-Percent Torque). (%)\n\n Default:\n Min interval: [0%, 10%)\n Max interval: [90%, 100%]\n Bucket count: 10\n Bucket width: 10%", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - } - ] - }, - { - "name": "electric_motor_torque_class_percent", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats by electric engine torque (Actual Engine-Percent Torque). (%)\n\n Default:\n Min interval: [0%, 10%)\n Max interval: [90%, 100%]\n Bucket count: 10\n Bucket width: 10%", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "engine_torque_at_current_speed_class_percent", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats based on EEC2 value (Engine Percent Load At Current Speed). (%)\n\n Default:\n Min interval: [0%, 10%)\n Max interval: [90%, 100%]\n Bucket count: 10\n Bucket width: 10%", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - } - ] - }, - { - "name": "electric_motor_torque_at_current_speed_class_percent", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats based on electric motor EEC2 value. (Engine Percent Load At Current Speed).\n\n Default:\n Min interval: [0%, 10%)\n Max interval: [90%, 100%]\n Bucket count: 10\n Bucket width: 10%", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "vehicle_speed_class_kmh", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats based on vehicle speed. (km/h)\n Engine on (RPM\u003e0 or electric motor in crank mode).\n\n Default:\n Min interval: [0km/h, 4km/h)\n Max interval: [156km/h, ...)\n Bucket count: 40\n Bucket width: 4km/h", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "engine_speed_class_rpm", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats based on the RPM of the combustion engine. (rpm)\n Only mandatory if the vehicle has a combustion engine for propulsion.\n\n Default:\n Min interval: [0rpm, 400pm)\n Max interval: [3600rpm, ...)\n Bucket count: 10\n Bucket width: 400rpm", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "acceleration_during_brake_class_mps2", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats based on the acceleration during braking. (m/s2)\n\n Default:\n Min interval: [..., -1.1m/s2)\n Mid interval: (-0.1m/s2, 0.1m/s2)\n Max interval: [1.1m/s2, ...)\n Bucket count: 13\n Bucket width: 0.2m/s2", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "selected_gear_class", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats based on the currently selected gear.\n On class per gear. Park is also a gear.\n Gear is formatted according to SPN 524 and supplied as a decimal value.\n\n Example:\n 0 = Neutral\n 1 = 1st gear\n 2 = 2nd gear\n\n This is mainly used for buses.", - "fields": [ - { - "name": "label", - "type": "STRING", - "mode": "NULLABLE", - "description": "The label of the class." - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The duration of the class. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The distance of the class. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The liquid fuel consumption of the class. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The gaseous fuel consumption of the class. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy consumption of the class. (wh)" - } - ] - }, - { - "name": "current_gear_class", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats based on the currently used gear.\n On class per gear. Park is also a gear.\n Gear is formatted according to SPN 524 and supplied as a decimal value.\n\n Example:\n 0 = Neutral\n 1 = 1st gear\n 2 = 2nd gear\n\n This is mainly used for buses.", - "fields": [ - { - "name": "label", - "type": "STRING", - "mode": "NULLABLE", - "description": "The label of the class." - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The duration of the class. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The distance of the class. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The liquid fuel consumption of the class. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The gaseous fuel consumption of the class. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy consumption of the class. (wh)" - } - ] - }, - { - "name": "chairlift_count", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The total number of times the chairlift has been outside the bus.\n This is mainly used for buses." - }, - { - "name": "stop_request_count", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The total number of stop requests made.\n This is mainly used for buses." - }, - { - "name": "kneeling_count", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The total number of times the bus has knelt.\n This is mainly used for buses." - }, - { - "name": "pram_request_count", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The total number of pram requests made.\n This is mainly used for buses." - }, - { - "name": "electric_power_recuperation_class_kw", - "type": "RECORD", - "mode": "REPEATED", - "description": "Classes refer to the recuperated electric power. (kw)\n Minimum 11 classes.\n [0, 100) [100, 200) [200, 300) ... [900, 1000), [1000, ...]", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - } -] diff --git a/proto/gen/bq/wayplatform/connect/rfms/v5/date.schema b/proto/gen/bq/wayplatform/connect/rfms/v5/date.schema deleted file mode 100644 index 76dfe91..0000000 --- a/proto/gen/bq/wayplatform/connect/rfms/v5/date.schema +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "name": "day", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The day of the month." - }, - { - "name": "month", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The month of the year." - }, - { - "name": "year", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The year." - } -] diff --git a/proto/gen/bq/wayplatform/connect/rfms/v5/driver_identification.schema b/proto/gen/bq/wayplatform/connect/rfms/v5/driver_identification.schema deleted file mode 100644 index 48e702f..0000000 --- a/proto/gen/bq/wayplatform/connect/rfms/v5/driver_identification.schema +++ /dev/null @@ -1,66 +0,0 @@ -[ - { - "name": "tacho", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The identification of a driver using the Tacho card.", - "fields": [ - { - "name": "driver_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unique identification of a driver in a Member State.\n This fields is formatted according the definition for driverIdentification\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "card_issuing_member_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The country alpha code of the Member State having issued the card.\n This fields is formatted according the definition for NationAlpha\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "authentication_equipment", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "Code to distinguish different types of equipment for the\n tachograph application. See description of the field 'DriverAuthenticationEquipment'\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "unknown_authentication_equipment", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown authentication equipment of the driver.\n This is used when authentication_equipment is AUTHENTICATION_EQUIPMENT_UNKNOWN." - }, - { - "name": "card_replacement_index", - "type": "STRING", - "mode": "NULLABLE", - "description": "A card replacement index. This fields is formatted according\n the definition for CardReplacementIndex (chap 2.26) in: COMMISSION\n REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "card_renewal_index", - "type": "STRING", - "mode": "NULLABLE", - "description": "A card renewal index. This fields is formatted according\n the definition for CardRenewalIndex (chap 2.25) in: COMMISSION\n REGULATION (EC) No 1360/2002 Annex 1b" - } - ] - }, - { - "name": "oem", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The identification of a driver using an OEM specific method.", - "fields": [ - { - "name": "id_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "An optional id type (e.g. pin, USB, encrypted EU id...).\n\nTODO: Should this be enum?" - }, - { - "name": "driver_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "An OEM specific driver id." - } - ] - } -] diff --git a/proto/gen/bq/wayplatform/connect/rfms/v5/gnss_position.schema b/proto/gen/bq/wayplatform/connect/rfms/v5/gnss_position.schema deleted file mode 100644 index c86b38d..0000000 --- a/proto/gen/bq/wayplatform/connect/rfms/v5/gnss_position.schema +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "name": "time", - "type": "STRING", - "mode": "NULLABLE", - "description": "The time of the GNSS position data. (RFC 3339)" - }, - { - "name": "latitude", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The latitude of the vehicle. (WGS84 based)" - }, - { - "name": "longitude", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The longitude of the vehicle. (WGS84 based)" - }, - { - "name": "heading_deg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The heading of the vehicle. (degrees) (0-359)" - }, - { - "name": "altitude_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The altitude of the vehicle. (meters)\n 0 is sea level, negative values below sea level, and positive above sea level." - }, - { - "name": "speed_kmh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The speed of the vehicle. (km/h)" - } -] diff --git a/proto/gen/bq/wayplatform/connect/rfms/v5/snapshot_data.schema b/proto/gen/bq/wayplatform/connect/rfms/v5/snapshot_data.schema deleted file mode 100644 index 18f92d4..0000000 --- a/proto/gen/bq/wayplatform/connect/rfms/v5/snapshot_data.schema +++ /dev/null @@ -1,404 +0,0 @@ -[ - { - "name": "gnss_position", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The GNSS position of the vehicle.", - "fields": [ - { - "name": "time", - "type": "STRING", - "mode": "NULLABLE", - "description": "The time of the GNSS position data. (RFC 3339)" - }, - { - "name": "latitude", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The latitude of the vehicle. (WGS84 based)" - }, - { - "name": "longitude", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The longitude of the vehicle. (WGS84 based)" - }, - { - "name": "heading_deg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The heading of the vehicle. (degrees) (0-359)" - }, - { - "name": "altitude_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The altitude of the vehicle. (meters)\n 0 is sea level, negative values below sea level, and positive above sea level." - }, - { - "name": "speed_kmh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The speed of the vehicle. (km/h)" - } - ] - }, - { - "name": "wheel_based_speed_kmh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The wheel-based speed of the vehicle. (km/h)" - }, - { - "name": "tachograph_speed_kmh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The tachograph speed of the vehicle. (km/h)" - }, - { - "name": "engine_speed_rpm", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The engine (diesel/gaseous) speed of the vehicle. (rev/min)" - }, - { - "name": "electric_motor_speed_rpm", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric motor speed of the vehicle. (rev/min)" - }, - { - "name": "ignition_state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The ignition state of the vehicle." - }, - { - "name": "fuel_type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The fuel type currently being utilized by the vehicle." - }, - { - "name": "unknown_fuel_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown fuel type of the vehicle.\n Provided when the fuel type is FUEL_TYPE_UNKNOWN." - }, - { - "name": "fuel_level1_percent", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel level of the vehicle. (%) (0 - 100)" - }, - { - "name": "fuel_level2_percent", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel level of the vehicle. (%) (0 - 100)\n When Fuel Level 2 is not used, Fuel Level 1 represents\n the total fuel in all fuel storage containers.\n\n When Fuel Level 2 is used,\n Fuel Level 1 represents the fuel level in the primary or left-side fuel\n storage container." - }, - { - "name": "catalyst_fuel_level_percent", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The adblue level percentage" - }, - { - "name": "driver1_working_state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The driver working state of the vehicle." - }, - { - "name": "unknown_driver1_working_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown driver working state of the vehicle.\n Provided when the driver working state is DRIVER_WORKING_STATE_UNKNOWN." - }, - { - "name": "driver2_id", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The driver identification of driver 2.", - "fields": [ - { - "name": "tacho", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The identification of a driver using the Tacho card.", - "fields": [ - { - "name": "driver_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unique identification of a driver in a Member State.\n This fields is formatted according the definition for driverIdentification\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "card_issuing_member_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The country alpha code of the Member State having issued the card.\n This fields is formatted according the definition for NationAlpha\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "authentication_equipment", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "Code to distinguish different types of equipment for the\n tachograph application. See description of the field 'DriverAuthenticationEquipment'\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "unknown_authentication_equipment", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown authentication equipment of the driver.\n This is used when authentication_equipment is AUTHENTICATION_EQUIPMENT_UNKNOWN." - }, - { - "name": "card_replacement_index", - "type": "STRING", - "mode": "NULLABLE", - "description": "A card replacement index. This fields is formatted according\n the definition for CardReplacementIndex (chap 2.26) in: COMMISSION\n REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "card_renewal_index", - "type": "STRING", - "mode": "NULLABLE", - "description": "A card renewal index. This fields is formatted according\n the definition for CardRenewalIndex (chap 2.25) in: COMMISSION\n REGULATION (EC) No 1360/2002 Annex 1b" - } - ] - }, - { - "name": "oem", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The identification of a driver using an OEM specific method.", - "fields": [ - { - "name": "id_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "An optional id type (e.g. pin, USB, encrypted EU id...).\n\nTODO: Should this be enum?" - }, - { - "name": "driver_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "An OEM specific driver id." - } - ] - } - ] - }, - { - "name": "driver2_working_state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The driver working state of the vehicle." - }, - { - "name": "unknown_driver2_working_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown driver working state of the vehicle.\n Provided when the driver working state is DRIVER_WORKING_STATE_UNKNOWN." - }, - { - "name": "ambient_air_temperature_c", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The ambient air temperature of the vehicle. (°C)" - }, - { - "name": "parking_brake_switch", - "type": "BOOLEAN", - "mode": "NULLABLE", - "description": "The parking brake switch state of the vehicle.\n In general the switch actuated by the operator's park brake control, whether\n a pedal, lever or other control mechanism\n\n true - parking brake set\n false - parking brake not set" - }, - { - "name": "battery_pack_remaining_charge_percent", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The battery pack remaining charge of the vehicle. (%) (0 - 100)\n 0% means no charge remaining, 100% means full charge remaining.\n Is used for hybrid vehicles as well for full electrical vehicles" - }, - { - "name": "battery_pack_charging_state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The battery pack charging status of the vehicle." - }, - { - "name": "unknown_battery_pack_charging_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown battery pack charging status of the vehicle.\n Provided when the battery pack charging status is CHARGING_STATE_UNKNOWN." - }, - { - "name": "battery_pack_charging_connection_state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The battery pack charging status of the vehicle." - }, - { - "name": "unknown_battery_pack_charging_connection_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown battery pack charging connection status of the vehicle.\n Provided when the battery pack charging connection status is CHARGING_CONNECTION_STATE_UNKNOWN." - }, - { - "name": "battery_pack_charging_device", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The battery pack charging device of the vehicle." - }, - { - "name": "unknown_battery_pack_charging_device", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown battery pack charging device of the vehicle.\n Provided when the battery pack charging device is CHARGING_DEVICE_UNKNOWN." - }, - { - "name": "battery_pack_charging_power_w", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The battery pack charging power of the vehicle. (W)" - }, - { - "name": "battery_pack_estimated_charging_completed_time", - "type": "STRING", - "mode": "NULLABLE", - "description": "The estimated time when charging has reached the target level. (RFC 3339)" - }, - { - "name": "estimated_distance_to_empty", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The estimated distance to empty of the vehicle.", - "fields": [ - { - "name": "total_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The estimated distance to empty of the vehicle. (m)" - }, - { - "name": "fuel_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The estimated distance to empty of the vehicle. (m)" - }, - { - "name": "gas_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The estimated distance to empty of the vehicle. (m)" - }, - { - "name": "battery_pack_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The estimated distance to empty of the vehicle. (m)" - } - ] - }, - { - "name": "vehicle_axles", - "type": "RECORD", - "mode": "REPEATED", - "description": "The axles of the vehicle.", - "fields": [ - { - "name": "position", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The position of the axle." - }, - { - "name": "load_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The static vertical load of the axle. (kg)" - }, - { - "name": "tires", - "type": "RECORD", - "mode": "REPEATED", - "description": "The tires on the axle.", - "fields": [ - { - "name": "position", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "Tire position (on the specified axle) from 1 to 15,\n counting left to right when facing in the direction of\n normal vehicle travel (forward)." - }, - { - "name": "pressure_kpa", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "Tire pressure. (kPa)" - } - ] - } - ] - }, - { - "name": "trailers", - "type": "RECORD", - "mode": "REPEATED", - "description": "The trailers connected to the vehicle.", - "fields": [ - { - "name": "number", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The trailer number from 1 to 5, 1 being closest to the truck, according to ISO 11992-2." - }, - { - "name": "identification_data", - "type": "STRING", - "mode": "NULLABLE", - "description": "The trailer identification data sent by the trailer to the truck in the RGE23 message of ISO 11992-2.\n An alternative source is the DID (Data identifier definition) record VIN, as specified in ISO 11992-4.\n Even though both ISO 11992-2 and ISO 11992-4 specifies this as a VIN, the actual data sent from a trailer is not always\n the true VIN of the trailer." - }, - { - "name": "vin", - "type": "STRING", - "mode": "NULLABLE", - "description": "The vehicle identification number of the trailer. See ISO 3779 (17 characters)\n If the trailerIdentificationData is reporting a true VIN, trailerVin will have the same value.\n If it is possible to map the trailerIdentificationData to a true VIN using other sources, the value can be provided here." - }, - { - "name": "customer_name", - "type": "STRING", - "mode": "NULLABLE", - "description": "The customer's name for the trailer" - }, - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The trailer type." - }, - { - "name": "axle_load_sum_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The sum of the static vertical loads of the trailer axles. (kg)\n The load is sent in the EBS22 message of ISO 11992-2." - }, - { - "name": "axles", - "type": "RECORD", - "mode": "REPEATED", - "description": "The trailer axles.", - "fields": [ - { - "name": "position", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The position of the axle from 1 to 15, 1 being in the front\n closest to the truck, according to ISO 11992-2." - }, - { - "name": "load_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The static vertical load of the axle in kilograms.\n The load is sent in the EBS22 message of ISO 11992-2." - } - ] - } - ] - } -] diff --git a/proto/gen/bq/wayplatform/connect/rfms/v5/tell_tale.schema b/proto/gen/bq/wayplatform/connect/rfms/v5/tell_tale.schema deleted file mode 100644 index a6fa073..0000000 --- a/proto/gen/bq/wayplatform/connect/rfms/v5/tell_tale.schema +++ /dev/null @@ -1,32 +0,0 @@ -[ - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The type of tell tale." - }, - { - "name": "unknown_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown tell tale type. Used when the type is TYPE_UNKNOWN." - }, - { - "name": "oem_specific_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The OEM specific type. Used when the type is TYPE_OEM_SPECIFIC." - }, - { - "name": "state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The state of the tell tale." - }, - { - "name": "unknown_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown state. Used when the state is STATE_UNKNOWN." - } -] diff --git a/proto/gen/bq/wayplatform/connect/rfms/v5/trailer.schema b/proto/gen/bq/wayplatform/connect/rfms/v5/trailer.schema deleted file mode 100644 index eb6d3a1..0000000 --- a/proto/gen/bq/wayplatform/connect/rfms/v5/trailer.schema +++ /dev/null @@ -1,58 +0,0 @@ -[ - { - "name": "number", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The trailer number from 1 to 5, 1 being closest to the truck, according to ISO 11992-2." - }, - { - "name": "identification_data", - "type": "STRING", - "mode": "NULLABLE", - "description": "The trailer identification data sent by the trailer to the truck in the RGE23 message of ISO 11992-2.\n An alternative source is the DID (Data identifier definition) record VIN, as specified in ISO 11992-4.\n Even though both ISO 11992-2 and ISO 11992-4 specifies this as a VIN, the actual data sent from a trailer is not always\n the true VIN of the trailer." - }, - { - "name": "vin", - "type": "STRING", - "mode": "NULLABLE", - "description": "The vehicle identification number of the trailer. See ISO 3779 (17 characters)\n If the trailerIdentificationData is reporting a true VIN, trailerVin will have the same value.\n If it is possible to map the trailerIdentificationData to a true VIN using other sources, the value can be provided here." - }, - { - "name": "customer_name", - "type": "STRING", - "mode": "NULLABLE", - "description": "The customer's name for the trailer" - }, - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The trailer type." - }, - { - "name": "axle_load_sum_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The sum of the static vertical loads of the trailer axles. (kg)\n The load is sent in the EBS22 message of ISO 11992-2." - }, - { - "name": "axles", - "type": "RECORD", - "mode": "REPEATED", - "description": "The trailer axles.", - "fields": [ - { - "name": "position", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The position of the axle from 1 to 15, 1 being in the front\n closest to the truck, according to ISO 11992-2." - }, - { - "name": "load_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The static vertical load of the axle in kilograms.\n The load is sent in the EBS22 message of ISO 11992-2." - } - ] - } -] diff --git a/proto/gen/bq/wayplatform/connect/rfms/v5/trigger.schema b/proto/gen/bq/wayplatform/connect/rfms/v5/trigger.schema deleted file mode 100644 index ba73a68..0000000 --- a/proto/gen/bq/wayplatform/connect/rfms/v5/trigger.schema +++ /dev/null @@ -1,232 +0,0 @@ -[ - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "Trigger type for context RFMS." - }, - { - "name": "unknown_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown trigger type. Used when the type is TYPE_UNKNOWN." - }, - { - "name": "context", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The context of the trigger." - }, - { - "name": "unknown_context", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown context. Used when the context is CONTEXT_UNKNOWN." - }, - { - "name": "trigger_info", - "type": "STRING", - "mode": "REPEATED", - "description": "Additional OEM specific trigger info content.\n Can be used for both OEM specific and rFMS defined triggers.\n E.g. TRAILER_CONNECTED [id of trailer]." - }, - { - "name": "driver_id", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The driver identification.\n Provided when the trigger type is DRIVER_LOGIN, DRIVER_LOGOUT, DRIVER_1_WORKING_STATE_CHANGED or DRIVER_2_WORKING_STATE_CHANGED.\n For DRIVER_LOGIN it is the id of the driver that logged in.\n For DRIVER_LOGOUT it is the id of the driver that logged out.\n For DRIVER_1_WORKING_STATE_CHANGED it is the id of driver 1.\n For DRIVER_2_WORKING_STATE_CHANGED it is the id of driver 2.", - "fields": [ - { - "name": "tacho", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The identification of a driver using the Tacho card.", - "fields": [ - { - "name": "driver_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unique identification of a driver in a Member State.\n This fields is formatted according the definition for driverIdentification\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "card_issuing_member_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The country alpha code of the Member State having issued the card.\n This fields is formatted according the definition for NationAlpha\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "authentication_equipment", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "Code to distinguish different types of equipment for the\n tachograph application. See description of the field 'DriverAuthenticationEquipment'\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "unknown_authentication_equipment", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown authentication equipment of the driver.\n This is used when authentication_equipment is AUTHENTICATION_EQUIPMENT_UNKNOWN." - }, - { - "name": "card_replacement_index", - "type": "STRING", - "mode": "NULLABLE", - "description": "A card replacement index. This fields is formatted according\n the definition for CardReplacementIndex (chap 2.26) in: COMMISSION\n REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "card_renewal_index", - "type": "STRING", - "mode": "NULLABLE", - "description": "A card renewal index. This fields is formatted according\n the definition for CardRenewalIndex (chap 2.25) in: COMMISSION\n REGULATION (EC) No 1360/2002 Annex 1b" - } - ] - }, - { - "name": "oem", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The identification of a driver using an OEM specific method.", - "fields": [ - { - "name": "id_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "An optional id type (e.g. pin, USB, encrypted EU id...).\n\nTODO: Should this be enum?" - }, - { - "name": "driver_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "An OEM specific driver id." - } - ] - } - ] - }, - { - "name": "pto_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "The id of a power take off.\n Provided when the trigger type is PTO_ENABLED or PTO_DISABLED." - }, - { - "name": "tell_tale_info", - "type": "RECORD", - "mode": "NULLABLE", - "description": "Additional tell tale information.\n Provided when the trigger type is TELL_TALE.", - "fields": [ - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The type of tell tale." - }, - { - "name": "unknown_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown tell tale type. Used when the type is TYPE_UNKNOWN." - }, - { - "name": "oem_specific_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The OEM specific type. Used when the type is TYPE_OEM_SPECIFIC." - }, - { - "name": "state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The state of the tell tale." - }, - { - "name": "unknown_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown state. Used when the state is STATE_UNKNOWN." - } - ] - }, - { - "name": "charging_status_info", - "type": "RECORD", - "mode": "NULLABLE", - "description": "Additional charging status information.\n Provided when the trigger type is BATTERY_PACK_CHARGING_STATUS_CHANGE.", - "fields": [ - { - "name": "event", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The event that caused the charging status to be sent." - }, - { - "name": "unknown_event", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown event. Used when the event is EVENT_UNKNOWN." - }, - { - "name": "detail", - "type": "STRING", - "mode": "NULLABLE", - "description": "Event detail." - } - ] - }, - { - "name": "charging_connection_status_info", - "type": "RECORD", - "mode": "NULLABLE", - "description": "Additional charging connection status information.\n Provided when the trigger type is BATTERY_PACK_CHARGING_CONNECTION_STATUS_CHANGE.", - "fields": [ - { - "name": "state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The event that caused the charging connection status to be sent." - }, - { - "name": "unknown_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown state. Used when the state is STATE_UNKNOWN." - } - ] - }, - { - "name": "alarm_info", - "type": "RECORD", - "mode": "NULLABLE", - "description": "Additional alarm information.\n Provided when the trigger type is ALARM.", - "fields": [ - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The type of alarm." - }, - { - "name": "unknown_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown type. Used when the type is TYPE_UNKNOWN." - }, - { - "name": "state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The state of the alarm." - }, - { - "name": "unknown_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown state. Used when the state is STATE_UNKNOWN." - }, - { - "name": "details", - "type": "STRING", - "mode": "REPEATED", - "description": "OEM specific details." - } - ] - } -] diff --git a/proto/gen/bq/wayplatform/connect/rfms/v5/uptime_data.schema b/proto/gen/bq/wayplatform/connect/rfms/v5/uptime_data.schema deleted file mode 100644 index 7730997..0000000 --- a/proto/gen/bq/wayplatform/connect/rfms/v5/uptime_data.schema +++ /dev/null @@ -1,132 +0,0 @@ -[ - { - "name": "tell_tales", - "type": "RECORD", - "mode": "REPEATED", - "description": "List of tell tales with the actual state for each tell tale.", - "fields": [ - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The type of tell tale." - }, - { - "name": "unknown_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown tell tale type. Used when the type is TYPE_UNKNOWN." - }, - { - "name": "oem_specific_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The OEM specific type. Used when the type is TYPE_OEM_SPECIFIC." - }, - { - "name": "state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The state of the tell tale." - }, - { - "name": "unknown_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown state. Used when the state is STATE_UNKNOWN." - } - ] - }, - { - "name": "service_distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The distance in meter to the next service. (m)" - }, - { - "name": "engine_coolant_temperature_c", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The temperature of the coolant liquid. (°C)" - }, - { - "name": "hvess_outlet_coolant_temperature_c", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The temperature of the battery pack coolant. (°C)\n HVESS - High Voltage Energy Storage System." - }, - { - "name": "hvess_temperature_c", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The temperature of the battery pack. (°C)\n HVESS - High Voltage Energy Storage System." - }, - { - "name": "service_brake_air_pressure_circuit1_pa", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The pressure of the service brake air pressure circuit 1. (Pa)" - }, - { - "name": "service_brake_air_pressure_circuit2_pa", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The pressure of the service brake air pressure circuit 2. (Pa)" - }, - { - "name": "at_least_one_door_open_duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total time at least one door has been opened in the bus. (s)\n Used mainly for buses." - }, - { - "name": "alternators", - "type": "RECORD", - "mode": "REPEATED", - "description": "The alternator status of up to 4 alternators.\n Used mainly for buses.", - "fields": [ - { - "name": "number", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The number of the alternator." - }, - { - "name": "state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The status of the alternator." - }, - { - "name": "unknown_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown state of the alternator.\n Used when the state is STATE_UNKNOWN." - } - ] - }, - { - "name": "bellow_pressure_front_axle_left_pa", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The pressure of the bellow pressure front axle left. (Pa)\n Used mainly for buses." - }, - { - "name": "bellow_pressure_front_axle_right_pa", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The pressure of the bellow pressure front axle right. (Pa)\n Used mainly for buses." - }, - { - "name": "bellow_pressure_rear_axle_left_pa", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The pressure of the bellow pressure rear axle left. (Pa)\n Used mainly for buses." - }, - { - "name": "bellow_pressure_rear_axle_right_pa", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The pressure of the bellow pressure rear axle right. (Pa)\n Used mainly for buses." - } -] diff --git a/proto/gen/bq/wayplatform/connect/rfms/v5/vehicle.schema b/proto/gen/bq/wayplatform/connect/rfms/v5/vehicle.schema deleted file mode 100644 index 26a8db6..0000000 --- a/proto/gen/bq/wayplatform/connect/rfms/v5/vehicle.schema +++ /dev/null @@ -1,190 +0,0 @@ -[ - { - "name": "vin", - "type": "STRING", - "mode": "NULLABLE", - "description": "The vehicle identification number (VIN) of the vehicle.\n See ISO 3779 (17 characters)" - }, - { - "name": "customer_vehicle_name", - "type": "STRING", - "mode": "NULLABLE", - "description": "The customer's name for the vehicle." - }, - { - "name": "registration_number", - "type": "STRING", - "mode": "NULLABLE", - "description": "The registration number (license plate) of the vehicle." - }, - { - "name": "brand", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The brand of the vehicle." - }, - { - "name": "unknown_brand", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown brand of the vehicle.\n This is used when the type is BRAND_UNKNOWN." - }, - { - "name": "production_date", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The production date of the vehicle.", - "fields": [ - { - "name": "day", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The day of the month." - }, - { - "name": "month", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The month of the year." - }, - { - "name": "year", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The year." - } - ] - }, - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The type of vehicle." - }, - { - "name": "unknown_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown type of the vehicle.\n This is used when type is TYPE_UNKNOWN." - }, - { - "name": "model", - "type": "STRING", - "mode": "NULLABLE", - "description": "The model of the vehicle.\n OEM-specific value." - }, - { - "name": "possible_fuel_types", - "type": "INTEGER", - "mode": "REPEATED", - "description": "The possible fuel types supported by this vehicle.\n This does NOT indicate which fuel type that is presently being used." - }, - { - "name": "unknown_possible_fuel_types", - "type": "STRING", - "mode": "REPEATED", - "description": "The unknown possible fuel types of the vehicle.\n This is used when possible_fuel_types contains unknown fuel types." - }, - { - "name": "emission_level", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The emission level of the vehicle." - }, - { - "name": "unknown_emission_level", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown emission level of the vehicle.\n This is used when emission_level is EMISSION_LEVEL_UNKNOWN." - }, - { - "name": "tell_tale_code", - "type": "STRING", - "mode": "NULLABLE", - "description": "The telltale code indicates how the tell tales shall be interpreted.\n The code is unique for each OEM. One OEM can have different interpretations\n depending on vehicle type." - }, - { - "name": "chassis_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The chassis type of the vehicle.\n This is used mainly for buses." - }, - { - "name": "axle_count", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The number of axles on the vehicle." - }, - { - "name": "total_fuel_tank_volume_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total fuel tank volume of the vehicle. (ml)" - }, - { - "name": "total_fuel_tank_capacity_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gas tank capacity of the vehicle. (kg)" - }, - { - "name": "total_battery_pack_capacity_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total battery pack capacity of the vehicle. (Wh)\n The value comes from the vehicle's specification.\n The value is static, i.e. does not take aging into consideration." - }, - { - "name": "tachograph_type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The type of tachograph in the vehicle." - }, - { - "name": "unknown_tachograph_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown tachograph type of the vehicle.\n This is used when tachograph_type is TACH_TYPE_UNKNOWN." - }, - { - "name": "gearbox_type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The type of gearbox in the vehicle." - }, - { - "name": "unknown_gearbox_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown gearbox type of the vehicle.\n This is used when gearbox_type is GEARBOX_TYPE_UNKNOWN." - }, - { - "name": "body_type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The type of body on the chassis.\n This is used mainly for buses." - }, - { - "name": "unknown_body_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown body type of the vehicle.\n This is used when body_type is BODY_TYPE_UNKNOWN." - }, - { - "name": "door_configuration", - "type": "INTEGER", - "mode": "REPEATED", - "description": "The door configuration of the vehicle. The door order definition is OEM\n specific. E.g. [1, 2, 2] means the bus has 3 doors: 1 front door, double\n doors for door 2 and 3. This is used mainly for buses." - }, - { - "name": "has_ramp_or_lift", - "type": "BOOLEAN", - "mode": "NULLABLE", - "description": "If the vehicle is equipped with a ramp or not. This is used mainly for buses." - }, - { - "name": "authorized_paths", - "type": "STRING", - "mode": "REPEATED", - "description": "Paths that the client is authorized to call.\n Example: [\"/vehiclestatuses\", \"/vehiclepositions\"]" - } -] diff --git a/proto/gen/bq/wayplatform/connect/rfms/v5/vehicle_axle.schema b/proto/gen/bq/wayplatform/connect/rfms/v5/vehicle_axle.schema deleted file mode 100644 index 765357b..0000000 --- a/proto/gen/bq/wayplatform/connect/rfms/v5/vehicle_axle.schema +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "name": "position", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The position of the axle." - }, - { - "name": "load_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The static vertical load of the axle. (kg)" - }, - { - "name": "tires", - "type": "RECORD", - "mode": "REPEATED", - "description": "The tires on the axle.", - "fields": [ - { - "name": "position", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "Tire position (on the specified axle) from 1 to 15,\n counting left to right when facing in the direction of\n normal vehicle travel (forward)." - }, - { - "name": "pressure_kpa", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "Tire pressure. (kPa)" - } - ] - } -] diff --git a/proto/gen/bq/wayplatform/connect/rfms/v5/vehicle_position.schema b/proto/gen/bq/wayplatform/connect/rfms/v5/vehicle_position.schema deleted file mode 100644 index 12242e4..0000000 --- a/proto/gen/bq/wayplatform/connect/rfms/v5/vehicle_position.schema +++ /dev/null @@ -1,314 +0,0 @@ -[ - { - "name": "vin", - "type": "STRING", - "mode": "NULLABLE", - "description": "The vehicle identification number (VIN) of the vehicle.\n See ISO 3779 (17 characters)." - }, - { - "name": "create_time", - "type": "STRING", - "mode": "NULLABLE", - "description": "The date and time the vehicle position was created. (RFC 3339)" - }, - { - "name": "receive_time", - "type": "STRING", - "mode": "NULLABLE", - "description": "The date and time the vehicle position was received. (RFC 3339)" - }, - { - "name": "trigger", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The type of trigger that caused the vehicle position to be sent.", - "fields": [ - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "Trigger type for context RFMS." - }, - { - "name": "unknown_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown trigger type. Used when the type is TYPE_UNKNOWN." - }, - { - "name": "context", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The context of the trigger." - }, - { - "name": "unknown_context", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown context. Used when the context is CONTEXT_UNKNOWN." - }, - { - "name": "trigger_info", - "type": "STRING", - "mode": "REPEATED", - "description": "Additional OEM specific trigger info content.\n Can be used for both OEM specific and rFMS defined triggers.\n E.g. TRAILER_CONNECTED [id of trailer]." - }, - { - "name": "driver_id", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The driver identification.\n Provided when the trigger type is DRIVER_LOGIN, DRIVER_LOGOUT, DRIVER_1_WORKING_STATE_CHANGED or DRIVER_2_WORKING_STATE_CHANGED.\n For DRIVER_LOGIN it is the id of the driver that logged in.\n For DRIVER_LOGOUT it is the id of the driver that logged out.\n For DRIVER_1_WORKING_STATE_CHANGED it is the id of driver 1.\n For DRIVER_2_WORKING_STATE_CHANGED it is the id of driver 2.", - "fields": [ - { - "name": "tacho", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The identification of a driver using the Tacho card.", - "fields": [ - { - "name": "driver_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unique identification of a driver in a Member State.\n This fields is formatted according the definition for driverIdentification\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "card_issuing_member_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The country alpha code of the Member State having issued the card.\n This fields is formatted according the definition for NationAlpha\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "authentication_equipment", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "Code to distinguish different types of equipment for the\n tachograph application. See description of the field 'DriverAuthenticationEquipment'\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "unknown_authentication_equipment", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown authentication equipment of the driver.\n This is used when authentication_equipment is AUTHENTICATION_EQUIPMENT_UNKNOWN." - }, - { - "name": "card_replacement_index", - "type": "STRING", - "mode": "NULLABLE", - "description": "A card replacement index. This fields is formatted according\n the definition for CardReplacementIndex (chap 2.26) in: COMMISSION\n REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "card_renewal_index", - "type": "STRING", - "mode": "NULLABLE", - "description": "A card renewal index. This fields is formatted according\n the definition for CardRenewalIndex (chap 2.25) in: COMMISSION\n REGULATION (EC) No 1360/2002 Annex 1b" - } - ] - }, - { - "name": "oem", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The identification of a driver using an OEM specific method.", - "fields": [ - { - "name": "id_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "An optional id type (e.g. pin, USB, encrypted EU id...).\n\nTODO: Should this be enum?" - }, - { - "name": "driver_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "An OEM specific driver id." - } - ] - } - ] - }, - { - "name": "pto_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "The id of a power take off.\n Provided when the trigger type is PTO_ENABLED or PTO_DISABLED." - }, - { - "name": "tell_tale_info", - "type": "RECORD", - "mode": "NULLABLE", - "description": "Additional tell tale information.\n Provided when the trigger type is TELL_TALE.", - "fields": [ - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The type of tell tale." - }, - { - "name": "unknown_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown tell tale type. Used when the type is TYPE_UNKNOWN." - }, - { - "name": "oem_specific_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The OEM specific type. Used when the type is TYPE_OEM_SPECIFIC." - }, - { - "name": "state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The state of the tell tale." - }, - { - "name": "unknown_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown state. Used when the state is STATE_UNKNOWN." - } - ] - }, - { - "name": "charging_status_info", - "type": "RECORD", - "mode": "NULLABLE", - "description": "Additional charging status information.\n Provided when the trigger type is BATTERY_PACK_CHARGING_STATUS_CHANGE.", - "fields": [ - { - "name": "event", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The event that caused the charging status to be sent." - }, - { - "name": "unknown_event", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown event. Used when the event is EVENT_UNKNOWN." - }, - { - "name": "detail", - "type": "STRING", - "mode": "NULLABLE", - "description": "Event detail." - } - ] - }, - { - "name": "charging_connection_status_info", - "type": "RECORD", - "mode": "NULLABLE", - "description": "Additional charging connection status information.\n Provided when the trigger type is BATTERY_PACK_CHARGING_CONNECTION_STATUS_CHANGE.", - "fields": [ - { - "name": "state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The event that caused the charging connection status to be sent." - }, - { - "name": "unknown_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown state. Used when the state is STATE_UNKNOWN." - } - ] - }, - { - "name": "alarm_info", - "type": "RECORD", - "mode": "NULLABLE", - "description": "Additional alarm information.\n Provided when the trigger type is ALARM.", - "fields": [ - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The type of alarm." - }, - { - "name": "unknown_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown type. Used when the type is TYPE_UNKNOWN." - }, - { - "name": "state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The state of the alarm." - }, - { - "name": "unknown_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown state. Used when the state is STATE_UNKNOWN." - }, - { - "name": "details", - "type": "STRING", - "mode": "REPEATED", - "description": "OEM specific details." - } - ] - } - ] - }, - { - "name": "gnss_position", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The GNSS position of the vehicle.", - "fields": [ - { - "name": "time", - "type": "STRING", - "mode": "NULLABLE", - "description": "The time of the GNSS position data. (RFC 3339)" - }, - { - "name": "latitude", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The latitude of the vehicle. (WGS84 based)" - }, - { - "name": "longitude", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The longitude of the vehicle. (WGS84 based)" - }, - { - "name": "heading_deg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The heading of the vehicle. (degrees) (0-359)" - }, - { - "name": "altitude_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The altitude of the vehicle. (meters)\n 0 is sea level, negative values below sea level, and positive above sea level." - }, - { - "name": "speed_kmh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The speed of the vehicle. (km/h)" - } - ] - }, - { - "name": "wheel_based_speed_kmh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "Speed of the vehicle as calculated from wheel or tailshaft speed. (km/h)" - }, - { - "name": "tachograph_speed_kmh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "Speed of the vehicle registered by the tachograph. (km/h)" - } -] diff --git a/proto/gen/bq/wayplatform/connect/rfms/v5/vehicle_status.schema b/proto/gen/bq/wayplatform/connect/rfms/v5/vehicle_status.schema deleted file mode 100644 index cb264fc..0000000 --- a/proto/gen/bq/wayplatform/connect/rfms/v5/vehicle_status.schema +++ /dev/null @@ -1,1899 +0,0 @@ -[ - { - "name": "vin", - "type": "STRING", - "mode": "NULLABLE", - "description": "The vehicle identification number (VIN) of the vehicle." - }, - { - "name": "create_time", - "type": "STRING", - "mode": "NULLABLE", - "description": "The date and time the vehicle status was created. (RFC 3339)" - }, - { - "name": "receive_time", - "type": "STRING", - "mode": "NULLABLE", - "description": "The date and time the vehicle status was received. (RFC 3339)" - }, - { - "name": "trigger", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The type of trigger that caused the vehicle status to be sent.", - "fields": [ - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "Trigger type for context RFMS." - }, - { - "name": "unknown_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown trigger type. Used when the type is TYPE_UNKNOWN." - }, - { - "name": "context", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The context of the trigger." - }, - { - "name": "unknown_context", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown context. Used when the context is CONTEXT_UNKNOWN." - }, - { - "name": "trigger_info", - "type": "STRING", - "mode": "REPEATED", - "description": "Additional OEM specific trigger info content.\n Can be used for both OEM specific and rFMS defined triggers.\n E.g. TRAILER_CONNECTED [id of trailer]." - }, - { - "name": "driver_id", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The driver identification.\n Provided when the trigger type is DRIVER_LOGIN, DRIVER_LOGOUT, DRIVER_1_WORKING_STATE_CHANGED or DRIVER_2_WORKING_STATE_CHANGED.\n For DRIVER_LOGIN it is the id of the driver that logged in.\n For DRIVER_LOGOUT it is the id of the driver that logged out.\n For DRIVER_1_WORKING_STATE_CHANGED it is the id of driver 1.\n For DRIVER_2_WORKING_STATE_CHANGED it is the id of driver 2.", - "fields": [ - { - "name": "tacho", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The identification of a driver using the Tacho card.", - "fields": [ - { - "name": "driver_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unique identification of a driver in a Member State.\n This fields is formatted according the definition for driverIdentification\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "card_issuing_member_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The country alpha code of the Member State having issued the card.\n This fields is formatted according the definition for NationAlpha\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "authentication_equipment", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "Code to distinguish different types of equipment for the\n tachograph application. See description of the field 'DriverAuthenticationEquipment'\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "unknown_authentication_equipment", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown authentication equipment of the driver.\n This is used when authentication_equipment is AUTHENTICATION_EQUIPMENT_UNKNOWN." - }, - { - "name": "card_replacement_index", - "type": "STRING", - "mode": "NULLABLE", - "description": "A card replacement index. This fields is formatted according\n the definition for CardReplacementIndex (chap 2.26) in: COMMISSION\n REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "card_renewal_index", - "type": "STRING", - "mode": "NULLABLE", - "description": "A card renewal index. This fields is formatted according\n the definition for CardRenewalIndex (chap 2.25) in: COMMISSION\n REGULATION (EC) No 1360/2002 Annex 1b" - } - ] - }, - { - "name": "oem", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The identification of a driver using an OEM specific method.", - "fields": [ - { - "name": "id_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "An optional id type (e.g. pin, USB, encrypted EU id...).\n\nTODO: Should this be enum?" - }, - { - "name": "driver_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "An OEM specific driver id." - } - ] - } - ] - }, - { - "name": "pto_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "The id of a power take off.\n Provided when the trigger type is PTO_ENABLED or PTO_DISABLED." - }, - { - "name": "tell_tale_info", - "type": "RECORD", - "mode": "NULLABLE", - "description": "Additional tell tale information.\n Provided when the trigger type is TELL_TALE.", - "fields": [ - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The type of tell tale." - }, - { - "name": "unknown_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown tell tale type. Used when the type is TYPE_UNKNOWN." - }, - { - "name": "oem_specific_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The OEM specific type. Used when the type is TYPE_OEM_SPECIFIC." - }, - { - "name": "state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The state of the tell tale." - }, - { - "name": "unknown_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown state. Used when the state is STATE_UNKNOWN." - } - ] - }, - { - "name": "charging_status_info", - "type": "RECORD", - "mode": "NULLABLE", - "description": "Additional charging status information.\n Provided when the trigger type is BATTERY_PACK_CHARGING_STATUS_CHANGE.", - "fields": [ - { - "name": "event", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The event that caused the charging status to be sent." - }, - { - "name": "unknown_event", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown event. Used when the event is EVENT_UNKNOWN." - }, - { - "name": "detail", - "type": "STRING", - "mode": "NULLABLE", - "description": "Event detail." - } - ] - }, - { - "name": "charging_connection_status_info", - "type": "RECORD", - "mode": "NULLABLE", - "description": "Additional charging connection status information.\n Provided when the trigger type is BATTERY_PACK_CHARGING_CONNECTION_STATUS_CHANGE.", - "fields": [ - { - "name": "state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The event that caused the charging connection status to be sent." - }, - { - "name": "unknown_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown state. Used when the state is STATE_UNKNOWN." - } - ] - }, - { - "name": "alarm_info", - "type": "RECORD", - "mode": "NULLABLE", - "description": "Additional alarm information.\n Provided when the trigger type is ALARM.", - "fields": [ - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The type of alarm." - }, - { - "name": "unknown_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown type. Used when the type is TYPE_UNKNOWN." - }, - { - "name": "state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The state of the alarm." - }, - { - "name": "unknown_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown state. Used when the state is STATE_UNKNOWN." - }, - { - "name": "details", - "type": "STRING", - "mode": "REPEATED", - "description": "OEM specific details." - } - ] - } - ] - }, - { - "name": "hr_total_vehicle_distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance travelled by the vehicle during its operation in meters.\n Should not be reset during lifetime of the vehicle." - }, - { - "name": "total_engine_hours", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total hours of operation for the vehicle combustion engine during its lifetime.\n Should not be reset during lifetime of the engine." - }, - { - "name": "total_electric_motor_hours", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total hours the electric motor is ready for propulsion\n (i.e. crank mode) during its lifetime.\n\n At least one of total_engine_hours or total_electric_motor_hours is mandatory.\n\n Should not be reset during lifetime of the motor." - }, - { - "name": "driver1_id", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The driver identification of driver 1.", - "fields": [ - { - "name": "tacho", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The identification of a driver using the Tacho card.", - "fields": [ - { - "name": "driver_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unique identification of a driver in a Member State.\n This fields is formatted according the definition for driverIdentification\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "card_issuing_member_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The country alpha code of the Member State having issued the card.\n This fields is formatted according the definition for NationAlpha\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "authentication_equipment", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "Code to distinguish different types of equipment for the\n tachograph application. See description of the field 'DriverAuthenticationEquipment'\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "unknown_authentication_equipment", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown authentication equipment of the driver.\n This is used when authentication_equipment is AUTHENTICATION_EQUIPMENT_UNKNOWN." - }, - { - "name": "card_replacement_index", - "type": "STRING", - "mode": "NULLABLE", - "description": "A card replacement index. This fields is formatted according\n the definition for CardReplacementIndex (chap 2.26) in: COMMISSION\n REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "card_renewal_index", - "type": "STRING", - "mode": "NULLABLE", - "description": "A card renewal index. This fields is formatted according\n the definition for CardRenewalIndex (chap 2.25) in: COMMISSION\n REGULATION (EC) No 1360/2002 Annex 1b" - } - ] - }, - { - "name": "oem", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The identification of a driver using an OEM specific method.", - "fields": [ - { - "name": "id_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "An optional id type (e.g. pin, USB, encrypted EU id...).\n\nTODO: Should this be enum?" - }, - { - "name": "driver_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "An OEM specific driver id." - } - ] - } - ] - }, - { - "name": "gross_combination_vehicle_weight_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The gross combination vehicle weight in kg." - }, - { - "name": "engine_total_fuel_used_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total fuel the vehicle has used during its lifetime in ml.\n\n At least one of engine_total_fuel_used_ml, total_fuel_used_gaseous_kg\n or total_electric_energy_used_wh is mandatory.\n\n Should not be reset during lifetime of the vehicle." - }, - { - "name": "total_fuel_used_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "Total fuel consumed in kg.\n\n (trip drive fuel + trip PTO governor moving fuel + trip PTO governor non-moving fuel\n + trip idle fuel) over the life of the engine.\n\n At least one of engine_total_fuel_used_ml, total_fuel_used_gaseous_kg\n or total_electric_energy_used_wh is mandatory.\n\n Should not be reset during lifetime of the vehicle." - }, - { - "name": "total_electric_energy_used_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "Total electric energy consumed by the vehicle, excluding when plugged in (vehicle coupler)\n for charging, (incl. motor, PTO, cooling, etc.) during its lifetime, in Wh.\n\n Recuperation is subtracted from the value.\n\n At least one of engine_total_fuel_used_ml, total_fuel_used_gaseous_kg\n or total_electric_energy_used_wh is mandatory.\n\n Should not be reset during lifetime of the vehicle." - }, - { - "name": "total_electric_energy_recuperated_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "Total electric energy recuperated by the vehicle during its lifetime, in watt hours.\n Should not be reset during lifetime of the vehicle." - }, - { - "name": "state_of_doors", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The status of the doors of the vehicle.\n Bus specific parameter." - }, - { - "name": "unknown_state_of_doors", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown state of the doors of the vehicle.\n Provided when the state of the doors is STATE_OF_DOORS_UNKNOWN." - }, - { - "name": "doors", - "type": "RECORD", - "mode": "REPEATED", - "description": "Individual status for each door.\n Bus specific parameter.", - "fields": [ - { - "name": "number", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The number of the bus door." - }, - { - "name": "enabled_state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The enabled state of the bus door." - }, - { - "name": "unknown_enabled_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown enabled state of the bus door.\n Provided when the enabled state is ENABLED_STATE_UNKNOWN." - }, - { - "name": "open_state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The open state of the bus door." - }, - { - "name": "unknown_open_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown open state of the bus door.\n Provided when the open state is OPEN_STATE_UNKNOWN." - }, - { - "name": "lock_state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The lock state of the bus door." - }, - { - "name": "unknown_lock_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown lock state of the bus door.\n Provided when the lock state is LOCK_STATE_UNKNOWN." - } - ] - }, - { - "name": "snapshot_data", - "type": "RECORD", - "mode": "NULLABLE", - "description": "Snapshot data for the vehicle.", - "fields": [ - { - "name": "gnss_position", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The GNSS position of the vehicle.", - "fields": [ - { - "name": "time", - "type": "STRING", - "mode": "NULLABLE", - "description": "The time of the GNSS position data. (RFC 3339)" - }, - { - "name": "latitude", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The latitude of the vehicle. (WGS84 based)" - }, - { - "name": "longitude", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The longitude of the vehicle. (WGS84 based)" - }, - { - "name": "heading_deg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The heading of the vehicle. (degrees) (0-359)" - }, - { - "name": "altitude_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The altitude of the vehicle. (meters)\n 0 is sea level, negative values below sea level, and positive above sea level." - }, - { - "name": "speed_kmh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The speed of the vehicle. (km/h)" - } - ] - }, - { - "name": "wheel_based_speed_kmh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The wheel-based speed of the vehicle. (km/h)" - }, - { - "name": "tachograph_speed_kmh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The tachograph speed of the vehicle. (km/h)" - }, - { - "name": "engine_speed_rpm", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The engine (diesel/gaseous) speed of the vehicle. (rev/min)" - }, - { - "name": "electric_motor_speed_rpm", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric motor speed of the vehicle. (rev/min)" - }, - { - "name": "ignition_state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The ignition state of the vehicle." - }, - { - "name": "fuel_type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The fuel type currently being utilized by the vehicle." - }, - { - "name": "unknown_fuel_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown fuel type of the vehicle.\n Provided when the fuel type is FUEL_TYPE_UNKNOWN." - }, - { - "name": "fuel_level1_percent", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel level of the vehicle. (%) (0 - 100)" - }, - { - "name": "fuel_level2_percent", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel level of the vehicle. (%) (0 - 100)\n When Fuel Level 2 is not used, Fuel Level 1 represents\n the total fuel in all fuel storage containers.\n\n When Fuel Level 2 is used,\n Fuel Level 1 represents the fuel level in the primary or left-side fuel\n storage container." - }, - { - "name": "catalyst_fuel_level_percent", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The adblue level percentage" - }, - { - "name": "driver1_working_state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The driver working state of the vehicle." - }, - { - "name": "unknown_driver1_working_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown driver working state of the vehicle.\n Provided when the driver working state is DRIVER_WORKING_STATE_UNKNOWN." - }, - { - "name": "driver2_id", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The driver identification of driver 2.", - "fields": [ - { - "name": "tacho", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The identification of a driver using the Tacho card.", - "fields": [ - { - "name": "driver_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unique identification of a driver in a Member State.\n This fields is formatted according the definition for driverIdentification\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "card_issuing_member_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The country alpha code of the Member State having issued the card.\n This fields is formatted according the definition for NationAlpha\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "authentication_equipment", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "Code to distinguish different types of equipment for the\n tachograph application. See description of the field 'DriverAuthenticationEquipment'\n in COMMISSION REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "unknown_authentication_equipment", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown authentication equipment of the driver.\n This is used when authentication_equipment is AUTHENTICATION_EQUIPMENT_UNKNOWN." - }, - { - "name": "card_replacement_index", - "type": "STRING", - "mode": "NULLABLE", - "description": "A card replacement index. This fields is formatted according\n the definition for CardReplacementIndex (chap 2.26) in: COMMISSION\n REGULATION (EC) No 1360/2002 Annex 1b" - }, - { - "name": "card_renewal_index", - "type": "STRING", - "mode": "NULLABLE", - "description": "A card renewal index. This fields is formatted according\n the definition for CardRenewalIndex (chap 2.25) in: COMMISSION\n REGULATION (EC) No 1360/2002 Annex 1b" - } - ] - }, - { - "name": "oem", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The identification of a driver using an OEM specific method.", - "fields": [ - { - "name": "id_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "An optional id type (e.g. pin, USB, encrypted EU id...).\n\nTODO: Should this be enum?" - }, - { - "name": "driver_id", - "type": "STRING", - "mode": "NULLABLE", - "description": "An OEM specific driver id." - } - ] - } - ] - }, - { - "name": "driver2_working_state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The driver working state of the vehicle." - }, - { - "name": "unknown_driver2_working_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown driver working state of the vehicle.\n Provided when the driver working state is DRIVER_WORKING_STATE_UNKNOWN." - }, - { - "name": "ambient_air_temperature_c", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The ambient air temperature of the vehicle. (°C)" - }, - { - "name": "parking_brake_switch", - "type": "BOOLEAN", - "mode": "NULLABLE", - "description": "The parking brake switch state of the vehicle.\n In general the switch actuated by the operator's park brake control, whether\n a pedal, lever or other control mechanism\n\n true - parking brake set\n false - parking brake not set" - }, - { - "name": "battery_pack_remaining_charge_percent", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The battery pack remaining charge of the vehicle. (%) (0 - 100)\n 0% means no charge remaining, 100% means full charge remaining.\n Is used for hybrid vehicles as well for full electrical vehicles" - }, - { - "name": "battery_pack_charging_state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The battery pack charging status of the vehicle." - }, - { - "name": "unknown_battery_pack_charging_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown battery pack charging status of the vehicle.\n Provided when the battery pack charging status is CHARGING_STATE_UNKNOWN." - }, - { - "name": "battery_pack_charging_connection_state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The battery pack charging status of the vehicle." - }, - { - "name": "unknown_battery_pack_charging_connection_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown battery pack charging connection status of the vehicle.\n Provided when the battery pack charging connection status is CHARGING_CONNECTION_STATE_UNKNOWN." - }, - { - "name": "battery_pack_charging_device", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The battery pack charging device of the vehicle." - }, - { - "name": "unknown_battery_pack_charging_device", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown battery pack charging device of the vehicle.\n Provided when the battery pack charging device is CHARGING_DEVICE_UNKNOWN." - }, - { - "name": "battery_pack_charging_power_w", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The battery pack charging power of the vehicle. (W)" - }, - { - "name": "battery_pack_estimated_charging_completed_time", - "type": "STRING", - "mode": "NULLABLE", - "description": "The estimated time when charging has reached the target level. (RFC 3339)" - }, - { - "name": "estimated_distance_to_empty", - "type": "RECORD", - "mode": "NULLABLE", - "description": "The estimated distance to empty of the vehicle.", - "fields": [ - { - "name": "total_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The estimated distance to empty of the vehicle. (m)" - }, - { - "name": "fuel_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The estimated distance to empty of the vehicle. (m)" - }, - { - "name": "gas_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The estimated distance to empty of the vehicle. (m)" - }, - { - "name": "battery_pack_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The estimated distance to empty of the vehicle. (m)" - } - ] - }, - { - "name": "vehicle_axles", - "type": "RECORD", - "mode": "REPEATED", - "description": "The axles of the vehicle.", - "fields": [ - { - "name": "position", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The position of the axle." - }, - { - "name": "load_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The static vertical load of the axle. (kg)" - }, - { - "name": "tires", - "type": "RECORD", - "mode": "REPEATED", - "description": "The tires on the axle.", - "fields": [ - { - "name": "position", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "Tire position (on the specified axle) from 1 to 15,\n counting left to right when facing in the direction of\n normal vehicle travel (forward)." - }, - { - "name": "pressure_kpa", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "Tire pressure. (kPa)" - } - ] - } - ] - }, - { - "name": "trailers", - "type": "RECORD", - "mode": "REPEATED", - "description": "The trailers connected to the vehicle.", - "fields": [ - { - "name": "number", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The trailer number from 1 to 5, 1 being closest to the truck, according to ISO 11992-2." - }, - { - "name": "identification_data", - "type": "STRING", - "mode": "NULLABLE", - "description": "The trailer identification data sent by the trailer to the truck in the RGE23 message of ISO 11992-2.\n An alternative source is the DID (Data identifier definition) record VIN, as specified in ISO 11992-4.\n Even though both ISO 11992-2 and ISO 11992-4 specifies this as a VIN, the actual data sent from a trailer is not always\n the true VIN of the trailer." - }, - { - "name": "vin", - "type": "STRING", - "mode": "NULLABLE", - "description": "The vehicle identification number of the trailer. See ISO 3779 (17 characters)\n If the trailerIdentificationData is reporting a true VIN, trailerVin will have the same value.\n If it is possible to map the trailerIdentificationData to a true VIN using other sources, the value can be provided here." - }, - { - "name": "customer_name", - "type": "STRING", - "mode": "NULLABLE", - "description": "The customer's name for the trailer" - }, - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The trailer type." - }, - { - "name": "axle_load_sum_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The sum of the static vertical loads of the trailer axles. (kg)\n The load is sent in the EBS22 message of ISO 11992-2." - }, - { - "name": "axles", - "type": "RECORD", - "mode": "REPEATED", - "description": "The trailer axles.", - "fields": [ - { - "name": "position", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The position of the axle from 1 to 15, 1 being in the front\n closest to the truck, according to ISO 11992-2." - }, - { - "name": "load_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The static vertical load of the axle in kilograms.\n The load is sent in the EBS22 message of ISO 11992-2." - } - ] - } - ] - } - ] - }, - { - "name": "uptime_data", - "type": "RECORD", - "mode": "NULLABLE", - "description": "Uptime data for the vehicle.", - "fields": [ - { - "name": "tell_tales", - "type": "RECORD", - "mode": "REPEATED", - "description": "List of tell tales with the actual state for each tell tale.", - "fields": [ - { - "name": "type", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The type of tell tale." - }, - { - "name": "unknown_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown tell tale type. Used when the type is TYPE_UNKNOWN." - }, - { - "name": "oem_specific_type", - "type": "STRING", - "mode": "NULLABLE", - "description": "The OEM specific type. Used when the type is TYPE_OEM_SPECIFIC." - }, - { - "name": "state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The state of the tell tale." - }, - { - "name": "unknown_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown state. Used when the state is STATE_UNKNOWN." - } - ] - }, - { - "name": "service_distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The distance in meter to the next service. (m)" - }, - { - "name": "engine_coolant_temperature_c", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The temperature of the coolant liquid. (°C)" - }, - { - "name": "hvess_outlet_coolant_temperature_c", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The temperature of the battery pack coolant. (°C)\n HVESS - High Voltage Energy Storage System." - }, - { - "name": "hvess_temperature_c", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The temperature of the battery pack. (°C)\n HVESS - High Voltage Energy Storage System." - }, - { - "name": "service_brake_air_pressure_circuit1_pa", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The pressure of the service brake air pressure circuit 1. (Pa)" - }, - { - "name": "service_brake_air_pressure_circuit2_pa", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The pressure of the service brake air pressure circuit 2. (Pa)" - }, - { - "name": "at_least_one_door_open_duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total time at least one door has been opened in the bus. (s)\n Used mainly for buses." - }, - { - "name": "alternators", - "type": "RECORD", - "mode": "REPEATED", - "description": "The alternator status of up to 4 alternators.\n Used mainly for buses.", - "fields": [ - { - "name": "number", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The number of the alternator." - }, - { - "name": "state", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The status of the alternator." - }, - { - "name": "unknown_state", - "type": "STRING", - "mode": "NULLABLE", - "description": "The unknown state of the alternator.\n Used when the state is STATE_UNKNOWN." - } - ] - }, - { - "name": "bellow_pressure_front_axle_left_pa", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The pressure of the bellow pressure front axle left. (Pa)\n Used mainly for buses." - }, - { - "name": "bellow_pressure_front_axle_right_pa", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The pressure of the bellow pressure front axle right. (Pa)\n Used mainly for buses." - }, - { - "name": "bellow_pressure_rear_axle_left_pa", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The pressure of the bellow pressure rear axle left. (Pa)\n Used mainly for buses." - }, - { - "name": "bellow_pressure_rear_axle_right_pa", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The pressure of the bellow pressure rear axle right. (Pa)\n Used mainly for buses." - } - ] - }, - { - "name": "accumulated_data", - "type": "RECORD", - "mode": "NULLABLE", - "description": "Accumulated data for the vehicle.", - "fields": [ - { - "name": "wheel_based_speed_over_zero_duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The duration the vehicle speed has been over zero. (s)" - }, - { - "name": "wheel_based_speed_over_zero_fuel_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel the vehicle has consumed while driven with speed over zero. (ml)\n Engine on (RPM\u003e0) and no PTO active." - }, - { - "name": "wheel_based_speed_over_zero_fuel_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel the vehicle has consumed while driven with speed over zero. (kg)\n Engine on (RPM\u003e0) and no PTO active." - }, - { - "name": "wheel_based_speed_over_zero_electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy the vehicle has consumed while driven with speed over zero. (Wh)" - }, - { - "name": "wheel_based_speed_zero_duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The duration the vehicle speed has been zero. (s)\n Engine on (RPM\u003e0 or electic motor in crank mode) and no PTO active" - }, - { - "name": "wheel_based_speed_zero_distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The distance the vehicle has been driven with speed zero. (m)" - }, - { - "name": "wheel_based_speed_zero_fuel_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel the vehicle has consumed while driven with speed zero. (ml)\n Engine on (RPM\u003e0) and no PTO active." - }, - { - "name": "wheel_based_speed_zero_fuel_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel the vehicle has consumed while driven with speed zero. (ml)\n Engine on (RPM\u003e0) and no PTO active." - }, - { - "name": "wheel_based_speed_zero_electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy the vehicle has consumed while driven with speed zero. (Wh)" - }, - { - "name": "cruise_control_active_distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The distance the vehicle has been driven with cruise control active. (m)" - }, - { - "name": "cruise_control_active_duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The duration the vehicle has been driven with cruise control active. (s)" - }, - { - "name": "cruise_control_active_fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel the vehicle has consumed while driven with cruise control active. (ml)" - }, - { - "name": "cruise_control_active_fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The fuel the vehicle has consumed while driven with cruise control active. (kg)" - }, - { - "name": "cruise_control_active_electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy the vehicle has consumed while driven with cruise control active. (Wh)" - }, - { - "name": "aux_electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy the auxiliary systems have consumed. (Wh)" - }, - { - "name": "pto_active_class", - "type": "RECORD", - "mode": "REPEATED", - "fields": [ - { - "name": "label", - "type": "STRING", - "mode": "NULLABLE", - "description": "The label of the class." - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The duration of the class. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The distance of the class. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The liquid fuel consumption of the class. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The gaseous fuel consumption of the class. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy consumption of the class. (wh)" - } - ] - }, - { - "name": "brake_pedal_speed_over_zero_count", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The total number of times the brake pedal has been used while" - }, - { - "name": "brake_pedal_speed_over_zero_distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance the vehicle has driven where the brake pedal has been used. (m)" - }, - { - "name": "acceleration_pedal_position_class_percent", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats for acceleration pedal position intervals. (percent)\n\n Default:\n Min interval: [0%, 20%)\n Max interval: [80%, 100%]\n Bucket count: 5\n Bucket width: 20%", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "brake_pedal_position_class_percent", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats for brake pedal position intervals. (percent)\n\n Default:\n Min interval: [0%, 20%)\n Max interval: [80%, 100%]\n Bucket count: 5\n Bucket width: 20%", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "acceleration_class_mps2", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats for acceleration intervals. (m/s2)\n\n Default:\n Min interval: (..., -1.1)\n Mid interval: (-0.1, 0.1)\n Max interval: [1.1, ...)\n Bucket count: 11\n Bucket width: 0.2", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "high_acceleration_class_mps2", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats for acceleration intervals. (m/s2)\n\n Default:\n Min interval: (..., -1.1)\n Mid interval: (-0.1, 0.1)\n Max interval: [1.1, ...)\n Bucket count: 11\n Bucket width: 0.2", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "retarder_torque_class_percent", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats by retarder usage. (%)\n\n Default:\n Min interval: (0%, 20%)\n Max interval: [80%, 100%]\n Bucket count: 5\n Bucket width: 20%", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "driving_without_torque_class", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats when driving without torque, with gear (clutch is engaged).\n\n Labels:\n DRIVING_WITHOUT_TORQUE", - "fields": [ - { - "name": "label", - "type": "STRING", - "mode": "NULLABLE", - "description": "The label of the class." - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The duration of the class. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The distance of the class. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The liquid fuel consumption of the class. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The gaseous fuel consumption of the class. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy consumption of the class. (wh)" - } - ] - }, - { - "name": "engine_torque_class_percent", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats by EEC1 value (Actual Engine-Percent Torque). (%)\n\n Default:\n Min interval: [0%, 10%)\n Max interval: [90%, 100%]\n Bucket count: 10\n Bucket width: 10%", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - } - ] - }, - { - "name": "electric_motor_torque_class_percent", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats by electric engine torque (Actual Engine-Percent Torque). (%)\n\n Default:\n Min interval: [0%, 10%)\n Max interval: [90%, 100%]\n Bucket count: 10\n Bucket width: 10%", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "engine_torque_at_current_speed_class_percent", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats based on EEC2 value (Engine Percent Load At Current Speed). (%)\n\n Default:\n Min interval: [0%, 10%)\n Max interval: [90%, 100%]\n Bucket count: 10\n Bucket width: 10%", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - } - ] - }, - { - "name": "electric_motor_torque_at_current_speed_class_percent", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats based on electric motor EEC2 value. (Engine Percent Load At Current Speed).\n\n Default:\n Min interval: [0%, 10%)\n Max interval: [90%, 100%]\n Bucket count: 10\n Bucket width: 10%", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "vehicle_speed_class_kmh", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats based on vehicle speed. (km/h)\n Engine on (RPM\u003e0 or electric motor in crank mode).\n\n Default:\n Min interval: [0km/h, 4km/h)\n Max interval: [156km/h, ...)\n Bucket count: 40\n Bucket width: 4km/h", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "engine_speed_class_rpm", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats based on the RPM of the combustion engine. (rpm)\n Only mandatory if the vehicle has a combustion engine for propulsion.\n\n Default:\n Min interval: [0rpm, 400pm)\n Max interval: [3600rpm, ...)\n Bucket count: 10\n Bucket width: 400rpm", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "acceleration_during_brake_class_mps2", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats based on the acceleration during braking. (m/s2)\n\n Default:\n Min interval: [..., -1.1m/s2)\n Mid interval: (-0.1m/s2, 0.1m/s2)\n Max interval: [1.1m/s2, ...)\n Bucket count: 13\n Bucket width: 0.2m/s2", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total liquid fuel consumption of the bucket. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total gaseous fuel consumption of the bucket. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - }, - { - "name": "selected_gear_class", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats based on the currently selected gear.\n On class per gear. Park is also a gear.\n Gear is formatted according to SPN 524 and supplied as a decimal value.\n\n Example:\n 0 = Neutral\n 1 = 1st gear\n 2 = 2nd gear\n\n This is mainly used for buses.", - "fields": [ - { - "name": "label", - "type": "STRING", - "mode": "NULLABLE", - "description": "The label of the class." - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The duration of the class. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The distance of the class. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The liquid fuel consumption of the class. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The gaseous fuel consumption of the class. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy consumption of the class. (wh)" - } - ] - }, - { - "name": "current_gear_class", - "type": "RECORD", - "mode": "REPEATED", - "description": "Histogram of stats based on the currently used gear.\n On class per gear. Park is also a gear.\n Gear is formatted according to SPN 524 and supplied as a decimal value.\n\n Example:\n 0 = Neutral\n 1 = 1st gear\n 2 = 2nd gear\n\n This is mainly used for buses.", - "fields": [ - { - "name": "label", - "type": "STRING", - "mode": "NULLABLE", - "description": "The label of the class." - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The duration of the class. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The distance of the class. (m)" - }, - { - "name": "fuel_consumption_ml", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The liquid fuel consumption of the class. (ml)" - }, - { - "name": "fuel_consumption_gaseous_kg", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The gaseous fuel consumption of the class. (kg)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The electric energy consumption of the class. (wh)" - } - ] - }, - { - "name": "chairlift_count", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The total number of times the chairlift has been outside the bus.\n This is mainly used for buses." - }, - { - "name": "stop_request_count", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The total number of stop requests made.\n This is mainly used for buses." - }, - { - "name": "kneeling_count", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The total number of times the bus has knelt.\n This is mainly used for buses." - }, - { - "name": "pram_request_count", - "type": "INTEGER", - "mode": "NULLABLE", - "description": "The total number of pram requests made.\n This is mainly used for buses." - }, - { - "name": "electric_power_recuperation_class_kw", - "type": "RECORD", - "mode": "REPEATED", - "description": "Classes refer to the recuperated electric power. (kw)\n Minimum 11 classes.\n [0, 100) [100, 200) [200, 300) ... [900, 1000), [1000, ...]", - "fields": [ - { - "name": "from", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The from value of the bucket interval. (inclusive)" - }, - { - "name": "to", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The to value of the bucket interval. (exclusive)" - }, - { - "name": "duration_s", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total duration of the bucket. (s)" - }, - { - "name": "distance_m", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total distance of the bucket. (m)" - }, - { - "name": "electric_energy_consumption_wh", - "type": "FLOAT", - "mode": "NULLABLE", - "description": "The total electric energy consumption of the bucket. (wh)" - } - ] - } - ] - } -] diff --git a/proto/gen/go/wayplatform/connect/rfms/v5/gnss_position.pb.go b/proto/gen/go/wayplatform/connect/rfms/v5/gnss_position.pb.go index b460b11..18cc014 100644 --- a/proto/gen/go/wayplatform/connect/rfms/v5/gnss_position.pb.go +++ b/proto/gen/go/wayplatform/connect/rfms/v5/gnss_position.pb.go @@ -9,6 +9,7 @@ package rfmsv5 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" unsafe "unsafe" ) @@ -23,7 +24,7 @@ const ( // A GNSS position. type GnssPosition struct { state protoimpl.MessageState `protogen:"opaque.v1"` - xxx_hidden_Time *string `protobuf:"bytes,1,opt,name=time"` + xxx_hidden_Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time"` xxx_hidden_Latitude float64 `protobuf:"fixed64,2,opt,name=latitude"` xxx_hidden_Longitude float64 `protobuf:"fixed64,3,opt,name=longitude"` xxx_hidden_HeadingDeg float64 `protobuf:"fixed64,4,opt,name=heading_deg,json=headingDeg"` @@ -60,14 +61,11 @@ func (x *GnssPosition) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -func (x *GnssPosition) GetTime() string { +func (x *GnssPosition) GetTime() *timestamppb.Timestamp { if x != nil { - if x.xxx_hidden_Time != nil { - return *x.xxx_hidden_Time - } - return "" + return x.xxx_hidden_Time } - return "" + return nil } func (x *GnssPosition) GetLatitude() float64 { @@ -105,9 +103,8 @@ func (x *GnssPosition) GetSpeedKmh() float64 { return 0 } -func (x *GnssPosition) SetTime(v string) { - x.xxx_hidden_Time = &v - protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 6) +func (x *GnssPosition) SetTime(v *timestamppb.Timestamp) { + x.xxx_hidden_Time = v } func (x *GnssPosition) SetLatitude(v float64) { @@ -139,7 +136,7 @@ func (x *GnssPosition) HasTime() bool { if x == nil { return false } - return protoimpl.X.Present(&(x.XXX_presence[0]), 0) + return x.xxx_hidden_Time != nil } func (x *GnssPosition) HasLatitude() bool { @@ -178,7 +175,6 @@ func (x *GnssPosition) HasSpeedKmh() bool { } func (x *GnssPosition) ClearTime() { - protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) x.xxx_hidden_Time = nil } @@ -211,7 +207,7 @@ type GnssPosition_builder struct { _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. // The time of the GNSS position data. (RFC 3339) - Time *string + Time *timestamppb.Timestamp // The latitude of the vehicle. (WGS84 based) Latitude *float64 // The longitude of the vehicle. (WGS84 based) @@ -229,10 +225,7 @@ func (b0 GnssPosition_builder) Build() *GnssPosition { m0 := &GnssPosition{} b, x := &b0, m0 _, _ = b, x - if b.Time != nil { - protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 6) - x.xxx_hidden_Time = b.Time - } + x.xxx_hidden_Time = b.Time if b.Latitude != nil { protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 6) x.xxx_hidden_Latitude = *b.Latitude @@ -260,9 +253,9 @@ var File_wayplatform_connect_rfms_v5_gnss_position_proto protoreflect.FileDescri const file_wayplatform_connect_rfms_v5_gnss_position_proto_rawDesc = "" + "\n" + - "/wayplatform/connect/rfms/v5/gnss_position.proto\x12\x1bwayplatform.connect.rfms.v5\"\xb9\x01\n" + - "\fGnssPosition\x12\x12\n" + - "\x04time\x18\x01 \x01(\tR\x04time\x12\x1a\n" + + "/wayplatform/connect/rfms/v5/gnss_position.proto\x12\x1bwayplatform.connect.rfms.v5\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd5\x01\n" + + "\fGnssPosition\x12.\n" + + "\x04time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x04time\x12\x1a\n" + "\blatitude\x18\x02 \x01(\x01R\blatitude\x12\x1c\n" + "\tlongitude\x18\x03 \x01(\x01R\tlongitude\x12\x1f\n" + "\vheading_deg\x18\x04 \x01(\x01R\n" + @@ -274,14 +267,16 @@ const file_wayplatform_connect_rfms_v5_gnss_position_proto_rawDesc = "" + var file_wayplatform_connect_rfms_v5_gnss_position_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_wayplatform_connect_rfms_v5_gnss_position_proto_goTypes = []any{ - (*GnssPosition)(nil), // 0: wayplatform.connect.rfms.v5.GnssPosition + (*GnssPosition)(nil), // 0: wayplatform.connect.rfms.v5.GnssPosition + (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp } var file_wayplatform_connect_rfms_v5_gnss_position_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name + 1, // 0: wayplatform.connect.rfms.v5.GnssPosition.time:type_name -> google.protobuf.Timestamp + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name } func init() { file_wayplatform_connect_rfms_v5_gnss_position_proto_init() } diff --git a/proto/gen/go/wayplatform/connect/rfms/v5/snapshot_data.pb.go b/proto/gen/go/wayplatform/connect/rfms/v5/snapshot_data.pb.go index c97d487..214bdd2 100644 --- a/proto/gen/go/wayplatform/connect/rfms/v5/snapshot_data.pb.go +++ b/proto/gen/go/wayplatform/connect/rfms/v5/snapshot_data.pb.go @@ -9,6 +9,7 @@ package rfmsv5 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" unsafe "unsafe" ) @@ -49,7 +50,7 @@ type SnapshotData struct { xxx_hidden_BatteryPackChargingDevice ChargingDevice `protobuf:"varint,24,opt,name=battery_pack_charging_device,json=batteryPackChargingDevice,enum=wayplatform.connect.rfms.v5.ChargingDevice"` xxx_hidden_UnknownBatteryPackChargingDevice *string `protobuf:"bytes,25,opt,name=unknown_battery_pack_charging_device,json=unknownBatteryPackChargingDevice"` xxx_hidden_BatteryPackChargingPowerW float64 `protobuf:"fixed64,26,opt,name=battery_pack_charging_power_w,json=batteryPackChargingPowerW"` - xxx_hidden_BatteryPackEstimatedChargingCompletedTime *string `protobuf:"bytes,27,opt,name=battery_pack_estimated_charging_completed_time,json=batteryPackEstimatedChargingCompletedTime"` + xxx_hidden_BatteryPackEstimatedChargingCompletedTime *timestamppb.Timestamp `protobuf:"bytes,27,opt,name=battery_pack_estimated_charging_completed_time,json=batteryPackEstimatedChargingCompletedTime"` xxx_hidden_EstimatedDistanceToEmpty *SnapshotData_EstimatedDistanceToEmpty `protobuf:"bytes,28,opt,name=estimated_distance_to_empty,json=estimatedDistanceToEmpty"` xxx_hidden_VehicleAxles *[]*VehicleAxle `protobuf:"bytes,29,rep,name=vehicle_axles,json=vehicleAxles"` xxx_hidden_Trailers *[]*Trailer `protobuf:"bytes,30,rep,name=trailers"` @@ -298,14 +299,11 @@ func (x *SnapshotData) GetBatteryPackChargingPowerW() float64 { return 0 } -func (x *SnapshotData) GetBatteryPackEstimatedChargingCompletedTime() string { +func (x *SnapshotData) GetBatteryPackEstimatedChargingCompletedTime() *timestamppb.Timestamp { if x != nil { - if x.xxx_hidden_BatteryPackEstimatedChargingCompletedTime != nil { - return *x.xxx_hidden_BatteryPackEstimatedChargingCompletedTime - } - return "" + return x.xxx_hidden_BatteryPackEstimatedChargingCompletedTime } - return "" + return nil } func (x *SnapshotData) GetEstimatedDistanceToEmpty() *SnapshotData_EstimatedDistanceToEmpty { @@ -461,9 +459,8 @@ func (x *SnapshotData) SetBatteryPackChargingPowerW(v float64) { protoimpl.X.SetPresent(&(x.XXX_presence[0]), 25, 30) } -func (x *SnapshotData) SetBatteryPackEstimatedChargingCompletedTime(v string) { - x.xxx_hidden_BatteryPackEstimatedChargingCompletedTime = &v - protoimpl.X.SetPresent(&(x.XXX_presence[0]), 26, 30) +func (x *SnapshotData) SetBatteryPackEstimatedChargingCompletedTime(v *timestamppb.Timestamp) { + x.xxx_hidden_BatteryPackEstimatedChargingCompletedTime = v } func (x *SnapshotData) SetEstimatedDistanceToEmpty(v *SnapshotData_EstimatedDistanceToEmpty) { @@ -664,7 +661,7 @@ func (x *SnapshotData) HasBatteryPackEstimatedChargingCompletedTime() bool { if x == nil { return false } - return protoimpl.X.Present(&(x.XXX_presence[0]), 26) + return x.xxx_hidden_BatteryPackEstimatedChargingCompletedTime != nil } func (x *SnapshotData) HasEstimatedDistanceToEmpty() bool { @@ -803,7 +800,6 @@ func (x *SnapshotData) ClearBatteryPackChargingPowerW() { } func (x *SnapshotData) ClearBatteryPackEstimatedChargingCompletedTime() { - protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 26) x.xxx_hidden_BatteryPackEstimatedChargingCompletedTime = nil } @@ -886,7 +882,7 @@ type SnapshotData_builder struct { // The battery pack charging power of the vehicle. (W) BatteryPackChargingPowerW *float64 // The estimated time when charging has reached the target level. (RFC 3339) - BatteryPackEstimatedChargingCompletedTime *string + BatteryPackEstimatedChargingCompletedTime *timestamppb.Timestamp // The estimated distance to empty of the vehicle. EstimatedDistanceToEmpty *SnapshotData_EstimatedDistanceToEmpty // The axles of the vehicle. @@ -997,10 +993,7 @@ func (b0 SnapshotData_builder) Build() *SnapshotData { protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 25, 30) x.xxx_hidden_BatteryPackChargingPowerW = *b.BatteryPackChargingPowerW } - if b.BatteryPackEstimatedChargingCompletedTime != nil { - protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 26, 30) - x.xxx_hidden_BatteryPackEstimatedChargingCompletedTime = b.BatteryPackEstimatedChargingCompletedTime - } + x.xxx_hidden_BatteryPackEstimatedChargingCompletedTime = b.BatteryPackEstimatedChargingCompletedTime x.xxx_hidden_EstimatedDistanceToEmpty = b.EstimatedDistanceToEmpty x.xxx_hidden_VehicleAxles = &b.VehicleAxles x.xxx_hidden_Trailers = &b.Trailers @@ -1181,7 +1174,7 @@ var File_wayplatform_connect_rfms_v5_snapshot_data_proto protoreflect.FileDescri const file_wayplatform_connect_rfms_v5_snapshot_data_proto_rawDesc = "" + "\n" + - "/wayplatform/connect/rfms/v5/snapshot_data.proto\x12\x1bwayplatform.connect.rfms.v5\x1a;wayplatform/connect/rfms/v5/charging_connection_state.proto\x1a1wayplatform/connect/rfms/v5/charging_device.proto\x1a0wayplatform/connect/rfms/v5/charging_state.proto\x1a7wayplatform/connect/rfms/v5/driver_identification.proto\x1a6wayplatform/connect/rfms/v5/driver_working_state.proto\x1a+wayplatform/connect/rfms/v5/fuel_type.proto\x1a/wayplatform/connect/rfms/v5/gnss_position.proto\x1a0wayplatform/connect/rfms/v5/ignition_state.proto\x1a)wayplatform/connect/rfms/v5/trailer.proto\x1a.wayplatform/connect/rfms/v5/vehicle_axle.proto\"\x90\x13\n" + + "/wayplatform/connect/rfms/v5/snapshot_data.proto\x12\x1bwayplatform.connect.rfms.v5\x1a\x1fgoogle/protobuf/timestamp.proto\x1a;wayplatform/connect/rfms/v5/charging_connection_state.proto\x1a1wayplatform/connect/rfms/v5/charging_device.proto\x1a0wayplatform/connect/rfms/v5/charging_state.proto\x1a7wayplatform/connect/rfms/v5/driver_identification.proto\x1a6wayplatform/connect/rfms/v5/driver_working_state.proto\x1a+wayplatform/connect/rfms/v5/fuel_type.proto\x1a/wayplatform/connect/rfms/v5/gnss_position.proto\x1a0wayplatform/connect/rfms/v5/ignition_state.proto\x1a)wayplatform/connect/rfms/v5/trailer.proto\x1a.wayplatform/connect/rfms/v5/vehicle_axle.proto\"\xac\x13\n" + "\fSnapshotData\x12N\n" + "\rgnss_position\x18\x01 \x01(\v2).wayplatform.connect.rfms.v5.GnssPositionR\fgnssPosition\x121\n" + "\x15wheel_based_speed_kmh\x18\x02 \x01(\x01R\x12wheelBasedSpeedKmh\x120\n" + @@ -1210,8 +1203,8 @@ const file_wayplatform_connect_rfms_v5_snapshot_data_proto_rawDesc = "" + ".unknown_battery_pack_charging_connection_state\x18\x17 \x01(\tR)unknownBatteryPackChargingConnectionState\x12l\n" + "\x1cbattery_pack_charging_device\x18\x18 \x01(\x0e2+.wayplatform.connect.rfms.v5.ChargingDeviceR\x19batteryPackChargingDevice\x12N\n" + "$unknown_battery_pack_charging_device\x18\x19 \x01(\tR unknownBatteryPackChargingDevice\x12@\n" + - "\x1dbattery_pack_charging_power_w\x18\x1a \x01(\x01R\x19batteryPackChargingPowerW\x12a\n" + - ".battery_pack_estimated_charging_completed_time\x18\x1b \x01(\tR)batteryPackEstimatedChargingCompletedTime\x12\x81\x01\n" + + "\x1dbattery_pack_charging_power_w\x18\x1a \x01(\x01R\x19batteryPackChargingPowerW\x12}\n" + + ".battery_pack_estimated_charging_completed_time\x18\x1b \x01(\v2\x1a.google.protobuf.TimestampR)batteryPackEstimatedChargingCompletedTime\x12\x81\x01\n" + "\x1bestimated_distance_to_empty\x18\x1c \x01(\v2B.wayplatform.connect.rfms.v5.SnapshotData.EstimatedDistanceToEmptyR\x18estimatedDistanceToEmpty\x12M\n" + "\rvehicle_axles\x18\x1d \x03(\v2(.wayplatform.connect.rfms.v5.VehicleAxleR\fvehicleAxles\x12@\n" + "\btrailers\x18\x1e \x03(\v2$.wayplatform.connect.rfms.v5.TrailerR\btrailers\x1a\x85\x01\n" + @@ -1234,8 +1227,9 @@ var file_wayplatform_connect_rfms_v5_snapshot_data_proto_goTypes = []any{ (ChargingState)(0), // 7: wayplatform.connect.rfms.v5.ChargingState (ChargingConnectionState)(0), // 8: wayplatform.connect.rfms.v5.ChargingConnectionState (ChargingDevice)(0), // 9: wayplatform.connect.rfms.v5.ChargingDevice - (*VehicleAxle)(nil), // 10: wayplatform.connect.rfms.v5.VehicleAxle - (*Trailer)(nil), // 11: wayplatform.connect.rfms.v5.Trailer + (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*VehicleAxle)(nil), // 11: wayplatform.connect.rfms.v5.VehicleAxle + (*Trailer)(nil), // 12: wayplatform.connect.rfms.v5.Trailer } var file_wayplatform_connect_rfms_v5_snapshot_data_proto_depIdxs = []int32{ 2, // 0: wayplatform.connect.rfms.v5.SnapshotData.gnss_position:type_name -> wayplatform.connect.rfms.v5.GnssPosition @@ -1247,14 +1241,15 @@ var file_wayplatform_connect_rfms_v5_snapshot_data_proto_depIdxs = []int32{ 7, // 6: wayplatform.connect.rfms.v5.SnapshotData.battery_pack_charging_state:type_name -> wayplatform.connect.rfms.v5.ChargingState 8, // 7: wayplatform.connect.rfms.v5.SnapshotData.battery_pack_charging_connection_state:type_name -> wayplatform.connect.rfms.v5.ChargingConnectionState 9, // 8: wayplatform.connect.rfms.v5.SnapshotData.battery_pack_charging_device:type_name -> wayplatform.connect.rfms.v5.ChargingDevice - 1, // 9: wayplatform.connect.rfms.v5.SnapshotData.estimated_distance_to_empty:type_name -> wayplatform.connect.rfms.v5.SnapshotData.EstimatedDistanceToEmpty - 10, // 10: wayplatform.connect.rfms.v5.SnapshotData.vehicle_axles:type_name -> wayplatform.connect.rfms.v5.VehicleAxle - 11, // 11: wayplatform.connect.rfms.v5.SnapshotData.trailers:type_name -> wayplatform.connect.rfms.v5.Trailer - 12, // [12:12] is the sub-list for method output_type - 12, // [12:12] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name + 10, // 9: wayplatform.connect.rfms.v5.SnapshotData.battery_pack_estimated_charging_completed_time:type_name -> google.protobuf.Timestamp + 1, // 10: wayplatform.connect.rfms.v5.SnapshotData.estimated_distance_to_empty:type_name -> wayplatform.connect.rfms.v5.SnapshotData.EstimatedDistanceToEmpty + 11, // 11: wayplatform.connect.rfms.v5.SnapshotData.vehicle_axles:type_name -> wayplatform.connect.rfms.v5.VehicleAxle + 12, // 12: wayplatform.connect.rfms.v5.SnapshotData.trailers:type_name -> wayplatform.connect.rfms.v5.Trailer + 13, // [13:13] is the sub-list for method output_type + 13, // [13:13] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name } func init() { file_wayplatform_connect_rfms_v5_snapshot_data_proto_init() } diff --git a/proto/gen/go/wayplatform/connect/rfms/v5/vehicle_position.pb.go b/proto/gen/go/wayplatform/connect/rfms/v5/vehicle_position.pb.go index 2640caa..21b1ba5 100644 --- a/proto/gen/go/wayplatform/connect/rfms/v5/vehicle_position.pb.go +++ b/proto/gen/go/wayplatform/connect/rfms/v5/vehicle_position.pb.go @@ -9,6 +9,7 @@ package rfmsv5 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" unsafe "unsafe" ) @@ -24,8 +25,8 @@ const ( type VehiclePosition struct { state protoimpl.MessageState `protogen:"opaque.v1"` xxx_hidden_Vin *string `protobuf:"bytes,1,opt,name=vin"` - xxx_hidden_CreateTime *string `protobuf:"bytes,2,opt,name=create_time,json=createTime"` - xxx_hidden_ReceiveTime *string `protobuf:"bytes,3,opt,name=receive_time,json=receiveTime"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime"` + xxx_hidden_ReceiveTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=receive_time,json=receiveTime"` xxx_hidden_Trigger *Trigger `protobuf:"bytes,4,opt,name=trigger"` xxx_hidden_GnssPosition *GnssPosition `protobuf:"bytes,5,opt,name=gnss_position,json=gnssPosition"` xxx_hidden_WheelBasedSpeedKmh float64 `protobuf:"fixed64,6,opt,name=wheel_based_speed_kmh,json=wheelBasedSpeedKmh"` @@ -71,24 +72,18 @@ func (x *VehiclePosition) GetVin() string { return "" } -func (x *VehiclePosition) GetCreateTime() string { +func (x *VehiclePosition) GetCreateTime() *timestamppb.Timestamp { if x != nil { - if x.xxx_hidden_CreateTime != nil { - return *x.xxx_hidden_CreateTime - } - return "" + return x.xxx_hidden_CreateTime } - return "" + return nil } -func (x *VehiclePosition) GetReceiveTime() string { +func (x *VehiclePosition) GetReceiveTime() *timestamppb.Timestamp { if x != nil { - if x.xxx_hidden_ReceiveTime != nil { - return *x.xxx_hidden_ReceiveTime - } - return "" + return x.xxx_hidden_ReceiveTime } - return "" + return nil } func (x *VehiclePosition) GetTrigger() *Trigger { @@ -124,14 +119,12 @@ func (x *VehiclePosition) SetVin(v string) { protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 7) } -func (x *VehiclePosition) SetCreateTime(v string) { - x.xxx_hidden_CreateTime = &v - protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 7) +func (x *VehiclePosition) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v } -func (x *VehiclePosition) SetReceiveTime(v string) { - x.xxx_hidden_ReceiveTime = &v - protoimpl.X.SetPresent(&(x.XXX_presence[0]), 2, 7) +func (x *VehiclePosition) SetReceiveTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ReceiveTime = v } func (x *VehiclePosition) SetTrigger(v *Trigger) { @@ -163,14 +156,14 @@ func (x *VehiclePosition) HasCreateTime() bool { if x == nil { return false } - return protoimpl.X.Present(&(x.XXX_presence[0]), 1) + return x.xxx_hidden_CreateTime != nil } func (x *VehiclePosition) HasReceiveTime() bool { if x == nil { return false } - return protoimpl.X.Present(&(x.XXX_presence[0]), 2) + return x.xxx_hidden_ReceiveTime != nil } func (x *VehiclePosition) HasTrigger() bool { @@ -207,12 +200,10 @@ func (x *VehiclePosition) ClearVin() { } func (x *VehiclePosition) ClearCreateTime() { - protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) x.xxx_hidden_CreateTime = nil } func (x *VehiclePosition) ClearReceiveTime() { - protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2) x.xxx_hidden_ReceiveTime = nil } @@ -241,9 +232,9 @@ type VehiclePosition_builder struct { // See ISO 3779 (17 characters). Vin *string // The date and time the vehicle position was created. (RFC 3339) - CreateTime *string + CreateTime *timestamppb.Timestamp // The date and time the vehicle position was received. (RFC 3339) - ReceiveTime *string + ReceiveTime *timestamppb.Timestamp // The type of trigger that caused the vehicle position to be sent. Trigger *Trigger // The GNSS position of the vehicle. @@ -262,14 +253,8 @@ func (b0 VehiclePosition_builder) Build() *VehiclePosition { protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 7) x.xxx_hidden_Vin = b.Vin } - if b.CreateTime != nil { - protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 7) - x.xxx_hidden_CreateTime = b.CreateTime - } - if b.ReceiveTime != nil { - protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 7) - x.xxx_hidden_ReceiveTime = b.ReceiveTime - } + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_ReceiveTime = b.ReceiveTime x.xxx_hidden_Trigger = b.Trigger x.xxx_hidden_GnssPosition = b.GnssPosition if b.WheelBasedSpeedKmh != nil { @@ -287,12 +272,12 @@ var File_wayplatform_connect_rfms_v5_vehicle_position_proto protoreflect.FileDes const file_wayplatform_connect_rfms_v5_vehicle_position_proto_rawDesc = "" + "\n" + - "2wayplatform/connect/rfms/v5/vehicle_position.proto\x12\x1bwayplatform.connect.rfms.v5\x1a/wayplatform/connect/rfms/v5/gnss_position.proto\x1a)wayplatform/connect/rfms/v5/trigger.proto\"\xdc\x02\n" + + "2wayplatform/connect/rfms/v5/vehicle_position.proto\x12\x1bwayplatform.connect.rfms.v5\x1a\x1fgoogle/protobuf/timestamp.proto\x1a/wayplatform/connect/rfms/v5/gnss_position.proto\x1a)wayplatform/connect/rfms/v5/trigger.proto\"\x94\x03\n" + "\x0fVehiclePosition\x12\x10\n" + - "\x03vin\x18\x01 \x01(\tR\x03vin\x12\x1f\n" + - "\vcreate_time\x18\x02 \x01(\tR\n" + - "createTime\x12!\n" + - "\freceive_time\x18\x03 \x01(\tR\vreceiveTime\x12>\n" + + "\x03vin\x18\x01 \x01(\tR\x03vin\x12;\n" + + "\vcreate_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\x12=\n" + + "\freceive_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\vreceiveTime\x12>\n" + "\atrigger\x18\x04 \x01(\v2$.wayplatform.connect.rfms.v5.TriggerR\atrigger\x12N\n" + "\rgnss_position\x18\x05 \x01(\v2).wayplatform.connect.rfms.v5.GnssPositionR\fgnssPosition\x121\n" + "\x15wheel_based_speed_kmh\x18\x06 \x01(\x01R\x12wheelBasedSpeedKmh\x120\n" + @@ -301,18 +286,21 @@ const file_wayplatform_connect_rfms_v5_vehicle_position_proto_rawDesc = "" + var file_wayplatform_connect_rfms_v5_vehicle_position_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_wayplatform_connect_rfms_v5_vehicle_position_proto_goTypes = []any{ - (*VehiclePosition)(nil), // 0: wayplatform.connect.rfms.v5.VehiclePosition - (*Trigger)(nil), // 1: wayplatform.connect.rfms.v5.Trigger - (*GnssPosition)(nil), // 2: wayplatform.connect.rfms.v5.GnssPosition + (*VehiclePosition)(nil), // 0: wayplatform.connect.rfms.v5.VehiclePosition + (*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp + (*Trigger)(nil), // 2: wayplatform.connect.rfms.v5.Trigger + (*GnssPosition)(nil), // 3: wayplatform.connect.rfms.v5.GnssPosition } var file_wayplatform_connect_rfms_v5_vehicle_position_proto_depIdxs = []int32{ - 1, // 0: wayplatform.connect.rfms.v5.VehiclePosition.trigger:type_name -> wayplatform.connect.rfms.v5.Trigger - 2, // 1: wayplatform.connect.rfms.v5.VehiclePosition.gnss_position:type_name -> wayplatform.connect.rfms.v5.GnssPosition - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name + 1, // 0: wayplatform.connect.rfms.v5.VehiclePosition.create_time:type_name -> google.protobuf.Timestamp + 1, // 1: wayplatform.connect.rfms.v5.VehiclePosition.receive_time:type_name -> google.protobuf.Timestamp + 2, // 2: wayplatform.connect.rfms.v5.VehiclePosition.trigger:type_name -> wayplatform.connect.rfms.v5.Trigger + 3, // 3: wayplatform.connect.rfms.v5.VehiclePosition.gnss_position:type_name -> wayplatform.connect.rfms.v5.GnssPosition + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name } func init() { file_wayplatform_connect_rfms_v5_vehicle_position_proto_init() } diff --git a/proto/gen/go/wayplatform/connect/rfms/v5/vehicle_status.pb.go b/proto/gen/go/wayplatform/connect/rfms/v5/vehicle_status.pb.go index 82f8913..3480cca 100644 --- a/proto/gen/go/wayplatform/connect/rfms/v5/vehicle_status.pb.go +++ b/proto/gen/go/wayplatform/connect/rfms/v5/vehicle_status.pb.go @@ -9,6 +9,7 @@ package rfmsv5 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" unsafe "unsafe" ) @@ -240,8 +241,8 @@ func (x VehicleStatus_Door_LockState) Number() protoreflect.EnumNumber { type VehicleStatus struct { state protoimpl.MessageState `protogen:"opaque.v1"` xxx_hidden_Vin *string `protobuf:"bytes,1,opt,name=vin"` - xxx_hidden_CreateTime *string `protobuf:"bytes,2,opt,name=create_time,json=createTime"` - xxx_hidden_ReceiveTime *string `protobuf:"bytes,3,opt,name=receive_time,json=receiveTime"` + xxx_hidden_CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime"` + xxx_hidden_ReceiveTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=receive_time,json=receiveTime"` xxx_hidden_Trigger *Trigger `protobuf:"bytes,4,opt,name=trigger"` xxx_hidden_HrTotalVehicleDistanceM float64 `protobuf:"fixed64,5,opt,name=hr_total_vehicle_distance_m,json=hrTotalVehicleDistanceM"` xxx_hidden_TotalEngineHours float64 `protobuf:"fixed64,6,opt,name=total_engine_hours,json=totalEngineHours"` @@ -299,24 +300,18 @@ func (x *VehicleStatus) GetVin() string { return "" } -func (x *VehicleStatus) GetCreateTime() string { +func (x *VehicleStatus) GetCreateTime() *timestamppb.Timestamp { if x != nil { - if x.xxx_hidden_CreateTime != nil { - return *x.xxx_hidden_CreateTime - } - return "" + return x.xxx_hidden_CreateTime } - return "" + return nil } -func (x *VehicleStatus) GetReceiveTime() string { +func (x *VehicleStatus) GetReceiveTime() *timestamppb.Timestamp { if x != nil { - if x.xxx_hidden_ReceiveTime != nil { - return *x.xxx_hidden_ReceiveTime - } - return "" + return x.xxx_hidden_ReceiveTime } - return "" + return nil } func (x *VehicleStatus) GetTrigger() *Trigger { @@ -443,14 +438,12 @@ func (x *VehicleStatus) SetVin(v string) { protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 19) } -func (x *VehicleStatus) SetCreateTime(v string) { - x.xxx_hidden_CreateTime = &v - protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 19) +func (x *VehicleStatus) SetCreateTime(v *timestamppb.Timestamp) { + x.xxx_hidden_CreateTime = v } -func (x *VehicleStatus) SetReceiveTime(v string) { - x.xxx_hidden_ReceiveTime = &v - protoimpl.X.SetPresent(&(x.XXX_presence[0]), 2, 19) +func (x *VehicleStatus) SetReceiveTime(v *timestamppb.Timestamp) { + x.xxx_hidden_ReceiveTime = v } func (x *VehicleStatus) SetTrigger(v *Trigger) { @@ -538,14 +531,14 @@ func (x *VehicleStatus) HasCreateTime() bool { if x == nil { return false } - return protoimpl.X.Present(&(x.XXX_presence[0]), 1) + return x.xxx_hidden_CreateTime != nil } func (x *VehicleStatus) HasReceiveTime() bool { if x == nil { return false } - return protoimpl.X.Present(&(x.XXX_presence[0]), 2) + return x.xxx_hidden_ReceiveTime != nil } func (x *VehicleStatus) HasTrigger() bool { @@ -659,12 +652,10 @@ func (x *VehicleStatus) ClearVin() { } func (x *VehicleStatus) ClearCreateTime() { - protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) x.xxx_hidden_CreateTime = nil } func (x *VehicleStatus) ClearReceiveTime() { - protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2) x.xxx_hidden_ReceiveTime = nil } @@ -744,9 +735,9 @@ type VehicleStatus_builder struct { // The vehicle identification number (VIN) of the vehicle. Vin *string // The date and time the vehicle status was created. (RFC 3339) - CreateTime *string + CreateTime *timestamppb.Timestamp // The date and time the vehicle status was received. (RFC 3339) - ReceiveTime *string + ReceiveTime *timestamppb.Timestamp // The type of trigger that caused the vehicle status to be sent. Trigger *Trigger // The total distance travelled by the vehicle during its operation in meters. @@ -821,14 +812,8 @@ func (b0 VehicleStatus_builder) Build() *VehicleStatus { protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 19) x.xxx_hidden_Vin = b.Vin } - if b.CreateTime != nil { - protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 19) - x.xxx_hidden_CreateTime = b.CreateTime - } - if b.ReceiveTime != nil { - protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 19) - x.xxx_hidden_ReceiveTime = b.ReceiveTime - } + x.xxx_hidden_CreateTime = b.CreateTime + x.xxx_hidden_ReceiveTime = b.ReceiveTime x.xxx_hidden_Trigger = b.Trigger if b.HrTotalVehicleDistanceM != nil { protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 4, 19) @@ -1163,12 +1148,12 @@ var File_wayplatform_connect_rfms_v5_vehicle_status_proto protoreflect.FileDescr const file_wayplatform_connect_rfms_v5_vehicle_status_proto_rawDesc = "" + "\n" + - "0wayplatform/connect/rfms/v5/vehicle_status.proto\x12\x1bwayplatform.connect.rfms.v5\x1a2wayplatform/connect/rfms/v5/accumulated_data.proto\x1a7wayplatform/connect/rfms/v5/driver_identification.proto\x1a/wayplatform/connect/rfms/v5/snapshot_data.proto\x1a)wayplatform/connect/rfms/v5/trigger.proto\x1a-wayplatform/connect/rfms/v5/uptime_data.proto\"\x88\x12\n" + + "0wayplatform/connect/rfms/v5/vehicle_status.proto\x12\x1bwayplatform.connect.rfms.v5\x1a\x1fgoogle/protobuf/timestamp.proto\x1a2wayplatform/connect/rfms/v5/accumulated_data.proto\x1a7wayplatform/connect/rfms/v5/driver_identification.proto\x1a/wayplatform/connect/rfms/v5/snapshot_data.proto\x1a)wayplatform/connect/rfms/v5/trigger.proto\x1a-wayplatform/connect/rfms/v5/uptime_data.proto\"\xc0\x12\n" + "\rVehicleStatus\x12\x10\n" + - "\x03vin\x18\x01 \x01(\tR\x03vin\x12\x1f\n" + - "\vcreate_time\x18\x02 \x01(\tR\n" + - "createTime\x12!\n" + - "\freceive_time\x18\x03 \x01(\tR\vreceiveTime\x12>\n" + + "\x03vin\x18\x01 \x01(\tR\x03vin\x12;\n" + + "\vcreate_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "createTime\x12=\n" + + "\freceive_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\vreceiveTime\x12>\n" + "\atrigger\x18\x04 \x01(\v2$.wayplatform.connect.rfms.v5.TriggerR\atrigger\x12<\n" + "\x1bhr_total_vehicle_distance_m\x18\x05 \x01(\x01R\x17hrTotalVehicleDistanceM\x12,\n" + "\x12total_engine_hours\x18\x06 \x01(\x01R\x10totalEngineHours\x12;\n" + @@ -1239,28 +1224,31 @@ var file_wayplatform_connect_rfms_v5_vehicle_status_proto_goTypes = []any{ (VehicleStatus_Door_LockState)(0), // 3: wayplatform.connect.rfms.v5.VehicleStatus.Door.LockState (*VehicleStatus)(nil), // 4: wayplatform.connect.rfms.v5.VehicleStatus (*VehicleStatus_Door)(nil), // 5: wayplatform.connect.rfms.v5.VehicleStatus.Door - (*Trigger)(nil), // 6: wayplatform.connect.rfms.v5.Trigger - (*DriverIdentification)(nil), // 7: wayplatform.connect.rfms.v5.DriverIdentification - (*SnapshotData)(nil), // 8: wayplatform.connect.rfms.v5.SnapshotData - (*UptimeData)(nil), // 9: wayplatform.connect.rfms.v5.UptimeData - (*AccumulatedData)(nil), // 10: wayplatform.connect.rfms.v5.AccumulatedData + (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp + (*Trigger)(nil), // 7: wayplatform.connect.rfms.v5.Trigger + (*DriverIdentification)(nil), // 8: wayplatform.connect.rfms.v5.DriverIdentification + (*SnapshotData)(nil), // 9: wayplatform.connect.rfms.v5.SnapshotData + (*UptimeData)(nil), // 10: wayplatform.connect.rfms.v5.UptimeData + (*AccumulatedData)(nil), // 11: wayplatform.connect.rfms.v5.AccumulatedData } var file_wayplatform_connect_rfms_v5_vehicle_status_proto_depIdxs = []int32{ - 6, // 0: wayplatform.connect.rfms.v5.VehicleStatus.trigger:type_name -> wayplatform.connect.rfms.v5.Trigger - 7, // 1: wayplatform.connect.rfms.v5.VehicleStatus.driver1_id:type_name -> wayplatform.connect.rfms.v5.DriverIdentification - 0, // 2: wayplatform.connect.rfms.v5.VehicleStatus.state_of_doors:type_name -> wayplatform.connect.rfms.v5.VehicleStatus.StateOfDoors - 5, // 3: wayplatform.connect.rfms.v5.VehicleStatus.doors:type_name -> wayplatform.connect.rfms.v5.VehicleStatus.Door - 8, // 4: wayplatform.connect.rfms.v5.VehicleStatus.snapshot_data:type_name -> wayplatform.connect.rfms.v5.SnapshotData - 9, // 5: wayplatform.connect.rfms.v5.VehicleStatus.uptime_data:type_name -> wayplatform.connect.rfms.v5.UptimeData - 10, // 6: wayplatform.connect.rfms.v5.VehicleStatus.accumulated_data:type_name -> wayplatform.connect.rfms.v5.AccumulatedData - 1, // 7: wayplatform.connect.rfms.v5.VehicleStatus.Door.enabled_state:type_name -> wayplatform.connect.rfms.v5.VehicleStatus.Door.EnabledState - 2, // 8: wayplatform.connect.rfms.v5.VehicleStatus.Door.open_state:type_name -> wayplatform.connect.rfms.v5.VehicleStatus.Door.OpenState - 3, // 9: wayplatform.connect.rfms.v5.VehicleStatus.Door.lock_state:type_name -> wayplatform.connect.rfms.v5.VehicleStatus.Door.LockState - 10, // [10:10] is the sub-list for method output_type - 10, // [10:10] is the sub-list for method input_type - 10, // [10:10] is the sub-list for extension type_name - 10, // [10:10] is the sub-list for extension extendee - 0, // [0:10] is the sub-list for field type_name + 6, // 0: wayplatform.connect.rfms.v5.VehicleStatus.create_time:type_name -> google.protobuf.Timestamp + 6, // 1: wayplatform.connect.rfms.v5.VehicleStatus.receive_time:type_name -> google.protobuf.Timestamp + 7, // 2: wayplatform.connect.rfms.v5.VehicleStatus.trigger:type_name -> wayplatform.connect.rfms.v5.Trigger + 8, // 3: wayplatform.connect.rfms.v5.VehicleStatus.driver1_id:type_name -> wayplatform.connect.rfms.v5.DriverIdentification + 0, // 4: wayplatform.connect.rfms.v5.VehicleStatus.state_of_doors:type_name -> wayplatform.connect.rfms.v5.VehicleStatus.StateOfDoors + 5, // 5: wayplatform.connect.rfms.v5.VehicleStatus.doors:type_name -> wayplatform.connect.rfms.v5.VehicleStatus.Door + 9, // 6: wayplatform.connect.rfms.v5.VehicleStatus.snapshot_data:type_name -> wayplatform.connect.rfms.v5.SnapshotData + 10, // 7: wayplatform.connect.rfms.v5.VehicleStatus.uptime_data:type_name -> wayplatform.connect.rfms.v5.UptimeData + 11, // 8: wayplatform.connect.rfms.v5.VehicleStatus.accumulated_data:type_name -> wayplatform.connect.rfms.v5.AccumulatedData + 1, // 9: wayplatform.connect.rfms.v5.VehicleStatus.Door.enabled_state:type_name -> wayplatform.connect.rfms.v5.VehicleStatus.Door.EnabledState + 2, // 10: wayplatform.connect.rfms.v5.VehicleStatus.Door.open_state:type_name -> wayplatform.connect.rfms.v5.VehicleStatus.Door.OpenState + 3, // 11: wayplatform.connect.rfms.v5.VehicleStatus.Door.lock_state:type_name -> wayplatform.connect.rfms.v5.VehicleStatus.Door.LockState + 12, // [12:12] is the sub-list for method output_type + 12, // [12:12] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } func init() { file_wayplatform_connect_rfms_v5_vehicle_status_proto_init() } diff --git a/proto/gen/pubsub/wayplatform.connect.rfms.v5.AccumulatedData.pubsub.proto b/proto/gen/pubsub/wayplatform.connect.rfms.v5.AccumulatedData.pubsub.proto deleted file mode 100644 index 26e64a7..0000000 --- a/proto/gen/pubsub/wayplatform.connect.rfms.v5.AccumulatedData.pubsub.proto +++ /dev/null @@ -1,73 +0,0 @@ -syntax = "proto2"; -message AccumulatedData { - optional double wheel_based_speed_over_zero_duration_s = 1; - optional double wheel_based_speed_over_zero_fuel_ml = 2; - optional double wheel_based_speed_over_zero_fuel_gaseous_kg = 3; - optional double wheel_based_speed_over_zero_electric_energy_consumption_wh = 4; - optional double wheel_based_speed_zero_duration_s = 5; - optional double wheel_based_speed_zero_distance_m = 6; - optional double wheel_based_speed_zero_fuel_ml = 7; - optional double wheel_based_speed_zero_fuel_gaseous_kg = 8; - optional double wheel_based_speed_zero_electric_energy_consumption_wh = 9; - optional double cruise_control_active_distance_m = 10; - optional double cruise_control_active_duration_s = 11; - optional double cruise_control_active_fuel_consumption_ml = 12; - optional double cruise_control_active_fuel_consumption_gaseous_kg = 13; - optional double cruise_control_active_electric_energy_consumption_wh = 14; - optional double aux_electric_energy_consumption_wh = 15; - repeated LabelClass pto_active_class = 16; - optional int32 brake_pedal_speed_over_zero_count = 17; - optional double brake_pedal_speed_over_zero_distance_m = 18; - repeated FromToClass acceleration_pedal_position_class_percent = 19; - repeated FromToClass brake_pedal_position_class_percent = 20; - repeated FromToClass acceleration_class_mps2 = 21; - repeated FromToClass high_acceleration_class_mps2 = 22; - repeated FromToClass retarder_torque_class_percent = 23; - repeated LabelClass driving_without_torque_class = 24; - repeated FromToClassCombustion engine_torque_class_percent = 25; - repeated FromToClassElectrical electric_motor_torque_class_percent = 26; - repeated FromToClassCombustion engine_torque_at_current_speed_class_percent = 27; - repeated FromToClassElectrical electric_motor_torque_at_current_speed_class_percent = 28; - repeated FromToClass vehicle_speed_class_kmh = 29; - repeated FromToClass engine_speed_class_rpm = 30; - repeated FromToClass acceleration_during_brake_class_mps2 = 31; - repeated LabelClass selected_gear_class = 32; - repeated LabelClass current_gear_class = 33; - optional int32 chairlift_count = 34; - optional int32 stop_request_count = 35; - optional int32 kneeling_count = 36; - optional int32 pram_request_count = 37; - repeated FromToClassElectrical electric_power_recuperation_class_kw = 38; - message LabelClass { - optional string label = 1; - optional double duration_s = 2; - optional double distance_m = 3; - optional double fuel_consumption_ml = 4; - optional double fuel_consumption_gaseous_kg = 5; - optional double electric_energy_consumption_wh = 6; - } - message FromToClass { - optional double from = 1; - optional double to = 2; - optional double duration_s = 3; - optional double distance_m = 4; - optional double fuel_consumption_ml = 5; - optional double fuel_consumption_gaseous_kg = 6; - optional double electric_energy_consumption_wh = 7; - } - message FromToClassCombustion { - optional double from = 1; - optional double to = 2; - optional double duration_s = 3; - optional double distance_m = 4; - optional double fuel_consumption_ml = 5; - optional double fuel_consumption_gaseous_kg = 6; - } - message FromToClassElectrical { - optional double from = 1; - optional double to = 2; - optional double duration_s = 3; - optional double distance_m = 4; - optional double electric_energy_consumption_wh = 5; - } -} diff --git a/proto/gen/pubsub/wayplatform.connect.rfms.v5.Date.pubsub.proto b/proto/gen/pubsub/wayplatform.connect.rfms.v5.Date.pubsub.proto deleted file mode 100644 index 97ca9a2..0000000 --- a/proto/gen/pubsub/wayplatform.connect.rfms.v5.Date.pubsub.proto +++ /dev/null @@ -1,6 +0,0 @@ -syntax = "proto2"; -message Date { - optional int32 day = 1; - optional int32 month = 2; - optional int32 year = 3; -} diff --git a/proto/gen/pubsub/wayplatform.connect.rfms.v5.DriverIdentification.pubsub.proto b/proto/gen/pubsub/wayplatform.connect.rfms.v5.DriverIdentification.pubsub.proto deleted file mode 100644 index 763d618..0000000 --- a/proto/gen/pubsub/wayplatform.connect.rfms.v5.DriverIdentification.pubsub.proto +++ /dev/null @@ -1,27 +0,0 @@ -syntax = "proto2"; -message DriverIdentification { - optional Tacho tacho = 1; - optional Oem oem = 2; - message Tacho { - optional string driver_id = 1; - optional string card_issuing_member_state = 2; - optional int32 authentication_equipment = 3; - optional string unknown_authentication_equipment = 4; - optional string card_replacement_index = 5; - optional string card_renewal_index = 6; - enum AuthenticationEquipment { - AUTHENTICATION_EQUIPMENT_UNSPECIFIED = 0; - AUTHENTICATION_EQUIPMENT_UNKNOWN = 1; - DRIVER_CARD = 2; - CONTROL_CARD = 3; - COMPANY_CARD = 4; - MANUFACTURING_CARD = 5; - VEHICLE_UNIT = 6; - MOTION_SENSOR = 7; - } - } - message Oem { - optional string id_type = 1; - optional string driver_id = 2; - } -} diff --git a/proto/gen/pubsub/wayplatform.connect.rfms.v5.GnssPosition.pubsub.proto b/proto/gen/pubsub/wayplatform.connect.rfms.v5.GnssPosition.pubsub.proto deleted file mode 100644 index e6611a5..0000000 --- a/proto/gen/pubsub/wayplatform.connect.rfms.v5.GnssPosition.pubsub.proto +++ /dev/null @@ -1,9 +0,0 @@ -syntax = "proto2"; -message GnssPosition { - optional string time = 1; - optional double latitude = 2; - optional double longitude = 3; - optional double heading_deg = 4; - optional double altitude_m = 5; - optional double speed_kmh = 6; -} diff --git a/proto/gen/pubsub/wayplatform.connect.rfms.v5.SnapshotData.pubsub.proto b/proto/gen/pubsub/wayplatform.connect.rfms.v5.SnapshotData.pubsub.proto deleted file mode 100644 index 4eba87a..0000000 --- a/proto/gen/pubsub/wayplatform.connect.rfms.v5.SnapshotData.pubsub.proto +++ /dev/null @@ -1,108 +0,0 @@ -syntax = "proto2"; -message SnapshotData { - optional Inline_wayplatform_connect_rfms_v5_GnssPosition gnss_position = 1; - optional double wheel_based_speed_kmh = 2; - optional double tachograph_speed_kmh = 3; - optional double engine_speed_rpm = 4; - optional double electric_motor_speed_rpm = 5; - optional int32 ignition_state = 6; - optional int32 fuel_type = 7; - optional string unknown_fuel_type = 8; - optional double fuel_level1_percent = 9; - optional double fuel_level2_percent = 10; - optional double catalyst_fuel_level_percent = 11; - optional int32 driver1_working_state = 12; - optional string unknown_driver1_working_state = 13; - optional Inline_wayplatform_connect_rfms_v5_DriverIdentification driver2_id = 14; - optional int32 driver2_working_state = 15; - optional string unknown_driver2_working_state = 16; - optional double ambient_air_temperature_c = 17; - optional bool parking_brake_switch = 18; - optional double battery_pack_remaining_charge_percent = 19; - optional int32 battery_pack_charging_state = 20; - optional string unknown_battery_pack_charging_state = 21; - optional int32 battery_pack_charging_connection_state = 22; - optional string unknown_battery_pack_charging_connection_state = 23; - optional int32 battery_pack_charging_device = 24; - optional string unknown_battery_pack_charging_device = 25; - optional double battery_pack_charging_power_w = 26; - optional string battery_pack_estimated_charging_completed_time = 27; - optional EstimatedDistanceToEmpty estimated_distance_to_empty = 28; - repeated Inline_wayplatform_connect_rfms_v5_VehicleAxle vehicle_axles = 29; - repeated Inline_wayplatform_connect_rfms_v5_Trailer trailers = 30; - message EstimatedDistanceToEmpty { - optional double total_m = 1; - optional double fuel_m = 2; - optional double gas_m = 3; - optional double battery_pack_m = 4; - } - message Inline_wayplatform_connect_rfms_v5_GnssPosition { - optional string time = 1; - optional double latitude = 2; - optional double longitude = 3; - optional double heading_deg = 4; - optional double altitude_m = 5; - optional double speed_kmh = 6; - } - message Inline_wayplatform_connect_rfms_v5_DriverIdentification { - optional Tacho tacho = 1; - optional Oem oem = 2; - message Tacho { - optional string driver_id = 1; - optional string card_issuing_member_state = 2; - optional int32 authentication_equipment = 3; - optional string unknown_authentication_equipment = 4; - optional string card_replacement_index = 5; - optional string card_renewal_index = 6; - enum AuthenticationEquipment { - AUTHENTICATION_EQUIPMENT_UNSPECIFIED = 0; - AUTHENTICATION_EQUIPMENT_UNKNOWN = 1; - DRIVER_CARD = 2; - CONTROL_CARD = 3; - COMPANY_CARD = 4; - MANUFACTURING_CARD = 5; - VEHICLE_UNIT = 6; - MOTION_SENSOR = 7; - } - } - message Oem { - optional string id_type = 1; - optional string driver_id = 2; - } - } - message Inline_wayplatform_connect_rfms_v5_VehicleAxle { - optional int32 position = 1; - optional double load_kg = 2; - repeated Tire tires = 3; - message Tire { - optional int32 position = 1; - optional double pressure_kpa = 2; - } - } - message Inline_wayplatform_connect_rfms_v5_Trailer { - optional int32 number = 1; - optional string identification_data = 2; - optional string vin = 3; - optional string customer_name = 4; - optional int32 type = 5; - optional double axle_load_sum_kg = 6; - repeated Axle axles = 7; - message Axle { - optional int32 position = 1; - optional double load_kg = 2; - } - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_UNKNOWN = 1; - TYPE_NOT_AVAILABLE = 2; - SEMI_TRAILER = 3; - CENTRE_AXLE_TRAILER = 4; - FULL_TRAILER = 5; - CONVERTER_DOLLY = 6; - LINK_TRAILER = 7; - TOWING_SEMI_TRAILER = 8; - TOWING_CENTRE_AXLE_TRAILER = 9; - TOWING_FULL_TRAILER = 10; - } - } -} diff --git a/proto/gen/pubsub/wayplatform.connect.rfms.v5.TellTale.pubsub.proto b/proto/gen/pubsub/wayplatform.connect.rfms.v5.TellTale.pubsub.proto deleted file mode 100644 index 3f337c9..0000000 --- a/proto/gen/pubsub/wayplatform.connect.rfms.v5.TellTale.pubsub.proto +++ /dev/null @@ -1,92 +0,0 @@ -syntax = "proto2"; -message TellTale { - optional int32 type = 1; - optional string unknown_type = 2; - optional string oem_specific_type = 3; - optional int32 state = 4; - optional string unknown_state = 5; - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_UNKNOWN = 1; - OEM_SPECIFIC = 2; - COOLING_AIR_CONDITIONING = 3; - HIGH_BEAM_MAIN_BEAM = 4; - LOW_BEAM_DIPPED_BEAM = 5; - TURN_SIGNALS = 6; - HAZARD_WARNING = 7; - PROVISIONING_HANDICAPPED_PERSON = 8; - PARKING_BRAKE = 9; - BRAKE_MALFUNCTION = 10; - HATCH_OPEN = 11; - FUEL_LEVEL = 12; - ENGINE_COOLANT_TEMPERATURE = 13; - BATTERY_CHARGING_CONDITION = 14; - ENGINE_OIL = 15; - POSITION_LIGHTS = 16; - FRONT_FOG_LIGHT = 17; - REAR_FOG_LIGHT = 18; - PARKING_HEATER = 19; - ENGINE_MIL_INDICATOR = 20; - SERVICE_CALL_FOR_MAINTENANCE = 21; - TRANSMISSION_FLUID_TEMPERATURE = 22; - TRANSMISSION_MALFUNCTION = 23; - ANTI_LOCK_BRAKE_FAILURE = 24; - WORN_BRAKE_LININGS = 25; - WINDSCREEN_WASHER_FLUID = 26; - TIRE_MALFUNCTION = 27; - GENERAL_FAILURE = 28; - ENGINE_OIL_TEMPERATURE = 29; - ENGINE_OIL_LEVEL = 30; - ENGINE_COOLANT_LEVEL = 31; - STEERING_FLUID_LEVEL = 32; - STEERING_FAILURE = 33; - HEIGHT_CONTROL = 34; - RETARDER = 35; - ENGINE_EMISSION_FAILURE = 36; - ESC_INDICATOR = 37; - BRAKE_LIGHTS = 38; - ARTICULATION = 39; - STOP_REQUEST = 40; - PRAM_REQUEST = 41; - BUS_STOP_BRAKE = 42; - ADBLUE_LEVEL = 43; - RAISING = 44; - LOWERING = 45; - KNEELING = 46; - ENGINE_COMPARTMENT_TEMPERATURE = 47; - AUXILLARY_AIR_PRESSURE = 48; - AIR_FILTER_CLOGGED = 49; - FUEL_FILTER_DIFF_PRESSURE = 50; - SEAT_BELT = 51; - EBS = 52; - LANE_DEPARTURE_INDICATOR = 53; - ADVANCED_EMERGENCY_BRAKING = 54; - ACC = 55; - TRAILER_CONNECTED = 56; - ABS_TRAILER = 57; - AIRBAG = 58; - EBS_TRAILER_1_2 = 59; - TACHOGRAPH_INDICATOR = 60; - ESC_SWITCHED_OFF = 61; - LANE_DEPARTURE_WARNING_SWITCHED_OFF = 62; - ENGINE_EMISSION_FILTER_SOOT_FILTER = 63; - ELECTRIC_MOTOR_FAILURES = 64; - ADBLUE_TAMPERING = 65; - MULTIPLEX_SYSTEM = 66; - BATTERY_PACK = 67; - HIGH_VOLTAGE_SYSTEM_CAUTION = 68; - BATTERY_PACK_TEMPERATURE = 69; - LIMITED_PERFORMANCE_ELECTRIC_MOTOR = 70; - BATTERY_PACK_COOLING = 71; - WATER_IN_FUEL_INDICATOR = 72; - } - enum State { - STATE_UNSPECIFIED = 0; - STATE_UNKNOWN = 1; - STATE_NOT_AVAILABLE = 2; - RED = 3; - YELLOW = 4; - INFO = 5; - OFF = 6; - } -} diff --git a/proto/gen/pubsub/wayplatform.connect.rfms.v5.Trailer.pubsub.proto b/proto/gen/pubsub/wayplatform.connect.rfms.v5.Trailer.pubsub.proto deleted file mode 100644 index 1a753b4..0000000 --- a/proto/gen/pubsub/wayplatform.connect.rfms.v5.Trailer.pubsub.proto +++ /dev/null @@ -1,27 +0,0 @@ -syntax = "proto2"; -message Trailer { - optional int32 number = 1; - optional string identification_data = 2; - optional string vin = 3; - optional string customer_name = 4; - optional int32 type = 5; - optional double axle_load_sum_kg = 6; - repeated Axle axles = 7; - message Axle { - optional int32 position = 1; - optional double load_kg = 2; - } - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_UNKNOWN = 1; - TYPE_NOT_AVAILABLE = 2; - SEMI_TRAILER = 3; - CENTRE_AXLE_TRAILER = 4; - FULL_TRAILER = 5; - CONVERTER_DOLLY = 6; - LINK_TRAILER = 7; - TOWING_SEMI_TRAILER = 8; - TOWING_CENTRE_AXLE_TRAILER = 9; - TOWING_FULL_TRAILER = 10; - } -} diff --git a/proto/gen/pubsub/wayplatform.connect.rfms.v5.Trigger.pubsub.proto b/proto/gen/pubsub/wayplatform.connect.rfms.v5.Trigger.pubsub.proto deleted file mode 100644 index 955ed4c..0000000 --- a/proto/gen/pubsub/wayplatform.connect.rfms.v5.Trigger.pubsub.proto +++ /dev/null @@ -1,217 +0,0 @@ -syntax = "proto2"; -message Trigger { - optional int32 type = 1; - optional string unknown_type = 2; - optional int32 context = 3; - optional string unknown_context = 4; - repeated string trigger_info = 5; - optional Inline_wayplatform_connect_rfms_v5_DriverIdentification driver_id = 6; - optional string pto_id = 7; - optional Inline_wayplatform_connect_rfms_v5_TellTale tell_tale_info = 8; - optional ChargingStatusInfo charging_status_info = 9; - optional ChargingConnectionStatusInfo charging_connection_status_info = 10; - optional AlarmInfo alarm_info = 11; - message ChargingStatusInfo { - optional int32 event = 1; - optional string unknown_event = 2; - optional string detail = 3; - enum Event { - EVENT_UNSPECIFIED = 0; - EVENT_UNKNOWN = 1; - EVENT_ERROR = 2; - CHARGING_STARTED = 3; - CHARGING_COMPLETED = 4; - CHARGING_INTERRUPTED = 5; - ESTIMATED_COMPLETION_TIME_CHANGED = 6; - TIMER = 7; - CHARGING_LEVEL = 8; - } - } - message ChargingConnectionStatusInfo { - optional int32 state = 1; - optional string unknown_state = 2; - } - message AlarmInfo { - optional int32 type = 1; - optional string unknown_type = 2; - optional int32 state = 3; - optional string unknown_state = 4; - repeated string details = 5; - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_UNKNOWN = 1; - THEFT = 2; - FUEL_THEFT = 3; - FIRE = 4; - PANIC = 5; - CARGO_TEMPERATURE = 6; - } - enum State { - STATE_UNSPECIFIED = 0; - STATE_UNKNOWN = 1; - STATE_ERROR = 2; - ARMED = 3; - ARMED_WITH_ERROR = 4; - DISARMED = 5; - TRIGGERED = 6; - UNTRIGGERED = 7; - } - } - message Inline_wayplatform_connect_rfms_v5_DriverIdentification { - optional Tacho tacho = 1; - optional Oem oem = 2; - message Tacho { - optional string driver_id = 1; - optional string card_issuing_member_state = 2; - optional int32 authentication_equipment = 3; - optional string unknown_authentication_equipment = 4; - optional string card_replacement_index = 5; - optional string card_renewal_index = 6; - enum AuthenticationEquipment { - AUTHENTICATION_EQUIPMENT_UNSPECIFIED = 0; - AUTHENTICATION_EQUIPMENT_UNKNOWN = 1; - DRIVER_CARD = 2; - CONTROL_CARD = 3; - COMPANY_CARD = 4; - MANUFACTURING_CARD = 5; - VEHICLE_UNIT = 6; - MOTION_SENSOR = 7; - } - } - message Oem { - optional string id_type = 1; - optional string driver_id = 2; - } - } - message Inline_wayplatform_connect_rfms_v5_TellTale { - optional int32 type = 1; - optional string unknown_type = 2; - optional string oem_specific_type = 3; - optional int32 state = 4; - optional string unknown_state = 5; - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_UNKNOWN = 1; - OEM_SPECIFIC = 2; - COOLING_AIR_CONDITIONING = 3; - HIGH_BEAM_MAIN_BEAM = 4; - LOW_BEAM_DIPPED_BEAM = 5; - TURN_SIGNALS = 6; - HAZARD_WARNING = 7; - PROVISIONING_HANDICAPPED_PERSON = 8; - PARKING_BRAKE = 9; - BRAKE_MALFUNCTION = 10; - HATCH_OPEN = 11; - FUEL_LEVEL = 12; - ENGINE_COOLANT_TEMPERATURE = 13; - BATTERY_CHARGING_CONDITION = 14; - ENGINE_OIL = 15; - POSITION_LIGHTS = 16; - FRONT_FOG_LIGHT = 17; - REAR_FOG_LIGHT = 18; - PARKING_HEATER = 19; - ENGINE_MIL_INDICATOR = 20; - SERVICE_CALL_FOR_MAINTENANCE = 21; - TRANSMISSION_FLUID_TEMPERATURE = 22; - TRANSMISSION_MALFUNCTION = 23; - ANTI_LOCK_BRAKE_FAILURE = 24; - WORN_BRAKE_LININGS = 25; - WINDSCREEN_WASHER_FLUID = 26; - TIRE_MALFUNCTION = 27; - GENERAL_FAILURE = 28; - ENGINE_OIL_TEMPERATURE = 29; - ENGINE_OIL_LEVEL = 30; - ENGINE_COOLANT_LEVEL = 31; - STEERING_FLUID_LEVEL = 32; - STEERING_FAILURE = 33; - HEIGHT_CONTROL = 34; - RETARDER = 35; - ENGINE_EMISSION_FAILURE = 36; - ESC_INDICATOR = 37; - BRAKE_LIGHTS = 38; - ARTICULATION = 39; - STOP_REQUEST = 40; - PRAM_REQUEST = 41; - BUS_STOP_BRAKE = 42; - ADBLUE_LEVEL = 43; - RAISING = 44; - LOWERING = 45; - KNEELING = 46; - ENGINE_COMPARTMENT_TEMPERATURE = 47; - AUXILLARY_AIR_PRESSURE = 48; - AIR_FILTER_CLOGGED = 49; - FUEL_FILTER_DIFF_PRESSURE = 50; - SEAT_BELT = 51; - EBS = 52; - LANE_DEPARTURE_INDICATOR = 53; - ADVANCED_EMERGENCY_BRAKING = 54; - ACC = 55; - TRAILER_CONNECTED = 56; - ABS_TRAILER = 57; - AIRBAG = 58; - EBS_TRAILER_1_2 = 59; - TACHOGRAPH_INDICATOR = 60; - ESC_SWITCHED_OFF = 61; - LANE_DEPARTURE_WARNING_SWITCHED_OFF = 62; - ENGINE_EMISSION_FILTER_SOOT_FILTER = 63; - ELECTRIC_MOTOR_FAILURES = 64; - ADBLUE_TAMPERING = 65; - MULTIPLEX_SYSTEM = 66; - BATTERY_PACK = 67; - HIGH_VOLTAGE_SYSTEM_CAUTION = 68; - BATTERY_PACK_TEMPERATURE = 69; - LIMITED_PERFORMANCE_ELECTRIC_MOTOR = 70; - BATTERY_PACK_COOLING = 71; - WATER_IN_FUEL_INDICATOR = 72; - } - enum State { - STATE_UNSPECIFIED = 0; - STATE_UNKNOWN = 1; - STATE_NOT_AVAILABLE = 2; - RED = 3; - YELLOW = 4; - INFO = 5; - OFF = 6; - } - } - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_UNKNOWN = 1; - TIMER = 2; - IGNITION_ON = 3; - IGNITION_OFF = 4; - PTO_ENABLED = 5; - PTO_DISABLED = 6; - DRIVER_LOGIN = 7; - DRIVER_LOGOUT = 8; - TELL_TALE = 9; - ENGINE_ON = 10; - ENGINE_OFF = 11; - DRIVER_1_WORKING_STATE_CHANGED = 12; - DRIVER_2_WORKING_STATE_CHANGED = 13; - DISTANCE_TRAVELLED = 14; - FUEL_TYPE_CHANGE = 15; - PARKING_BRAKE_SWITCH_CHANGE = 16; - BATTERY_PACK_CHARGING_STATUS_CHANGE = 17; - BATTERY_PACK_CHARGING_CONNECTION_STATUS_CHANGE = 18; - TRAILER_CONNECTED = 19; - TRAILER_DISCONNECTED = 20; - ALARM = 21; - } - enum Context { - CONTEXT_UNSPECIFIED = 0; - CONTEXT_UNKNOWN = 1; - RFMS = 2; - VOLVO_TRUCKS = 3; - SCANIA = 4; - DAIMLER = 5; - IVECO = 6; - DAF = 7; - MAN = 8; - RENAULT_TRUCKS = 9; - VDL = 10; - VOLVO_BUSES = 11; - IVECO_BUS = 12; - IRISBUS = 13; - } -} diff --git a/proto/gen/pubsub/wayplatform.connect.rfms.v5.UptimeData.pubsub.proto b/proto/gen/pubsub/wayplatform.connect.rfms.v5.UptimeData.pubsub.proto deleted file mode 100644 index e3a21be..0000000 --- a/proto/gen/pubsub/wayplatform.connect.rfms.v5.UptimeData.pubsub.proto +++ /dev/null @@ -1,120 +0,0 @@ -syntax = "proto2"; -message UptimeData { - repeated Inline_wayplatform_connect_rfms_v5_TellTale tell_tales = 1; - optional double service_distance_m = 2; - optional double engine_coolant_temperature_c = 3; - optional double hvess_outlet_coolant_temperature_c = 4; - optional double hvess_temperature_c = 5; - optional double service_brake_air_pressure_circuit1_pa = 6; - optional double service_brake_air_pressure_circuit2_pa = 7; - optional double at_least_one_door_open_duration_s = 8; - repeated Alternator alternators = 9; - optional double bellow_pressure_front_axle_left_pa = 10; - optional double bellow_pressure_front_axle_right_pa = 11; - optional double bellow_pressure_rear_axle_left_pa = 12; - optional double bellow_pressure_rear_axle_right_pa = 13; - message Alternator { - optional int32 number = 1; - optional int32 state = 2; - optional string unknown_state = 3; - enum State { - STATE_UNSPECIFIED = 0; - STATE_UNKNOWN = 1; - STATE_ERROR = 2; - STATE_NOT_AVAILABLE = 3; - NOT_CHARGING = 4; - CHARGING = 5; - } - } - message Inline_wayplatform_connect_rfms_v5_TellTale { - optional int32 type = 1; - optional string unknown_type = 2; - optional string oem_specific_type = 3; - optional int32 state = 4; - optional string unknown_state = 5; - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_UNKNOWN = 1; - OEM_SPECIFIC = 2; - COOLING_AIR_CONDITIONING = 3; - HIGH_BEAM_MAIN_BEAM = 4; - LOW_BEAM_DIPPED_BEAM = 5; - TURN_SIGNALS = 6; - HAZARD_WARNING = 7; - PROVISIONING_HANDICAPPED_PERSON = 8; - PARKING_BRAKE = 9; - BRAKE_MALFUNCTION = 10; - HATCH_OPEN = 11; - FUEL_LEVEL = 12; - ENGINE_COOLANT_TEMPERATURE = 13; - BATTERY_CHARGING_CONDITION = 14; - ENGINE_OIL = 15; - POSITION_LIGHTS = 16; - FRONT_FOG_LIGHT = 17; - REAR_FOG_LIGHT = 18; - PARKING_HEATER = 19; - ENGINE_MIL_INDICATOR = 20; - SERVICE_CALL_FOR_MAINTENANCE = 21; - TRANSMISSION_FLUID_TEMPERATURE = 22; - TRANSMISSION_MALFUNCTION = 23; - ANTI_LOCK_BRAKE_FAILURE = 24; - WORN_BRAKE_LININGS = 25; - WINDSCREEN_WASHER_FLUID = 26; - TIRE_MALFUNCTION = 27; - GENERAL_FAILURE = 28; - ENGINE_OIL_TEMPERATURE = 29; - ENGINE_OIL_LEVEL = 30; - ENGINE_COOLANT_LEVEL = 31; - STEERING_FLUID_LEVEL = 32; - STEERING_FAILURE = 33; - HEIGHT_CONTROL = 34; - RETARDER = 35; - ENGINE_EMISSION_FAILURE = 36; - ESC_INDICATOR = 37; - BRAKE_LIGHTS = 38; - ARTICULATION = 39; - STOP_REQUEST = 40; - PRAM_REQUEST = 41; - BUS_STOP_BRAKE = 42; - ADBLUE_LEVEL = 43; - RAISING = 44; - LOWERING = 45; - KNEELING = 46; - ENGINE_COMPARTMENT_TEMPERATURE = 47; - AUXILLARY_AIR_PRESSURE = 48; - AIR_FILTER_CLOGGED = 49; - FUEL_FILTER_DIFF_PRESSURE = 50; - SEAT_BELT = 51; - EBS = 52; - LANE_DEPARTURE_INDICATOR = 53; - ADVANCED_EMERGENCY_BRAKING = 54; - ACC = 55; - TRAILER_CONNECTED = 56; - ABS_TRAILER = 57; - AIRBAG = 58; - EBS_TRAILER_1_2 = 59; - TACHOGRAPH_INDICATOR = 60; - ESC_SWITCHED_OFF = 61; - LANE_DEPARTURE_WARNING_SWITCHED_OFF = 62; - ENGINE_EMISSION_FILTER_SOOT_FILTER = 63; - ELECTRIC_MOTOR_FAILURES = 64; - ADBLUE_TAMPERING = 65; - MULTIPLEX_SYSTEM = 66; - BATTERY_PACK = 67; - HIGH_VOLTAGE_SYSTEM_CAUTION = 68; - BATTERY_PACK_TEMPERATURE = 69; - LIMITED_PERFORMANCE_ELECTRIC_MOTOR = 70; - BATTERY_PACK_COOLING = 71; - WATER_IN_FUEL_INDICATOR = 72; - } - enum State { - STATE_UNSPECIFIED = 0; - STATE_UNKNOWN = 1; - STATE_NOT_AVAILABLE = 2; - RED = 3; - YELLOW = 4; - INFO = 5; - OFF = 6; - } - } -} diff --git a/proto/gen/pubsub/wayplatform.connect.rfms.v5.Vehicle.pubsub.proto b/proto/gen/pubsub/wayplatform.connect.rfms.v5.Vehicle.pubsub.proto deleted file mode 100644 index 2c50f2a..0000000 --- a/proto/gen/pubsub/wayplatform.connect.rfms.v5.Vehicle.pubsub.proto +++ /dev/null @@ -1,50 +0,0 @@ -syntax = "proto2"; -message Vehicle { - optional string vin = 1; - optional string customer_vehicle_name = 2; - optional string registration_number = 3; - optional int32 brand = 4; - optional string unknown_brand = 5; - optional Inline_wayplatform_connect_rfms_v5_Date production_date = 6; - optional int32 type = 7; - optional string unknown_type = 8; - optional string model = 9; - repeated int32 possible_fuel_types = 10; - repeated string unknown_possible_fuel_types = 11; - optional int32 emission_level = 12; - optional string unknown_emission_level = 13; - optional string tell_tale_code = 14; - optional string chassis_type = 15; - optional int32 axle_count = 16; - optional double total_fuel_tank_volume_ml = 17; - optional double total_fuel_tank_capacity_gaseous_kg = 18; - optional double total_battery_pack_capacity_wh = 19; - optional int32 tachograph_type = 20; - optional string unknown_tachograph_type = 21; - optional int32 gearbox_type = 22; - optional string unknown_gearbox_type = 23; - optional int32 body_type = 24; - optional string unknown_body_type = 25; - repeated int32 door_configuration = 26; - optional bool has_ramp_or_lift = 27; - repeated string authorized_paths = 28; - message Inline_wayplatform_connect_rfms_v5_Date { - optional int32 day = 1; - optional int32 month = 2; - optional int32 year = 3; - } - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_UNKNOWN = 1; - TRUCK = 2; - BUS = 3; - VAN = 4; - } - enum BodyType { - BODY_TYPE_UNSPECIFIED = 0; - BODY_TYPE_UNKNOWN = 1; - CITY_BUS = 2; - INTERCITY_BUS = 3; - COACH = 4; - } -} diff --git a/proto/gen/pubsub/wayplatform.connect.rfms.v5.VehicleAxle.pubsub.proto b/proto/gen/pubsub/wayplatform.connect.rfms.v5.VehicleAxle.pubsub.proto deleted file mode 100644 index 8a6bb68..0000000 --- a/proto/gen/pubsub/wayplatform.connect.rfms.v5.VehicleAxle.pubsub.proto +++ /dev/null @@ -1,10 +0,0 @@ -syntax = "proto2"; -message VehicleAxle { - optional int32 position = 1; - optional double load_kg = 2; - repeated Tire tires = 3; - message Tire { - optional int32 position = 1; - optional double pressure_kpa = 2; - } -} diff --git a/proto/gen/pubsub/wayplatform.connect.rfms.v5.VehiclePosition.pubsub.proto b/proto/gen/pubsub/wayplatform.connect.rfms.v5.VehiclePosition.pubsub.proto deleted file mode 100644 index 51fe8af..0000000 --- a/proto/gen/pubsub/wayplatform.connect.rfms.v5.VehiclePosition.pubsub.proto +++ /dev/null @@ -1,234 +0,0 @@ -syntax = "proto2"; -message VehiclePosition { - optional string vin = 1; - optional string create_time = 2; - optional string receive_time = 3; - optional Inline_wayplatform_connect_rfms_v5_Trigger trigger = 4; - optional Inline_wayplatform_connect_rfms_v5_GnssPosition gnss_position = 5; - optional double wheel_based_speed_kmh = 6; - optional double tachograph_speed_kmh = 7; - message Inline_wayplatform_connect_rfms_v5_DriverIdentification { - optional Tacho tacho = 1; - optional Oem oem = 2; - message Tacho { - optional string driver_id = 1; - optional string card_issuing_member_state = 2; - optional int32 authentication_equipment = 3; - optional string unknown_authentication_equipment = 4; - optional string card_replacement_index = 5; - optional string card_renewal_index = 6; - enum AuthenticationEquipment { - AUTHENTICATION_EQUIPMENT_UNSPECIFIED = 0; - AUTHENTICATION_EQUIPMENT_UNKNOWN = 1; - DRIVER_CARD = 2; - CONTROL_CARD = 3; - COMPANY_CARD = 4; - MANUFACTURING_CARD = 5; - VEHICLE_UNIT = 6; - MOTION_SENSOR = 7; - } - } - message Oem { - optional string id_type = 1; - optional string driver_id = 2; - } - } - message Inline_wayplatform_connect_rfms_v5_TellTale { - optional int32 type = 1; - optional string unknown_type = 2; - optional string oem_specific_type = 3; - optional int32 state = 4; - optional string unknown_state = 5; - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_UNKNOWN = 1; - OEM_SPECIFIC = 2; - COOLING_AIR_CONDITIONING = 3; - HIGH_BEAM_MAIN_BEAM = 4; - LOW_BEAM_DIPPED_BEAM = 5; - TURN_SIGNALS = 6; - HAZARD_WARNING = 7; - PROVISIONING_HANDICAPPED_PERSON = 8; - PARKING_BRAKE = 9; - BRAKE_MALFUNCTION = 10; - HATCH_OPEN = 11; - FUEL_LEVEL = 12; - ENGINE_COOLANT_TEMPERATURE = 13; - BATTERY_CHARGING_CONDITION = 14; - ENGINE_OIL = 15; - POSITION_LIGHTS = 16; - FRONT_FOG_LIGHT = 17; - REAR_FOG_LIGHT = 18; - PARKING_HEATER = 19; - ENGINE_MIL_INDICATOR = 20; - SERVICE_CALL_FOR_MAINTENANCE = 21; - TRANSMISSION_FLUID_TEMPERATURE = 22; - TRANSMISSION_MALFUNCTION = 23; - ANTI_LOCK_BRAKE_FAILURE = 24; - WORN_BRAKE_LININGS = 25; - WINDSCREEN_WASHER_FLUID = 26; - TIRE_MALFUNCTION = 27; - GENERAL_FAILURE = 28; - ENGINE_OIL_TEMPERATURE = 29; - ENGINE_OIL_LEVEL = 30; - ENGINE_COOLANT_LEVEL = 31; - STEERING_FLUID_LEVEL = 32; - STEERING_FAILURE = 33; - HEIGHT_CONTROL = 34; - RETARDER = 35; - ENGINE_EMISSION_FAILURE = 36; - ESC_INDICATOR = 37; - BRAKE_LIGHTS = 38; - ARTICULATION = 39; - STOP_REQUEST = 40; - PRAM_REQUEST = 41; - BUS_STOP_BRAKE = 42; - ADBLUE_LEVEL = 43; - RAISING = 44; - LOWERING = 45; - KNEELING = 46; - ENGINE_COMPARTMENT_TEMPERATURE = 47; - AUXILLARY_AIR_PRESSURE = 48; - AIR_FILTER_CLOGGED = 49; - FUEL_FILTER_DIFF_PRESSURE = 50; - SEAT_BELT = 51; - EBS = 52; - LANE_DEPARTURE_INDICATOR = 53; - ADVANCED_EMERGENCY_BRAKING = 54; - ACC = 55; - TRAILER_CONNECTED = 56; - ABS_TRAILER = 57; - AIRBAG = 58; - EBS_TRAILER_1_2 = 59; - TACHOGRAPH_INDICATOR = 60; - ESC_SWITCHED_OFF = 61; - LANE_DEPARTURE_WARNING_SWITCHED_OFF = 62; - ENGINE_EMISSION_FILTER_SOOT_FILTER = 63; - ELECTRIC_MOTOR_FAILURES = 64; - ADBLUE_TAMPERING = 65; - MULTIPLEX_SYSTEM = 66; - BATTERY_PACK = 67; - HIGH_VOLTAGE_SYSTEM_CAUTION = 68; - BATTERY_PACK_TEMPERATURE = 69; - LIMITED_PERFORMANCE_ELECTRIC_MOTOR = 70; - BATTERY_PACK_COOLING = 71; - WATER_IN_FUEL_INDICATOR = 72; - } - enum State { - STATE_UNSPECIFIED = 0; - STATE_UNKNOWN = 1; - STATE_NOT_AVAILABLE = 2; - RED = 3; - YELLOW = 4; - INFO = 5; - OFF = 6; - } - } - message Inline_wayplatform_connect_rfms_v5_Trigger { - optional int32 type = 1; - optional string unknown_type = 2; - optional int32 context = 3; - optional string unknown_context = 4; - repeated string trigger_info = 5; - optional Inline_wayplatform_connect_rfms_v5_DriverIdentification driver_id = 6; - optional string pto_id = 7; - optional Inline_wayplatform_connect_rfms_v5_TellTale tell_tale_info = 8; - optional ChargingStatusInfo charging_status_info = 9; - optional ChargingConnectionStatusInfo charging_connection_status_info = 10; - optional AlarmInfo alarm_info = 11; - message ChargingStatusInfo { - optional int32 event = 1; - optional string unknown_event = 2; - optional string detail = 3; - enum Event { - EVENT_UNSPECIFIED = 0; - EVENT_UNKNOWN = 1; - EVENT_ERROR = 2; - CHARGING_STARTED = 3; - CHARGING_COMPLETED = 4; - CHARGING_INTERRUPTED = 5; - ESTIMATED_COMPLETION_TIME_CHANGED = 6; - TIMER = 7; - CHARGING_LEVEL = 8; - } - } - message ChargingConnectionStatusInfo { - optional int32 state = 1; - optional string unknown_state = 2; - } - message AlarmInfo { - optional int32 type = 1; - optional string unknown_type = 2; - optional int32 state = 3; - optional string unknown_state = 4; - repeated string details = 5; - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_UNKNOWN = 1; - THEFT = 2; - FUEL_THEFT = 3; - FIRE = 4; - PANIC = 5; - CARGO_TEMPERATURE = 6; - } - enum State { - STATE_UNSPECIFIED = 0; - STATE_UNKNOWN = 1; - STATE_ERROR = 2; - ARMED = 3; - ARMED_WITH_ERROR = 4; - DISARMED = 5; - TRIGGERED = 6; - UNTRIGGERED = 7; - } - } - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_UNKNOWN = 1; - TIMER = 2; - IGNITION_ON = 3; - IGNITION_OFF = 4; - PTO_ENABLED = 5; - PTO_DISABLED = 6; - DRIVER_LOGIN = 7; - DRIVER_LOGOUT = 8; - TELL_TALE = 9; - ENGINE_ON = 10; - ENGINE_OFF = 11; - DRIVER_1_WORKING_STATE_CHANGED = 12; - DRIVER_2_WORKING_STATE_CHANGED = 13; - DISTANCE_TRAVELLED = 14; - FUEL_TYPE_CHANGE = 15; - PARKING_BRAKE_SWITCH_CHANGE = 16; - BATTERY_PACK_CHARGING_STATUS_CHANGE = 17; - BATTERY_PACK_CHARGING_CONNECTION_STATUS_CHANGE = 18; - TRAILER_CONNECTED = 19; - TRAILER_DISCONNECTED = 20; - ALARM = 21; - } - enum Context { - CONTEXT_UNSPECIFIED = 0; - CONTEXT_UNKNOWN = 1; - RFMS = 2; - VOLVO_TRUCKS = 3; - SCANIA = 4; - DAIMLER = 5; - IVECO = 6; - DAF = 7; - MAN = 8; - RENAULT_TRUCKS = 9; - VDL = 10; - VOLVO_BUSES = 11; - IVECO_BUS = 12; - IRISBUS = 13; - } - } - message Inline_wayplatform_connect_rfms_v5_GnssPosition { - optional string time = 1; - optional double latitude = 2; - optional double longitude = 3; - optional double heading_deg = 4; - optional double altitude_m = 5; - optional double speed_kmh = 6; - } -} diff --git a/proto/gen/pubsub/wayplatform.connect.rfms.v5.VehicleStatus.pubsub.proto b/proto/gen/pubsub/wayplatform.connect.rfms.v5.VehicleStatus.pubsub.proto deleted file mode 100644 index 16b785e..0000000 --- a/proto/gen/pubsub/wayplatform.connect.rfms.v5.VehicleStatus.pubsub.proto +++ /dev/null @@ -1,460 +0,0 @@ -syntax = "proto2"; -message VehicleStatus { - optional string vin = 1; - optional string create_time = 2; - optional string receive_time = 3; - optional Inline_wayplatform_connect_rfms_v5_Trigger trigger = 4; - optional double hr_total_vehicle_distance_m = 5; - optional double total_engine_hours = 6; - optional double total_electric_motor_hours = 7; - optional Inline_wayplatform_connect_rfms_v5_DriverIdentification driver1_id = 8; - optional double gross_combination_vehicle_weight_kg = 9; - optional double engine_total_fuel_used_ml = 10; - optional double total_fuel_used_gaseous_kg = 11; - optional double total_electric_energy_used_wh = 12; - optional double total_electric_energy_recuperated_wh = 13; - optional int32 state_of_doors = 14; - optional string unknown_state_of_doors = 15; - repeated Door doors = 16; - optional Inline_wayplatform_connect_rfms_v5_SnapshotData snapshot_data = 18; - optional Inline_wayplatform_connect_rfms_v5_UptimeData uptime_data = 19; - optional Inline_wayplatform_connect_rfms_v5_AccumulatedData accumulated_data = 17; - message Door { - optional int32 number = 1; - optional int32 enabled_state = 2; - optional string unknown_enabled_state = 3; - optional int32 open_state = 4; - optional string unknown_open_state = 5; - optional int32 lock_state = 6; - optional string unknown_lock_state = 7; - enum EnabledState { - ENABLED_STATE_UNSPECIFIED = 0; - ENABLED_STATE_UNKNOWN = 1; - ENABLED_STATE_ERROR = 2; - ENABLED_STATE_NOT_AVAILABLE = 3; - ENABLED = 4; - DISABLED = 5; - } - enum OpenState { - OPEN_STATE_UNSPECIFIED = 0; - OPEN_STATE_UNKNOWN = 1; - OPEN_STATE_ERROR = 2; - OPEN_STATE_NOT_AVAILABLE = 3; - CLOSED = 4; - OPEN = 5; - } - enum LockState { - LOCK_STATE_UNSPECIFIED = 0; - LOCK_STATE_UNKNOWN = 1; - LOCK_STATE_ERROR = 2; - LOCK_STATE_NOT_AVAILABLE = 3; - UNLOCKED = 4; - LOCKED = 5; - } - } - message Inline_wayplatform_connect_rfms_v5_DriverIdentification { - optional Tacho tacho = 1; - optional Oem oem = 2; - message Tacho { - optional string driver_id = 1; - optional string card_issuing_member_state = 2; - optional int32 authentication_equipment = 3; - optional string unknown_authentication_equipment = 4; - optional string card_replacement_index = 5; - optional string card_renewal_index = 6; - enum AuthenticationEquipment { - AUTHENTICATION_EQUIPMENT_UNSPECIFIED = 0; - AUTHENTICATION_EQUIPMENT_UNKNOWN = 1; - DRIVER_CARD = 2; - CONTROL_CARD = 3; - COMPANY_CARD = 4; - MANUFACTURING_CARD = 5; - VEHICLE_UNIT = 6; - MOTION_SENSOR = 7; - } - } - message Oem { - optional string id_type = 1; - optional string driver_id = 2; - } - } - message Inline_wayplatform_connect_rfms_v5_TellTale { - optional int32 type = 1; - optional string unknown_type = 2; - optional string oem_specific_type = 3; - optional int32 state = 4; - optional string unknown_state = 5; - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_UNKNOWN = 1; - OEM_SPECIFIC = 2; - COOLING_AIR_CONDITIONING = 3; - HIGH_BEAM_MAIN_BEAM = 4; - LOW_BEAM_DIPPED_BEAM = 5; - TURN_SIGNALS = 6; - HAZARD_WARNING = 7; - PROVISIONING_HANDICAPPED_PERSON = 8; - PARKING_BRAKE = 9; - BRAKE_MALFUNCTION = 10; - HATCH_OPEN = 11; - FUEL_LEVEL = 12; - ENGINE_COOLANT_TEMPERATURE = 13; - BATTERY_CHARGING_CONDITION = 14; - ENGINE_OIL = 15; - POSITION_LIGHTS = 16; - FRONT_FOG_LIGHT = 17; - REAR_FOG_LIGHT = 18; - PARKING_HEATER = 19; - ENGINE_MIL_INDICATOR = 20; - SERVICE_CALL_FOR_MAINTENANCE = 21; - TRANSMISSION_FLUID_TEMPERATURE = 22; - TRANSMISSION_MALFUNCTION = 23; - ANTI_LOCK_BRAKE_FAILURE = 24; - WORN_BRAKE_LININGS = 25; - WINDSCREEN_WASHER_FLUID = 26; - TIRE_MALFUNCTION = 27; - GENERAL_FAILURE = 28; - ENGINE_OIL_TEMPERATURE = 29; - ENGINE_OIL_LEVEL = 30; - ENGINE_COOLANT_LEVEL = 31; - STEERING_FLUID_LEVEL = 32; - STEERING_FAILURE = 33; - HEIGHT_CONTROL = 34; - RETARDER = 35; - ENGINE_EMISSION_FAILURE = 36; - ESC_INDICATOR = 37; - BRAKE_LIGHTS = 38; - ARTICULATION = 39; - STOP_REQUEST = 40; - PRAM_REQUEST = 41; - BUS_STOP_BRAKE = 42; - ADBLUE_LEVEL = 43; - RAISING = 44; - LOWERING = 45; - KNEELING = 46; - ENGINE_COMPARTMENT_TEMPERATURE = 47; - AUXILLARY_AIR_PRESSURE = 48; - AIR_FILTER_CLOGGED = 49; - FUEL_FILTER_DIFF_PRESSURE = 50; - SEAT_BELT = 51; - EBS = 52; - LANE_DEPARTURE_INDICATOR = 53; - ADVANCED_EMERGENCY_BRAKING = 54; - ACC = 55; - TRAILER_CONNECTED = 56; - ABS_TRAILER = 57; - AIRBAG = 58; - EBS_TRAILER_1_2 = 59; - TACHOGRAPH_INDICATOR = 60; - ESC_SWITCHED_OFF = 61; - LANE_DEPARTURE_WARNING_SWITCHED_OFF = 62; - ENGINE_EMISSION_FILTER_SOOT_FILTER = 63; - ELECTRIC_MOTOR_FAILURES = 64; - ADBLUE_TAMPERING = 65; - MULTIPLEX_SYSTEM = 66; - BATTERY_PACK = 67; - HIGH_VOLTAGE_SYSTEM_CAUTION = 68; - BATTERY_PACK_TEMPERATURE = 69; - LIMITED_PERFORMANCE_ELECTRIC_MOTOR = 70; - BATTERY_PACK_COOLING = 71; - WATER_IN_FUEL_INDICATOR = 72; - } - enum State { - STATE_UNSPECIFIED = 0; - STATE_UNKNOWN = 1; - STATE_NOT_AVAILABLE = 2; - RED = 3; - YELLOW = 4; - INFO = 5; - OFF = 6; - } - } - message Inline_wayplatform_connect_rfms_v5_Trigger { - optional int32 type = 1; - optional string unknown_type = 2; - optional int32 context = 3; - optional string unknown_context = 4; - repeated string trigger_info = 5; - optional Inline_wayplatform_connect_rfms_v5_DriverIdentification driver_id = 6; - optional string pto_id = 7; - optional Inline_wayplatform_connect_rfms_v5_TellTale tell_tale_info = 8; - optional ChargingStatusInfo charging_status_info = 9; - optional ChargingConnectionStatusInfo charging_connection_status_info = 10; - optional AlarmInfo alarm_info = 11; - message ChargingStatusInfo { - optional int32 event = 1; - optional string unknown_event = 2; - optional string detail = 3; - enum Event { - EVENT_UNSPECIFIED = 0; - EVENT_UNKNOWN = 1; - EVENT_ERROR = 2; - CHARGING_STARTED = 3; - CHARGING_COMPLETED = 4; - CHARGING_INTERRUPTED = 5; - ESTIMATED_COMPLETION_TIME_CHANGED = 6; - TIMER = 7; - CHARGING_LEVEL = 8; - } - } - message ChargingConnectionStatusInfo { - optional int32 state = 1; - optional string unknown_state = 2; - } - message AlarmInfo { - optional int32 type = 1; - optional string unknown_type = 2; - optional int32 state = 3; - optional string unknown_state = 4; - repeated string details = 5; - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_UNKNOWN = 1; - THEFT = 2; - FUEL_THEFT = 3; - FIRE = 4; - PANIC = 5; - CARGO_TEMPERATURE = 6; - } - enum State { - STATE_UNSPECIFIED = 0; - STATE_UNKNOWN = 1; - STATE_ERROR = 2; - ARMED = 3; - ARMED_WITH_ERROR = 4; - DISARMED = 5; - TRIGGERED = 6; - UNTRIGGERED = 7; - } - } - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_UNKNOWN = 1; - TIMER = 2; - IGNITION_ON = 3; - IGNITION_OFF = 4; - PTO_ENABLED = 5; - PTO_DISABLED = 6; - DRIVER_LOGIN = 7; - DRIVER_LOGOUT = 8; - TELL_TALE = 9; - ENGINE_ON = 10; - ENGINE_OFF = 11; - DRIVER_1_WORKING_STATE_CHANGED = 12; - DRIVER_2_WORKING_STATE_CHANGED = 13; - DISTANCE_TRAVELLED = 14; - FUEL_TYPE_CHANGE = 15; - PARKING_BRAKE_SWITCH_CHANGE = 16; - BATTERY_PACK_CHARGING_STATUS_CHANGE = 17; - BATTERY_PACK_CHARGING_CONNECTION_STATUS_CHANGE = 18; - TRAILER_CONNECTED = 19; - TRAILER_DISCONNECTED = 20; - ALARM = 21; - } - enum Context { - CONTEXT_UNSPECIFIED = 0; - CONTEXT_UNKNOWN = 1; - RFMS = 2; - VOLVO_TRUCKS = 3; - SCANIA = 4; - DAIMLER = 5; - IVECO = 6; - DAF = 7; - MAN = 8; - RENAULT_TRUCKS = 9; - VDL = 10; - VOLVO_BUSES = 11; - IVECO_BUS = 12; - IRISBUS = 13; - } - } - message Inline_wayplatform_connect_rfms_v5_GnssPosition { - optional string time = 1; - optional double latitude = 2; - optional double longitude = 3; - optional double heading_deg = 4; - optional double altitude_m = 5; - optional double speed_kmh = 6; - } - message Inline_wayplatform_connect_rfms_v5_VehicleAxle { - optional int32 position = 1; - optional double load_kg = 2; - repeated Tire tires = 3; - message Tire { - optional int32 position = 1; - optional double pressure_kpa = 2; - } - } - message Inline_wayplatform_connect_rfms_v5_Trailer { - optional int32 number = 1; - optional string identification_data = 2; - optional string vin = 3; - optional string customer_name = 4; - optional int32 type = 5; - optional double axle_load_sum_kg = 6; - repeated Axle axles = 7; - message Axle { - optional int32 position = 1; - optional double load_kg = 2; - } - enum Type { - TYPE_UNSPECIFIED = 0; - TYPE_UNKNOWN = 1; - TYPE_NOT_AVAILABLE = 2; - SEMI_TRAILER = 3; - CENTRE_AXLE_TRAILER = 4; - FULL_TRAILER = 5; - CONVERTER_DOLLY = 6; - LINK_TRAILER = 7; - TOWING_SEMI_TRAILER = 8; - TOWING_CENTRE_AXLE_TRAILER = 9; - TOWING_FULL_TRAILER = 10; - } - } - message Inline_wayplatform_connect_rfms_v5_SnapshotData { - optional Inline_wayplatform_connect_rfms_v5_GnssPosition gnss_position = 1; - optional double wheel_based_speed_kmh = 2; - optional double tachograph_speed_kmh = 3; - optional double engine_speed_rpm = 4; - optional double electric_motor_speed_rpm = 5; - optional int32 ignition_state = 6; - optional int32 fuel_type = 7; - optional string unknown_fuel_type = 8; - optional double fuel_level1_percent = 9; - optional double fuel_level2_percent = 10; - optional double catalyst_fuel_level_percent = 11; - optional int32 driver1_working_state = 12; - optional string unknown_driver1_working_state = 13; - optional Inline_wayplatform_connect_rfms_v5_DriverIdentification driver2_id = 14; - optional int32 driver2_working_state = 15; - optional string unknown_driver2_working_state = 16; - optional double ambient_air_temperature_c = 17; - optional bool parking_brake_switch = 18; - optional double battery_pack_remaining_charge_percent = 19; - optional int32 battery_pack_charging_state = 20; - optional string unknown_battery_pack_charging_state = 21; - optional int32 battery_pack_charging_connection_state = 22; - optional string unknown_battery_pack_charging_connection_state = 23; - optional int32 battery_pack_charging_device = 24; - optional string unknown_battery_pack_charging_device = 25; - optional double battery_pack_charging_power_w = 26; - optional string battery_pack_estimated_charging_completed_time = 27; - optional EstimatedDistanceToEmpty estimated_distance_to_empty = 28; - repeated Inline_wayplatform_connect_rfms_v5_VehicleAxle vehicle_axles = 29; - repeated Inline_wayplatform_connect_rfms_v5_Trailer trailers = 30; - message EstimatedDistanceToEmpty { - optional double total_m = 1; - optional double fuel_m = 2; - optional double gas_m = 3; - optional double battery_pack_m = 4; - } - } - message Inline_wayplatform_connect_rfms_v5_UptimeData { - repeated Inline_wayplatform_connect_rfms_v5_TellTale tell_tales = 1; - optional double service_distance_m = 2; - optional double engine_coolant_temperature_c = 3; - optional double hvess_outlet_coolant_temperature_c = 4; - optional double hvess_temperature_c = 5; - optional double service_brake_air_pressure_circuit1_pa = 6; - optional double service_brake_air_pressure_circuit2_pa = 7; - optional double at_least_one_door_open_duration_s = 8; - repeated Alternator alternators = 9; - optional double bellow_pressure_front_axle_left_pa = 10; - optional double bellow_pressure_front_axle_right_pa = 11; - optional double bellow_pressure_rear_axle_left_pa = 12; - optional double bellow_pressure_rear_axle_right_pa = 13; - message Alternator { - optional int32 number = 1; - optional int32 state = 2; - optional string unknown_state = 3; - enum State { - STATE_UNSPECIFIED = 0; - STATE_UNKNOWN = 1; - STATE_ERROR = 2; - STATE_NOT_AVAILABLE = 3; - NOT_CHARGING = 4; - CHARGING = 5; - } - } - } - message Inline_wayplatform_connect_rfms_v5_AccumulatedData { - optional double wheel_based_speed_over_zero_duration_s = 1; - optional double wheel_based_speed_over_zero_fuel_ml = 2; - optional double wheel_based_speed_over_zero_fuel_gaseous_kg = 3; - optional double wheel_based_speed_over_zero_electric_energy_consumption_wh = 4; - optional double wheel_based_speed_zero_duration_s = 5; - optional double wheel_based_speed_zero_distance_m = 6; - optional double wheel_based_speed_zero_fuel_ml = 7; - optional double wheel_based_speed_zero_fuel_gaseous_kg = 8; - optional double wheel_based_speed_zero_electric_energy_consumption_wh = 9; - optional double cruise_control_active_distance_m = 10; - optional double cruise_control_active_duration_s = 11; - optional double cruise_control_active_fuel_consumption_ml = 12; - optional double cruise_control_active_fuel_consumption_gaseous_kg = 13; - optional double cruise_control_active_electric_energy_consumption_wh = 14; - optional double aux_electric_energy_consumption_wh = 15; - repeated LabelClass pto_active_class = 16; - optional int32 brake_pedal_speed_over_zero_count = 17; - optional double brake_pedal_speed_over_zero_distance_m = 18; - repeated FromToClass acceleration_pedal_position_class_percent = 19; - repeated FromToClass brake_pedal_position_class_percent = 20; - repeated FromToClass acceleration_class_mps2 = 21; - repeated FromToClass high_acceleration_class_mps2 = 22; - repeated FromToClass retarder_torque_class_percent = 23; - repeated LabelClass driving_without_torque_class = 24; - repeated FromToClassCombustion engine_torque_class_percent = 25; - repeated FromToClassElectrical electric_motor_torque_class_percent = 26; - repeated FromToClassCombustion engine_torque_at_current_speed_class_percent = 27; - repeated FromToClassElectrical electric_motor_torque_at_current_speed_class_percent = 28; - repeated FromToClass vehicle_speed_class_kmh = 29; - repeated FromToClass engine_speed_class_rpm = 30; - repeated FromToClass acceleration_during_brake_class_mps2 = 31; - repeated LabelClass selected_gear_class = 32; - repeated LabelClass current_gear_class = 33; - optional int32 chairlift_count = 34; - optional int32 stop_request_count = 35; - optional int32 kneeling_count = 36; - optional int32 pram_request_count = 37; - repeated FromToClassElectrical electric_power_recuperation_class_kw = 38; - message LabelClass { - optional string label = 1; - optional double duration_s = 2; - optional double distance_m = 3; - optional double fuel_consumption_ml = 4; - optional double fuel_consumption_gaseous_kg = 5; - optional double electric_energy_consumption_wh = 6; - } - message FromToClass { - optional double from = 1; - optional double to = 2; - optional double duration_s = 3; - optional double distance_m = 4; - optional double fuel_consumption_ml = 5; - optional double fuel_consumption_gaseous_kg = 6; - optional double electric_energy_consumption_wh = 7; - } - message FromToClassCombustion { - optional double from = 1; - optional double to = 2; - optional double duration_s = 3; - optional double distance_m = 4; - optional double fuel_consumption_ml = 5; - optional double fuel_consumption_gaseous_kg = 6; - } - message FromToClassElectrical { - optional double from = 1; - optional double to = 2; - optional double duration_s = 3; - optional double distance_m = 4; - optional double electric_energy_consumption_wh = 5; - } - } - enum StateOfDoors { - STATE_OF_DOORS_UNSPECIFIED = 0; - STATE_OF_DOORS_UNKNOWN = 1; - STATE_OF_DOORS_ERROR = 2; - STATE_OF_DOORS_NOT_AVAILABLE = 3; - ALL_DOORS_DISABLED = 4; - AT_LEAST_ONE_DOOR_ENABLED = 5; - } -} diff --git a/proto/wayplatform/connect/rfms/v5/gnss_position.proto b/proto/wayplatform/connect/rfms/v5/gnss_position.proto index a0efdc2..06c950c 100644 --- a/proto/wayplatform/connect/rfms/v5/gnss_position.proto +++ b/proto/wayplatform/connect/rfms/v5/gnss_position.proto @@ -2,10 +2,12 @@ edition = "2023"; package wayplatform.connect.rfms.v5; +import "google/protobuf/timestamp.proto"; + // A GNSS position. message GnssPosition { // The time of the GNSS position data. (RFC 3339) - string time = 1; + google.protobuf.Timestamp time = 1; // The latitude of the vehicle. (WGS84 based) double latitude = 2; // The longitude of the vehicle. (WGS84 based) diff --git a/proto/wayplatform/connect/rfms/v5/snapshot_data.proto b/proto/wayplatform/connect/rfms/v5/snapshot_data.proto index 2547e0f..0bb3739 100644 --- a/proto/wayplatform/connect/rfms/v5/snapshot_data.proto +++ b/proto/wayplatform/connect/rfms/v5/snapshot_data.proto @@ -2,6 +2,7 @@ edition = "2023"; package wayplatform.connect.rfms.v5; +import "google/protobuf/timestamp.proto"; import "wayplatform/connect/rfms/v5/charging_connection_state.proto"; import "wayplatform/connect/rfms/v5/charging_device.proto"; import "wayplatform/connect/rfms/v5/charging_state.proto"; @@ -113,7 +114,7 @@ message SnapshotData { double battery_pack_charging_power_w = 26; // The estimated time when charging has reached the target level. (RFC 3339) - string battery_pack_estimated_charging_completed_time = 27; + google.protobuf.Timestamp battery_pack_estimated_charging_completed_time = 27; // The estimated distance to empty of the vehicle. EstimatedDistanceToEmpty estimated_distance_to_empty = 28; diff --git a/proto/wayplatform/connect/rfms/v5/vehicle_position.proto b/proto/wayplatform/connect/rfms/v5/vehicle_position.proto index c39b822..5d58c87 100644 --- a/proto/wayplatform/connect/rfms/v5/vehicle_position.proto +++ b/proto/wayplatform/connect/rfms/v5/vehicle_position.proto @@ -2,6 +2,7 @@ edition = "2023"; package wayplatform.connect.rfms.v5; +import "google/protobuf/timestamp.proto"; import "wayplatform/connect/rfms/v5/gnss_position.proto"; import "wayplatform/connect/rfms/v5/trigger.proto"; @@ -12,10 +13,10 @@ message VehiclePosition { string vin = 1; // The date and time the vehicle position was created. (RFC 3339) - string create_time = 2; + google.protobuf.Timestamp create_time = 2; // The date and time the vehicle position was received. (RFC 3339) - string receive_time = 3; + google.protobuf.Timestamp receive_time = 3; // The type of trigger that caused the vehicle position to be sent. Trigger trigger = 4; diff --git a/proto/wayplatform/connect/rfms/v5/vehicle_status.proto b/proto/wayplatform/connect/rfms/v5/vehicle_status.proto index 4d66ddc..9a2896a 100644 --- a/proto/wayplatform/connect/rfms/v5/vehicle_status.proto +++ b/proto/wayplatform/connect/rfms/v5/vehicle_status.proto @@ -2,6 +2,7 @@ edition = "2023"; package wayplatform.connect.rfms.v5; +import "google/protobuf/timestamp.proto"; import "wayplatform/connect/rfms/v5/accumulated_data.proto"; import "wayplatform/connect/rfms/v5/driver_identification.proto"; import "wayplatform/connect/rfms/v5/snapshot_data.proto"; @@ -14,10 +15,10 @@ message VehicleStatus { string vin = 1; // The date and time the vehicle status was created. (RFC 3339) - string create_time = 2; + google.protobuf.Timestamp create_time = 2; // The date and time the vehicle status was received. (RFC 3339) - string receive_time = 3; + google.protobuf.Timestamp receive_time = 3; // The type of trigger that caused the vehicle status to be sent. Trigger trigger = 4;